var lt_w=200; var lt_h=4; var lt_pause_=8000; var lt_speed=500; var lt_x=100; var lt_y=100; var lt_str='DXImageTransform.Microsoft.Alpha'; var lt_a_id_site; var lt_objLayer; var lt_intervalMoveGauche; var lt_intervalMoveRight; var lt_etatOverLayer = false; function AffichePopInto() { lt_width_pub = 397; lt_height_pub = 160; if(document.body) var lt_client_height = document.body.clientHeight; else var lt_client_height = 600; if (screen.height < lt_client_height) lt_client_height=screen.height-200; lt_x=-(lt_width_pub-((lt_width_pub*2)%lt_w)); lt_y=lt_client_height-lt_height_pub-lt_h; var td_height=lt_height_pub-89; document.write('
'); } function lt_start(){ lt_objLayer = document.getElementById("lt_Precedent"); if(!lt_objLayer) return; lt_objLayer.style.display=''; lt_hauteur_pub(true); setInterval('lt_hauteur_pub(false)', 2); lt_setAlpha(25); lt_intervalMoveRight = setInterval('lt_MoveRight()', lt_speed); } function lt_MoveRight(){ var lt_p=parseInt(lt_objLayer.style.left); var pas = lt_w; if(lt_p + lt_w > 0) pas = -lt_p; lt_objLayer.style.left=(lt_p + pas) + "px"; if(lt_p < -2) return; clearInterval(lt_intervalMoveRight); lt_setAlpha(100); setTimeout('lt_lancerMoveLeft()', lt_pause_); } function lt_lancerMoveLeft(){ lt_setAlpha(25); //lt_intervalMoveGauche = setInterval('lt_MoveLeft()', lt_speed); } function lt_MoveLeft(){ if(lt_etatOverLayer) return; var lt_p = parseInt(lt_objLayer.style.left); lt_objLayer.style.left=(lt_p-lt_w) + 'px'; var lt_number_left=-lt_width_pub; if(lt_p-lt_w <= lt_number_left) clearInterval(lt_intervalMoveGauche); } function lt_hauteur_pub(lt_instantane){ if(lt_etatOverLayer) return; var lt_scroll_=0; if (window.innerHeight){ lt_scroll_=window.pageYOffset; } else if (document.documentElement && document.documentElement.scrollTop){ lt_scroll_=document.documentElement.scrollTop; } else if (document.body){ lt_scroll_=document.body.scrollTop; } var lt_client_height=document.body.clientHeight; if (screen.height < lt_client_height) lt_client_height=screen.height-200; var lt_scroll_ok=lt_client_height+lt_scroll_-lt_height_pub-lt_h; var lt_diff = parseInt(lt_objLayer.style.top) - lt_scroll_ok; var lt_signe = lt_diff/Math.abs(lt_diff); if( Math.abs(lt_diff) < 8 || lt_instantane || true) lt_objLayer.style.top = lt_scroll_ok + "px"; else lt_objLayer.style.top = parseInt(lt_objLayer.style.top) + (-lt_signe* 2) + "px"; } function lt_Close_gauche(){ var lt_number_min=-lt_width_pub; lt_objLayer.style.left = lt_number_min + "px"; } function lt_Close(){ lt_objLayer.style.display='none'; //var win = window.open("http://tag.regieci.com/popunderoncl.asp?id_aff=2","", "width=800,height=600,left=50,top=0, scrollbars=1, status=yes,toolbar=1,menubar=1,location=1, resizable=yes"); //win.blur(); } function lt_Open_droit(){ lt_objLayer.style.left="0px"; } function ci_lancerPIP(){ setTimeout('lt_start()', 700); } function lt_annonce_clic(lt_a_id){ window.open("http://www.carrefourinternet.com/fr/pub/redirectCi.asp?id=" + lt_a_id + "&u=http://www.carrefourinternet.com/fr/regie/", "", "width=800,height=600,left=50,top=0, scrollbars=1, status=yes,toolbar=1,menubar=1,location=1, resizable=yes"); } function lt_clicPopInto(lt_id){ var lt_query; if(lt_id == 1) lt_query = "p_id=1&p_cle=1&p_url=http://www.carrefourinternet.com/fr/portail/sonneries"; if(lt_id == 2) lt_query = "p_id=2&p_cle=2&p_url=http://www.carrefourinternet.com/fr/commerce/"; if(lt_id == 3) lt_query = "p_id=2&p_cle=2&p_url=http://www.spamfinal.com"; if(lt_id == 4) lt_query = "p_id=2&p_cle=2&p_url=http://www.flirtmoi.com"; window.open("http://tag.regieci.com/redirectClic.asp?i_tp=0&" + lt_query + "&a_id=2&a_cle=1&a_url=&sorte=1","", "width=800,height=600,left=50,top=0, scrollbars=1, status=yes,toolbar=1,menubar=1,location=1, resizable=yes"); } function lt_ss(lt_id) { if(lt_id == 0) window.status = 'Régie publicitaire'; if(lt_id == 1) window.status = 'www.carrefourinternet.com'; if(lt_id == 2) window.status = 'www.carrefourinternet.com'; if(lt_id == 3) window.status = 'www.spamfinal.com'; if(lt_id == 4) window.status = 'www.flirtmoi.com'; } function lt_cs(){ window.status=''; } function lt_setAlpha(lt_degre){ if(!lt_objLayer.filters) return; lt_objLayer.filters.item(lt_str).opacity=lt_degre; } function lt_onMouseOverLayer(lt_isOnLayer){ if(lt_isOnLayer){ lt_etatOverLayer = true; lt_setAlpha(100); lt_objLayer.style.left = 0; } else { lt_setAlpha(25); lt_etatOverLayer = false; } } AffichePopInto(397, 160); function pip_exemple() { ci_lancerPIP(); }