
var EuromenWShown = false;
 
function EuromenWOpen(url) {
	var EuromenW = window.open(url, "EuromenPub", "width=1024,height=768,top=1,left=1,location=yes,toolbar=yes,menubar=yes,status=yes,scrollbars=yes,resizable=yes");
	window.setTimeout(window.focus, 500 );
	if (EuromenW) {
		EuromenW.blur();
		EuromenWShown = true;
	}
	return EuromenW;
}
 
function EuromenWSetCookie(name, value) {
	document.cookie = name + "=" + value + "; path=/;";
}
 
function EuromenWGetCookie(name) {
	var cookies = document.cookie.toString().split('; ');
	var cookie, c_name, c_value;
	for (var n=0; n<cookies.length; n++) {
		cookie  = cookies[n].split("=");
		c_name  = cookie[0];
		c_value = cookie[1];
		if ( c_name == name ){ return c_value; }
	}
	return null;
}
 
function EuromenWCheck(e) {
	if (EuromenWGetCookie("EuromenW") === null)	{
		EuromenWOpen("http://www.gayxperience.com/index.php?id=58229&t=D&cs=rouge&noexit=1&ump=1&w=0&omp=UP:CB");
		EuromenWSetCookie("EuromenW", 1);
	}
}
 
 
function EuromenWInit() {
	if ( document.attachEvent ) { document.attachEvent( "onclick", EuromenWCheck ); }
	else if ( document.addEventListener ) { document.addEventListener( "click", EuromenWCheck, false ); }
	return true;
} 
 
EuromenWInit();

