<!--
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("", "bases_seduction.shtml", "seduction.shtml", "esprit_seduction.shtml", "attraction.shtml", "satisfaction.shtml", "faux-mythes.shtml", "extraits.shtml", "faq.html", "inscription.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 getMailPrice(){document.write('50');}
function getPrice(){document.write('49.50');}

var url = 'https://secure.francebill.net/form.cgi?id=s0726&prod=p07260001&lang=fra';

/* ----------------- 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 = "";
	var flag = 0;
	if(flag==1)
	{
		document.write("Les inscriptions sont temporairement suspendues jusqu'à la moitié de mai");
		return;
	}
	if (arg == 0)  // members prompt
	{
		code += '<center><a href="members/index.html" class="access">Membres, ';
		code += 'Entrez Ici</a></center>';
	}

	if (arg == 1) // top of page
	{
		code += '<div style="margin-top:2px"><a href="inscription.shtml" onmouseover="window.status=\'Options Inscription\';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="inscription.shtml" onmouseover="window.status=\'Options Inscription\';return true;" onmouseout="window.status=\'\';return true;" class="menu"><img src="images/inscript.jpg">Membres, Entrez Ici</a></div>';
		document.write(code);
		return;
	}

	if(arg == 3) // link in the subscription page
	{
		/*code += '<center><a href="javascript:alert(\'ATTENTION!!! A cause de problèmes administratifs de Billing France, votre carte bancaire pourrait ne pas être acceptée, par conséquent les abonnements par carte de crédit sont temporairement suspendus. Si vous désirez vous abonner de cette façon, veuillez utiliser le service PayPal, qui accepte toutes les cartes de crédit et de débit (ainsi que toutes les cartes prépayées) Le service Billing France sera repris aussitôt que possible.\')"><img src="images/proceed.gif" border="0" alt="Inscription"></a></center>';
		/*/
		code +='<center><a href="javascript:OpenCrdWnd(\''+url+'\')" ';
		code += 'onmouseout="window.status=\'\'; return true" ';
		code += 'onMouseOver="window.status=\'Abonnez-vous tout de suite au programme le plus complet de séduction rapide !\'; return true;">';
		code += '<img src="images/proceed.gif" border="0" alt="Accès carte de crédit"></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", "bases", "seduction", "esprit", "attraction", "satisfaction", "faux-mythes", "extraits", "faq", "inscription"),
		lnktxt = new Array("Début", "Bases Séduction", "Séduction Rapide", "Esprit Séduction", "Nature Attraction", "Satisfaction", "Les Faux Mythes", "Extraits", "FAQ", "<b>INSCRIPTION</b>"),
	    n, url='';

		if(online) url="http://www.seduction-rapide.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.gif" alt="Transactions rapides et sécuritaires !"></td></tr>';
		
	code+='<tr><td align="center">  <a href="liens.html" class="notas2">Page des Liens</a></td></tr></table>&nbsp;';

	code+='<center><br><a href="contact.html" target="_blank" class="menuMain"><img src="images/150pub.jpg" border="0" alt="Placez votre publicité 150x150 ici"></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 OpenFixed(source, width, height) {
	origX = Math.floor(window.screen.width * 50 / 100) - width/2;
	origY = Math.floor(window.screen.height * 50 / 100) - height/2;
	var OpenNewWindow = window.open(source, "title", "WIDTH="+width+",HEIGHT="+height+",top="+origY+",left="+origX+",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 GetAnnouncements()
{
	code='<div align="left" style="margin-left:3px;margin-right:3px;"><font face="verdana, sans-serif" size=1 color="#FCF7F7">' +
	'<hr><b>Les avantages de ce programme :</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 seul paiement et un accès immédiat</td></tr>' +
	'<tr><td valign="top"><font face="verdana" color="#FCF7F7">&#167;</font></td><td><font face="verdana, sans-serif" size=1 color="#FCF7F7"> Abbonement à vie à un programme vivant</td></tr>' +
	'<tr><td valign="top"><font face="verdana" color="#FCF7F7">&#167;</font></td><td><font face="verdana, sans-serif" size=1 color="#FCF7F7"> Assistance technique 24/7 illimitée</td></tr>' +
	'<tr><td valign="top"><font face="verdana" color="#FCF7F7">&#167;</font></td><td><font face="verdana, sans-serif" size=1 color="#FCF7F7"> Discrétion assurée</td></tr>' +
	'<tr><td valign="top"><font face="verdana" color="#FCF7F7">&#167;</font></td><td><font face="verdana, sans-serif" size=1 color="#FCF7F7"> Liste de diffusion optionnelle réservée aux membres</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=\'Cliquez ici et commencez à gagner !\';return true;" onmouseout="window.status=\'\';return true;"><img src="images/affiad.gif" border=0></a>');
}

function GetVisitorsLinks()
{

}

function GetFooter() 
{
	document.write("© Séduction-Rapide.com - Tous Droits Réservés");
}


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


