function igetCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function iGetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return igetCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function iEcrireCookie(nom, valeur) { var argv=iEcrireCookie.arguments; var argc=iEcrireCookie.arguments.length; var expires=(argc > 2) ? argv[2] : null; var path=("/") ; var domain=(argc > 4) ? argv[4] : null; var secure=(argc > 5) ? arg[5] : false; document.cookie=nom+"="+escape(valeur)+ ((expires==null) ? "" : ("; expires="+expires.toGMTString()))+ ((path==null) ? "" : ("; path="+path))+ ((domain==null) ? "" : ("; domain="+domain))+ ((secure==true) ? "; secure" : ""); } function geoclick(){ dateu=new Date; dateu=dateu.getTime(); geovisite_test_cookie_value = iGetCookie('promoi'); if(geovisite_test_cookie_value == null){ date=new Date; date.setMonth(date.getMonth()+3); geovisite_test_cookie='scoopoo_promo'; lawidth=screen.width; laheight=screen.height; //wini=window.open('http://scoopoo.com/promotion/index.php','promoi','toolbar=1,location=0,directories=1,status=0,menubar=0,scrollbars=1,resizable=1,fullscreen=0,width='+lawidth+',height='+laheight+',top=0,left=100'); if(wini)wini.blur(); //promoi.blur(); window.focus(); iEcrireCookie('promoi',geovisite_test_cookie,date); } } document.onclick=geoclick; function popup84() { items=new Array(); if(top.location != self.document.location){ items = document.getElementsByTagName('a'); parent.document.onclick=geoclick; // if (window.addEventListener)parent.document.body.addEventListener('click',geoclick,false) // if (window.attachEvent)parent.document.body.attachEvent(\"onclick\", geoclick) } else{ items = document.getElementsByTagName('a'); if (window.addEventListener)document.body.addEventListener('click',geoclick,false) if (window.attachEvent)document.body.attachEvent("onclick", geoclick) } for(var i=0; i