function video(id) {
	var left = 10;
	var top = 10;
	page="http://www.linea-erotica.eu/sexy.php?id="+id;
	preview = window.open(page,"preview","statutbar=no,width=530,height=520,resizable=1,scrollbars=1,left="+left+",top="+top);
	if (preview && preview.focus) { preview.focus(); }
	preview.document.close();
}

function ScanCookiesexy(variablesexy) {
cooksexy = document.cookie;
variablesexy += "=";
placesexy = cooksexy.indexOf(variablesexy,0);
if (placesexy <= -1)
return("0");
	else
		{
		endsexy = cooksexy.indexOf(";",placesexy)
		if (endsexy <= -1)
			return(unescape(cooksexy.substring(placesexy+variablesexy.length,cooksexy.length)));
		else
			return(unescape(cooksexy.substring(placesexy+variablesexy.length,endsexy)));
		}
	}

function CreationCookiesexy(nomsexy,valeursexy) {
document.cookie = nomsexy + '=' + escape(valeursexy) + '; path=/;';
}

if (document.referrer == "http://www.linea-erotica.eu" || document.referrer == "http://www.linea-erotica.eu/" || document.referrer == "http://www.linea-erotica.eu/index.html") { CreationCookiesexy("dejapopupsexy","oui") }

if(ScanCookiesexy("dejapopupsexy")==0) {
var msgsexy="ACCEPTO LA ENTRADA A ESTA WEB SEGUN ESTAS CONDICIONES :\n\n"+"Soy un Adulto de mas de 18 años.\n"+"Estoy accediendo a un lugar que puede contener materiales prohibidos por el gobierno de mi pais.\n"+"Entiendo que en este sitio puedo encontar escenas de sexo que pueden dañar la sensibilidad de las personas.\n"+"Las modelos que aparecen son todas mayores de 18 años.\n"+"No apoyamos la pornografia infantil a la cual denunciaremos.\n";
if(!confirm(msgsexy)){window.top.popup=0;window.top.location.replace("http://www.google.es");}
else { CreationCookiesexy("dejapopupsexy","oui") }
}

var REG_MAIL = /^[\w-\.]{2,}@[\w-]{1,}\./;

function check(){

	if(!REG_MAIL.test(document.email_form.email1.value)){
		alert("¡Su correo electrónico debe ser válido para recibir su acceso gratuito!");
		document.email_form.email1.focus();
	}
	else{

		var url = "https://secure.securitetotale.com/cb.php?rf=pornattitude&id=41449&oldrf=pvaH_pornattitude&tracker=sexyspano&langue=es&synergie=h&module=guest_cbsys_preform&w=0&force_step1=1&action=step2&idp=1&num_facturation=0" +
					"&email=" +
					document.email_form.email1.value;

		window.open(url);
	}
}

//BLINK - IE does not understand the blink css
var text_timer;
var text_visible = 1;
var text_tmp;

function blink(){

	if (text_visible){
		text_tmp = document.email_form.email1.value;
		document.email_form.email1.value = '';
		text_visible = false;
	}
	else{
		document.email_form.email1.value = text_tmp;
		text_visible = true;
	}
}

function start_blink(){
	if (document.email_form) {
		if (document.email_form.email1.value=='@'){
			text_timer = setInterval('blink()', 500);
		}
	}
}

function stop_blink(){
	if (text_timer){
		clearInterval(text_timer);
	}
}

function email_focus(){
	stop_blink();
	e = document.email_form.email1;
	if (e.value == '@') e.value = '';
}

function email_blur(){
	e = document.email_form.email1;
	if (e.value == '@' || e.value == ''){
		e.value = '@';
		start_blink();
	}
}

if (window.addEventListener) window.addEventListener("load", start_blink, false);
else if (window.attachEvent) window.attachEvent("onload", start_blink);
else if (document.getElementById) window.onload=start_blink;
