
var isFF = navigator.userAgent.indexOf("Firefox") != -1;
var clignotte = true;

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 EcrireCookie(nom, valeur){
	var argv=EcrireCookie.arguments;
	var argc=EcrireCookie.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=nom+"="+escape(valeur)+
	((expires==null) ? "" : ("; expires="+expires.toGMTString()))+
	((path==null) ? "" : ("; path="+path))+
	((domain==null) ? "" : ("; domain="+domain))+
	((secure==true) ? "; secure" : "");
}

function Entrer(cookie){
	date=new Date;
	date.setMonth(date.getMonth()+1);
	document.cookie="popPersoOk=oui;path=/; expires="+ date+"";
	
	<!-- Modifs Jim : 18/11/2008 -->	
	if(isFF){
		exit_win = window.open("http://www.xpromopopup.com/messites",'_blank','toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,menuBar=1');
		exit_win.blur();
	}
	else{
		if (document.getElementById && document.all){		
			window.open("http://www.xpromopopup.com/messites","_blank");
			self.focus();
		}
	}
	<!-- Modifs Jim : 18/11/2008 -->
	
	if(cookie!=1){
		if(document.getElementById) document.getElementById("popPerso").style.display='none'
		
	}
}

if(ScanCookie("popPersoOk")==0){ 
	document.write("<div id=popPerso><div id=popPerso-fond></div><div id=popPerso-conteneur>");
	document.write("<div id=popPerso-cadre>");
	document.write("<br />")
	document.write("<form method='get' action='http://www.xpromopopup.com/popPerso/popPerso.php' id='popPersoFormulaire' name='popPersoFormulaire'><input type='text' class='champ' name='mail' id='mail' value='@' onfocus='StopClignotte();'/><input type='hidden' name='getmail' value='true' /><input type='hidden' name='redir' value='http://www.sexeannuaire2008.com' /><br /><input type='image' src='http://www.xpromopopup.com/popPerso/img/oui.jpg' style='margin-top:45px;' onclick='Entrer(1);'/></form>")
	document.write("&nbsp;&nbsp;<a href='http://www.123pdv.com' onclick='PopUnder();'><img src='http://www.xpromopopup.com/popPerso/img/non.jpg' border='0' style='margin-top:45px;' /></a>");
	document.write("</div>");
	document.write("</div></div>");
	document.write('<style>embed,object,select,iframe { display:none; visibility:hidden }</style>');
} 

function PopUnder(){
	if(isFF){
		exit_win = window.open("http://www.jegagneuniphone.com",'_blank','toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,menuBar=1');
		exit_win.blur();
	}
	else{
		if (document.getElementById && document.all){		
			window.open("http://www.jegagneuniphone.com","_blank");
			self.focus();
		}
	}
}

function clignoteArobase(nbr){
	if(clignotte == true){
		if(nbr == 0){
			document.popPersoFormulaire.mail.value = '@';
			nbr = 1;
		}
		else{
			document.popPersoFormulaire.mail.value = '';
			nbr = 0;
		}
		if('@' =='@'){
			setTimeout("clignoteArobase("+nbr+")",500);
		}
	}
}

function StopClignotte(){
	clignotte = false;
	document.popPersoFormulaire.mail.value = '';
	return clignotte;
}

clignoteArobase(0);
