var popupWidth = 309;var popupHeight = 291;var style = 2;var contenu = 2;var sm_payant = 0; var popupTop = 0; var popupLeft = 0; var time_sess = 0; var abs = 0; var ord = 0; var OkCookies = 1; var PopClose = 1; var pathUrl = 'http://www.vos-videos-x.com/promo/mandibule/small_popup_dhtml/'; var popupUrl = pathUrl + 'frame2.php?formule=51&tracker1=petitesalopePP&tracker2=f5videos.com&pdv=5&inter=0&id_webmaster=74&style=2&contenu=2&payant=0&id_promo=104115'; var iframeSource= ''; var click = false; function ClickMouseDown(tab){ abscisse = abs - popupLeft; ordonne = ord - popupTop; click = true; } function ClickMouseUp(){ click = false; } function closePopupBack(){ winwidth = screen.availWidth - 10; winheight = screen.availHeight - 30; window.open('http://www.vos-videos-x.com/abonnement/cb_check.php?formule=51&tracker1=petitesalopePP&tracker2=f5videos.com&pdv=5&inter=0&id_webmaster=74&id_promo=104115', '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top=0, left=0, resizable'); window.focus(); } function closePopup(){ document.getElementById("popup_id").style.visibility = "hidden"; document.getElementById("popup_id").style.display = "none"; if(PopClose==1){ closePopupBack(); window.focus(); } if(time_sess>0){ var date_exp = new Date(); date_exp.setTime(date_exp.getTime()+(time_sess*3600*1000)); SetCookie ("mandi_smlpop_cook74", 1, date_exp, "/", null, false); }else{ SetCookie ("mandi_smlpop_cook74", 1, null, "/", null, false); } } function PosMouse(e){ if(document.getElementById && document.all){ // Navigateur IE var get_scrollTop = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop; var get_scrollLeft = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft; abs = event.x+get_scrollLeft; ord = event.y+get_scrollTop; }else if (document.getElementById){ // Navigateur NS 6+ abs = e.pageX; ord = e.pageY; } if(click && document.getElementById){ popupLeft = abs-abscisse; popupTop = ord-ordonne; document.getElementById("popup_id").style.left = popupLeft + 'px'; document.getElementById("popup_id").style.top = popupTop + 'px'; } } function getCookieVal(offset){ var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function 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 getCookieVal(j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return 0; } function SetCookie (name, value, expires, path, domain, secure) { var argv = SetCookie.arguments; var argc = 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 get_WindowHeight(){ if(typeof window.innerHeight == "number"){ WindowHeight = window.innerHeight; if(window.scrollMaxX > 0) WindowHeight -= 17; return WindowHeight; }else if(document.documentElement.clientHeight) return document.documentElement.clientHeight; else if(typeof document.body.clientHeight == 'number') return document.body.clientHeight; } function get_WindowWidth(){ if(typeof window.innerWidth == "number"){ WindowWidth = window.innerWidth; if(window.scrollMaxY > 0) WindowWidth -= 17; return WindowWidth; }else if(document.documentElement.clientWidth) return document.documentElement.clientWidth; else if(document.body && document.body.clientWidth) return document.body.clientWidth; } function PopMove(){ axX = get_WindowHeight(); axY = get_WindowWidth(); if(document.getElementById('sml_popup_vvx').offsetTop){ if(document.getElementById('sml_popup_vvx').offsetTop>0 && document.getElementById('sml_popup_vvx').offsetTop<1500) axX = (document.getElementById('sml_popup_vvx').offsetTop); axY = (document.getElementById('sml_popup_vvx').offsetLeft); } if(popupTop == 0) popupTop=Math.round((axX-popupHeight) / 2)-10; if(popupLeft == 0){ popupLeft=Math.round((axY-popupWidth) / 2); if(popupTop>1000) popupTop=150; } document.getElementById('popup_id').style.left = popupLeft + 'px'; document.getElementById('popup_id').style.top = popupTop + 'px'; axX = get_WindowHeight(); axY = get_WindowWidth(); } function PopSpec(){ document.getElementById("popup_id_2").style.left = (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + 'px';; document.getElementById("popup_id_2").style.top = (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + 'px'; setTimeout('PopSpec()',50); } function displayPopup(){ if (document.getElementById) { document.write(''); } } document.onmouseleave = ClickMouseUp; document.onmouseout = ClickMouseUp; if(OkCookies == 0){ if(GetCookie("mandi_smlpop_cook74") != 1){ displayPopup(); document.onmousemove = PosMouse; setTimeout('PopMove()',10); setTimeout('PopSpec()',50); } }else{ displayPopup(); document.onmousemove = PosMouse; setTimeout('PopMove()',10); setTimeout('PopSpec()',50); } if(!document.getElementById('sml_popup_vvx')){ document.write(''); }