adOver_id_banniere = 19698; adPartners_id_banniere = 20169; adPave_id_banniere = 21871; adPopup_id_banniere = 19142; adTop_id_banniere = 20720; client_height = ""; MyTop=""; madiv=""; function kill_adPopup(){ try {clearTimeout(chronopub);} catch (ex){}; try {clearTimeout(timerMoveAd);} catch (ex){}; try {document.getElementById('pub_adPopup').style.visibility='hidden';} catch (ex){}; try {document.getElementById('adPopup').style.visibility='hidden';} catch (ex){}; try {document.getElementById('fondadPopup').style.visibility='hidden';} catch (ex){}; try {document.getElementById('adPopup').style.top='-1000px';} catch (ex){}; } var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1; function ad_DoFSCommand(command, args) { var adObj = InternetExplorer ? ad : document.ad; if (command == 'kill_adPopup') kill_adPopup(); } if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) { document.write(' \n'); document.write('on error resume next \n'); document.write('Sub ad_FSCommand(ByVal command, ByVal args)\n'); document.write(' call ad_DoFSCommand(command, args)\n'); document.write('end sub\n'); document.write(' \n') } var titreadPopup = document.createElement('div'); titreadPopup.setAttribute('name', 'titreadPopup'); titreadPopup.setAttribute('id', 'titreadPopup'); if (document.all) { titreadPopup.style.setAttribute("cssText", 'background-color: black; position: relative; float: left; height:14px; width:300px;'); } else { titreadPopup.setAttribute('style', 'background-color: black; position: relative; float: left; height:14px; width:300px;'); } var lienadPopup = document.createElement('div'); lienadPopup.setAttribute('name', 'lienadPopup'); lienadPopup.setAttribute('id', 'lienadPopup'); lienadPopup.onClick="kill_adPopup()"; lienadPopup.onMouseOver="style.cursor='hand';"; lienadPopup.onMouseOut="style.cursor='default';"; if (document.all) { lienadPopup.style.setAttribute("cssText", 'background-color: black; position: relative; float: right; height:14px; width:60px; font-family: Verdana; color: Black; font-weight: bold; text-decoration: underline;'); lienadPopup.setAttribute('innerHTML', '\"fermer\"'); } else { lienadPopup.setAttribute("style", 'background-color: black; position: relative; float: right; height:14px; width:60px; font-family: Verdana; color: Black; font-weight: bold; text-decoration: underline;'); lienadPopup.innerHTML='\"fermer\"'; } titreadPopup.appendChild(lienadPopup); function ShowAdPopup(){ try { var PosTopDivAdPopup = document.documentElement.clientHeight - (250 + 150) ; $("#adPopup").css("position","absolute"); $("#adPopup").css("top",PosTopDivAdPopup); $("#adPopup").css("left",-300); $("#adPopup").css("z-index","501"); if (navigator.userAgent.indexOf("MSIE") > 0) { $("#adPopup").css("width","312px"); } else { $("#adPopup").css("width","312px"); } $("#adPopup").css("height","252px"); } catch (ex){}; } function ShowAd(){ try { madiv=document.getElementById('adPopup'); if (client_height == "") { //client_height = document.body.clientHeight; client_height = document.documentElement.clientHeight; } } catch (ex){}; //alert("position_top : "+position_top+"\n"+"position_left : "+position_left); if (document.all) { try { document.getElementById('adPopup').style.setAttribute("cssText", 'position:absolute; top:'+position_top+'px; left:'+position_left+'px; z-index:501; width:300px; height:250px;');//border : thin solid Black; } catch (ex){}; } else { try { document.getElementById('adPopup').setAttribute('style', 'position:absolute; top:'+position_top+'px; left:'+position_left+'px; z-index:501; width:300px; height:250px;');//border : thin solid Black; } catch (ex){}; } } function MoveAd() { madiv=document.getElementById('adPopup'); if (MyTop == "") { MyTop=madiv.style.top.substring(0,madiv.style.top.length-2); } if (client_height == "") { //client_height = document.body.clientHeight; client_height = document.documentElement.clientHeight; } MyTop = MyTop - 5; madiv.style.top=Number(MyTop)+'px'; timerMoveAd=setTimeout('MoveAd()',10); if (MyTop <= (client_height - 250 - 14 - 10)) { clearTimeout(timerMoveAd); } } function kill_adOver(){ clearTimeout(chronopub_adOver); try {document.getElementById('pub_adOver').style.visibility='hidden';} catch (ex){}; try {document.getElementById('adOver').style.visibility='hidden';} catch (ex){}; try {document.getElementById('fondadOver').style.visibility='hidden';} catch (ex){}; try {document.getElementById('infoSwf').style.visibility='visible';} catch (ex){}; try {document.getElementById('logoSwf').style.visibility='visible';} catch (ex){}; try {document.getElementById('boxSwf').style.visibility='visible';} catch (ex){}; try {document.getElementById('FLVswf').style.visibility='visible';} catch (ex){}; try {document.getElementById('men_favoris').style.visibility='visible';} catch (ex){}; try {document.getElementById('adTop').style.visibility='visible';} catch (ex){}; try {document.getElementById('adPave').style.visibility='visible';} catch (ex){}; try {document.getElementById('adSky').style.visibility='visible';} catch (ex){}; try {document.getElementById('adSky2').style.visibility='visible';} catch (ex){}; try {document.getElementById('adSumo').style.visibility='visible';} catch (ex){}; try {document.getElementById('adPartners').style.visibility='visible';} catch (ex){}; } var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1; function ad_DoFSCommand(command, args) { var adObj = InternetExplorer ? ad : document.ad; if (command == 'kill_adOver') kill_adOver(); } if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) { document.write(' \n'); document.write('on error resume next \n'); document.write('Sub ad_FSCommand(ByVal command, ByVal args)\n'); document.write(' call ad_DoFSCommand(command, args)\n'); document.write('end sub\n'); document.write(' \n') } var titreAdOver = document.createElement('div'); titreAdOver.setAttribute('name', 'titreAdOver'); titreAdOver.setAttribute('id', 'titreAdOver'); if (document.all) { titreAdOver.style.setAttribute("cssText", 'background-color: #00598c; position: relative; float: left; height:50px; width:100%;z-index:502; margin:4px;'); } else { titreAdOver.setAttribute('style', 'background-color: #00598c; position: relative; float: left; height:50px; width:100%;;z-index:502; margin:4px;'); } var logoAdOver = document.createElement('div'); logoAdOver.setAttribute('name', 'logoAdOver'); logoAdOver.setAttribute('id', 'logoAdOver'); if (document.all) { logoAdOver.style.setAttribute("cssText", 'background-color: #00598c; position: relative; float: left; height:50px;z-index:503;'); } else { logoAdOver.setAttribute("style", 'background-color: #00598c; position: relative; float: left; height:50px;z-index:503;'); } logoAdOver.innerHTML='\"captainprice.com\"'; titreAdOver.appendChild(logoAdOver); var lienAdOver = document.createElement('div'); lienAdOver.setAttribute('name', 'lienAdOver'); lienAdOver.setAttribute('id', 'lienAdOver'); lienAdOver.onClick="kill_adOver()"; lienAdOver.onMouseOver="style.cursor='hand';"; lienAdOver.onMouseOut="style.cursor='default';"; if (document.all) { lienAdOver.style.setAttribute("cssText", 'background-color: #00598c; position: relative; float: right; height:50px; font-family: Verdana; color: White; font-weight: bold; text-decoration: underline;z-index:504; margin:4px;'); } else { lienAdOver.setAttribute("style", 'background-color: #00598c; position: relative; float: right; height:50px; font-family: Verdana; color: White; font-weight: bold; text-decoration: underline;z-index:504; margin:4px;'); } lienAdOver.innerHTML='Pour accéder directement au site, c\'est par là !  '; titreAdOver.appendChild(lienAdOver); function hideelements(){ try {document.getElementById('infoSwf').style.visibility='hidden';} catch (ex){}; try {document.getElementById('logoSwf').style.visibility='hidden';} catch (ex){}; try {document.getElementById('boxSwf').style.visibility='hidden';} catch (ex){}; try {document.getElementById('FLVswf').style.visibility='hidden';} catch (ex){}; try {document.getElementById('men_favoris').style.visibility='hidden';} catch (ex){}; try {document.getElementById('adTop').style.visibility='hidden';} catch (ex){}; try {document.getElementById('adPave').style.visibility='hidden';} catch (ex){}; try {document.getElementById('adSky').style.visibility='hidden';} catch (ex){}; try {document.getElementById('adSky2').style.visibility='hidden';} catch (ex){}; try {document.getElementById('adSumo').style.visibility='hidden';} catch (ex){}; try {document.getElementById('adPartners').style.visibility='hidden';} catch (ex){}; try { if (document.all) { document.getElementById('adOver').style.setAttribute("cssText", 'position: absolute; top: 0px; left: 0px; width: 100%; height: 1400px; z-index: 501;'); document.getElementById('fondadOver').style.setAttribute("cssText", 'position: absolute; top: 0px; left: 0px; width: 100%; height: 1400px; background-color: #00598c; z-index: 500;'); } else { document.getElementById('adOver').setAttribute('style', 'position: absolute; top: 0px; left: 0px; width: 100%; height: 1400px; z-index: 501;'); document.getElementById('fondadOver').setAttribute('style', 'position: absolute; top: 0px; left: 0px; width: 100%; height: 1400px; background-color: #00598c; z-index: 500;'); } } catch (ex){}; } function adserver(slot){ switch (slot) { case 'adOver' : var ladiv = document.getElementById('adOver'); if (ladiv != null) { try { position_top = 0; } catch (aaae){ position_top = 0; } try { position_left = 0; } catch (bbbe){ position_left = 100; } // je met la couleur de fond if (document.all) { document.getElementById('adOver').style.setAttribute("cssText", 'background-color: transparent;'); } else { document.getElementById('adOver').setAttribute("style", 'background-color: #transparent;'); } hideelements(); document.getElementById('adOver').appendChild(titreAdOver); chronopub_adOver=setTimeout("kill_adOver()", 15000); document.write('
'); ladiv.style.visibility='visible'; var ladivdefond = document.getElementById('fondadOver'); if (ladivdefond != null) { ladivdefond.style.visibility='visible'; } } break; case 'adPartners' : var ladiv = document.getElementById('adPartners'); if (ladiv != null) { try { position_top = 0; } catch (aaae){ position_top = 0; } try { position_left = 0; } catch (bbbe){ position_left = 100; } document.write('\"\"'); ladiv.style.visibility='visible'; var ladivdefond = document.getElementById('fondadPartners'); if (ladivdefond != null) { ladivdefond.style.visibility='visible'; } } break; case 'adPave' : var ladiv = document.getElementById('adPave'); if (ladiv != null) { try { position_top = 0; } catch (aaae){ position_top = 0; } try { position_left = 0; } catch (bbbe){ position_left = 100; } document.write(''); ladiv.style.visibility='visible'; var ladivdefond = document.getElementById('fondadPave'); if (ladivdefond != null) { ladivdefond.style.visibility='visible'; } } break; case 'adPopup' : var ladiv = document.getElementById('adPopup'); if (ladiv != null) { try { position_top = -1000; } catch (aaae){ position_top = 0; } try { position_left = -1000; } catch (bbbe){ position_left = 100; } //alert("position left : "+position_left+"\n"+"position top : "+position_top); ShowAdPopup(); //chronopub = setTimeout("kill_adPopup()", 20000); document.write(''); ladiv.style.visibility='visible'; var ladivdefond = document.getElementById('fondadPopup'); if (ladivdefond != null) { ladivdefond.style.visibility='visible'; } } break; case 'adTop' : var ladiv = document.getElementById('adTop'); if (ladiv != null) { try { position_top = 0; } catch (aaae){ position_top = 0; } try { position_left = 0; } catch (bbbe){ position_left = 100; } document.write(''); ladiv.style.visibility='visible'; var ladivdefond = document.getElementById('fondadTop'); if (ladivdefond != null) { ladivdefond.style.visibility='visible'; } } break; default : document.write(''); break; } } function sendlog(divname,pageurl){ var ifrm_debug = document.getElementById('debugframe'); if (ifrm_debug == null) { ifrm_debug = document.createElement('iframe'); } ifrm_debug = document.createElement('iframe'); ifrm_debug.setAttribute('src', 'http://ww2.affilcenter.com/bandeaux/logerreur.cfm?divname='+divname+'&pageurl='+pageurl+'&rand=7286815'); ifrm_debug.setAttribute('name', 'debugframe'); ifrm_debug.setAttribute('id', 'debugframe'); ifrm_debug.setAttribute('width', '1px'); ifrm_debug.setAttribute('height', '1px'); ifrm_debug.setAttribute('frameBorder', '0'); ifrm_debug.setAttribute('scrolling', 'No'); ifrm_debug.setAttribute('allowTransparency', 'true'); ifrm_debug.setAttribute('visible', 'false'); document.body.appendChild(ifrm_debug); } function checkdivsexists(){ var ladiv = document.getElementById('adOver'); if (ladiv == null) { sendlog('adOver',''); } var ladiv = document.getElementById('adPartners'); if (ladiv == null) { sendlog('adPartners',''); } var ladiv = document.getElementById('adPave'); if (ladiv == null) { sendlog('adPave',''); } var ladiv = document.getElementById('adPopup'); if (ladiv == null) { sendlog('adPopup',''); } var ladiv = document.getElementById('adTop'); if (ladiv == null) { sendlog('adTop',''); } } function Add_Event( obj_, event_, func_, mode_){ if( obj_.addEventListener) obj_.addEventListener( event_, func_, mode_? mode_:false); else obj_.attachEvent( 'on'+event_, func_); } Add_Event(window,'load',checkdivsexists);