<!--
var online=0;
var Image1Off, Image1On, Image2Off, Image2On, Image3On, Image3Off, Image4On, Image4Off, Image5On, Image5Off, Image6On, Image6Off;
var current_img = new Image, new_img = new Image;

var 	hrefs = new Array("", "basi_seduzione.shtml", "seduzione.shtml", "spirito_seduzione.shtml", "attrazione.shtml", "soddisfazione.shtml", "falsi-miti.shtml", "estratti.shtml", "faq.html", "iscrizione.shtml");

current_img=""; new_img="";

Image1Off= new Image; Image2Off = new Image; Image3Off = new Image; Image4Off = new Image; Image5Off = new Image; Image6Off = new Image;
Image1Off.src = "images/prev.gif"; 
Image2Off.src = "images/next.gif";
Image3Off.src = "images/subsc.gif";
Image4Off.src = "images/back_samples.gif";
Image5Off.src = "images/back_samples-lt.gif";
Image6Off.src = "images/subscription.gif";

Image1On = new Image; Image2On = new Image; Image3On = new Image; Image4On = new Image; Image5On = new Image; Image6On = new Image;
Image1On.src = "images/prev_on.gif"; 
Image2On.src = "images/next_on.gif";
Image3On.src = "images/subsc_on.gif";
Image4On.src = "images/back_samples_on.gif";
Image5On.src = "images/back_samples-lt_on.gif";
Image6On.src = "images/subscription_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('40');}
//function getMailPrice(){document.write(50);}
function getMailPrice(){document.write(41);}
//function getPrice(){document.write('49.50');}
function getPrice(){document.write('39.95');}


var url = 'https://secure.francebill.net/form.cgi?id=s0702&prod=p07020003&lang=ita';

/* ----------------- 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();
		//	alert(gen);
			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 Credit(arg)
{
	/*If 
	none: do none
	0: up
	1: down
	3: btn
	*/
	var code = "";

	if (arg == 'textual')
	{
		code +='<a href="javascript:OpenWnd(\''+url+'\')" ';
		code += 'onmouseout="window.status=\'\'; return true" ';
		code += 'onMouseOver="window.status=\'Abbonamento a vita, '; 
		code += 'pagamento via Billing France tramite PostePay\'; return true;">';
		code += 'QUI</a>';
		document.write(code);
		return;
	}
	if (arg == 0)  // members prompt
	{
		code += '<center><a href="members/index.html" class="access">Membri, ';
		code += 'Entrate Qui</a></center>';
	}

	if (arg == 1) // top of page
	{
		code += '<div style="margin-top:2px"><a href="iscrizione.shtml" onmouseover="window.status=\'Opzioni di Iscrizione\';return true;" onmouseout="window.status=\'\';return true;"><img ' + 'src="images/inscript.jpg" border=0></a></div>';
		document.write(code);
		return;
	}
	if (arg == 2) //both credit and prompt
	{
		code += '<div style="margin-top:2px"><a href="iscrizione.shtml" onmouseover="window.status=\'Opzioni di Iscrizione\';return true;" onmouseout="window.status=\'\';return true;" class="menu"><img src="images/inscript.jpg">Membri, Entrate Qui</a></div>';
		document.write(code);
		return;
	}

	if(arg == 3) // link in the subscription page
	{
		/*
		code += '<center><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 carta di credito 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 nei prossimi giorni.\')"><img src="images/proceed.gif" border="0" alt="Iscriversi"></a></center>';
		/*/
		code +='<center><a href="javascript:OpenCrdWnd(\''+url+'\')" ';
		code += 'onmouseout="window.status=\'\'; return true" ';
		code += 'onMouseOver="window.status=\'Aderisci subito al programma pił completo di seduzione rapida!\'; return true;">';
		code += '<img src="images/proceed.gif" border="0" alt="Accesso carta di credito"></a></center><br>';
		/**/
	}
	if (arg == 4) // top in the subscription page
	{
		code+='<div style="margin-top:2px"><img src="images/creditcards_inactive.jpg" border=0></div>';
	}

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

function InvokeLinks(page)
{
	var code = "",
		max = 10,
		cur_img,
		indexes = new Array("index", "basised", "seduzione", "spirsed", "attrazione", "soddisfazione", "falsi-miti", "estratti", "faq", "iscrizione"),
		lnktxt = new Array("Inizio", "Basi della Seduzione", "Seduzione Rapida", "Spirito Seduzione", "Attrazione", "Soddisfazione", "Falsi Miti", "Estratti", "Domande Frequenti", "ISCRIZIONE"),
	    n, url='';

		if(online) url="http://www.seduzione-rapida.com/";

		for(i = 0; i < max; i++)
		{
			hrefs[indexes[i]] = url + hrefs[i];
			lnktxt[indexes[i]] = url + lnktxt[i];
		}		

		code = '';
		code += '<table width="95%" border=2 cellspacing=0 cellpadding=0 style="border-collapse:collapse;display:inline"><tr>' +
		'<td bgcolor="#858585">' +
		'<table border=0 cellspacing=1 cellpadding=8 cols=1 width="100%">';

	for(n = 0; n < max; n++)
	{
		if(indexes[n] != page)	curImg = "images/bgblue.gif";
		else					curImg = "images/bggreen.gif";
		
		code+='<tr><td align="center" background='+curImg+'>'+
				'<a href="' + hrefs[indexes[n]]  + '" class="menuMain2">' +
				              lnktxt[indexes[n]] + '</a></td></tr>';
	}

	code +='</table></td></tr>';
	
	if(page != 'iscrizione')
		code+='<tr><td align="center" valign="middle"><img src="images/billingfrance-ita.gif" alt="Transazioni rapide e sicure !"></td></tr>';
		
	code+='<tr><td align="center"><a href="links.html" class="notas2">Pagina dei Links</a></td></tr></table>';

	code+='<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>';

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


var 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,"","WIDTH="+resized_width+",HEIGHT=" + 
			resized_height+",left="+centerLeft+",top=0,titlebar=0,menubar=0,resizable=1,scrollbars=1," +
			"location=0,hotkeys=1,status=1,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=yes,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 GetAnnouncements()
{
	code='<div align="left" style="margin-left:3px;margin-right:3px;"><font face="verdana, sans-serif" size=1 color="#FCF7F7">' +
	'<hr><b>I vantaggi unici di questo programma :</b><hr></font></div><center>' +
	'<table cols=2 width="95%" cellspacing=0 cellpadding=2>' +
	'<tr><td valign="top"><font face="verdana" color="#FCF7F7">&#167;</font></td><td><font face="verdana, sans-serif" size=1 color="#FCF7F7"> Un solo pagamento e un accesso immediato</td></tr>' +
	'<tr><td valign="top"><font face="verdana" color="#FCF7F7">&#167;</font></td><td><font face="verdana, sans-serif" size=1 color="#FCF7F7"> Abbonamento a vita a un programma vivente</td></tr>' +
	'<tr><td valign="top"><font face="verdana" color="#FCF7F7">&#167;</font></td><td><font face="verdana, sans-serif" size=1 color="#FCF7F7"> Assistenza tecnica non stop</td></tr>' +
	'<tr><td valign="top"><font face="verdana" color="#FCF7F7">&#167;</font></td><td><font face="verdana, sans-serif" size=1 color="#FCF7F7"> Confidenzialitą assicurata</td></tr>' +
	'<tr><td valign="top"><font face="verdana" color="#FCF7F7">&#167;</font></td><td><font face="verdana, sans-serif" size=1 color="#FCF7F7"> Lista di diffusione opzionale riservata ai membri</td></tr>' +
	'</table></center></font><br>';

	document.write(code);
}


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

function GetAffiAd()
{
	document.write('<br><a href="webmasters-affiliation.shtml" onmouseover="window.status=\'Clicca qui e comincia a guadagnare !\';return true;" onmouseout="window.status=\'\';return true;"><img src="images/affiad.gif" border=0></a>');
}

function GetVisitorsLinks()
{

}

function GetFooter() 
{
	document.write("© Seduzione-Rapida.com - Tutti i Diritti Riservati");
}


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