var stylename = "pp_vistafc";var textname = ' Films XxX HOT';
var popupDisplayTime = 360; // en seconde
var popupDelayMax = 0;
var popupDelay = 0;
var popupHiTimeout = 0;
var popupMvTimeout = 0;
var WindowHeight = 0;
var WindowWidth = 0;
var popupDelayMax = 140;
var pathUrl = "http://www.vos-videos-x.com/promo/infopop/";
var popupUrl = pathUrl + "frame.php?formule=21&tracker1=filmxsexe&tracker2=infoaleatoirepdv1&pdv=1&id_webmaster=75&id_promo=104124"
var iframeSource = '';
var popupTop = 0;
var time_sess = 0;
var OkCookies = 1;
var PopClose = 1;
var ipWidth = 335;
var ipHeight = 147;
function closeInfoPopupBack(){
winwidth = screen.availWidth - 10;
winheight = screen.availHeight - 30;
window.open('http://www.vos-videos-x.com/abonnement/cb_check.php?formule=21&tracker1=filmxsexe&tracker2=infoaleatoirepdv1&pdv=1&id_webmaster=75&id_promo=104124', '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top=0, left=0, resizable');
}
function initInfoPopup(){
popupDelay = popupDelayMax;
popupTop = parseInt(document.getElementById('IPoPSMVVX2').style.top);
if(popupTop > 0)
document.getElementById('IPoPSMVVX2').style.top = (popupTop - 5) + 'px';
}
function showInfoPopup(){
if(document.getElementById('IPoPSMVVX1').style.visibility == "hidden")
document.getElementById('IPoPSMVVX1').style.visibility = "visible";
if(popupDelay > 0){
popupDelay = popupDelay - 1;
document.getElementById('IPoPSMVVX2').style.top = popupDelay + "px";
popupShTimeout = window.setTimeout('showInfoPopup()', 3);
}else{
window.clearTimeout(popupShTimeout);
window.setTimeout('hideInfoPopup()', popupDisplayTime * 1000);
}
}
function hideInfoPopup(){
if(popupDelay < popupDelayMax){
popupDelay = popupDelay + 1;
document.getElementById('IPoPSMVVX2').style.top = popupDelay + "px";
popupHiTimeout = window.setTimeout('hideInfoPopup()', 3);
}else{
window.clearTimeout(popupHiTimeout);
document.getElementById('IPoPSMVVX1').style.visibility = "hidden";
document.getElementById('IPoPSMVVX2').style.top = -10 + 'px';
}
}
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('IPoPSMVVX1').style.display='block';
document.getElementById('IPoPSMVVX1').style.top = ( get_scrollTop + get_WindowHeight() - ipHeight ) + 'px';
document.getElementById('IPoPSMVVX1').style.left = ( get_scrollLeft + get_WindowWidth() - ipWidth - 10 ) + 'px';
popupMvTimeout = window.setTimeout('moveInfoPopup()', 3);
}
function closeInfoPopup(){
document.getElementById('IPoPSMVVX1').style.visibility = "hidden";
if(PopClose==2){
closeInfoPopupBack();
window.focus();
}
if(time_sess>0){
var date_exp = new Date();
date_exp.setTime(date_exp.getTime()+(time_sess*3600*1000));
SetCookie ("IPMANDIcook", 1, date_exp, "/", null, false);
}else{
SetCookie ("IPMANDIcook", 1, null, "/", null, false);
}
}
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 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) {
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 displayInfoPopup(){
document.write('
'); // overflow:hidden;
document.write('
');
if(stylename=="pp_xp"){
document.write('
');
document.write(' ');
document.write(' | ' + textname + ' | ');
document.write('  | ');
document.write('
');
document.write(' ');
document.write(' ');
document.write(' ');
document.write(' ');
document.write(' | | ');
document.write(' ' + iframeSource + ' | ');
document.write(' ');
document.write(' ');
document.write(' | ');
document.write('
');
document.write('
');
}
if(stylename=="pp_vistafc"){
document.write('
');
document.write(' ');
document.write(' | ' + textname + ' | ');
document.write('  | ');
document.write('
');
document.write(' ');
document.write(' ');
document.write(' ');
document.write(' ');
document.write(' | | ');
document.write(' ' + iframeSource + ' | ');
document.write(' ');
document.write(' ');
document.write(' | ');
document.write('
');
document.write('
');
}
if(stylename=="pp_vistacl"){
document.write('
');
document.write(' ');
document.write(' | ' + textname + ' | ');
document.write('  | ');
document.write('
');
document.write(' ');
document.write(' ');
document.write(' ');
document.write(' ');
document.write(' | | ');
document.write(' ' + iframeSource + ' | ');
document.write(' ');
document.write(' ');
document.write(' | ');
document.write('
');
document.write('
');
}
if(stylename=="pp_mdblue"){
document.write('
');
document.write(' ');
document.write(' | ' + textname + ' | ');
document.write('  | ');
document.write('
');
document.write(' ');
document.write(' ');
document.write(' ');
document.write(' ');
document.write(' | ');
document.write(' ' + iframeSource + ' | ');
document.write(' ');
document.write(' ');
document.write(' | ');
document.write('
');
document.write('
');
}
if(stylename=="pp_mdblack"){
document.write('
');
document.write(' ');
document.write(' | ' + textname + ' | ');
document.write('  | ');
document.write('
');
document.write(' ');
document.write(' ');
document.write(' ');
document.write(' ');
document.write(' | ');
document.write(' ' + iframeSource + ' | ');
document.write(' ');
document.write(' ');
document.write(' | ');
document.write('
');
document.write('
');
}
document.write('
');
initInfoPopup();
showInfoPopup();
moveInfoPopup();
}
if(OkCookies == 1){
if(GetCookie("IPMANDIcook") != 1){
displayInfoPopup();
}
}else{
displayInfoPopup();
}