var ie = document.all; var isdrag = false; var xoffset = 0; var yoffset = 0; var IE = document.all?true:false var tempX = 0 var tempY = 0 var browserlist = navigator.userAgent.toLowerCase(); var cbrowser; if ((browserlist.indexOf("firefox") + 1)) { cbrowser = "FireFox"; } if ((browserlist.indexOf("chrome") + 1)) { cbrowser = "GoogleChrome"; } if ((browserlist.indexOf("msie") + 1)) { cbrowser = "MSInternetExplorer"; } $(window).resize(function() { if (parent.window) { xPopupReAlign(); } }); function xPopupOpenSPEC(xwidth, xheight) { document.getElementById('blackdim').style.display='block'; document.getElementById('blackdim').style.zIndex='9998'; $("#blackdim").fadeTo('slow', 0.65, function() { document.getElementById('xpopup').style.pixelWidth=xwidth; document.getElementById('xpopup').style.pixelHeight=xheight; xPopupReAlign(); document.getElementById('xpopup').style.display='block'; document.getElementById('xpopup').style.zIndex='9999'; $("#xpopup").fadeTo('fast', 1.0) }); } function xPopupOpen() { document.getElementById('blackdim').style.display='block'; document.getElementById('blackdim').style.zIndex='9998'; $("#blackdim").fadeTo('slow', 0.65, function() { document.getElementById('xpopup').style.pixelWidth=500; document.getElementById('xpopup').style.pixelHeight=320; xPopupReAlign(); document.getElementById('xpopup').style.display='block'; document.getElementById('xpopup').style.zIndex='9999'; $("#xpopup").fadeTo('fast', 1.0) }); } function xPopupResize(w, h) { document.getElementById('xpopup').style.pixelWidth=w; document.getElementById('xpopup').style.pixelHeight=h; } function xPopupReAlign() { document.getElementById('xpopup').style.left=((window.innerWidth/2) - (document.getElementById('xpopup').style.pixelWidth/2)) + 'px'; document.getElementById('xpopup').style.top=((window.innerHeight/2) - (document.getElementById('xpopup').style.pixelHeight/2)) + 'px'; } function xPopupClose() { document.getElementById('xpopup').style.display = 'none'; document.getElementById('blackdim').style.display = 'none'; } function getMouseXYE(e) { if (!e) { var e = window.event } tempX = e.pageX; tempY = e.pageY; if (tempX < 0){tempX = 0} if (tempY < 0){tempY = 0} var XYs = new Array(); XYs[0] = tempX; XYs[1] = tempY; return XYs }