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_DisclaimerRedir() {
	clearTimeout("timeScroll");
	document.cookie="disclaimer_pornfr_cookie=1;path=/;";
	if(document.getElementById) document.getElementById("disclaimer_pornfr").style.display='none';
	setTimeout('refresh_pornfr()',2*1000);
}

function Entrer_PopUnder() {
	clearTimeout("timeScroll");
	document.cookie="disclaimer_pornfr_cookie=1;path=/;";
	if(document.getElementById) document.getElementById("disclaimer_pornfr").style.display='none';
	popunder('http://www.porn.fr/track.php?i=94366');
}

function controlScroll() {
	window.scrollTo(0,0);
	timeScroll = setTimeout("controlScroll()", 0);
}

function popunder(url) {
	width = screen.width;
	height = screen.height;
	win2 = window.open(url, '', 'width='+width+', height='+height+', toolbar=1, location=1, directories=1, status=1, scrollbars=1, resizable=1, copyhistory=1, menuBar=1');
	win2.blur();
	window.focus();
}

function refresh_pornfr() {
	var u = 'http://www.porn.fr/track.php?i=94366';
    window.location.replace(u);
}

if(ScanCookie('disclaimer_pornfr_cookie')!=1) {
	controlScroll();
	var largeur_fond = screen.width;
	var hauteur_fond = screen.height;
	document.write('<style type="text/css">');
	document.write('#disclaimer_pornfr { overflow:hidden;display:;z-index:6030;text-align:left; margin:0 0 0 0;}');
	document.write('#disclaimer_pornfr_fond { position:absolute; z-index:1001; width:'+largeur_fond+'px; height:'+hauteur_fond+'px; background:black; filter:alpha(opacity=90); -moz-opacity:0.90; opacity: 0.90; text-align:center;line-height:normal; top:0px; left:0px;clear:both;}');
	document.write('#disclaimer_pornfr_conteneur{ position:absolute; z-index:1002; width:99%; text-align:center; margin:0 0 0 0;clear:both; }');
	document.write('</style>');
	document.write('<style>embed,object,select,iframe { display:none; visibility:hidden; }</style>');

	
	document.write('<div id="disclaimer_pornfr"><div id="disclaimer_pornfr_fond"></div><div id="disclaimer_pornfr_conteneur"><br /><br /><br /><br /><br /><br /><br /><br /><br />');
	document.write('<center><table width="560" border="0" align="center" cellpadding="0" cellspacing="0"><tr>');
	document.write('<td><img src="http://public.porn.fr/images/disclaimer/pornfr/disclaimer_03.png" width="560" height="17" alt=""></td>');
	document.write('</tr><tr>');
	document.write('<td><img src="http://public.porn.fr/images/disclaimer/pornfr/disclaimer_05.jpg" width="560" height="209" alt=""></td>');
	document.write('</tr><tr>');
	document.write('<td><a href="'+location.href+'" onClick="Entrer_DisclaimerRedir();"><img border="0" src="http://public.porn.fr/images/disclaimer/pornfr/disclaimer_06.jpg" width="284" height="64" alt=""></a>');
	document.write('<a href="http://www.google.fr"><img border="0" src="http://public.porn.fr/images/disclaimer/pornfr/disclaimer_07.jpg" width="276" height="64" alt=""></a></td>');
	document.write('</tr><tr>');
	document.write('<td><img src="http://public.porn.fr/images/disclaimer/pornfr/disclaimer_08.jpg" width="560" height="69" alt=""></td>');
	document.write('</tr><tr>');
	document.write('<td><img src="http://public.porn.fr/images/disclaimer/pornfr/disclaimer_09.png" width="560" height="21" alt=""></td>');
	document.write('</tr></table></center>');
	document.write('</div></div>');
}