var largeurMax=screen.availWidth; var hauteurMax=screen.availHeight; function ScanCookieGF(variable){ cook = document.cookie; variable += "="; place = cook.indexOf(variable,0); if (place <= -1) return("0"); else { end = cook.indexOf(";",place) if (end <= -1) return(unescape(cook.substring(place+variable.length,cook.length))); else return(unescape(cook.substring(place+variable.length,end))); } } function CreationCookieGF(nom,valeur){ var expDate = new Date() expDate.setTime(expDate.getTime() + (24 * 3600 * 1000)) document.cookie = nom + "=" + escape(valeur) + ";expires=" + expDate.toGMTString(); } function ouvrirSiteunderGF(){ Siteunder = window.open('http://www.gambling-france.com/sc/pop.php?val=OTYuNDkwLjA,&data=', '_blank','toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,menuBar=1,width='+largeurMax+',height='+hauteurMax+''); if (window.focus) window.focus(); } function ouvrirSiteunder_ChromeGF(){ Siteunder = window.open('http://www.gambling-france.com/sc/pop.php?val=OTYuNDkwLjA,&data=', '_blank','toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,width='+largeurMax+',height='+hauteurMax+''); window.blur(); window.focus(); } function popGF(){ if(ScanCookieGF("pu96")==0){ CreationCookieGF("pu96","oui") if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ ouvrirSiteunder_ChromeGF(); }else{ ouvrirSiteunderGF(); } } } document.onclick = popGF;