var leftPos = ( typeof window.screenLeft = = "number") ? window.screenLeft : window.screenX;
var topPos = ( typeof window.screenTop = = "number") ? window.screenTop : window.screenY;
var leftPos = ( typeof window.screenLeft = = "number") ? window.screenLeft : window.screenX;
var topPos = ( typeof window.screenTop = = "number") ? window.screenTop : window.screenY;