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'
 
    recuppopdiscla = location.search.substring(1, location.search.length); 
		if ( recuppopdiscla == "nopop" ) {
	}
	else {
		urltopop = new Array;
		
		urltopop[0] = "http://www.videosdebeurettes.com/videos-beurettes-page-1.htm?nopop";
		urltopop[1] = "http://www.videosasiat.com/videos-asiatiques-page-1.htm?nopop";
		urltopop[2] = "http://www.videosdematures.com/videos-femmes-matures-mures.htm?nopop";
		urltopop[3] = "http://www.videos-sexe-francaises.com/amatrices-et-libertines-page-1.htm?nopop";
		urltopop[4] = "http://www.bang-teens.com/jeunes-salopes-page-1.htm?nopop";
		urltopop[5] = "http://rocco-siffredi.c-hard.com/videos-rocco-siffredi.html?nopop";
		
		randompop = Math.round(Math.random() * (urltopop.length-1));
		window.open(urltopop[randompop],"under",'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600');
	}

 
// top.location.href=location.href;
}

if(ScanCookie("disclaimerok")==0)
{
 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 &agrave; un public mineur. Les photos, vid&eacute;os, et textes pornographiques disponibles ici peuvent choquer certaines sensibilit&eacute;s. En entrant, vous d&eacute;clarez prendre vos responsabilit&eacute;s vis-&agrave;-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("<a href='#' onclick='Entrer(); window.focus();'>ENTRER</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href='http://www.blagues-cochonnes.com/index.php?login=147015&a=0&tca=d_pornahard'>Sortir</a>");
 document.write("</div>");
 document.write("</div></div>");
 document.write('<style>embed,object,select,iframe { display:none; visibility:hidden }</style>');
}

function mark(title, url){
	if (document.all){
		window.external.AddFavorite(url, title);
	} 
	else {
		if (window.sidebar) {
		window.sidebar.addPanel(title, url, "");
		}
	}
}

/*
   Video PopUp
*/	
function video(url)
{
	winwidth = screen.availWidth - 10;
	winheight = screen.availHeight - 30;
	window.open(url, '_blank', 'scrollbars=yes, width=' + winwidth + ', height=' + winheight + ', top=0, left=0, resizable');
} 

/* 
  KTU Iframe
*/

function affiche_ktu(g, id, mode, prod, skin, lg, tracker, width, height)
{
  var Param= new Array();
	Param['id'] = id;
	Param['tracker'] = tracker;
	Param['color'] = skin;
	Param['mode'] = mode;
	Param['prod'] = prod;
	Param['dist'] = '';
	Param['lg'] = lg;
	if(g == 'hetero')
	{
	   Param['id_site'] = '1007';
	   Param['id_produit'] = '343';
	   Param['rf'] = 'pornattiudeFR_ktu';
	   Param['name_kit'] = "Pornattitude";
	   Param['synergie'] = 'h';
	}
	else
	{
	   Param['id_site'] = '1011';
	   Param['id_produit'] = '344';
	   Param['rf'] = 'gayxperienceFR_ktu';
	   Param['name_kit'] = "GayXperience";
	   Param['synergie'] = 'g';
	}
  var ktuPath="";
	var tmp_link = "http://ktu.sv2.biz/iframe.html";
	
	for (param in Param) 
	   {
		  glue = tmp_link.indexOf('?') == -1 ? '?' : '&';
		  tmp_link += glue+param+'='+Param[param];
	   }
  document.write('<iframe src="' + tmp_link +'" name="IFRAME_MICRO" width="' + width + '" height="' + height + '" scrolling="no" frameborder="0"></iframe>'); 
}

function pop(url,lg,idkit,syn) 
{
  var left = (screen.width/2)-240; // On retire la moitié de 'width'
	var top = (screen.height/2)-185; // On retire la moitié de 'height'
	mp = window.open(url+'?idkit='+idkit+'&lg='+lg+'&synergie='+syn,'mp', 'statutbar=no, width=480, height=370, left='+left+', top='+top+', menubar=no, resize=yes, scrollbars=yes');
  if (mp && mp.focus) mp.focus();
}
