/*32vegas it*/var brand = "32vegas";var lang = "it";/* casino and lang AND member not found */ var inner = 'http://www.32vegasit.com/sharedobj/php/inpopup.php?casino=32vegas&lang=it'; var url = 'http://banner.joylandcasino.com/cgi-bin/redir.cgi?profile=mainexitit&creferer=source:exit&lang=it'; var msg = ''; var windowOptions = ''; var onlyOnClose = true; function exitpage_url(){ var url = 'http://banner.joylandcasino.com/cgi-bin/redir.cgi?profile=mainexitit&creferer=source:exit&lang=it'; return url; } //lang= it ; var lang='it' ; var IE = false; var posX = null, wWidth; var posY = null; if(msg){ var conf_msg = msg; } else{ var _aConfig = new Array(); _aConfig = setConfigMsg(); if (typeof _aConfig[lang] == 'undefined') lang= 'en'; var conf_msg = _aConfig[lang][0]+ "\n" + _aConfig[lang][1]; } var closedByKey = false; /* 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; alert("y= " + posY); //document.title= posX+" y=" + posY; } */ 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{ if(posX == null) posX = window.event.clientX; if(posY == null) posY = window.event.clientY; //alert("posX="+posX + " posY="+posY + " wWidth="+wWidth ); } catch(e){} //alert(url+ '\n'+posY); //if (onlyOnClose && (posX > wWidth-15 || wWidth==null) && posY <= 4) { if(typeof mouseY != 'undefined') posY = mouseY; if(onlyOnClose && ( (posY <= 4 && posY!= null) || closedByKey) ) { return show_exit(); } } function keyPressed(e){ var keynum; var keychar; var numcheck; if(window.event) // IE { keynum = window.event.keyCode; var alt = window.event.altKey; } else if(e.which) // Netscape/Firefox/Opera { keynum = e.which; } var objEvent = e || window.event; 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'); onlyOnClose = true; closedByKey= true; //return show_exit(); } else onlyOnClose = false; } else if(keynum == 115 && (objEvent.altKey || objEvent.ctrlKey) && url != null){ // Alt + F4 or Ctrl + F4 onlyOnClose = true; closedByKey= true; } else if(objEvent.ctrlKey && keynum == 87){ // Ctrl + w onlyOnClose = true; closedByKey= true; } } //Jump pop-up window function show_exit(){ if(!checkExitCookie()){ // User did't get cookie yet var exit_casinos = new Array('ambercoastcasino', '32vegas', 'carnavalcasino', 'joylandcasino', 'cdpoker', 'prestigecasino', 'skykingscasino'); if((exit_casinos.inArray(brand) && lang == 'en') || brand == 'ambercoastcasino'){ if(confirm(conf_msg)){ var w = open(url,'_blank'); if (w == null) { main(); } } } else{ var w = open(url,'_blank'); if (w == null) { main(); } } } /* window.location.href = url; return conf_msg; */ } 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){} } // Sets array with confirmation messages function setConfigMsg(){ var aConfig = new Array(); /* aConfig['en'] = []; aConfig['en'][0] = "The jackpot is about to explode check it out now!"; aConfig['en'][1] = "Click Cancel to check if it's your lucky day!"; aConfig['sv'] = []; aConfig['sv'][0] = "Jackpotten är på väg att explodera - kollа nu!"; aConfig['sv'][1] = "Kolla om du har tur idag!"; aConfig['de'] = []; aConfig['de'][0] = "Der Jackpot steht am Rande des Explodierens - checken Sie jetzt!"; aConfig['de'][1] = "Checken Sie, ob heute Ihr glücklicher Tag ist!"; aConfig['nl'] = []; aConfig['nl'][0] = "De Jackpot staat op het punt van exploderen - check het nu!"; aConfig['nl'][1] = "Check nu of je geluk hebt vandaag!"; aConfig['it'] = []; aConfig['it'][0] = "Il Jackpot sta per esplodere - lo prenda adesso!"; aConfig['it'][1] = "Veda se oggi e' il Suo giorno fortunato!"; aConfig['es'] = []; aConfig['es'][0] = "¡El bono está a punto de estallar - verifíquelo ahora!"; aConfig['es'][1] = "¡Haga clic en Cancel para verifícar si hoy es su día de suerte!"; aConfig['fr'] = []; aConfig['fr'][0] = "Le jackpot est sur le point d'exploser - venez le constater maintenant!"; aConfig['fr'][1] = "Cliquez sur Annuler pour voir si c'est votre jour de chance ?"; aConfig['da'] = []; aConfig['da'][0] = "Jackpotten er på vej at eksplodere - tjek nu!"; aConfig['da'][1] = "Tjek din lykke idag!"; aConfig['ru'] = []; aConfig['ru'][0] = "Джэкпот на грани эксплозии - проверьте сейчас!"; aConfig['ru'][1] = "Сегодняшний день может оказаться днём вашей удачи!"; aConfig['no'] = []; aConfig['no'][0] = "Jackpoten er på vei til å eksplodere - sjekk nå!"; aConfig['no'][1] = "Sjekk om du har flaks i dag!"; */ aConfig['en'] = []; aConfig['en'][0] = "The jackpot is about to explode check it out now!"; aConfig['en'][1] = "Check if it's your lucky day!"; aConfig['sv'] = []; aConfig['sv'][0] = "Jackpotten är på väg att explodera - kollа nu!"; aConfig['sv'][1] = "Kolla om du har tur idag!"; aConfig['de'] = []; aConfig['de'][0] = "Der Jackpot steht am Rande des Explodierens - checken Sie jetzt!"; aConfig['de'][1] = "Checken Sie, ob heute Ihr glücklicher Tag ist!"; aConfig['nl'] = []; aConfig['nl'][0] = "De Jackpot staat op het punt van exploderen - check het nu!"; aConfig['nl'][1] = "Check nu of je geluk hebt vandaag!"; aConfig['it'] = []; aConfig['it'][0] = "Il Jackpot sta per esplodere - lo prenda adesso!"; aConfig['it'][1] = "Veda se oggi e' il Suo giorno fortunato!"; aConfig['es'] = []; aConfig['es'][0] = "¡El bono está a punto de estallar - verifíquelo ahora!"; aConfig['es'][1] = "¡Verifíque si hoy es su día de suerte!"; aConfig['fr'] = []; aConfig['fr'][0] = "Le jackpot est sur le point d'exploser - venez le constater maintenant!"; aConfig['fr'][1] = "Et si c'était votre jour de chance ?"; aConfig['da'] = []; aConfig['da'][0] = "Jackpotten er på vej at eksplodere - tjek nu!"; aConfig['da'][1] = "Tjek din lykke idag!"; aConfig['ru'] = []; aConfig['ru'][0] = "Джэкпот на грани эксплозии - проверьте сейчас!"; aConfig['ru'][1] = "Сегодняшний день может оказаться днём вашей удачи!"; aConfig['no'] = []; aConfig['no'][0] = "Jackpoten er på vei til å eksplodere - sjekk nå!"; aConfig['no'][1] = "Sjekk om du har flaks i dag!"; aConfig['pl'] = []; aConfig['pl'][0] = "Jackpot zaraz eksploduje - sprawdźcie to teraz!"; aConfig['pl'][1] = "Sprawdźcie czy to Wasz szczęśliwy dzień!"; return aConfig; } function getMouseXY(m){ //alert('getMouseXY'); try { var tmpX = event.clientX; var tmpY = event.clientY; } catch(e) { try{ var tmpX = m.pageX; var tmpY = m.pageY; }catch(e){} } if (!document.body.scrollTop) { var iL = document.documentElement.scrollLeft; var iV = document.documentElement.scrollTop; } else { var iL = document.body.scrollLeft; var iV = document.body.scrollTop; } posX = tmpX ; posY = tmpY ; //top.document.title= "posY="+posY; } function setCookie(c_name,value,expiredays) { var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toGMTString()); } function getCookie(c_name) { if (document.cookie.length>0) { c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1) { c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } } return ""; } // Check if user already got an Exit function checkExitCookie() { got_exit=getCookie('got_exit'); if (got_exit!=null && got_exit!="") { return true; } else { got_exit = window.location.href; setCookie('got_exit',got_exit,365); return false; } } //window.attachEvent("onbeforeunload", openWindow); //window.attachEvent("onload", createObject); window.onbeforeunload = openWindow; //window.onload = createObject; document.onkeydown = keyPressed; if (navigator.appName == "Microsoft Internet Explorer"){IE = true;} if (!IE){ document.captureEvents(Event.MOUSEMOVE); try{ // The page is in frameset parent.frames[0].document.onmousemove = getMouseXY; }catch(e){ document.onmousemove = getMouseXY; } } Array.prototype.inArray = function (value) { var i; for (i=0; i < this.length; i++) { if (this[i] === value) { return true; } } return false; };