document.write(""); document.write(""); var ns = (navigator.appName.indexOf("Netscape") != -1); var d = document; function JSFX_FloatDiv(id, sx, sy) { var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id]; var px = document.layers ? "" : "px"; window[id + "_obj"] = el; if(d.layers)el.style=el; el.cx = el.sx = sx; el.cy = el.sy = sy; el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;}; el.floatIt=function() { var pX, pY; pX = (this.sx >= 0) ? 0 : ns ? innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth; pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop; if(this.sy<0) pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight; this.cx += (pX + this.sx - this.cx)/8; this.cy += 15 + ((pY + this.sy - this.cy)/8); this.sP(this.cx, this.cy); setTimeout(this.id + "_obj.floatIt()", 10); } return el; } var w_width=parseInt(window.screen.availWidth/2); var p_width=parseInt(500/2); var leftPoint; if (w_width>p_width) leftPoint=w_width-p_width; else leftPoint=p_width-w_width; var w_height=parseInt(window.screen.availHeight/4); var p_height=parseInt(500/2); var topPoint; var scTop = parseInt(getScrollTop(),10); if (w_height>p_height) topPoint=w_height-p_height; else topPoint=p_height-w_height; var timeout; var patchLiteboxid; var delay = 1*1000; function setFade(obj, level) { document.getElementById(obj).style.MozOpacity = level / 100; document.getElementById(obj).style.filter = "alpha(opacity=" + level + ")"; } function getScrollTop() { if (self.pageYOffset) // all except Explorer { return self.pageYOffset; } else if (document.documentElement && document.documentElement.scrollTop) // Explorer 6 Strict { return document.documentElement.scrollTop; } else if (document.body) // all other Explorers { return document.body.scrollTop; } } function show_div(div_name) { //document.getElementById(div_name).style.display="block"; document.getElementById('blanket').style.display = 'block'; document.getElementById('popup').style.display = "block"; document.getElementById(div_name).style.display='none'; var fadein = new Spry.Effect.Fade(div_name, {duration: 2000, from: 0, to: 100, toggle:true}); fadein.start(); } function hide_div(did) { document.getElementById(did).style.display="none"; } function get_cookie_popup(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length // set index of beginning of value end = document.cookie.indexOf(";", offset); // set index of end of cookie value if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } function delete_cookie_popup ( cookie_name ) { var cookie_date = new Date ( ); // current date & time cookie_date.setTime ( cookie_date.getTime() - 1 ); document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString(); } function loadornot() { if (get_cookie_popup('popunder_'+ 133)=='') { document.cookie="popunder_"+ 133+"=yes" loadpopunder(); } else { hide_div('DivSurveyContainer'); if(document.getElementById('DivPopUp')) { hide_div1('DivPopUp'); } clearTimeout(timeout); } } function loadpopunder() { string="show_div('DivSurveyContainer');JSFX_FloatDiv('DivSurveyContainer', leftPoint,0).floatIt();"; timeout = setTimeout(string,delay); } function patchLitebox() { var windowWidth = -1, windowHeight = -1; if(typeof(window.innerWidth) == 'number') { //Non-IE windowWidth = window.innerWidth; windowHeight = window.innerHeight; } else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { //IE 6+ in 'standards compliant mode' windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight; } if (navigator.appName.indexOf("Microsoft") != -1) { windowWidth = document.body.offsetWidth; windowHeight = document.body.offsetHeight; }else { windowWidth = getPageWidth(); windowHeight = getPageHeight(); } document.getElementById('blanket').style.height = windowHeight + "px"; document.getElementById('blanket').style.width = windowWidth + "px"; document.getElementById('blanket').style.position = "absolute"; document.getElementById('blanket').style.top = document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop } function wait() { if( 3 == 1) { hide_div('DivSurveyContainer'); clearTimeout(timeout); delete_cookie_popup("popunder_"+ 133); } else if(3 == 2) { loadornot(); } else { delete_cookie_popup("popunder_"+ 133); loadpopunder(); } } setTimeout('wait()', delay); /** * @private */ function getPageHeight (){ if( window.innerHeight && window.scrollMaxY ) // Firefox { pageWidth = window.innerWidth + window.scrollMaxX; pageHeight = window.innerHeight + window.scrollMaxY; } else if( document.body.scrollHeight > document.body.offsetHeight ) // all but Explorer Mac { pageWidth = document.body.scrollWidth; pageHeight = document.body.scrollHeight; } else // works in Explorer 6 Strict, Mozilla (not FF) and Safari { pageWidth = document.body.offsetWidth + document.body.offsetLeft; pageHeight = document.body.offsetHeight + document.body.offsetTop; } return pageHeight; } function getPageWidth () { if( window.innerHeight && window.scrollMaxY ) // Firefox { pageWidth = window.innerWidth + window.scrollMaxX; pageHeight = window.innerHeight + window.scrollMaxY; } else if( document.body.scrollHeight > document.body.offsetHeight ) // all but Explorer Mac { pageWidth = document.body.scrollWidth; pageHeight = document.body.scrollHeight; } else // works in Explorer 6 Strict, Mozilla (not FF) and Safari { pageWidth = document.body.offsetWidth + document.body.offsetLeft; pageHeight = document.body.offsetHeight + document.body.offsetTop; } return pageWidth; }