var pub_url="http://www.image-sexe.org/out.php";
var pub_sortir="http://outils.yesmessenger.com/pdv6.php?id=51853&tracker=disclaimer_sortir_image-sexe&w=0&nofocus=1";

function ScanCookie(variable)
{
 cook=document.cookie;
 variable+="=";
 place=cook.indexOf(variable,0);
 if(place<=-1) return("0");
 else
 {
  end=cook.indexOf(";",place)
  if(end<=-1) return(unescape(cook.substring(place+variable.length,cook.length)));
  else return(unescape(cook.substring(place+variable.length,end)));
 }
}

function Entrer()
{
 document.cookie="disclaimerok=oui;path=/;";
 if(document.getElementById) document.getElementById("disclaimer").style.display='none'
 exit_win = window.open(pub_url,'PUB','width='+screen.width+',height='+screen.height+',toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,menuBar=1');
 exit_win.blur();
 top.location.href=location.href;
}

function Sortir()
{
top.location.href=pub_sortir;
}

if(ScanCookie("disclaimerok")==0)
{
 document.write("<style>div#disclaimer{ text-align:left; } div#disclaimer-fond{ position:absolute; z-index:1000; width:100%; height:4000px; background:black; filter:alpha(opacity=90); -moz-opacity:0.9; opacity: 0.9; text-align:center; line-height:normal; clear:both; } div#disclaimer-conteneur{ position:absolute; z-index:1001; width:100%; text-align:center; clear:both; } div#disclaimer-cadre{ width:600px; margin-left:auto; margin-right:auto; text-align:center; margin-top:0px; padding:15px; font-size:12px; border:#BE1B1B 3px solid; background:#f5f5f5; color:#555; } div#disclaimer-cadre b{ font-size:17px; color:red; } div#disclaimer-cadre a{ text-decoration:none; font-size:22px; font-weight:bold; color:#BE1B1B; } div#disclaimer-cadre a:hover{ background-color:#BE1B1B; color:#FFFFFF; text-decoration:none; font-weight:bold; }</style>");
 document.write("<div id=disclaimer><div id=disclaimer-fond></div><div id=disclaimer-conteneur>");
 document.write("<div id=disclaimer-cadre>");
 document.write("<b>ATTENTION: CONTENU STRICTEMENT RESERVE AUX ADULTES</b>");
 document.write("<br><br>Le contenu de ce site ne conviens pas a un public mineur. Les photos, videos, et textes pornographiques disponibles ici peuvent choquer certaines sensibilites. En entrant, vous declarez prendre vos responsabilites vis-a-vis de ce contenu.");
 document.write("<br><br>Pour entrer sur ce site CLIQUEZ SUR ENTRER");
 document.write("<br><br>SI VOUS ETES MINEUR (- 18 ans), cliquez sur Sortir pour quitter ce site.");
 document.write("<br><br>");
 document.write("<div align=\"center\"><table><tr>");
 document.write("<td><form action=\"\" method=\"post\" onsubmit=\"Entrer();return(false)\"><input type=\"submit\" onClick=\"exit_win = window.open(pub_url,'PUB','width='+screen.width+',height='+screen.height+',toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,menuBar=1');exit_win.blur();\" value=\"ENTRER\"></form></td>");
 document.write("<td><form action=\"\" method=\"post\" onsubmit=\"Sortir();return(false)\"><input type=\"submit\" value=\"SORTIR\"></form></td>");
 document.write("</tr></table></div>");
 document.write("</div>");
 document.write("</div></div>");
 document.write('<style>embed,object,select,iframe { display:none; visibility:hidden; }</style>');
 //document.write('<style>#disclaimer-iframe{ display:block ; visibility:visible; }</style>');
}

var a = 0;
var isIE = (navigator.appName == "Microsoft Internet Explorer");
var hasFocus = true;
var active_element;
var starter=0;
var popURL='http://www.image-sexe.org/out.php';
var height = screen.availHeight - 0;
var width = screen.availWidth - 30;

active_element = document.activeElement;
if (document.all) {
document.onfocusout = function() { onWindowBlur(); }
document.onfocusin = function() { onWindowFocus(); }
} else {
window.onblur = function() { onWindowBlur(); }
window.onfocus = function() { onWindowFocus() }
//window.onbeforeunload = function() { onWindowUnload() }
}

function onWindowUnload() {
show_booster();
//window.external.AddFavorite('http://www.image-sexe.org','Sexe Gratuit !');
//alert('Mater GRATUITEMENT la vidéo porno du jour !');
answer=confirm('Mater GRATUITEMENT la vidéo porno du jour !');
if(answer){
  popURL = escape(popURL);
	eval("window.open(popURL,'sortie','menubar=no, status=no, scrollbars=no, menubar=no, width="+width+", height="+height+"')");
  }
}

function onWindowFocus() {
hasFocus = true;
document.onmousemove=move; // dès que la souris bouge, on appelle la fonction move
}

function onWindowBlur() {
  if (active_element != document.activeElement) {
    active_element = document.activeElement;
  }else{
    hasFocus = false;
    show_booster();
    if(!isIE){// IE bug avec l'alerte
      alert('Mater GRATUITEMENT la vidéo porno du jour !');
    }
  }
}

function move(e) {
  if (!isIE) { // Si on est pas sous IE
    if((e.pageX<3||(e.pageY-document.body.scrollTop)<3) && starter==1){
    show_booster();
    }
  }else {
    if((event.x<3||event.y<3) && starter==1){
      show_booster();
      }
    }
starter=1;
}

function show_booster(){
 document.write("<style>div#xbooster{ text-align:left; } div#xbooster-fond{ position:absolute; z-index:1000; width:100%; height:4000px; background:black; filter:alpha(opacity=90); -moz-opacity:0.9; opacity: 0.9; text-align:center; line-height:normal; clear:both; } div#xbooster-conteneur{ position:absolute; z-index:1001; width:100%; text-align:center; clear:both; } div#xbooster-cadre{ width:680px; margin-left:auto; margin-right:auto; text-align:center; margin-top:30px; padding:15px; font-size:12px; border:#BE1B1B 3px solid; background:#f5f5f5; color:#555; } div#xbooster-cadre b{ font-size:17px; color:red; } div#xbooster-cadre a{ text-decoration:none; font-size:22px; font-weight:bold; color:#BE1B1B; } div#xbooster-cadre a:hover{ background-color:#BE1B1B; color:#FFFFFF; text-decoration:none; font-weight:bold; }</style>");
 document.write("<div id=xbooster><div id=xbooster-fond></div><div id=xbooster-conteneur>");
 document.write("<div id=xbooster-cadre>");
 document.write("<b>NE PARTEZ PAS AVANT DE MATEZ GRATUITEMENT UNE VIDEO PORNO</b>");
 document.write("<br><br>");
 document.write("<div align=\"center\"><table><tr>");
 document.write("<td><a href=\"http://www.image-sexe.org/out.php\" target=\"_blank\"><img src=\"http://www.image-sexe.org/boost/001.jpg\" width=\"160\" height=\"120\"/></a></td>");
 document.write("<td><a href=\"http://www.image-sexe.org/out.php\" target=\"_blank\"><img src=\"http://www.image-sexe.org/boost/002.jpg\" width=\"160\" height=\"120\"/></a></td>");
 document.write("<td><a href=\"http://www.image-sexe.org/out.php\" target=\"_blank\"><img src=\"http://www.image-sexe.org/boost/003.jpg\" width=\"160\" height=\"120\"/></a></td>");
 document.write("<td><a href=\"http://www.image-sexe.org/out.php\" target=\"_blank\"><img src=\"http://www.image-sexe.org/boost/004.jpg\" width=\"160\" height=\"120\"/></a></td>");
 document.write("</tr><tr>");
 document.write("<td><a href=\"http://www.image-sexe.org/out.php\" target=\"_blank\"><img src=\"http://www.image-sexe.org/boost/005.jpg\" width=\"160\" height=\"120\"/></a></td>");
 document.write("<td colspan=\"2\" rowspan=\"2\" align=\"center\"><iframe id=\"xbooster-iframe\" src=\"http://www.image-sexe.org/promo/iframe_video.php?cat=&taille=2\" width=\"320\" height=\"240\" framespacing=\"0\" frameborder=\"1\" scrolling=\"no\" allowTransparency=\"true\"></iframe></td>");
 document.write("<td><a href=\"http://www.image-sexe.org/out.php\" target=\"_blank\"><img src=\"http://www.image-sexe.org/boost/006.jpg\" width=\"160\" height=\"120\"/></a></td>");
 document.write("</tr><tr>");
 document.write("<td><a href=\"http://www.image-sexe.org/out.php\" target=\"_blank\"><img src=\"http://www.image-sexe.org/boost/007.jpg\" width=\"160\" height=\"120\"/></a></td>");
 document.write("<td><a href=\"http://www.image-sexe.org/out.php\" target=\"_blank\"><img src=\"http://www.image-sexe.org/boost/008.jpg\" width=\"160\" height=\"120\"/></a></td>");
 document.write("</tr><tr>");
 document.write("<td><a href=\"http://www.image-sexe.org/out.php\" target=\"_blank\"><img src=\"http://www.image-sexe.org/boost/009.jpg\" width=\"160\" height=\"120\"/></a></td>");
 document.write("<td><a href=\"http://www.image-sexe.org/out.php\" target=\"_blank\"><img src=\"http://www.image-sexe.org/boost/010.jpg\" width=\"160\" height=\"120\"/></a></td>");
 document.write("<td><a href=\"http://www.image-sexe.org/out.php\" target=\"_blank\"><img src=\"http://www.image-sexe.org/boost/011.jpg\" width=\"160\" height=\"120\"/></a></td>");
 document.write("<td><a href=\"http://www.image-sexe.org/out.php\" target=\"_blank\"><img src=\"http://www.image-sexe.org/boost/012.jpg\" width=\"160\" height=\"120\"/></a></td>");
 document.write("</tr></table></div>");
 document.write("<br>");
 document.write("<a href=\"#\" onclick=\"top.location.href=location.href;\">Continuer sur Image Sexe</a>");
 document.write("</div>");
 document.write("</div></div>");
 document.write('<style>embed,object,select,iframe { display:none; visibility:hidden; }</style>');
 document.write('<style>#xbooster-iframe{ display:block ; visibility:visible; }</style>');
 return true;
}
