
/* - ++resource++functions.js - */
// http://www.williamhillpokeritaliano.com/portal_javascripts/++resource++functions.js?original=1
var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;var flipStartCall=0;var profile="";var domains={};var member="Seowhpoker";var logoAFF="0";var frontpage;domains={'1':{ref:'a9.com',profile:'a9com1'},'2':{ref:'alexa.com',profile:'alexa1'},'3':{ref:'alltheweb.com',profile:'alltheweb1'},'4':{ref:'alltheweb.be',profile:'allwebbe1'},'5':{ref:'altavista.com',profile:'altavista1'},'6':{ref:'aol.com',profile:'aol1'},'7':{ref:'ar.search.yahoo.com',profile:'aryahoo1'},'8':{ref:'asia.search.yahoo.com',profile:'asiayahoo1'},'9':{ref:'atlas.cz',profile:'atlascz1'},'10':{ref:'at.search.yahoo.com',profile:'atyahoo1'},'11':{ref:'au.search.yahoo.com',profile:'auyahoo1'},'12':{ref:'azet.sk',profile:'azetsk1'},'13':{ref:'be.francite.com',profile:'befrancite'},'14':{ref:'br.search.yahoo.com',profile:'bryahoo1'},'15':{ref:'ca.search.yahoo.com',profile:'cayahoo1'},'16':{ref:'centrum.cz',profile:'centrumcz1'},'17':{ref:'centrum.sk',profile:'centrumsk1'},'18':{ref:'ch.search.yahoo.com',profile:'chyahoo1'},'19':{ref:'clusty.com',profile:'clusty1'},'20':{ref:'cl.search.yahoo.com',profile:'clyahoo1'},'21':{ref:'cnn.com',profile:'cnn1'},'22':{ref:'cnweb.search.live.com',profile:'cnweblive1'},'23':{ref:'search.cn.yahoo.com',profile:'cnyahoo1'},'24':{ref:'collarity.com',profile:'collarity'},'25':{ref:'cometquery.com',profile:'cometquery'},'26':{ref:'congoo.com',profile:'congoo'},'27':{ref:'co.search.yahoo.com',profile:'coyahoo1'},'28':{ref:'ct.search.yahoo.com',profile:'ctyahoo1'},'29':{ref:'cuil.com',profile:'cuil1'},'30':{ref:'debeste.nl',profile:'debestenl1'},'31':{ref:'de.search.yahoo.com',profile:'deyahoo1'},'32':{ref:'digger.be',profile:'diggerbe1'},'33':{ref:'dk.search.yahoo.com',profile:'dkyahoo1'},'34':{ref:'dogpile.com',profile:'dogpile1'},'35':{ref:'eli.nl',profile:'elinl1'},'36':{ref:'emulti.pl',profile:'emultipl1'},'37':{ref:'entireweb.com',profile:'entireweb1'},'38':{ref:'es.search.yahoo.com',profile:'esyahoo1'},'39':{ref:'espanol.search.yahoo.com',profile:'espyahoo1'},'40':{ref:'excite.com',profile:'excite1'},'41':{ref:'fazzle.com',profile:'fazzle1'},'42':{ref:'fi.search.yahoo.com',profile:'fiyahoo1'},'43':{ref:'freenet.de',profile:'freenetde1'},'44':{ref:'fr.search.yahoo.com',profile:'fryahoo1'},'45':{ref:'gigablast.com',profile:'gigablast1'},'46':{ref:'gmx.de',profile:'gmxde1'},'47':{ref:'google.com',profile:'google1'},'48':{ref:'google.co.ma',profile:'googlea1'},'49':{ref:'google.ae',profile:'googleae1'},'50':{ref:'google.com.af',profile:'googleaf1'},'51':{ref:'google.com.ag',profile:'googleag1'},'52':{ref:'google.com.ai',profile:'googleai1'},'53':{ref:'google.it.ao',profile:'googleao1'},'54':{ref:'google.com.ar',profile:'googlear1'},'55':{ref:'google.as',profile:'googleas1'},'56':{ref:'google.at',profile:'googleat1'},'57':{ref:'google.com.au',profile:'googleau1'},'58':{ref:'google.az',profile:'googleaz1'},'59':{ref:'google.ba',profile:'googleba1'},'60':{ref:'google.be',profile:'googlebe1'},'61':{ref:'google.com.bh',profile:'googlebh1'},'62':{ref:'google.com.bo',profile:'googlebo1'},'63':{ref:'google.com.br',profile:'googlebr1'},'64':{ref:'google.br',profile:'googlecbr1'},'65':{ref:'google.ca',profile:'googleca1'},'66':{ref:'google.ch',profile:'googlech1'},'67':{ref:'google.co.ck',profile:'googleck1'},'68':{ref:'google.cl',profile:'googlecl1'},'69':{ref:'google.cn',profile:'googlecn1'},'70':{ref:'google.com.co',profile:'googleco1'},'71':{ref:'google.co.cr',profile:'googlecr1'},'72':{ref:'google.com.cu',profile:'googlecu1'},'73':{ref:'google.cz',profile:'googlecz1'},'74':{ref:'google.co.nz',profile:'googlecnz1'},'75':{ref:'google.de',profile:'googlede1'},'76':{ref:'google.dj',profile:'googledj1'},'77':{ref:'google.dk ',profile:'googledk1'},'78':{ref:'google.com.do',profile:'googledo1'},'79':{ref:'google.dz',profile:'googledz1'},'80':{ref:'google.com.ec',profile:'googleec1'},'81':{ref:'google.com.eg',profile:'googleeg1'},'82':{ref:'google.es',profile:'googlees1'},'83':{ref:'google.fi',profile:'googlefi1'},'84':{ref:'google.fm',profile:'googlefm1'},'85':{ref:'google.fr',profile:'googlefr1'},'86':{ref:'google.ge',profile:'googlege1'},'87':{ref:'google.com.gh',profile:'googlegh1'},'88':{ref:'google.gp',profile:'googlegp1'},'89':{ref:'google.gr',profile:'googlegr1'},'90':{ref:'google.com.gt',profile:'googlegt1'},'91':{ref:'google.com.hk',profile:'googlehk1'},'92':{ref:'google.hn',profile:'googlehn1'},'93':{ref:'google.hr',profile:'googlehr1'},'94':{ref:'google.ht',profile:'googleht1'},'95':{ref:'google.hu',profile:'googlehu1'},'96':{ref:'google.co.id',profile:'googleid1'},'97':{ref:'google.ie',profile:'googleie1'},'98':{ref:'google.co.in',profile:'googlein1'},'99':{ref:'google.com/intl/ar/',profile:'googleint1'},'100':{ref:'google.it',profile:'googleit1'},'101':{ref:'google.com.jm',profile:'googlejm1'},'102':{ref:'google.jo',profile:'googlejo1'},'103':{ref:'google.co.jp',profile:'googlejp1'},'104':{ref:'google.co.ke',profile:'googleke1'},'105':{ref:'google.kg',profile:'googlekg1'},'106':{ref:'google.kz',profile:'googlekz1'},'107':{ref:'google.li',profile:'googleli1'},'108':{ref:'google.lk',profile:'googlelk1'},'109':{ref:'google.lu',profile:'googlelu1'},'110':{ref:'google.lv',profile:'googlelv1'},'111':{ref:'google.com.ly',profile:'googlely1'},'112':{ref:'google.mu',profile:'googlemu1'},'113':{ref:'google.mw',profile:'googlemw1'},'114':{ref:'google.com.mx',profile:'googlemx1'},'115':{ref:'google.com.my',profile:'googlemy1'},'116':{ref:'google.com.ng',profile:'googleng1'},'117':{ref:'google.com.ni',profile:'googleni1'},'118':{ref:'google.nl',profile:'googlenl1'},'119':{ref:'google.no',profile:'googleno1'},'120':{ref:'google.co.nz',profile:'googlenz1'},'121':{ref:'google.com.om',profile:'googleom1'},'122':{ref:'google.com.pa',profile:'googlepa1'},'123':{ref:'google.com.pe',profile:'googlepe1'},'124':{ref:'google.com.pk',profile:'googlepk1'},'125':{ref:'google.pl ',profile:'googlepl1'},'126':{ref:'google.com.pr',profile:'googlepr1'},'127':{ref:'google.pt',profile:'googlept1'},'128':{ref:'google.com.py',profile:'googlepy1'},'129':{ref:'google.com.qa',profile:'googleqa1'},'130':{ref:'google.ro',profile:'googlero1'},'131':{ref:'google.ru',profile:'googleru1'},'132':{ref:'google.com.sa',profile:'googlesa1'},'133':{ref:'google.sc',profile:'googlesc1'},'134':{ref:'google.se',profile:'googlese1'},'135':{ref:'google.com.sg',profile:'googlesg1'},'136':{ref:'google.sn',profile:'googlesn1'},'137':{ref:'google.com.sv',profile:'googlesv1'},'138':{ref:'google.com.tr',profile:'googletr1'},'139':{ref:'google.tt',profile:'googlett1'},'140':{ref:'google.com.tw',profile:'googletw1'},'141':{ref:'google.co.tz',profile:'googletz1'},'142':{ref:'google.co.ug',profile:'googleug1'},'143':{ref:'google.co.uk',profile:'googleuk1'},'144':{ref:'google.co.uz',profile:'googleuz1'},'145':{ref:'google.co.ve',profile:'googleve1'},'146':{ref:'google.com.vn',profile:'googlevn1'},'147':{ref:'google.co.yu',profile:'googleyu1'},'148':{ref:'google.co.za',profile:'googleza1'},'149':{ref:'google.co.zm',profile:'googlezm1'},'150':{ref:'gooru.pl',profile:'goorupl1'},'151':{ref:'goyams.com',profile:'goyams1'},'152':{ref:'hk.search.yahoo.com',profile:'hkyahoo1'},'153':{ref:'hotbot.com',profile:'hotbot1'},'154':{ref:'hotbot.nl',profile:'hotbotnl1'},'155':{ref:'icerocket.com',profile:'icerocket1'},'156':{ref:'id.search.yahoo.com',profile:'idyahoo1'},'157':{ref:'ilse.nl',profile:'ilsenl1'},'158':{ref:'in.search.yahoo.com',profile:'inyahoo1'},'159':{ref:'ithaki.net',profile:'ithaki1'},'160':{ref:'it.search.yahoo.com',profile:'itsyahoo1'},'161':{ref:'iwon.com',profile:'iwon1'},'162':{ref:'ixquick.com',profile:'ixquick1'},'163':{ref:'kartoo.com',profile:'kartoo1'},'164':{ref:'kobala.nl',profile:'kobalanl1'},'165':{ref:'kr.search.yahoo.com',profile:'kryahoo1'},'166':{ref:'kx.be',profile:'kxbe1'},'167':{ref:'leonardo.it',profile:'leonardoit'},'168':{ref:'libero.it',profile:'liberoit1'},'169':{ref:'live.com',profile:'live1'},'170':{ref:'looksmart.com',profile:'looksmart1'},'171':{ref:'lycos.com',profile:'lycos1'},'172':{ref:'lycos.de',profile:'lycosde1'},'173':{ref:'malaysia.search.yahoo.com',profile:'malyahoo1'},'174':{ref:'mamma.com',profile:'mamma1'},'175':{ref:'metacrawler.com',profile:'meta1'},'176':{ref:'metaspider.nl',profile:'metaspid1'},'177':{ref:'mnemo.org',profile:'mnemo1'},'178':{ref:'mojeek.com',profile:'mojeek1'},'179':{ref:'mooter.com',profile:'mooter1'},'180':{ref:'msdewey.com',profile:'msdewey1'},'181':{ref:'bing.com',profile:'msn1'},'182':{ref:'search.msn.at',profile:'msnat1'},'183':{ref:'search.msn.be',profile:'msnbe1'},'184':{ref:'search.msn.br',profile:'msnbr1'},'185':{ref:'search.msn.ca',profile:'msnca1'},'186':{ref:'search.msn.ch',profile:'msnch1'},'187':{ref:'search.msn.co.il',profile:'msncoil1'},'188':{ref:'search.msn.co.jp',profile:'msncojp1'},'189':{ref:'livesearch.msn.co.kr',profile:'msncokr1'},'190':{ref:'search.msn.com.tr',profile:'msncomtr1'},'191':{ref:'search.msn.co.uk',profile:'msncouk1'},'192':{ref:'search.msn.co.za',profile:'msncoza1'},'193':{ref:'search.msn.de',profile:'msnde1'},'194':{ref:'search.msn.dk',profile:'msndk1'},'195':{ref:'search.msn.es',profile:'msnes1'},'196':{ref:'search.msn.fi',profile:'msnfi1'},'197':{ref:'search.msn.fr',profile:'msnfr1'},'198':{ref:'search.msn.com.hk',profile:'msnhk1'},'199':{ref:'search.msn.ie',profile:'msnie1'},'200':{ref:'search.msn.it',profile:'msnit1'},'201':{ref:'search.msn.nl',profile:'msnnl1'},'202':{ref:'search.msn.no',profile:'msnno1'},'203':{ref:'search.msn.se',profile:'msnse1'},'204':{ref:'search.msn.com.tw',profile:'msntw1'},'205':{ref:'search.msn.co.uk',profile:'msnuk1'},'206':{ref:'mx.search.yahoo.com',profile:'mxyahoo1'},'207':{ref:'netmenu.nl',profile:'netmenunl1'},'208':{ref:'search.netscape.com',profile:'netscape1'},'209':{ref:'netsprint.pl',profile:'netsppl1'},'210':{ref:'nl.search.yahoo.com',profile:'nlyahoo1'},'211':{ref:'no.search.yahoo.com',profile:'noyahoo1'},'212':{ref:'nz.search.yahoo.com',profile:'nzyahoo1'},'213':{ref:'pe.search.yahoo.com',profile:'pehyahoo1'},'214':{ref:'ph.search.yahoo.com',profile:'phyahoo1'},'215':{ref:'search.prodigy.msn.com',profile:'prodigymsn'},'216':{ref:'qc.search.yahoo.com',profile:'qcyahoo1'},'217':{ref:'surfboard.ixquick.com',profile:'quick1'},'218':{ref:'quintura.com',profile:'quintura1'},'219':{ref:'releton.com',profile:'releton1'},'220':{ref:'rollyo.com',profile:'rollyo1'},'221':{ref:'ru.search.yahoo.com',profile:'ruyahoo1'},'222':{ref:'search.msn.com',profile:'searchmsn1'},'223':{ref:'search.com',profile:'search1'},'224':{ref:'search.aol.com',profile:'searchaol1'},'225':{ref:'se.search.yahoo.com',profile:'Searchyah1'},'226':{ref:'seznam.cz',profile:'seyahoo1'},'227':{ref:'sg.search.yahoo.com',profile:'seznamcz1'},'228':{ref:'search.live.com',profile:'sgyahoo1'},'229':{ref:'spinneweb.nl',profile:'shlive1'},'230':{ref:'surfwax.com',profile:'spinneweb1'},'231':{ref:'search.sympatico.msn.ca',profile:'surfwax1'},'232':{ref:'szukacz.pl',profile:'sympca1'},'233':{ref:'theking.nl',profile:'szukaczpl1'},'234':{ref:'th.search.yahoo.com',profile:'thekingnl1'},'235':{ref:'tiscali.it',profile:'thyahoo1'},'236':{ref:'t-online.de',profile:'tiscaliit1'},'237':{ref:'track.nl',profile:'tonlinede1'},'238':{ref:'tw.search.yahoo.com',profile:'tracknl1'},'239':{ref:'ujiko.com',profile:'twyahoo1'},'240':{ref:'uk.search.yahoo.com',profile:'ujikocom1'},'241':{ref:'url.com',profile:'ukyahoo1'},'242':{ref:'ve.search.yahoo.com',profile:'urlcom1'},'243':{ref:'vinden.nl',profile:'veyahoo1'},'244':{ref:'virgilio.alice.it',profile:'vindennl1'},'245':{ref:'vmgo.com',profile:'virgilioit'},'246':{ref:'vn.search.yahoo.com',profile:'vmgocom1'},'247':{ref:'webcrawler.com',profile:'vnyahoo1'},'248':{ref:'web.de',profile:'web1'},'249':{ref:'web.nl',profile:'webde'},'250':{ref:'yahoo.com',profile:'webnl1'},'251':{ref:'at.search.yahoo.com',profile:'yahoo1'},'252':{ref:'br.search.yahoo.com',profile:'yahooat1'},'253':{ref:'ca.search.yahoo.com',profile:'yahoobr1'},'254':{ref:'de.search.yahoo.com',profile:'yahooca1'},'255':{ref:'es.search.yahoo.com',profile:'yahoode1'},'256':{ref:'fr.search.yahoo.com',profile:'yahooes1'},'257':{ref:'it.search.yahoo.com',profile:'yahoofr1'},'258':{ref:'yahoo.co.jp',profile:'yahooit1'},'259':{ref:'search.yahoo.co.jp',profile:'yahoojp1'},'260':{ref:'nl.search.yahoo.com',profile:'yahooshjp1'},'261':{ref:'se.search.yahoo.com',profile:'yahoonl1'},'262':{ref:'uk.search.yahoo.com',profile:'yahoosedf1'},'263':{ref:'yoople.net',profile:'yahoouk1'},'264':{ref:'zapmeta.com',profile:'yooplenet1'},'265':{ref:'zoekhet.nl',profile:'zapmeta1'},'266':{ref:'zoek.nl',profile:'zoekhetnl1'},'267':{ref:'zuula.com',profile:'zoeknl1'},'268':{ref:'zuula.com',profile:'zuula1'},'269':{ref:'google.co',profile:'googledf1'},'270':{ref:'msn.co',profile:'msnsedf1'},'271':{ref:'yahoo.co',profile:'yahoose1'}}
var hotbartext={'en':{first:'New Year’s Extravaganza – William Hill Poker 2009 Special Offers',second:'24/7 Live Support in YOUR Language – Call, E-mail or Chat LIVE'},'fr':{first:'Extravagance du Nouvel An – Offres Spéciales 2009 du William Hill Poker',second:'Service Clientèle 24/7 dans VOTRE langue - par Téléphone, Email ou Chat en DIRECT'},'de':{first:'Extravaganz im Neuen Jahr - Die William Hill Casino Spezialangebote 2009',second:'24/7 Kundendienst Live in IHRER Sprache - Rufen Sie an, Emailen Sie oder Chatten Sie LIVE'},'es':{first:'Año Nuevo Extravagante – Ofertas Especiales del 2009 en el William Hill Poker',second:'Soporte en Vivo las 24/7 en SU Idioma – Vía Email, Teléfono o Chat en VIVO'},'it':{first:'Nuovo Spettacolare Anno – Speciali Offerte 2009 a William Hill Poker',second:'Supporto dal Vivo 24/7 nella TUA lingua – Telefono, E-mail o Chat dal VIVO'}};visible=0;
function setDisplayFF(el,visible){if(!isIE) setDisplay(el,visible)};
function setDisplayIE(el,visible){if(isIE) setDisplay(el,visible)};
function setDisplay(el,visible){if(visible){showDiv(el)}else{hideDiv(el)}};
function showDiv(divName){divName.style.display="block"};
function getDisplayStyleByTagName(o){n=o.nodeName.toLowerCase();return(n=="span"||n=="img"||n=="a")?"inline":(n=='tr'||n=='td'?"":"block")};
function hideDiv(divName){divName.style.display="none"};
function el(id){return document.getElementById(id)};
function hideDivAfter(divName,delay){window.setTimeout(function(){hideDiv(divName)},delay)};
function printFooter(id){var footer='<div>';footer+='<a href='+footerlinks[langNow()].download+'><img border="0" src="bottom1-'+langNow()+'.png"></a>';footer+='<a href='+footerlinks[langNow()].promo+'><img border="0" src="bottom2-'+langNow()+'.png"></a>';if(langNow()=="de")
footer+='<a href='+footerlinks[langNow()].school+' target="_blank"><img border="0" src="bottom3-'+langNow()+'.png"></a>';else
footer+='<a href='+footerlinks[langNow()].school+'><img border="0" src="bottom3-'+langNow()+'.png"></a>';footer+='<a href='+footerlinks[langNow()].support+'><img border="0" src="bottom4-'+langNow()+'.png"></a>';footer+='</div>';el(id).innerHTML=footer;el(id).style.display='block'};
function sBnrUrl(){var u='http://serve.williamhill.com/promoRedirect?';var cinfo=getCookie('clickinfo');var z='zone=66906302';if(cinfo){try{var tmp=cinfo.split('&');var arr=[];for(i=0;i<tmp.length;i++){var tmp2=tmp[i].split('=');if(tmp2[0]=='zone'){arr[i]=z}else{arr[i]=tmp2[0]+'='+tmp2[1]}};u+=arr.join('&')}
catch(e){}}else{var _mbr=getMember('banner_domainclick');if(_mbr){_mbr='channel=DEFAULT&campaign=DEFAULT&member='+_mbr}else{_mbr='channel=DEFAULT&campaign=DEFAULT&member=DEFAULT'};u+=_mbr};if(u.indexOf(z)==-1){u+='&'+z};return escape(u)};var pflash="";
function printFlash(height,width,url,id){if(langNow()=='en')
width++;var Player="";var flashvars='clickTAG='+sBnrUrl()+'&urls='+frontLinks[langNow()].tour+'|'+frontLinks[langNow()].vip+'|'+frontLinks[langNow()].school+'|'+frontLinks[langNow()].support;Player='<object class="flash-border" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" align="middle">'+'<param name="allowScriptAccess" value="sameDomain">'+'<param name="quality" value="high">'+'<param name="flashvars" value="'+flashvars+'">'+'<param name="movie" value="'+url+'">'+'<param name="wmode" value="transparent">'+'<embed flashvars="'+flashvars+'" wmode="transparent" src="'+url+'" quality="high" bgcolor="#000000" width="'+width+'" height="'+height+'" name="flash_bonus" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">'+'</object>';el(id).innerHTML=Player;el(id).style.display='block'};
function wsopEcoopStartFlip(logoParam){var flipFunction;if(flipStartCall==1){if(logoParam=='with_logo'){flipFunction=function(){filename=el('ecoop').src;if(filename.indexOf('ecoop')!=-1)
el('ecoop').src='wsopl_'+langNow()+'.gif';else el('ecoop').src="ecoopl_"+langNow()+".gif";window.setTimeout(flipFunction,5000)}
window.setTimeout(flipFunction,5000)}
else{flipFunction=function(){filename=el('ecoop').src;if(filename.indexOf('ecoop')!=-1)
el('ecoop').src='wsop_'+langNow()+'.gif';else el('ecoop').src="ecoop_"+langNow()+".gif";window.setTimeout(flipFunction,5000)}
window.setTimeout(flipFunction,5000)}}
else{flipStartCall++;return}}
function setLogo(logoA){if(getCookie("logo")!=logoA){setCookie("logo",logoA,2);logoAFF="1";showLogo()}
else{logoAFF="1";showLogo()}}
function showLogo(){logoA=getCookie("logo")
if(!logoA){logoA="px.gif"
logoAFF="1"}
$("afflogoIMG").hide().setStyle({zIndex:'1000'});codeLogo='<img src="http://'+document.domain+'/'+logoA+'">';document.getElementById('afflogoIMG').innerHTML=codeLogo;setTimeout("new Effect.Appear($('afflogoIMG'), { duration: 1} )",1000);setTimeout("new Effect.Fade($('afflogoIMG'), { duration: 1})",11000)}
if(document.referrer){if(!getCookie("ref")){setCookie("ref",document.referrer,3)}
ref=getCookie("ref");for(did in domains){if(ref.indexOf(domains[did].ref)!=-1){profile=domains[did].profile}}};if(profile!=""){img=new Image();if(langNow()=='it')
img.src='http://banner1.williamhillpoker.com/cgi-bin/redir.cgi?id=N&member='+member+'&profile='+profile;else
img.src='http://banner.williamhillpoker.com/cgi-bin/redir.cgi?id=N&member='+member+'&profile='+profile};
function msn(){if(getMember(name)=="msndisplaypok"){if(!getCookie("msn")){setCookie("msn","1")}}}
function javaDownload(){msn();document.getElementById('portal-logo').focus();cookieinfo=readCookie()
exeFile="http://banner.poker.williamhill.com/cgi-bin/SetupPoker.exe";lang="?opt_lang="+langNow();cRef="&creferer="+msg;if(profile==""){location=exeFile+lang }
else{location=exeFile+lang+'&member='+member+'&profile='+profile }
document.getElementById('portal-logo').onblur=function(){location=download_poker[langNow()]}}
function donwload(){download()};
function download(msg){msn();if(!msg){msg='front';var dlbvar=String(document.location);dlbvar=dlbvar.replace(/.*\//,"");dlbvar=dlbvar.replace('.',"_");msg=dlbvar+'DLB:'+'--'+msg+'--'}
document.getElementById('portal-logo').focus();cookieinfo=readCookie()
exeFile='';if(langNow()=='it')
exeFile="http://banner1.williamhillpoker.com/cgi-bin/SetupPoker.exe";else
exeFile="http://banner.williamhillpoker.com/cgi-bin/SetupPoker.exe";lang="?opt_lang="+langNow();cRef="&creferer="+msg;var redirGo;if(profile==""){redirGo=exeFile+lang+cRef}
else{redirGo=exeFile+lang+'&member='+member+'&profile='+profile+cRef}
if(getMember()=='pokernewshead'&&langNow()=='es'){exeFile="http://www.williamhillpoker.com/setup/es/setup_williamhillpokerclub.exe";redirGo=exeFile}
location=redirGo;document.getElementById('portal-logo').onblur=function(){location=download_poker[langNow()]}};
function downloadCasino(){msn();document.getElementById('portal-logo').focus();cookieinfo=readCookie()
exeFile="http://banner.williamhillcasino.com/cgi-bin/SetupCasino.exe";lang="?opt_lang="+langNow();if(profile==""){location=exeFile+lang}
else{location=exeFile+lang+'&member='+member+'&profile='+profile}};
function printImage(id,title,path){w('<img id="'+id+'" border="0" title="'+title+'" src="'+path+'"/>')};
function w(msg){document.write(msg)};
function langNow(){lang=document.domain.split('.')
if(lang[1].toLowerCase().indexOf('ital')>-1){return "it"}
if(lang[0]==""||lang[0]=="www"||lang[0]=="admin"){return "en"}
else{return lang[0]}};var linkRNG={'en':'www.williamhillpoker.com/rng.htm','da':'Dansk','de':'de.williamhillpoker.com/hilfe/zufallsgenerator.htm','es':'es.williamhillpoker.com/ayuda/generador-aleatorios.htm','fi':'Suomi','fr':'fr.williamhillpoker.com/aide/generateur-aleatoire.htm','it':'www.williamhillpokeritaly.com/aiuto/generatore-aleatorio.htm','nl':'Nederlands','pl':'Polski','pt':'Português','ru':'Русский','sv':'Svenska'};
function TSTLink(){return linkRNG[langNow()]};
function readCookie(){ca=[];nameEQ=name+"=";try{ca="dsf"}
catch(e){}
myCook='';for(cook in ca){ca[cook]}
return ca};
function setCookie(c_name,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+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 ""};var cacheTxt;
function hideM(id){document.getElementById("cur-lang-active").innerHTML=cacheTxt;document.getElementById(id).style.display="none";cacheTxt=null};
function showM(id){if(!cacheTxt){cacheTxt=document.getElementById("cur-lang-active").innerHTML;document.getElementById("cur-lang-active").innerHTML=''}
document.getElementById(id).style.display="block"};
function curLang(){el('lang-select').innerHTML='<a href="javascript:;"><div class="'+langNow()+'"></div>'+langAll[langNow()]+'</a></span>'};
function setOpacity(id){document.getElementById(id).style.opacity=0.6;document.getElementById(id).style.filter='alpha(opacity=60)'};
function backOpacity(id){document.getElementById(id).style.opacity=100;document.getElementById(id).style.filter='alpha(opacity=100)'};
function openW(url,name){window.open(url,name,"menubar=1,resizable=1,width=650,height=550")};var download_poker={'en':'/poker_download.htm','fr':'/telechargement.htm','de':'/herunterladen.htm','it':'/scaricare.htm','es':'/descargar.htm'};var langAll={'en':'English','da':'Dansk','de':'Deutsch','es':'Español','fi':'Suomi','fr':'Français','it':'Italiano','nl':'Nederlands','pl':'Polski','pt':'Português','ru':'Русский','sv':'Svenska'};var good;var nn=(navigator.appName.indexOf("Netscape")!=-1);var dD=document,dH=dD.html,dB=dD.body,px=dD.layers?'':'px';var xV=0;var yV=0;
function floatVadim(iX,iY,id){var L=dD.getElementById?dD.getElementById(id):dD.all?dD.all[id]:dD.layers[id];this[id+'O']=L;if(dD.layers)L.style=L;L.nX=L.iX=iX;L.nY=L.iY=iY;L.P=function(x,y){xV=this.style.left=x+px;yV=this.style.top=y+px};L.Fm=function(){var pX,pY;pX=(this.iX>=0)?0:nn?innerWidth:nn&&dH.clientWidth?dH.clientWidth:dB.clientWidth;if(document.documentElement&&!document.documentElement.scrollTop)
suka=document.documentElement.scrollTop;else if(document.documentElement&&document.documentElement.scrollTop)
suka=document.documentElement.scrollTop;else if(document.body&&document.body.scrollTop)
suka=document.body.scrollTop;try{pY=nn?pageYOffset:nn&&dH.scrollTop?dH.scrollTop:dB.scrollTop}
catch(e){pY=suka}
if(suka>150){el('FloatVadim').style.display='block'}
else{el('FloatVadim').style.display='none'}
if(this.iY<0)pY+=nn?innerHeight:nn&&dH.clientHeight?dH.clientHeight:dB.clientHeight;this.nX+=.1*(pX+this.iX-this.nX);this.nY+=.1*(pY+this.iY-this.nY);this.P(this.nX,this.nY);setTimeout(this.id+'O.Fm()',33)};if(L.style.top=='')
L.style.top=xV;return L};
function closeFloating(){el('FloatVadim').style.display='none'};var depositClose='';var nomove=0;
function depositInfo(id){if(nomove==0){el(id).style.display="block";if(depositClose!=""){el(depositClose).style.display="none"}
if(depositClose==id){el(depositClose).style.display="none";depositClose=""}
else{depositClose=id}}};var footerlinks={'en':{download:'javascript:download()',promo:'/poker_promotions.htm',school:'/poker_school.htm',support:'/poker_support.htm'},'fr':{download:'javascript:download()',promo:'/promotions',school:'/regles',support:'/aide'},'es':{download:'javascript:download()',promo:'/promociones',school:'/reglas',support:'/ayuda'},'it':{download:'javascript:download()',promo:'/promozioni',school:'/regole',support:'/aiuto'},'de':{download:'javascript:download()',promo:'/aktionen',school:'http://www.pokerroomschool.com/de/',support:'/hilfe'}};var frontLinks={'en':{tour:'/tournaments',vip:'/vip-club',school:escape('http://serve.williamhillcasino.com/promoRedirect?member='+newGetMember()+'&campaign='+newGetCampaign()+'&channel='+newGetChannel()+'&zone=14184098&lp=0&source=whpen2whccen'),support:'/poker_support.htm'},'fr':{tour:'/tournoi',vip:'/promotions/vip.htm',school:escape('http://serve.williamhillcasino.com/promoRedirect?member='+newGetMember()+'&campaign='+newGetCampaign()+'&channel='+newGetChannel()+'&zone=66908161&lp=0&source=whpfr2whccfr'),support:'/aide'},'es':{tour:'/torneos',vip:'/promociones/vip',school:escape('http://serve.williamhillcasino.com/promoRedirect?member='+newGetMember()+'&campaign='+newGetCampaign()+'&channel='+newGetChannel()+'&zone=66908159&lp=0&source=whpes2whcces'),support:'/ayuda'},'it':{tour:'/tornei',vip:'/promozioni/vip-club.htm',school:escape('http://serve.williamhillcasino.com/promoRedirect?member='+newGetMember()+'&campaign='+newGetCampaign()+'&channel='+newGetChannel()+'&zone=66908293&lp=0&source=whpit2whccit'),support:'/aiuto'},'de':{tour:'/poker-turniere',vip:'/aktionen/vip.htm',school:escape('http://serve.williamhillcasino.com/promoRedirect?member='+newGetMember()+'&campaign='+newGetCampaign()+'&channel='+newGetChannel()+'&zone=755093390&lp=0&source=whpde2whccde'),support:'/hilfe'}};var outlinks={'en':{bingo:'http://ads.williamhill.com/redirect.aspx?pid=113408&bid=1170',sport:'http://ads.williamhill.com/redirect.aspx?pid=113409&bid=1766',casino:'http://www.williamhillcasino.com'},'fr':{bingo:'http://ads.williamhill.com/redirect.aspx?pid=113408&bid=1170',sport:'http://ads.williamhill.com/redirect.aspx?pid=113409&bid=1766',casino:'http://fr.williamhillcasino.com'},'es':{bingo:'http://ads.williamhill.com/redirect.aspx?pid=113408&bid=1170',sport:'http://ads.williamhill.com/redirect.aspx?pid=113409&bid=1766',casino:'http://es.williamhillcasino.com'},'it':{bingo:'http://ads.williamhill.com/redirect.aspx?pid=113408&bid=1170',sport:'http://ads.williamhill.com/redirect.aspx?pid=113409&bid=1766',casino:'http://it.williamhillcasino.com'},'de':{bingo:'http://ads.williamhill.com/redirect.aspx?pid=113408&bid=1170',sport:'http://ads.williamhill.com/redirect.aspx?pid=113409&bid=1766',casino:'http://de.williamhillcasino.com'}};
function getGoogleId(){return "UA-6974129-"+googleId[langNow()]}
var googleId={'en':'1','da':'7','de':'5','es':'2','fi':'11','fr':'3','it':'4','nl':'12','pl':'5','pt':'10','ru':'6','sv':'4'};var despoits={'en':'/deposit.htm','fr':'/depots.htm','es':'/deposito.htm','it':'/depositi.htm','de':'/einzahlung.htm'}
function recup_lg(){var lgr;if(isIE){lgr=navigator.browserLanguage.substr(0,2)}
else{lgr=navigator.language.substr(0,2)}
if(verif_lg(lgr)){return lgr}
else{lgr='en';return lgr}}
function verif_lg(lg_tmp){if(lg_tmp){if(lg_tmp.indexOf('fr')!=-1){return 'fr'}
else if(lg_tmp.indexOf('en')!=-1){return 'en'}
else if(lg_tmp.indexOf('es')!=-1){return 'es'}
else if(lg_tmp.indexOf('it')!=-1){return 'it'}
else if(lg_tmp.indexOf('fr')!=-1){return 'fr'}
else if(lg_tmp.indexOf('de')!=-1){return 'de'}
else{return ''}}}
function redirNow(){var lg_nav=recup_lg();if(lg_nav!='en'&&langNow()=='en'){if(!getCookie("redir")){setCookie("redir",lg_nav,1)
location="http://"+lg_nav+document.domain.substring(3)}}}
function hotBar(){el('latest-news').innerHTML+='<a href='+footerlinks[langNow()].promo+'>'+hotbartext[langNow()].first+'</a><img src="http://cachewww.williamhillpoker.com/arrow-orange.png">'+'<a href='+footerlinks[langNow()].support+'>'+hotbartext[langNow()].second+'</a>'}
var WeekDays=[];WeekDays[langNow()]=[];WeekDays['en']=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];WeekDays['es']=['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'];WeekDays['it']=['Lingua','Lunedi','Martedì','Mercoledì','Giovedi','Venerdì','Sabato'];WeekDays['fr']=['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'];WeekDays['de']=['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'];WeekDays['el']=['Κυριακή','Δευτέρα','Τρίτη','Τετάρτη','Πέμπτη','Παρασκευή','Σάββατο'];WeekDays['tr']=['Pazar','Pazartesi','Sali','Çarsamba','Persembe','Cuma','Cumatesi'];var MonthsNames=[];MonthsNames[langNow()]=[];MonthsNames['en']=['January','February','March','April','May','June','July','August','September','October','November','December'];MonthsNames['es']=['Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'];MonthsNames['it']=['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno','Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'];MonthsNames['fr']=['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'];MonthsNames['de']=['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'];MonthsNames['el']=['Ιανουάριος','Φεβρουάριος','Μάρτιος','Απρίλιος','Μάιος','Ιούνιος','Ιούλιος','Αύγουστος','Σεπτέμβριος','Οκτώβριος','Νοέμβριος','Δεκέμβριος'];MonthsNames['tr']=['Ocak','Şubat','Mart','Nisan','Mayıs','Haziran','Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık'];
function writeDate(){var currentTime=new Date();var month=currentTime.getMonth();var day=currentTime.getDate();var wday=currentTime.getDay();var year=currentTime.getFullYear();wd=WeekDays[langNow()][wday]||WeekDays['en'][wday];mn=MonthsNames[langNow()][month]||MonthsNames['en'][month];document.write(wd+', '+mn+" "+day+", "+year)};
function retuntGMTHour(t){var curHour=t.getHours()+t.getTimezoneOffset()/60
if(curHour>24) curHour-=24
if(curHour<0) curHour+=24
return curHour}
function displaytime(){var curDateTime=new Date();var curMin=curDateTime.getMinutes()
var curSec=curDateTime.getSeconds();curTime=((retuntGMTHour(curDateTime)<10)?"0":"")+retuntGMTHour(curDateTime)+":"+((curMin<10)?"0":"")+curDateTime.getMinutes()+":"+((curSec<10)?"0":"")+curDateTime.getSeconds()
curDateTime.setSeconds(curDateTime.getSeconds+1)
document.getElementById("servertime").innerHTML=curTime}
var brand="ambercoastcasino";var inner='http://www.ambercoastcasino.com/sharedobj/php/inpopup.php?casino=ambercoastcasino&lang=en';var url='http://serve.williamhillcasino.com/promoRedirect?member='+newGetMember()+'&campaign='+newGetCampaign()+'&channel='+newGetChannel()+'&zone=14184098&lp=0&source=exitwhpenwhc';var msg='';var windowOptions='';var onlyOnClose=true;
function exitpage_url(){var lang=langNow();var zone='';var source='';switch(lang){case 'en':zone='14184098';source='exitwhpenwhc';break;case 'it':zone='66908293';source='exitwhpitwhc';break;case 'es':zone='66908159';source='exitwhpeswhc';break;case 'fr':zone='66908161';source='exitwhpfrwhc';break;case 'de':zone='755093390';source='exitwhpdewhc';break;default:zone='14184098';source='exitwhpenwhc';break}
url='http://serve.williamhillcasino.com/promoRedirect?member='+newGetMember()+'&campaign='+newGetCampaign()+'&channel='+newGetChannel()+'&zone='+zone+'&lp=0&source='+source;return url}
var IE=false;var posX=null,wWidth;var posY=null;var lang=langNow();if(msg){var conf_msg=msg}
else{var _aConfig=new Array();_aConfig=setConfigMsg();lang=langNow();if(typeof _aConfig[lang]=='undefined')
lang='en';var conf_msg=_aConfig[lang][0]+"\n"+_aConfig[lang][1]}
var closedByKey=false;
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(){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}
catch(e){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){keynum=window.event.keyCode;var alt=window.event.altKey}
else if(e.which){keynum=e.which}
var objEvent=e||window.event;if(typeof keynum=='undefined'||keynum==116)
onlyOnClose=false;else if(keynum==8){var loc=window.location.href.split('/');var ref=document.referrer.split('/');if(ref[2]!=loc[2]&&url!=null){onlyOnClose=true;closedByKey=true}
else
onlyOnClose=false}
else if(keynum==115&&(objEvent.altKey||objEvent.ctrlKey)&&url!=null){onlyOnClose=true;closedByKey=true}
else if(objEvent.ctrlKey&&keynum==87){onlyOnClose=true;closedByKey=true}}
function show_exit(){if(!checkExitCookie()){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')}}
else{var w=open(url,'_blank');if(w==null){main()}}}}
if(document.domain.indexOf("ital")>0){imgI=new Image();imgI.src='http://banner1.williamhillpoker.com/sharedobj/php/cookiedata3.php?domain=williamhillpokeritaly.com'}
function itCheck(){if(getCookie("italy")){var Cstring=getCookie("italy");Cstring=Cstring.replace('"','');Cstring=Cstring.replace('"','');setCookie("banner_domainclick",Cstring)}}
function show_window(count){var w=open(url,'_blank');if(w==null&&count<5)
setTimeout('show_window('+ ++count+')',1000)}
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){}}
function getMember(name){name='banner_domainclick';var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=document.cookie.substring(0,name.length))) return null;if(start==-1) return null;var end=document.cookie.indexOf(";",len);if(end==-1) end=document.cookie.length;var res=unescape(document.cookie.substring(len,end));var result=res.split(",");return(result[0])}
function setConfigMsg(){var aConfig=new Array();aConfig['en']=[];aConfig['en'][0]="Receive £30 Free, No deposit required at William Hill Casino Club. Click here to play now!";aConfig['en'][1]="Terms & Conditions apply";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]="Erhalten Sie 30€ GRATIS BONUS @ William Hill Casino Club.";aConfig['de'][1]="";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]="Sei invitato ad approfittare di un favoloso bonus* di 300€ a William Hill Casino Club. Premi qui per giocare ora!";aConfig['it'][1]="*Termini e Condizioni applicati";aConfig['es']=[];aConfig['es'][0]="Está usted invitado a disfrutar de un gran bono de 300€/$ en William Hill Casino Club.¡Haga clic para jugar ya!";aConfig['es'][1]="*Se aplicarán los Términos y condiciones";aConfig['fr']=[];aConfig['fr'][0]="Vous êtes invité à profiter d’un bonus de €4400 sur William Hill Casino Club.Cliquez pour jouer maintenant !";aConfig['fr'][1]="*Soumis aux termes et conditions";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){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 }
function checkExitCookie(){got_exit=getCookie('got_exit');if(got_exit!=null&&got_exit!=""){return true}
else{if(profile.indexOf('exit')==-1){got_exit=window.location.href;setCookie('got_exit',got_exit,2000);return false}
else return true}}
if(navigator.appName=="Microsoft Internet Explorer"){IE=true}
if(!IE){document.captureEvents(Event.MOUSEMOVE);try{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};
function Get_Profile(name){var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=document.cookie.substring(0,name.length))) return null;if(start==-1) return null;var end=document.cookie.indexOf(";",len);if(end==-1) end=document.cookie.length;var res=unescape(document.cookie.substring(len,end));var result=res.split(",");return(result[2])};
function Get_Cookie(name){var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=document.cookie.substring(0,name.length))) return null;if(start==-1) return null;var end=document.cookie.indexOf(";",len);if(end==-1) end=document.cookie.length;var res=unescape(document.cookie.substring(len,end));var result=res.split(",");return(result[0])};
function newGetMember(){var cookie;cookie=getCookie('clickinfo');if(cookie){clist=cookie.split('&');return clist[0].split('=')[1]}
else cookie=getCookie('banner_domainclick');if(cookie)
return cookie.split(',')[0];else return 'default'}
function newGetChannel(){var cookie;cookie=getCookie('clickinfo');if(cookie)
return cookie.split('&')[2].split('=')[1];else cookie=getCookie('banner_domainclick');if(cookie)
return cookie.split(',')[2];else return 'default'}
function newGetCampaign(){var cookie;cookie=getCookie('clickinfo');if(cookie)
return cookie.split('&')[1].split('=')[1];else return 'default'}
var MAKEEXIT=true;var SITELANG=langNow();var EXITMSG='';var EXPTRACK=false;var EXP_ct=30;var EXP_w=400;var EXP_h=250;var EXP_url='';var EXP_mask='/mask.png';var EXP_to=0;var EXP_dscroll=false;var myWidth=0;var myHeight=0;var EXP_o=false;var EXP_is=false;var EXP_WIN=null;var EXP_overlay=null;var EXP_x=10;var EXP_y=100;var EXP_idx=-1;var EXP_show=1;var EXP_ac=null;var EXP_TOPPOS=20;var pixSrc='http://cachewww.williamhillpoker.com/px.gif';var EXITMSG=[];var EXPTRACK=true;
function mmove(e){if(EXP_o)return true;if(checkCoolToolOpen()) return true;if(typeof(window.innerWidth)=='number'){myWidth=window.innerWidth;myHeight=window.innerHeight}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myWidth=document.documentElement.clientWidth;myHeight=document.documentElement.clientHeight}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){myWidth=document.body.clientWidth;myHeight=document.body.clientHeight}
var posx=0;var posy=0;if(!e)var e=window.event;if(e.pageX||e.pageY){posx=e.pageX;posy=e.pageY}else if(e.clientX||e.clientY){posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop};EXP_x=myWidth/2-EXP_w/2;EXP_y=myHeight/2-EXP_h/2;if(posy<EXP_TOPPOS+document.documentElement.scrollTop){if(!EXP_is)EXP_idx++;EXP_is=true;openEXW();return true}else{EXP_is=false}
return true};
function EXP_init(){if(!MAKEEXIT){return};if(EXP_ct&&getEXPCookie("WHEXP"+SITELANG)){return};var lang=langNow();if(lang=='es'||lang=='de'||lang=='it') return;setTimeout('preLoadExit()',3000);document.onmousemove=mmove;var y=document.createElement('div');y.setAttribute('id','EXP_overlay');document.body.appendChild(y);var x=document.createElement('div');x.setAttribute('id','EXP_WIN');y.appendChild(x);x.style.position='absolute';x.style.top='-1000px';x.style.left='-1000px';x.style.background='#ffffff';x.style.width=EXP_w+'px';x.style.height=EXP_h+'px';x.style.display='block';EXP_WIN=x;EXP_overlay=document.getElementById('EXP_overlay')};
function openEXW(){if(EXP_o)return false;if(EXP_ct){if(getEXPCookie("WHEXP"+SITELANG)){return false}};if(EXP_idx%EXP_show!=0){EXP_o=false;return false};EXP_o=true;setUpHTMLWHP();var y=EXP_overlay;y.style.position='absolute';y.style.top=getScrollY()+'px';y.style.left='0px';y.style.width='100%';y.style.height='100%';if(!isIE) y.style.zIndex='999';y.style.display='block';y.style.background="url('"+EXP_mask+"')";if(EXP_dscroll||(!isIE))document.body.style.overflow='hidden';if(EXP_to>0){EXP_ac=setTimeout("closeEXW()",EXP_to)};return false};
function closeEXW(){EXP_o=false;EXP_overlay.style.display='none';if(EXP_dscroll||(!isIE))document.body.style.overflow='auto';if(EXP_ac)clearTimeout(EXP_ac);return false};var whCmd=false;var logo='casino';
function runWHP(){var cook='';var lp='0';var mbr='DEFAULT';var prf='DEFAULT';var sid='';if(EXP_ct){setEXPCookie("WHEXP"+SITELANG,'true',EXP_ct)};if(!whCmd){whCmd=true;var url=exitpage_url();window.open(url);closeWHP(true)}};
function closeWHP(norequest){if(EXP_ct){setEXPCookie("WHEXP"+SITELANG,'true',EXP_ct)};closeEXW();el('WHPOPUP').style.display="none"};
function getExpMsg(){var _aConfig=new Array();_aConfig=setConfigMsg();var lang=langNow();if(typeof _aConfig[lang]=='undefined') lang='en';var conf_msg=_aConfig[lang][0]+"\n"+_aConfig[lang][1];return conf_msg}
function setUpHTMLWHP(){var WHPBTNMSG={'en':{'yes':'Ok','no':'Cancel'},'de':{'yes':'Ok','no':'Beenden'},'es':{'yes':'Aceptar','no':'Cancelar'},'fr':{'yes':'Ok','no':'Annuler'},'it':{'yes':'Ok','no':'Annulla'}};EXITMSG=getExpMsg();if(!el('WHPOPUP')){wd=document.createElement('div');wd.id='WHPOPUP';document.body.appendChild(wd)};el('WHPOPUP').style.left=EXP_x+'px';el('WHPOPUP').style.top=(EXP_y-100)+'px';el('WHPOPUP').style.position='fixed';btnMsg=WHPBTNMSG[SITELANG]||WHPBTNMSG['en'];el('WHPOPUP').style.display="block";whCmd=false;ynd='<div style="width:160px;position:absolute;margin:189px 0px 0px 190px;border:yellow none 1px;text-align:center;z-index:100000;"><div style="width:75px;float:left;font:normal 11px tahoma;color:#000;z-index:10000;cursor:pointer;" onclick="runWHP()">'+(btnMsg.yes)+'</div><div style="width:75px;float:right;font:normal 11px tahoma;color:#000;z-index:10000;cursor:pointer;" onclick="closeWHP();">'+(btnMsg.no)+'</div></div>';imgd='<div style="position:absolute;width:220px;height:40px;z-index:100000;text-align:right;margin:180px 0px 0px 135px;"><img src="'+pixSrc+'" width="85" height=30 style="cursor:pointer;border:#ddd none 1px;" onclick="runWHP()"><img src="'+pixSrc+'" width="85" height=30  style="cursor:pointer;border:#aaa none 1px;" onclick="closeWHP();"></div>';txtd='<div style="position:absolute;width:220px;z-index:10000000;font:bold 11px tahoma;color:#fff;margin:100px 0px 0px 47px;"">'+(EXITMSG)+'</div>';el('WHPOPUP').innerHTML=imgd+txtd+'<div style="position:absolute;width:220px;height:40px;z-index:1000;text-align:right;"><img src="/popup.png"/></div>'+ynd};
function setEXPCookie(name,value,ndays,path,domain,secure){var today=new Date();var expires=new Date();if(ndays==null||ndays==0) ndays=1;expires.setTime(today.getTime()+3600000*24*ndays);document.cookie=name+"="+escape(value)+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+((secure)?"; secure":"")}
function getEXPCookie(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 getInternetExplorerVersion(){var rv=-1;if(navigator.appName=='Microsoft Internet Explorer'){var ua=navigator.userAgent;var re=new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");if(re.exec(ua)!=null)
rv=parseFloat(RegExp.$1)}
return rv}
function getScrollY(){var scrOfY=0;if(typeof(window.pageYOffset)=='number'){scrOfY=window.pageYOffset} else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop} else if(document.documentElement&&(document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop}
return scrOfY}
function checkCoolToolOpen(){try{var p=el(cooltoolId);return(p.style.display=="block")}
catch(err){return false}
return false}
function getZone(dest){switch(dest){case 'CASINO':switch(langNow()){case 'en':return ['14184098','whcc'];case 'de':return ['755252034','whcc'];case 'fr':return ['66908161','whcc'];case 'es':return ['66908159','whcc'];case 'it':return ['97943064','whcc'];default:return ['14184098','whcc']}
case 'BINGO':switch(langNow()){case 'en':return ['66906298','whb'];default:return ['734601858','rb']}
case 'SPORTS':switch(langNow()){case 'en':return ['66906318','whs'];case 'fr':return ['463602375','whs'];case 'es':return ['463602378','whs'];default:return ['66906318','whs']}
default:return ['14184098','whcc']}
return ['14184098','whcc']}
function preLoadExit(){var dummy=new Image();dummy.src='/popup.png';var dummy2=new Image();dummy2.src='/mask.png'}
