var ip_ipWidth = 273;var ip_ipHeight= 303;var ip_style = 1;var ip_contenu = 1;var ip_payant = 1; var ip_popupDisplayTime = 15; // en seconde var ip_popupReShow = 5; // en seconde var ip_popupDelay = 0; var ip_popupHiTimeout = 0; var ip_popupMvTimeout = 0; var ip_WindowHeight = 0; var ip_WindowWidth = 0; var ip_popupDelayMax = (ip_ipHeight -3); var ip_pathUrl = "http://www.vos-videos-x.com/promo/mandibule/info_popup_dhtml/"; var ip_popupUrl = ip_pathUrl + "frame1.php?formule=41&tracker1=mv&tracker2=infopoparchive&pdv=5&inter=3&id_webmaster=74&id_promo=104070" var ip_popupTop = 0; var ip_time_sess = 0; var ip_OkCookies = 2; var ip_PopClose = 2; function ip_closeInfoPopupBack(){ winwidth = screen.availWidth - 10; winheight = screen.availHeight - 30; window.open('http://www.vos-videos-x.com/abonnement/cb_check.php?formule=41&tracker1=mv&tracker2=infopoparchive&pdv=5&inter=3&id_webmaster=74&id_promo=104070', '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top=0, left=0, resizable'); } function initInfoPopup(){ ip_popupDelay = ip_popupDelayMax; ip_popupTop = parseInt(document.getElementById('infopopup_id_2').style.top) +3; if(ip_popupTop > 0) document.getElementById('infopopup_id_2').style.top = (ip_popupTop - 5) + 'px'; } function showInfoPopup(){ if(document.getElementById('infopopup_id_1').style.visibility == "hidden") document.getElementById('infopopup_id_1').style.visibility = "visible"; if(ip_popupDelay > 0){ ip_popupDelay = ip_popupDelay - 1; document.getElementById('infopopup_id_2').style.top = ip_popupDelay + "px"; popupShTimeout = window.setTimeout('showInfoPopup()', 10); }else{ window.clearTimeout(popupShTimeout); window.setTimeout('hideInfoPopup()', ip_popupDisplayTime * 1000); } } function hideInfoPopup(){ if(ip_popupDelay < ip_popupDelayMax){ ip_popupDelay = ip_popupDelay + 1; document.getElementById('infopopup_id_2').style.top = ip_popupDelay + "px"; ip_popupHiTimeout = window.setTimeout('hideInfoPopup()', 10); }else{ window.clearTimeout(ip_popupHiTimeout); document.getElementById('infopopup_id_1').style.visibility = "hidden"; document.getElementById('infopopup_id_2').style.top = -10 + 'px'; window.setTimeout('showInfoPopup()', ip_popupReShow * 1000); } } function moveInfoPopup(){ var get_scrollTop = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop; var get_scrollLeft = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft; document.getElementById('infopopup_id_1').style.display='block'; document.getElementById('infopopup_id_1').style.top = ( get_scrollTop + ip_get_ip_WindowHeight() - ip_ipHeight ) + 'px'; document.getElementById('infopopup_id_1').style.left = ( get_scrollLeft + ip_get_ip_WindowWidth() - ip_ipWidth - 10 ) + 'px'; ip_popupMvTimeout = window.setTimeout('moveInfoPopup()', 50); } function closeInfoPopup(){ document.getElementById('infopopup_id_1').style.visibility = "hidden"; if(ip_PopClose==2){ ip_closeInfoPopupBack(); window.focus(); } if(ip_time_sess>0){ var date_exp = new Date(); date_exp.setTime(date_exp.getTime()+(ip_time_sess*3600*1000)); ip_SetCookie ("mandi_infopop_cook", 1, date_exp, "/", null, false); }else{ ip_SetCookie ("mandi_infopop_cook", 1, null, "/", null, false); } } function ip_get_ip_WindowHeight(){ if(typeof window.innerHeight == "number"){ ip_WindowHeight = window.innerHeight; if(window.scrollMaxX > 0) ip_WindowHeight -= 17; return ip_WindowHeight; }else if(document.documentElement.clientHeight) return document.documentElement.clientHeight; else if(typeof document.body.clientHeight == 'number') return document.body.clientHeight; } function ip_get_ip_WindowWidth(){ if(typeof window.innerWidth == "number"){ ip_WindowWidth = window.innerWidth; if(window.scrollMaxY > 0) ip_WindowWidth -= 17; return ip_WindowWidth; }else if(document.documentElement.clientWidth) return document.documentElement.clientWidth; else if(document.body && document.body.clientWidth) return document.body.clientWidth; } function ip_GetCookieVal(offset){ var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function ip_GetCookie(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 ip_GetCookieVal(j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return 0; } function ip_SetCookie (name, value, expires, path, domain, secure) { var argv = ip_SetCookie.arguments; var argc = ip_SetCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function ip_blink(){ ip_blink_a = 1 ip_blink_b = 1 ip_blink_modif(); } function ip_blink_modif(){ if (ip_blink_b < 30000) { // 30000 ip_blink if(ip_blink_a==1){ ip_blink_a=0; ip_blink_b++; document.getElementById("bl").style.backgroundColor = '#FF0000'; }else{ ip_blink_a=1; ip_blink_b++; document.getElementById("bl").style.backgroundColor = ''; } setTimeout('ip_blink_modif()', 50); } } function ip_displayInfoPopup(){ var bugsize=0; if (navigator.userAgent.indexOf("Firefox")!=-1){ bugsize=0; }else if (navigator.userAgent.indexOf("MSIE")!=-1){ bugsize=3; }; document.write('
'); initInfoPopup(); showInfoPopup(); moveInfoPopup(); } if(ip_OkCookies == 1){ if(ip_GetCookie("mandi_infopop_cook") != 1){ ip_displayInfoPopup(); ip_blink(); } }else{ ip_displayInfoPopup(); ip_blink();}