<!--
var Image1Off, Image1On, Image2Off, Image2On;
var current_img = new Image, new_img = new Image;
var url;

current_img=""; new_img="";

Image1Off= new Image; Image2Off = new Image;
Image1Off.src = "images/prev2.gif"; 
Image2Off.src = "images/next2.gif";

Image1On = new Image; Image2On = new Image;
Image1On.src = "images/prev2_on.gif"; 
Image2On.src = "images/next2_on.gif";

function ImgUp(key) {
current_img = "img" + key;
new_img = eval("Image" + key + "On.src");
document[current_img].src = new_img;
new_img=null;
current_img="";
}

function ImgDown(key) {
current_img = "img" + key;
new_img = eval("Image" + key + "Off.src");
document[current_img].src = new_img;
new_img=null;
current_img="";
}
function getPPayPrice(){document.write('41');}
function getMailPrice(){document.write('40');}
function getPrice(){document.write('39,95');}
function returnPrice(){return '39,95';}

var url = 'https://secure.francebill.net/form.cgi?id=s0403&prod=p04030003&lang=esp';
// var myurl="index.shtml";

/* ----------------- Here's all the code involving the tracking ------------- */
	var gen = window.location.search.substring(1);

	if (document.cookie.length > 0) // the cookie exist
	{
//			The cookie will be get
//			alert("the cookie will be get");
			gen = GetCookie();
			url += '&' + gen;
	}
	else if (gen != '') 
	{//the cookie does not exist but there is a gen				
//			alert("the cookie will be set");	
			var arrgen = gen.split('=');
			var expdate = new Date ();
			expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365)); 
			SetCookie(arrgen[0], arrgen[1], expdate); 
			url += '&' + gen;
	}

/* The SetCookie function is valid also for the path, the domain and the secure arguments. It accept a variable number of arguments. This is why we use a function to set the cookie*/

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()
 {
	 var gn = unescape(document.cookie);
	 gn = gn.split(";");
	 gn = gn[0].split("=");
	 gen = gn[0]+"="+gn[1];	
	 return gen;
 }

/* ------------------------- End of the tracking code ----------------------- */

function OpenWnd(source) //never use var here
{
	var width=window.screen.width, height=window.screen.height,
	resized_width  = Math.floor(width * 80 / 100), //rounded down to int
	resized_height = Math.floor(height * 80 / 100);
	var centerLeft = (width - resized_width) / 2;	//left position to center the popup
	var centerTop  = (height - resized_height) / 4;
		OpenNewWindow = window.open(source, "title", "WIDTH="+resized_width+",HEIGHT="+resized_height+",top=0,left="		+centerLeft+",titlebar=yes,menubar=no,status=yes,resizable=yes,scrollbars=yes", true);	
		OpenNewWindow.focus();		
}

function OpenWndSized(source, width, height)
{
	width += 10;
	height += 15;
	var screenWidth = window.screen.width;
	var centerLeft = (screenWidth - width) / 2;
	OpenNewWindow = window.open(source,"","WIDTH="+width+",HEIGHT=" + height+",left="+centerLeft+",top=0,titlebar=0,menubar=0,resizable=1,scrollbars=0," + "location=0,hotkeys=0,status=0,toolbar=0,dependent=1");
		OpenNewWindow.focus();	
}

function OpenWnd2(source) //never use var here
{
		OpenNewWindow = window.open(source, "title", "WIDTH=640,HEIGHT=500,left=0,titlebar=no,status=yes,location=no,menubar=no,resizable=no,scrollbars=yes", true);	
		OpenNewWindow.focus();		
}

function OpenCrdWnd(source) //never use var here
{
	var width=window.screen.width, height=window.screen.height,
	resized_width  = Math.floor(width * 80 / 100), //rounded down to int
	resized_height = Math.floor(height * 70 / 100);
	var centerLeft = (width - resized_width) / 2;	//left position to center the popup
	OpenNewWindow = window.open(source, "title", "WIDTH="+resized_width+",HEIGHT="+resized_height+",top=0,left="+centerLeft+",location=yes,toolbar=yes,titlebar=yes,menubar=yes,status=yes,resizable=yes,scrollbars=yes", true);	
	OpenNewWindow.focus();		
}

function Credit(arg)
{
	/*If 
	none: do none
	0: up
	1: down
	3: btn
	*/
	var code = "";
	var subscUrl='inscrip.html';
	
	if (arg == 'textual')
	{
		code +='<a href="javascript:OpenWnd(\''+url+'\')" ';
		code += 'onmouseout="window.status=\'\'; return true" ';
		code += 'onMouseOver="window.status=\'Suscripción de por vida, '; 
		code += '¡el programa más completo por sólo  ' + returnPrice() + ' euros!\'; return true;">';
		code += 'AQUI</a>';
		document.write(code);
		return;
	}

	if (arg == -1)
	{
		code += '<br><center><b><a href="http://www.grande-pene.com/members/mbersesp/index.html" class="mLink">Entrada ';
		code += 'Miembros</a></b></center>';
		code += '<center><a href="#credit" onmouseover="window.status=\'Opciones de suscripción\';return true;" onmouseout="window.status=\'\';return true;"><img src="images/inscript2.gif" width="150" height="100" alt="Opciones de suscripción" border="0"></a></center>';
		document.write(code);
		return;
	}
	if (arg == 0)
	{
		code += '<center><b><a href="http://www.grande-pene.com/members/mbersesp/index.html" class="mLink">Entrada Miembros</a></b></center>';
	}

	code += '<center><a href="'+subscUrl+'" ';
	code += 'onmouseout="window.status=\'\'; return true" ';
	code += 'onMouseOver="window.status=\'Suscripción de por vida, '; 
	code += '¡el programa más completo por sólo ' + returnPrice() + ' euros!\'; return true;">';

	if(arg == 3)
	{
		/*code += '<a href="javascript:alert(\'¡¡¡ATENCION!!! Debido a problemas administrativos de Billing France su tarjeta de crédito pudiera no ser aceptada y por lo tanto las inscripciones via Billing France están temporalmente suspendidas. Si desea abonarse de esta manera, utilice PayPal, que acepta todas las tarjetas bancarias. El servicio Billing France reprenderá lo más pronto posible.\')"><img src="images/btnJoin.gif" border="0" alt="Inscribirse"></a>';
		/*/
		code +='<a href="javascript:OpenCrdWnd(\''+url+'\')" ';
		code += 'onmouseout="window.status=\'\'; return true" ';
		code += 'onMouseOver="window.status=\'Suscripción de por vida, '; 
		code += '¡el programa más completo por sólo ' + returnPrice() + ' euros!\'; return true;">';
		code += '<img src="images/btnJoin.gif" width="167" height="34" border="0" alt="Inscribirse"></a>';
		/**/
	}
	else
		code += '<img SRC="images/inscript2.gif" width="150" height="100" alt="Opciones de suscripción" border="0"></a><br><font color="#003366" style="font-size:10.5pt;"><b>Formularios de suscripción</b></font><br><img src="images/en_espanol.gif" width="70" height="20" border="0"><br><br><a href="contact.html" class="tiny"><b>@ Informaciones @</b></a>';
	code += '';
	code += '</center>';
	if (arg == 1)
	{
	code += '<center><b><a href="http://www.grande-pene.com/members/mbersesp/index.html" class="mLink">Entrada ';
	code += 'Miembros</a></b></center>';
	}
	document.write(code);
	code = null;
}


function validateLogin()
{
	 top.exit=false;
	top.parent.location.replace("http://" + document.loginform.username.value + ":" + document.loginform.password.value.replace("@", "%40") + "@www.pene-sano.com/members/index.html");
}

function GetPromotionList()
{
		
    document.write('<div class="bgnd2"><font size=2 face="Arial, Helvetica, sans-serif" color="black">&nbsp;Ventajas exclusivas:</font></div>'+
	
	'<div style="margin-left:5px;margin-right:5px;padding-top:10px;">' +
	'<table width="150" cols=2 cellspacing=0 cellpadding=3>' +
	'<tr><td valign="top" width="5">' +
    '&#167;</td><td valign="top"><font face="Arial, sans-serif" size=2 style="text-align:justify">¡NINGUNA CONNEXION A PAGO!<br></font></td></tr><tr><td valign="top">' +
    '&#167;</td><td valign="top"><font face="Arial, sans-serif" size=2 style="text-align:justify">¡NINGUN DIALER A DESCARGAR!<br></font></td></tr><tr><td valign="top">' +		
	'&#167;</td><td valign="top"><font face="Arial, sans-serif" size=2 style="text-align:justify">¡Un <u>sólo pago</u>, un <b>abono de por vida!</b><br></font></td></tr><tr><td valign="top">' +
    '&#167;</td><td valign="top"><font face="Arial, sans-serif" size=2 style="text-align:justify"> ¡<b>Contenido interactivo</b> con imagenes y videos!</font></td></tr><tr><td valign="top">' +
    '&#167;</td><td valign="top"><font face="Arial, sans-serif" size=2 style="text-align:justify">¡Un <b>programa viviente</b> siempre actualizado y enriquecido!</font></td></tr><tr><td valign="top">' +
    '&#167;</td><td valign="top"><font face="Arial, sans-serif" size=2 style="text-align:justify">¡Todo totalmente <b>¡en español!</b></font></td></tr><tr><td valign="top">' +
    '&#167;</td><td valign="top"><font face="Arial, sans-serif" size=2 style="text-align:justify"> ¡Facturación anónima y segura!</font></td></tr><tr><td valign="top">' +
    '&#167;</td><td valign="top"> <font face="Arial, sans-serif" size=2 style="text-align:justify"> ¡Servicio y asistencia non-stop!</font></td> </tr></table>');
}

	var hrefs = new Array("http://www.pene-sano.com", "despene.html", "pene-sano.html", "engrosamiento-pene.html", "alargamiento-pene.html", "agrandamiento-glande.html", "curvatura-del-pene.html", "testiculos.html", "rendimiento-sexual.html", "impotencia.html", "alimentacion-afrodisiacos.html", 
	"libido.html", "orgasmo-precoz.html", "punto-L.html", "satisfaccion-femenina.html", "orgasmos-multiples.html", "testimonios.html", "otros-metodos.html", //"datos-estadisticos.html", 
	"faq.html", "inscrip.html");

function InvokeLinks(page)
{	
	var code = "",		
	indexes = new Array("index", "devpene", "pene-sano", "engrosamiento-pene", "alargamiento-pene", "agrandamiento-glande", "curvatura", "testiculos", "rendimiento", "impotencia", 
	"alimentacion", "libido", "control", "punto-L", "mujeres", "multiorg", "test", "otros-metodos", //"datos", 
	"faq", "inscript"),
	lnktxt = new Array("Inicio", "Agrandamiento Pene", "Compendio Programa", "Engrosamiento Pene", "Alargamiento Pene", "Ejercicios Glande", "Curvatura del Pene", "Testículos en Forma", "Rendimiento Sexual", "Impotencia", "Afrodisíacos", "Libido y Deseo", "Orgasmo Precoz", "El Punto L", "Mujeres", "Orgasmos Múltiples", "¿ Testimonios ?", "Otros Métodos", //"Datos Estadísticos", 
	"Preguntas Frecuentes", "Opciones Suscripción"),
	linkvisits="links.html", 
	max=hrefs.length,
	n;
	
		for(i = 0; i < max; i++)
		{
			hrefs[indexes[i]] = hrefs[i];
			lnktxt[indexes[i]] = lnktxt[i];
		}


		code+='<br>';
		code+='<table width="100%"><tr><td bgcolor="#3A1413"><center><table border=0 width=150 cellspacing=0 cellpadding=0>';
		code+='<tr><td><img src="images/contenido.gif" width="150" height="18"></td></tr>';

		for(n=0; n<max; n++)
		{
			if (indexes[n] != page)
			{
				code+='<tr><td><table width="150" border="0" cellpadding="0" cellspacing="0">';
				code+='<tr><td colspan="3">';
				code+='<img src="images/mnu/mnu_01.gif" width="150" height="4"></td>';
				code+='</tr><tr><td rowspan="2">';
				code+='<img src="images/mnu/mnu_02.gif" width="14" height="21"></td>';
				code+='<td background="images/mnu/mnu_03.gif" width="122" height="19" align="center"><a href="' + hrefs[indexes[n]] + '"class="menuMain">';
				code+=lnktxt[indexes[n]] + '</a></td>';
				code+='<td rowspan=2><img src="images/mnu/mnu_04.gif" width="14" height="21"></td></tr><tr><td>';
				code+='<img src="images/mnu/mnu_05.gif" width="122" height="2" alt=""></td></tr></table></td></tr>';
			}
			else
			{
				code+='<tr><td><table width="150" border="0" cellpadding="0" cellspacing="0">';
				code+='<tr><td colspan="3">';
				code+='<img src="images/mnu/mnu-on_01.gif" width="150" height="4"></td>';
				code+='</tr><tr><td rowspan="2">';
				code+='<img src="images/mnu/mnu-on_02.gif" width="14" height="21"></td>';
				code+='<td background="images/mnu/mnu-on_03.gif" width="122" height="19" align="center"><a href="' + hrefs[indexes[n]] + '"class="menuMain">';
				code+=lnktxt[indexes[n]] + '</a></td>';
				code+='<td rowspan=2><img src="images/mnu/mnu-on_04.gif" width="14" height="21"></td></tr><tr><td>';
				code+='<img src="images/mnu/mnu-on_05.gif" width="122" height="2"></td></tr></table></td></tr>';
			}
		}
		code+='</center></table><br></td></tr></table>';

		document.write(code);
	
	code='';
}



function Go(page)
{
	window.location.href = hrefs[page];
}


function GenerateLink(page)
{
	window.location.href = page;
}

function GenerateFtr(n)
{
	var code="";
	if (n==1){
		code = '<table border="0" cols="1" cellpadding="5" width="100%"><tr>';
		code +='<td align="center"><a href="javascript:GenerateLink(\'promo.html\')" class="default">Webmasters, ¡aumenten su posicionamiento en los motores gracias a nuestro sitio!</a></td></tr><tr>';
		code += '<td align="center">';
		code += '<a href="javascript:GenerateLink(\'affi/affmain.html\')" class="default">$$$ Webmasters $$$</a>';
		code += '&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';
		code += '<a href="javascript:GenerateLink(\'affi/collab.html\')" class="default">Buscamos colaboradores</a></td>';
		code += '</tr></table><br>';
		document.write(code);
	}
	else if (n==0)
	{
		code = '<table border="0" cols="1" cellpadding="5" width="100%"><tr>';
		code +='<td align="center"><a href="javascript:GenerateLink(\'promo.html\')" class="default">Añade su sitio en pene-sano.com !</a><br>';
		//code += '<a href="javascript:GenerateLink(\'affi/affmain.html\')" class="default">Cercasi webmasters con o senza esperienza, ingaggiamo tutti!</a>';
		code +='<br></td></tr></table>';
		document.write(code);
	}
	else if(n==2)
	{
		code += '<center><a href="http://www.seduccion-rapida.com" class="menu"><img src="wmbanners/banner3-animated.gif" width="468" height="60" border="0"><br>¡ Todo el arte de seducir !</a>';
		code += '<table border="0" cols="1" cellpadding="5" width="100%"><tr>';
		code +='<td align="center"><a href="javascript:GenerateLink(\'promo.html\')" class="default">¡ Añade su sitio !</a><br>';
		code +='<br></td></tr></table>';
		document.write(code);
	}
	code=null;
}
// -->*/