<!--
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('46');}
function getPPayNetPrice(){document.write('45');}
function getMailPrice(){document.write('45');}
function getPrice(){document.write('44,95');}
function returnPrice(){return '44,95';}

var url = 'https://secure.francebill.net/form.cgi?id=s0403&prod=p04030002&lang=ita';
// 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='iscriz.html';
	
	if (arg == 'textual')
	{
		code +='<a href="javascript:OpenWnd(\''+url+'\')" ';
		code += 'onmouseout="window.status=\'\'; return true" ';
		code += 'onMouseOver="window.status=\'Abbonamento a vita, '; 
		code += 'il programma più completo a soli ' + returnPrice() + ' euro!\'; return true;">';
		code += 'QUI</a>';
		document.write(code);
		return;
	}

	if (arg == -1)
	{
		code += '<br><center><b><a href="members/index.html" class="mLink">Entrata ';
		code += 'Membri</a></b></center>';
		code += '<center><a href="#credit" onmouseover="window.status=\'Opzioni di iscrizione\';return true;" onmouseout="window.status=\'\';return true;"><img src="images/inscript2.gif" width="150" height="100" alt="Opzioni di iscrizione" border="0"></a></center>';
		document.write(code);
		return;
	}
	if (arg == 0)
	{
		code += '<center><b><a href="members/index.html" class="mLink">Entrata Membri</a></b></center>';
	}

	code += '<center><a href="'+subscUrl+'" ';
	code += 'onmouseout="window.status=\'\'; return true" ';
	code += 'onMouseOver="window.status=\'Abbonamento a vita, '; 
	code += 'il programma più completo a soli ' + returnPrice() + ' euro!\'; return true;">';

	if(arg == 3)
	{
		/*code += '<a href="javascript:alert(\'ATTENZIONE!!! A causa di problemi amministrativi di Billing France, la vostra carta di credito potrebbe non essere accettata e pertanto gli abbonamenti via l'interfaccia Billing France sono temporaneamente sospesi. Se desiderate abbonarvi in questo modo, vogliate optare per PayPal, che accetta quasi tutte le carte di credito e di debito (e quindi anche quelle prepagate). Il servizio Billing France sarà ripreso al più presto.\')"><img src="images/btnJoin.gif" border="0" alt="Iscriversi"></a>';
		/*/
		code +='<a href="javascript:OpenCrdWnd(\''+url+'\')" ';
		code += 'onmouseout="window.status=\'\'; return true" ';
		code += 'onMouseOver="window.status=\'Abbonamento a vita, '; 
		code += 'il programma più completo a soli ' + returnPrice() + ' euro!\'; return true;">';
		code += '<img src="images/btnJoin.gif" width="167" height="34" border="0" alt="Iscriversi"></a>';
		/**/
	}
	else
		code += '<img SRC="images/inscript2.gif" width="150" height="100" alt="Opzioni di iscrizione" border="0"></a><br><font color="#003366" style="font-size:10.5pt;"><b>Formulari di abbonamento</b></font><br><img src="images/in_italiano.gif" width="70" height="20" border="0"><br><br><a href="contact.html" class="tiny"><b>@ Informazioni @</b></a>';
	code += '';
	code += '</center>';
	if (arg == 1)
	{
	code += '<center><b><a href="members/index.html" class="mLink">Entrata ';
	code += 'Membri</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.grande-pene.com/members/index.html");
}

function get150x150ads() {
	
	document.write('<center><br><a href="contact.html" target="_blank" class="menuMain"><img src="images/150pub.jpg" border="0" alt="Metti il tuo banner 150x150 qui"></a></center>');
}

/* Scade il 19 gennaio 2011 alle 22:57. Alla scadenza eliminare anche i link testuali nella pagina "impotenza"  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="468" height="60"><param name="movie" value="impo-pe-468x60.swf?clickTAG=http://www.121doc.it/impotenza.html" /><param name="quality" value="high" /><embed src="wmbanners/impo-pe-468x60.swf?clickTAG=http://www.121doc.it/impotenza.html" quality="high" type="application/x-shockwave-flash" width="468" height="60" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>*/
function get468x60Ads() {
	document.write('');
}

function GetPromotionList()
{
		
    document.write('<div class="bgnd2"><font size=2 face="Arial, Helvetica, sans-serif" color="black">&nbsp;Vantaggi esclusivi:</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">NESSUNA CONNESSIONE A PAGAMENTO!<br></font></td></tr><tr><td valign="top">' +
    '&#167;</td><td valign="top"><font face="Arial, sans-serif" size=2 style="text-align:justify">NESSUN PROGRAMMINO DA SCARICARE!<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>solo pagamento</u>, per un <b>abbonamento a vita!</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>Contenuto interattivo</b> con immagini e filmati!</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>programma vivente</b> sempre aggiornato e arricchito</font></td></tr><tr><td valign="top">' +
    '&#167;</td><td valign="top"><font face="Arial, sans-serif" size=2 style="text-align:justify">Tutto interamente <b>in italiano!</b></font></td></tr><tr><td valign="top">' +
    '&#167;</td><td valign="top"><font face="Arial, sans-serif" size=2 style="text-align:justify"> Fatturazione anonima e sicura!</font></td></tr><tr><td valign="top">' +
    '&#167;</td><td valign="top"> <font face="Arial, sans-serif" size=2 style="text-align:justify"> Servizio e assistenza non-stop!</font></td> </tr></table>');
}

	var hrefs = new Array("http://www.grande-pene.com", "svilpene.html", "penesano.html", "ingrossamento-pene.html", "allungamento-pene.html", "ingrandimento-glande.html", "curvatura-del-pene.html", "testicoli.html", "prestaz.html", "impotenza.html", "alimentazione-afrodisiaci.html", 
	"libido.html", "controllo.html", "punto-L.html", "donne.html", "multiorg.html", "test.html", "altri-metodi.html", "dati-statistici.html", "faq.html", "iscriz.html");

function InvokeLinks(page)
{	
	var code = "",		
	indexes = new Array("index", "svilpene", "contenuto", "ingrossamento-pene", "allungamento-pene", "ingrandimento-glande", "curvatura", "testicoli", "prestaz", "impotenza", 
	"alimentazione", "libido", "controllo", "puntoL", "donne", "multiorg", "test", "altri-metodi", "dati", "faq", "iscriz"),

	lnktxt = new Array("Home", "Ingrandimento Pene", "Sunto del Programma", "Ingrossamento Pene", "Allungamento Pene", "Esercizi Glande", "Curvatura del Pene", "Testicoli in Forma", "Prestazioni", "Impotenza", "Afrodisiaci", "Libido e Desiderio", "Controllo Orgasmi", "Il Punto L", "Donne", "Orgasmi Multipli", "Testimonianze?", "Altri Metodi", "Dati Statistici", "Domande Frequenti", "Opzioni di Iscrizione"),
	linkvisits="lpartners.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/contenuto.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, aumentate il vostro posizionamento sui motori di ricerca grazie al nostro sito!</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">Cercasi collaboratori</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">Aggiungi il tuo sito su grande-pene.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.seduzione-rapida.com" class="menu"><img src="wmbanners/banner3-animated.gif" width="468" height="60" border="0"><br>Perché Soddisfarla è Solo la Seconda Metà della Storia !</a>';
		code += '<table border="0" cols="1" cellpadding="5" width="100%"><tr>';
		code +='<td align="center"><a href="javascript:GenerateLink(\'promo.html\')" class="default">Aggiungi il tuo sito !</a><br>';
		code +='<br></td></tr></table>';
		document.write(code);
	}
	code=null;
}
// -->*/
