document.write('');
var var_adulte = '0';
var addscript = 'no';
var widgeo_url_popunder = 'http://www.widgeo.net/CPXads.html';
var var_monpays = '';
if(typeof(window['compteurcc_adultvar']) != "undefined"){
if(compteurcc_adultvar == "1"){var_adulte = '1';}
}
else if(typeof(window['msg']) != "undefined"){
if(msg.search(/ADULT/) != -1){var_adulte = '1';}
}
else if(typeof(window['disclaimer']) != "undefined"){
if(disclaimer.search(/MAJEUR/) != -1){var_adulte = '1';}
}
else if(getcookiecc("GI")){var_adulte = '1';}
widgeo_url_popunder = 'http://www.widgeo.net/ads/index.php?country=BR&ad='+var_adulte+'';
var_monpays = 'br';
addscript = 'no';
if (typeof console != "object") {
var console = {
'log':function(){}
};
}
function fixervaleur_cc(indic, valeur, expire)
{
var maintenant = new Date();
var temps = new Date(maintenant.getTime() + expire);
document.cookie = indic+"="+valeur+"; expires="+temps.toGMTString()+";";
}
function compteur_cc()
{
var tpsexpire = 1000*60*60*24*5;
var nombre = getcookiecc('idcompteurcc');
var compte = 0;
if(nombre != "") compte = parseInt(nombre);
if(getcookiecc('idcompteurcc'))
{
compte = compte + 1;
fixervaleur_cc("idcompteurcc",compte,tpsexpire);
}
else
{
compte = 1;
fixervaleur_cc("idcompteurcc",compte,tpsexpire);
}
}
function getcookiecc(name) {
var namePattern = name + "=";
var cookies = document.cookie.split(';');
for(var i = 0, n = cookies.length; i < n; i++) {
var c = cookies[i];
while (c.charAt(0) == ' ') c = c.substring(1, c.length)
if (c.indexOf(namePattern) == 0)
return c.substring(namePattern.length, c.length);
}
return null;
}
framecc = "non";
if(top.location != self.document.location){
try {
if(top.location.href){ framecc = "oui"; }
}
catch(error) {
framecc = "non";
}
}
else { framecc = "non"; }
function pop_up_cc()
{
//ni iframe in frames
items = document.getElementsByTagName('a');
for(i = 0; i < items.length; i++)
{
if (window.addEventListener){items[i].addEventListener('click',ouvre_cc,false);}
if (window.attachEvent){items[i].attachEvent("onclick", ouvre_cc);}
}
if (window.addEventListener){window.addEventListener('click',ouvre_cc,false);}
if(document.body){ if (window.attachEvent){document.body.attachEvent("onclick", ouvre_cc);} }
//frame ou iframe
if(framecc == "oui") {
var parentWindow = window.parent;
//iframe
items2 = parent.document.getElementsByTagName('a');
if (window.addEventListener){parentWindow.addEventListener('click',ouvre_cc,false);}
if(parent.document.body){ if (window.attachEvent){parent.document.body.attachEvent("onclick", ouvre_cc);} }
for(j = 0; j < items2.length; j++)
{
if (window.addEventListener){items2[j].addEventListener('click',ouvre_cc,false);}
if (window.attachEvent){items2[j].attachEvent("onclick", ouvre_cc);}
}
//frames
f = top.frames;
for(k = 0; k < f.length; k++){
items3 = "";
items3 = f[k].document.getElementsByTagName('a');
if(f[k].document.body){
if (window.addEventListener){f[k].document.body.addEventListener('click',ouvre_cc,false);}
if (window.attachEvent){f[k].document.body.attachEvent("onclick", ouvre_cc);}
}
for(l = 0; l < items3.length; l++)
{
if (window.addEventListener){items3[l].addEventListener('click',ouvre_cc,false);}
if (window.attachEvent){items3[l].attachEvent("onclick", ouvre_cc);}
}
}
}
}
function ouvre_cc()
{
if (getcookiecc('idcompteurcc') == "1")
{
if(window.open == false){window.showHelp(widgeo_url_popunder); compteur_cc();}
window.open(widgeo_url_popunder,'pubcompteurcc','top=60,left=60,width=1024,height=768,scrollbars=0,resizable=1');
window.focus();
compteur_cc();
}
}
if(((document.location).toString()).search(/bloguez/) == -1)
{
compteur_cc();
pop_up_cc();
if(window.addEventListener){
window.addEventListener('load', pop_up_cc, false);
window.addEventListener('onbeforeunload', ouvre_cc, false);
}
if(window.attachEvent){
window.attachEvent('onload', pop_up_cc);
window.attachEvent('onbeforeunload', ouvre_cc);
}
}document.write('');