var cookieinfo

function CookieExist(CookieName) {

	cookieinfo = document.cookie;

	if (cookieinfo.indexOf(CookieName) == -1) {

		return false;

	}

	else {

		return true;

	}

}



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 GetCookie(CookieName) {

	if ( CookieExist(CookieName) ){

		d = cookieinfo.indexOf(CookieName) + CookieName.length + 1;

		f = cookieinfo.indexOf(";",d);

		if ( f == -1) {

			f = cookieinfo.length;

		}

		return (cookieinfo.substring(d,f));

	}

	else {

		return ("0");

}

}

if (GetCookie("OKadulte1")!=1) 

{

okoupas=confirm("*********** ATTENTION WARNING !  *********** \n YOU ENTER ON AN ADULT WEBSITE.\n IT IS STRICTLY FORBIDDEN IF YOU ARE UNDER 18 YEARS AND IT IS NOT RECOMMENDED FOR SENSITIVE PEOPLE.  IF YOU ARE IN ONE OF THESE CASES WE ASK YOU TO LEAVE THIS SITE IMMEDIATELY.  YOU JUST HAVE TO CLICK ON * CANCEL *.");

var pathname=location.pathname;
var myDomain=pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var date_exp = new Date();
date_exp.setTime(date_exp.getTime()+(2*24*3600*1000));

if (okoupas==false){
SetCookie("OKadulte1","1",date_exp,"/",".druuna.net");

//document.location="http://liens.druuna.net/trafficmanager.htm";
//document.location="http://rotations.spacash.com/?rot=2356601&account=druuna&rev=yes&track=avertissement";
//document.location="http://66.115.173.17/popup/?c=1&trial=1&join=0&track=avertissement&account=druuna&tour=1&lang=us&type=8&rev=yes";
//document.location="https://secure.securitetotale.com/cb.php?rf=pornattitude&id=11861&oldrf=pvaH_pornattitude&tracker=avert";
//document.location="http://media-zvip.carpediem.fr/promo_us/pdv-cb/003/index.html?id=11861";
//document.location="http://media.carpediem.fr/promo_us/gratuit/hard/001/?w=0&id=11861&tracker=avert-us-link.druuna.net";
//document.location="http://promo.eurolive.com/pdv/html//hetero/general/en/index.html?id=11861&tracker=euroliveaverten&site_url=home&id_hote=0";
document.location="http://pointsg.saxodvd.com/page/pdvs.html?type=pdv&synergie_pdv=hetero&numero_pdv=random&langue_pdv=us&id=11861&e=1&w=0&tracker=avert_en&mode=html";
//document.location="http://clicks.toteme.com/?s=28837&p=1&pp=1";
//document.location="http://clicks.toteme.com/?s=28837&p=7&pp=1";
//document.location="http://www.sexyavenue.com/show/index.php?comfrom=10417&lang=L1";
//document.location="http://action.metaffiliation.com/suivi.php?proc=226&site=1868&act=2&redir=http%3A%2F%2Fwww.a-bd.com%2Findex_adult_en.htm";
//document.location="http://druuna.hot-cell.com/index.php?confirm=1";
//document.location="http://www.sexyavenue.com/show/index.php?comfrom=10417&lang=L1";
}

else {

SetCookie("OKadulte1","1",date_exp,"/",".druuna.net");
}

}

