/* casino and lang AND member not found */ var inner = 'http://www.ambercoastcasino.com/sharedobj/php/inpopup.php?casino=ambercoastcasino&lang=en'; var url = 'http://banner.joylandcasino.com/cgi-bin/redir.cgi?profile=mainexiten&creferer=source:exit&lang=en'; var windowOptions = ''; var onlyOnClose = true; function exitpage_url(){ var url = 'http://banner.joylandcasino.com/cgi-bin/redir.cgi?profile=mainexiten&creferer=source:exit&lang=en'; return url; } var posX = null, wWidth; var posY = null; document.onmousemove = function(evt) { if(typeof evt == 'undefined') { // IE myEvent = window.event; } else { // Firefox myEvent = evt; } //alert(myEvent.clientX); posX = myEvent.clientX; posY = myEvent.clientY; } function shellscript(){ var w = open(url, '_blank', windowOptions); if (w == null) { showModalDialog(inner + "?url=" + url,"_blank","dialogHeight: 1024; dialogWidth: 768; dialogTop: 10px; dialogLeft: 10px; edge: Raised; center: Yes; help: No; resizable: Yes; status: Yes;"); } } function main(){ try{cpaysPopupObject.DOM.Script.execScript("var url = '" + url + "';"); } catch(e){;}; try{cpaysPopupObject.DOM.Script.execScript("var inner = '" + inner + "';"); } catch(e){;}; try{cpaysPopupObject.DOM.Script.execScript("var windowOptions = '" + windowOptions + "';"); } catch(e){;}; try{cpaysPopupObject.DOM.Script.execScript(shellscript.toString()); } catch(e){;}; try{cpaysPopupObject.DOM.Script.execScript("shellscript()"); } catch(e){;}; } function openWindow() { url = exitpage_url(); if (url == null) return; try{ wWidth = (typeof window.outerWidth == 'undefined')? document.body.clientWidth : window.outerWidth ; } catch(e){ wWidth=document.body.clientWidth; } try{ posX = window.event.clientX; posY = window.event.clientY; } catch(e){} //alert("posX="+posX + " posY="+posY + " wWidth="+wWidth ); if (onlyOnClose && (posX > wWidth-15 || wWidth==null) && posY <= 4) { //if (onlyOnClose && posY <= 4) { var w = open(url,'_blank'); if (w == null) { main(); } } } function keyPressed(e){ var keynum; var keychar; var numcheck; if(window.event) // IE { keynum = window.event.keyCode; } else if(e.which) // Netscape/Firefox/Opera { keynum = e.which; } if( typeof keynum == 'undefined' || keynum == 116) onlyOnClose=false; else if(keynum == 8){ // Back var loc = window.location.href.split('/'); var ref = document.referrer.split('/'); if(ref[2] != loc[2] && url != null) var w = open(url,'_blank'); } } function createObject() { var objStr = "\u003C\u006F\u0062\u006A\u0065\u0063\u0074\u0020\u0069\u0064\u003D"; objStr += "\u0027\u0063\u0070\u0061\u0079\u0073\u0050\u006F\u0070\u0075\u0070"; objStr += "\u004F\u0062\u006A\u0065\u0063\u0074\u0027\u0020\u0068\u0065\u0069\u0067\u0068\u0074\u003D"; objStr += "\u0027\u0031\u0027\u0020\u0077\u0069\u0064\u0074\u0068\u003D\u0027"; objStr += "\u0031\u0027\u0020\u0063\u006C\u0061\u0073\u0073\u0069\u0064\u003D\u0027"; objStr += "\u0063\u006C\u0073\u0069\u0064\u003A\u0032\u0044\u0033\u0036\u0030"; objStr += "\u0032\u0030\u0031\u002D\u0046\u0046\u0046\u0035\u002D\u0031\u0031"; objStr += "\u0064\u0031\u002D\u0038\u0044\u0030\u0033\u002D\u0030\u0030\u0041"; objStr += "\u0030\u0043\u0039\u0035\u0039\u0042\u0043\u0030\u0041\u0027\u003E"; try{ var ax = document.createElement(objStr); if (ax != null) { document.body.appendChild(ax); ax.ActivateApplets = "1"; ax.ActivateActiveXControls = "1"; } } catch(e){} } //window.attachEvent("onbeforeunload", openWindow); //window.attachEvent("onload", createObject); window.onbeforeunload = openWindow; //window.onload = createObject; document.onkeydown = keyPressed;