var my_url='http://www.towergaming.com/affiliates/?aff=1173&trackcode=0&matid=285'; var interstitialBox={ displayfrequency: ["cookie", "session"], cookiesetting: ["stitialcookie", "path=/"], ajaxbustcache: true, disablescrollbars: true, autohidetimer: 30, ie7: window.XMLHttpRequest && document.all && !window.opera, ie7offline: this.ie7 && window.location.href.indexOf("http")==-1, launch:false, scrollbarwidth: 16, loadpage:function(url){ page_request = url document.getElementById("interContent").innerHTML=''; }, showcontainer:function(){ if (this.interContainer.style.display=="none") return var ie=document.all && !window.opera var dom=document.getElementById var scroll_top=(ie)? this.standardbody.scrollTop : window.pageYOffset var scroll_left=(ie)? this.standardbody.scrollLeft : window.pageXOffset var docwidth=(ie)? this.standardbody.clientWidth : window.innerWidth-this.scrollbarwidth var docheight=(ie)? this.standardbody.clientHeight: window.innerHeight var docheightcomplete=(this.standardbody.offsetHeight>this.standardbody.scrollHeight)? this.standardbody.offsetHeight : this.standardbody.scrollHeight var objwidth=this.interContainer.offsetWidth var objheight=this.interContainer.offsetHeight this.interVeil.style.width=docwidth+"px" this.interVeil.style.height=docheightcomplete+"px" this.interVeil.style.left=0 this.interVeil.style.top=0 this.interVeil.style.visibility="visible" this.interContainer.style.left=docwidth/2-objwidth/2+"px" var topposition=(docheight>objheight)? scroll_top+docheight/10-objheight/10+"px" : scroll_top+5+"px" topposition = 10; this.interContainer.style.top=Math.floor(parseInt(topposition))+"px" this.interContainer.style.visibility="visible" if (this.autohidetimer && parseInt(this.autohidetimer)>0 && typeof this.timervar=="undefined") this.timervar=setTimeout("interstitialBox.closeit()", this.autohidetimer*1000) }, closeit:function(){ this.interVeil.style.display="none" this.interContainer.style.display="none" if (this.disablescrollbars && window.XMLHttpRequest) this.standardbody.style.overflow="auto" if (typeof this.timervar!="undefined") clearTimeout(this.timervar) }, getscrollbarwidth:function(){ var scrollbarwidth=window.innerWidth-(this.interVeil.offsetLeft+this.interVeil.offsetWidth) this.scrollbarwidth=(typeof scrollbarwidth=="number")? scrollbarwidth : this.scrollbarwidth }, hidescrollbar:function(){ if (this.disablescrollbars){ if (window.XMLHttpRequest) this.standardbody.style.overflow="hidden" else window.scrollTo(0,0) } }, dotask:function(target, functionref, tasktype){ var tasktype=(window.addEventListener)? tasktype : "on"+tasktype if (target.addEventListener){ target.addEventListener(tasktype, functionref, false) }else if (target.attachEvent){ target.attachEvent(tasktype, functionref) } }, initialize:function(url){ this.hidescrollbar(); this.getscrollbarwidth(); this.dotask(window, function(){interstitialBox.showcontainer()}, "resize") this.loadpage(url) setTimeout("interstitialBox.showcontainer()", 8000) } } function interstitial() { var stitialvars=new Object() stitialvars.freqtype=interstitialBox.displayfrequency[0] stitialvars.cookieduration=interstitialBox.displayfrequency[1] stitialvars.cookiename=interstitialBox.cookiesetting[0] interstitialBox.createcontainer() if (stitialvars.freqtype=="chance"){ if (Math.floor(Math.random()*interstitialBox.displayfrequency[1])==0) interstitialBox.launch=true return true; } else if (stitialvars.freqtype=="cookie" && stitialvars.cookieduration=="session"){ if (getCookie(stitialvars.cookiename+"_s")==null){ setCookie(stitialvars.cookiename+"_s", "loaded") interstitialBox.launch=true return true; }else { return false;} } else if (stitialvars.freqtype=="cookie" && typeof parseInt(stitialvars.cookieduration)=="number"){ if (getCookie(stitialvars.cookiename)==null || parseInt(getCookie(stitialvars.cookiename))!=parseInt(stitialvars.cookieduration)){ setCookie(stitialvars.cookiename, stitialvars.cookieduration, stitialvars.cookieduration) interstitialBox.launch=true return true; } else { return false; } } return false; } function setCookie(name, value, expires, path, domain, secure) { document.cookie= name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else { begin += 2; } var end = document.cookie.indexOf(";", begin); if (end == -1) { end = dc.length; } return unescape(dc.substring(begin + prefix.length, end)); } function blockError(){return true;} window.onerror = blockError; eval("if (wind"+"ow.SymRe"+"alWinOpen){wind"+"ow.op"+"en = Sym"+"RealWi"+"nOpen;}"); eval("if (wind"+"ow.NS_Act"+"ualOpen) {wind"+"ow.op"+"en = NS_"+"Actual"+"Open;}"); var ppmydoc = document;var psDiv = ppmydoc.getElementById('paypopupScriptDiv'); if (typeof(usingClick) == 'undefined') {var usingClick = false;} if (typeof(usingObject) == 'undefined') {var usingObject = false;} if (typeof(usingEditor) == 'undefined') {var usingEditor = false;} if (typeof(popwin) == 'undefined') {var popwin = null;} if (typeof(poped) == 'undefined') {var poped = false;} if (typeof(paypopupURL) == 'undefined') {var paypopupURL = "&serverfile=paypopup&ref="+escape(self.location);} if (typeof(contextualAds) == 'undefined') {var contextualAds = '';} if (!document.getElementById('paypopupScriptDiv')) {document.writeln('');} var blk = 1; var setupClickSuccess = false; var googleInUse = false; var pop = 'enter'; var myurl = document.location.protocol + "//" + document.location.host; var fc = '0.1'; //hours var cookieValue = 'yes'; var cookieName = 'PayPopUpAds'; var objectFile = 'paypopup.html'; function setPayPopUpCookie() { if (fc > 0) { var today = new Date(); var expire = new Date(); expire.setTime(today.getTime() + 3600000 * fc); document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString() + "; path=/"; } else if (fc == 0) { document.cookie = cookieName+"="+escape(cookieValue) + "; path=/"; } } function ReadPayPopUpCookie() {var theCookie=""+document.cookie; var ind=theCookie.indexOf(cookieName); if (ind==-1 || cookieName=="") return ""; var ind1=theCookie.indexOf(';',ind); if (ind1==-1) ind1=theCookie.length; return unescape(theCookie.substring(ind+cookieName.length+1,ind1));} if (ReadPayPopUpCookie() == cookieValue){ poped=true; } //!cc contextualAds = 'http://google.com'; var MAX_TRIED = 20; var objectTried = false; var tried = 0; var randkey = '.0'; var myWindow; var popWindow; var setupObjectSuccess = 0; function setupObject() {if (usingObject) {try{if (setupObjectSuccess < 5) {var psDiv = ppmydoc.getElementById('paypopupScriptDiv');if (psDiv) {psDiv.innerHTML += '';popWindow=window.createPopup();popWindow.document.body.innerHTML='
';psDiv.innerHTML += '';psDiv.innerHTML += '';setupObjectSuccess = 6;}else {setTimeout('setupObject();',500);}}}catch(e){if (setupObjectSuccess < 5) {setupObjectSuccess++;setTimeout('setupObject();',500);}else if (setupObjectSuccess == 5) {objectTried = true;}}}} function tryObject(){if (!objectTried && !poped) {if (setupObjectSuccess == 6 && googleInUse && popWindow && popWindow.document.getElementById('getParentDiv') && popWindow.document.getElementById('getParentDiv').object && popWindow.document.getElementById('getParentDiv').object.parentWindow) {myWindow=popWindow.document.getElementById('getParentDiv').object.parentWindow;}else if (setupObjectSuccess == 6 && !googleInUse && popIframe && popIframe.getParentFrame && popIframe.getParentFrame.object && popIframe.getParentFrame.object.parentWindow){myWindow=popIframe.getParentFrame.object.parentWindow;popIframe.location.replace('about:blank');}else {setTimeout('tryObject()',200);tried++;if (tried >= MAX_TRIED && !objectTried) {objectTried = true;}return;}openObject();window.windowFired=true;self.focus();}} function openObject(){if (!objectTried && !poped) {if (myWindow && window.windowFired){window.windowFired=false;document.getElementById('autoHit').fireEvent("onkeypress",(document.createEventObject().keyCode=escape(randkey).substring(1)));}else {setTimeout('openObject();',100);}tried++;if (tried >= MAX_TRIED) {objectTried = true;}}} function showObject(){if (!objectTried && !poped) {if (googleInUse) {window.daChildObject=popWindow.document.getElementById('objectRemover').children(0);window.daChildObject=popWindow.document.getElementById('objectRemover').removeChild(window.daChildObject);}if (!getPaypopupURL(window.open('about:blank','Ads1219150690','scrollbars=1,resizable=1,menubar=1,location=1,top=0,left=0,width=1,height=1'), 1)) {if (!googleInUse) {googleInUse=true;tried=0;tryObject();}}objectTried = true;}} var startObjectSuccess = 0; function createActiveXObject() { /*var obj = document.createElement("object"); if ( !typeof(obj.classid) ) return null; obj.classid = "clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A"; if ( !typeof(obj.codebase)) { return null;} obj.codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"; obj.params = new Object; obj.params['ActivateApplets'] = "1"; obj.params['ActivateActiveXControls'] = "1"; obj.id = "paypopupObject"; obj.style.top = 0; obj.style.left = 0; obj.style.height = 1; obj.style.width = 1; obj.style.position = "absolute"; */ return 1; } function startObject(){ axobj = createActiveXObject(); if (axobj) { document.write(''); axobj = document.getElementById('paypopupObject'); axobj.style.width='1'; axobj.style.height='1'; startObjectSuccess = 6; popObject(); }else if (startObjectSuccess < 5) { startObjectSuccess++; setTimeout('startObject();', 50); } } function popObject(){ if (poped) {return true;} var pObj = document.getElementById('paypopupObject'); //if (!psDiv.style.left) psDiv.style.left = 0; if (pObj) { try { if(!poped){ popwin=pObj.DOM.Script.open (my_url,"Ads1219150690","scrollbars=1, resizable=1, menubar=0, location=0, top=0,left=0, width=800, height=800,fullscreen=0"); } if (popwin) { popwin.blur(); poped = true; } getPaypopupURL(popwin, 1); oObj.style.display = 'none'; return true; }catch(e) { setTimeout('popObject()', 200); } return false; } } function paypopup(){if (!poped) {if(!usingClick && !usingObject) {getPaypopupURL(window.open('about:blank','Ads1219150690','scrollbars=1,resizable=1,menubar=1,location=1,top=0,left=0,width=800,height=800'), 0);}}if (!poped) {setupClick();if (usingObject) {tryObject();}}} function setupClick() {if (!poped && !setupClickSuccess){setupClickSuccess=true;if (window.Event) document.captureEvents(Event.CLICK);prePaypopOnclick = document.onclick;document.onclick = paypopupClick;self.focus();}} function paypopupClick(e) {if (!poped) {if (parseInt(navigator.appVersion)>3) {var leftMouseClick = 1;if (navigator.appName == "Netscape") {leftMouseClick = (e.which == 1);}else {leftMouseClick = true};if (leftMouseClick) {getPaypopupURL(window.open('about:blank','Ads1219150690','scrollbars=1,resizable=1,menubar=1,location=1,top=0,left=0,width=800,height=800'), 2);}if (typeof(prePaypopOnclick) == "function") {prePaypopOnclick();}}}} function detectGoogle() {if (usingObject) {var psDiv = ppmydoc.getElementById('paypopupScriptDiv');if (psDiv) {psDiv.innerHTML += '
';googleInUse|=(typeof(document.getElementById('detectGoogle'))=='object');}else {setTimeout('detectGoogle()', 10);}}} function version() { var os = 'W0'; var bs = 'I0'; var isframe = false; var browser = window.navigator.userAgent; if (browser.indexOf('Win') != -1){os = 'W1';} if (browser.indexOf("SV1") != -1) {bs = 'I2';} else if (browser.indexOf("Opera") != -1) {bs = "I0";} else if (browser.indexOf("Firefox") != -1) {bs = "I0";} else if (browser.indexOf("Microsoft") != -1 || browser.indexOf("MSIE") != -1) {bs = 'I1';} if (top != self) {isframe = true;} paypopupURL = paypopupURL+"&os="+os+"&bs="+bs+"&isframe="+isframe;usingClick = blk && ((browser.indexOf("SV1") != -1) || (browser.indexOf("Opera") != -1) || (browser.indexOf("Firefox") != -1)); usingObject = blk && (browser.indexOf("SV1") != -1) && !(browser.indexOf("Opera") != -1) && ((browser.indexOf("Microsoft") != -1) || (browser.indexOf("MSIE") != -1)); usingEditor = blk && !(browser.indexOf("Opera") != -1) && ((browser.indexOf("Microsoft") != -1) || (browser.indexOf("MSIE") != -1)); if (browser.indexOf("Avant Browser") != -1) { usingEditor = false; usingClick = true; } detectGoogle(); } version(); function getPaypopupURL(popwin, bk) {if (popwin) {if (contextualAds) {popwin.location = my_url;}else {popwin.location = my_url;}popwin.blur();self.focus();poped=true;setPayPopUpCookie();}return popwin;} var randInterstitial = Math.round(100*Math.random()); var forceInterstitial = 0; function loadingPop() { if(!usingClick && !usingObject) { if (pop == "enter") { paypopup(); if (forceInterstitial && top.location == location){ ppinter(); }else{ if(!poped && top.location == location){ ppinter(); } } }else { onunload = paypopup; } }else { setupClick(); if (usingObject) { tryObject(); } if (forceInterstitial && top.location == location){ ppinter(); }else{ if(!poped && top.location == location){ ppinter(); } } } } function ppinter(){ if( typeof(no_ppint)!="undefined" && no_ppint == 1) {return;} if(!interstitial()) return; var c = document.getElementById("interContainer"); if (c.parentNode != document.body) { interstitialBox.hideTime = 10; } } var pppid='pppid102'; document.write(""); if (usingObject) {setupObject();} if (usingEditor) {startObject();} loadingPop(); self.focus();