<!--
var Image1Off, Image1On, Image2Off, Image2On;
var current_img = new Image, new_img = new Image;
var linkvisits = "liens.html";
var online=1; //This variable checks whether the page is online or not. If is, all paths will be absolute

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";


/*if (navigator.appName.substring(0,9) != "Microsoft")
	alert("ATTENTION : CE SITE UTILISE DES FONCTIONNALITÉS QUI NE SONT PAS SUPPORTÉES PAR TOUS LES NAVIGATEURS. VEUILLEZ L'OUVRIR AVEC INTERNET EXPLORER.");
*/

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('45');}
function getPrice(){document.write('44.95');}
function returnPrice(){return '44,95';}

var url = 'https://secure.francebill.net/form.cgi?id=s0477&prod=p04770002&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();
			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 = "", 
		subscrurl="inscript.html";

	if (arg == -1)
	{
		code += '<br><center><b><a href="members/index.html" class="menu">Membres, ';
		code += 'entrez ici</a></b></center>';
		code += '<center><a href="#credit" onmouseover="window.status=\'Options inscription\';return true;" onmouseout="window.status=\'\';return true;"><img SRC="images/inscript2.gif" ALT="Options inscription" BORDER="0"></a>';
		document.write(code);
		return;
	}
	if (arg == 0)
	{
		code += '<br><center><b><a href="members/index.html" class="menu">Entrée ';
		code += 'membres</a></b></center>';
	}
	code += '<center><a href="'+subscrurl+'" ';
	code += 'onmouseout="window.status=\'\'; return true" ';
	code += 'onMouseOver="window.status=\'Abonnement à vie, '; 
	code += 'le programme le plus complet à seulement ' + returnPrice() + ' euros!\'; return true;">';
	if(arg == 3)
	{
		/*
		code += '<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 l'interface de Billing France 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/btnJoin.gif" border="0" alt="Inscription"></a>';
		/*/
		code +='<a href="javascript:OpenCrdWnd(\''+url+'\')" ';
		code += 'onmouseout="window.status=\'\'; return true" ';
		code += 'onMouseOver="window.status=\'Abonnement à vie, '; 
		code += 'le programme le plus complet pour seulement ' + returnPrice() + ' euros!\'; return true;">';
		code +='<img src="images/btnJoin.gif" border="0" alt="Inscrivez-vous">';
		/**/
		
	}
	else
		code += '<img SRC="images/inscript2.gif" ALT="Options inscription" border="0">';
	code += '</a>';
	code += '</center>';
	if (arg == 1)
	{
	code += '<center><b><a href="members/index.html" class="menu">Entrée ';
	code += 'membres</a></b></center>';
	}
	document.write(code);
	code = null;
}

function get150x150ads() {
	
	document.write('<center><a href="contact.html" target="_blank" class="menuMain"><img src="images/150pub.jpg" border="0" alt="Placez votre publicité 150x150 ici"></a></center>');
}

function GetPromotionList()
{
	var code='';

	code+='<div style="position:relative; margin-left:3px;margin-right:3px;margin-top:3px;margin-bottom:3px;"><hr><table width="98%" cols=2>';
	code+='<tr><td valign="top" width="5"><font face="Verdana, Helvetica, sans-serif" color="#D9E9D8" size=2>&#167;</font></td>' +
	'<td valign="top"><font face="Verdana, Helvetica, sans-serif" color="#D9E9D8" size=1>AUCUNE CONNECTION SUPPLEMENTAIRE!</b></font></td></tr>'+
	'<tr><td valign="top" width="5"><font face="Verdana, Helvetica, sans-serif" color="#D9E9D8" size=2>&#167;</font></td>' +
	'<td valign="top"><font face="Verdana, Helvetica, sans-serif" color="#D9E9D8" size=1>AUCUN DIALER A TELECHARGER!</b></font></td></tr>'+
	'<tr><td valign="top" width="5"><font face="Verdana, Helvetica, sans-serif" color="#D9E9D8" size=2>&#167;</font></td>' +
	'<td valign="top"><font face="Verdana, Helvetica, sans-serif" color="#D9E9D8" size=1>Un <b>SEUL PAIEMENT</b> pour un <b><u>accès à vie</u>!</b></font></td></tr>'+
	'<tr><td valign="top"><font face="Verdana, Helvetica, sans-serif" color="#D9E9D8" size=2>&#167;</font></td>' +
	'<td valign="top"><font face="Verdana, Helvetica, sans-serif" color="#D9E9D8" size=1>Contenu multimédial avec des images et des vidéos</font>'+
	'<img src="images/new.gif" border=0></td></tr>'+
	'<tr><td valign="top"><font face="Verdana, Helvetica, sans-serif" color="#D9E9D8" size=2>&#167;</font></td>' +
	'<td valign="top"><font face="Verdana, Helvetica, sans-serif" color="#D9E9D8" size=1>Un <b><u>programme vivant</u></b> qui s\'enrichit jour après jour!</font></td></tr>'+
	'<tr><td valign="top"><font face="Verdana, Helvetica, sans-serif" color="#D9E9D8" size=2>&#167;</font></td>'+
	'<td valign="top"><font face="Verdana, Helvetica, sans-serif" color="#D9E9D8" size=1>Assistance technique en français et liste de diffusion optionnelle!</font></td></tr>' +
	'<tr><td valign="top"><font face="Verdana, Helvetica, sans-serif" color="#D9E9D8" size=2>&#167;</font></td>' +
	'<td valign="top"><font face="Verdana, Helvetica, sans-serif" color="#D9E9D8" size=1>Facturation totalement anonyme et confidentielle!</font></td></tr>' +
	'<tr><td valign="top"><font face="Verdana, Helvetica, sans-serif" color="#D9E9D8" size=2>&#167;</font></td>' +
	'<td valign="top"><font face="Verndana, Helvetica, sans-serif" color="#D9E9D8" size=1>Service et assistance 24 heures et 7 jours!</font></td></tr></table><hr><br>';
	code+='</div>';
	document.write(code);
	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
	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=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();		
}

// HREFS HERE ////////////////////////////////////////////////////////////
	var hrefs = new Array("", "agrandissement-penis.html", "artpenis.html", "grossissement-penis.html", "allonger-penis.html", "exercices-gland.html", "courbure-penis.html", "testicules.html", "performances-sexuelles.html", "impuissance.html", "alimentation-aphrodisiaques.html", "libido-desir.html", "controle-orgasmes.html", "point-L.html", "satisfaire-femmes.html", "orgasmes-multiples.html", "temoign.html", "autres-methodes.html", "statistiques.html", "faq.html", "inscript.html");
// HREFS HERE ////////////////////////////////////////////////////////////

function InvokeLinks(page)
{
	var code = "",
		max = hrefs.length,
		indexes = new Array("index", "agrandissement-penis", "artpenis", "grossissement-penis", "allongement-penis", "exercices-gland", "courbure-penis", "testicules", "performances-sexuelles", "impuissance", "alimentation-aphrodisiaque", "libido-desir", "controle-orgasmes", "point-L", "satisfaire-femmes", "orgasmes-multiples", "temoign", "autres-methodes", "stats", "faq", "inscript"),
		
		lnktxt = new Array("Accueil", "Agrandissement", "Contenu", "Grossissement", "Allongement", "Exercices Gland", "Courbure Pénis", "Testicules", "Performances", "Impuissance", "Aphrodisiaques", "Libido", "Orgasme précoce", "Le Point L", "Les femmes", "Multiorgasmique", "Témoignages?", "Autres méthodes?", "Notre sondage", "FAQ", "Inscription"),
	    n, url='';

		if(online) url="http://www.artpenis.com/";

		for(i = 0; i < max; i++)
		{
			hrefs[indexes[i]] = hrefs[i];
			lnktxt[indexes[i]] = lnktxt[i];
		}		

	if(page != "home")
	{
		code ='<table width="100%" border=0 cellspacing=0 cellpadding=0><tr><td align="center">';
		code+='<img src="images/contenu.gif" border=0>';
		for(n = 0; n < max; n++)
		{
			code+='<table width=150 height=32 border=0 cellpadding=0 cellspacing=0>';
			code+='<tr><td rowspan=3>';
			code+='<img src="images/mnu_01.jpg" width=27 height=32></td>';
			code+='<td><img src="images/mnu_02.jpg" width=94 height=10></td>';
			code+='<td rowspan=3><img src="images/mnu_03.jpg" width=29 height=32></td>';

			
			if (indexes[n] != page)
			{

				code+='</tr><tr><td background="images/mnu_04.gif" width=94 height=15 align="center">';				
				code+='<a href="' + hrefs[indexes[n]] + '" class="menuMain2">';
				code+=lnktxt[indexes[n]] + '</a>';
			}
			else
			{
				code+='</tr><tr><td background="images/mnu_04-b.gif" width=94 height=15 align="center">';
				code+='<a href="' + hrefs[indexes[n]] + '" class="menuMain2">';
				code+=lnktxt[indexes[n]] + '</a>';
			}
			code+='</td></tr><tr><td><img src="images/mnu_05.jpg" width=94 height=7 alt=""></td>';
			code+='</tr></table>';
		}


		code+='</table></center>';


	document.write(code);
	code=null;
	}
}

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 GenerateLink(page)
{
	window.location.href = page;
}


function GenerateFtr(n, prefix)
{
	var code="";
	if (n==1){
		code = '<table border=0 cols=2 cellpadding=5 width="80%"><tr>';
		code +='<td align="center" colspan=2><a href="javascript:GenerateLink(\'promo.html\')" class="default">Webmasters, augmentez votre positionnement dans les moteurs de recherche grâce à notre site!</a></td></tr><tr>';
		code += '<td align="left">';
		code += '<a href="javascript:GenerateLink(\'webmasters-affiliation.shtml\')" class="default">Gagnez avec nous au 45\% en vendant notre programme!</a>';
		code += '</td><td align="right">';
		code += '<a href="javascript:GenerateLink(\'affi/collab.html\')" class="default">On cherche collaborateurs</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">Webmasters, augmentez votre positionnement dans les moteurs de recherche grâce à notre site!</a><br>';
		code += '<a href="javascript:GenerateLink(\'webmasters-affiliation.shtml\')" class="default">$$$ Webmasters $$$</a>';
		code +='</td></tr></table>';
		document.write(code);
	}
	else if (n==2)
	{
		if(prefix == undefined) prefix='';
		code += '<a href="javascript:GenerateLink(\''+prefix+'termes-affiliation.html\')" class="default">Affiliation Termes et Conditions</a>';
		document.write(code);
	}
	else
	{
		code = '<a href="javascript:GenerateLink(\'webmasters-affiliation.shtml\')" class="default">$$$ Webmasters $$$</a>';
		document.write(code);
	}
	code=null;
}



// -->*/