wnc_pub = "http://geobanner.alt.com/go/page/landing_page_geobanner?lang=french&pid=g936249-pct.subrencontresmeu";
wnc_type = "redirect";

function wnc_set_cookie(c_name, value, expiredays) {
	var exdate = new Date();
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie = c_name+ "=" +escape(value)+";"+((expiredays=='') ? "" : "expires="+exdate.toGMTString()+";")+"path=/;";
}

function wnc_get_cookie(c_name) {
	if (document.cookie.length > 0) {
		c_start = document.cookie.indexOf(c_name + "=");
		if (c_start != -1) {
			c_start = c_start + c_name.length+1;
			c_end = document.cookie.indexOf(";",c_start);
			if (c_end == -1) { c_end = document.cookie.length; }
			return unescape(document.cookie.substring(c_start,c_end));
		}
	}
	return "";
}

function wnc_entrer() {
	wnc_set_cookie("wnc_disclaimer_ok", "oui", 0);
    if (document.getElementById) { document.getElementById("wnc_disclaimer").style.display="none"; }
	if (document.layers) { document.wnc_disclaimer.style.display="none"; }
	if (wnc_type == "redirect") { setTimeout("wnc_redirect()",5000); }
	else if ((wnc_type == "popunder") || (wnc_type == "popover")) { wnc_popup(); }
    
}

function wnc_popup() {
	var vnc_win_options = "width="+screen.availWidth+",height="+screen.availHeight+",scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0";
	var vnc_new_win = window.open(wnc_pub,"",vnc_win_options);
    if (wnc_type == "popunder") { vnc_new_win.blur(); window.self.focus(); }
    else if (wnc_type == "popover") { window.self.blur(); vnc_new_win.flocus(); }
}

function wnc_redirect() {
	top.location.href = wnc_pub;
	return false;
}

wnc_cook = wnc_get_cookie("wnc_disclaimer_ok");
if ((wnc_cook == null) || (wnc_cook == "")) {
	wnc_theme ='<!DOCTYPE html PUBLIC "-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN" "http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd">';
wnc_theme +='<html xmlns="http:\/\/www.w3.org\/1999\/xhtml">';
wnc_theme +='<head>';
wnc_theme +='<meta http-equiv="Content-Type" content="text\/html; charset=UTF-8" \/>';
wnc_theme +='<title>Disclaimer<\/title>';
wnc_theme +='<style type="text\/css">';
wnc_theme +='html {height:100%;width:100%;margin:0;padding:0;}';
wnc_theme +='body {position:relative;height:100%;width:100%; margin:0;padding:0;}';
wnc_theme +='#wnc_disc_back{ position:fixed; z-index:10000; width:100%; background:#FFF; filter:alpha(opacity=85); -moz-opacity:0.85; opacity: 0.85; height:100%;}';
wnc_theme +='*html #wnc_disc_back { position:absolute; top:expression(documentElement.scrollTop+body.scrollTop);}';
wnc_theme +='#wnc_disc { width:550px; margin-top:-157px; margin-left:-336px; position:fixed;top:50%;left:50%;z-index:10010;border: #333 1px solid; background:#f5f5f5;padding:10px;text-align:center;font-family:Verdana, Geneva, sans-serif;font-size:12px;}';
wnc_theme +='*html #wnc_disc { position:absolute; top:expression(documentElement.scrollTop+body.scrollTop);margin-top:0; }';
wnc_theme +='#wnc_disc a{ text-decoration:none; font-size:22px; font-weight:bold; color: #636; }';
wnc_theme +='#wnc_disc a:hover{ color:blue; }';
wnc_theme +='<\/style>';
wnc_theme +='<\/head>';
wnc_theme +='<body>';
wnc_theme +='<div id="wnc_disclaimer">';
wnc_theme +='<div id="wnc_disc_back"><\/div>';
wnc_theme +='<div id="wnc_disc">';
wnc_theme +='<b style="color:#FF0000;">ATTENTION: CONTENU STRICTEMENT RESERVE AUX ADULTES<\/b> ';
wnc_theme +='<br><br>Conform&eacute;ment &agrave; la r&egrave;glementation en vigueur, ce site internet et son contenu sont exclusivement r&eacute;serv&eacute;s &agrave; un public majeur et averti.';
wnc_theme +=' En effet il contient des textes, des photos et vid&eacute;os &agrave; caract&egrave;re pornographique qui pouvent heurter la sensibilit&eacute; d\'un public mineur ou sensible.';
wnc_theme +='<br><br>En acceptant d\'entrer sur ce site, je d&eacute;clare &ecirc;tre majeur dans mon pays et remplir les conditions ci-dessus. ';
wnc_theme +='<br><br> ';
if (wnc_type == "redirect") { wnc_theme += '<a href="##URL##" onclick="wnc_entrer();" target="_blank">'; }
else { wnc_theme += '<a href="javascript:void(0);" onclick="wnc_entrer();" target="_self">'; }
wnc_theme +='ENTRER<\/a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http:\/\/www.echec-professionnel.com\/?idw=1499&ids=5\/">SORTIR<\/a> ';
wnc_theme +='<\/div>';
wnc_theme += '<img src="" alt="" style="display:none; width:0px; height:0px;" \/>';
wnc_theme +='<\/div>';
wnc_theme +='<\/body>';
wnc_theme +='<\/html>';
    wnc_theme = wnc_theme.replace(/##URL##/, location.href);
    wnc_theme = wnc_theme.replace(/##IDO##/, '244');
    wnc_theme = wnc_theme.replace(/##IDE##/, '2596294');
    document.write(wnc_theme);
}
