if (window.screenLeft === undefined) { Geometry.getWindowX = function() { return window.screenLeft; }; }