if (options.width) {
            var dualScreenLeft = window.screenLeft !== undefined ? window.screenLeft : screen.left;
            var width = screen.width || window.innerWidth || documentElement.clientWidth;
            options.left = parseInt((width - options.width) / 2, 10) + dualScreenLeft;
        }