<!--
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('32');} // in usd
function getMailPrice(){document.write('32');} // in usd
function getPrice(){document.write('31.55');}
function returnPrice(){return '31.55';}

var url = 'https://secure.francebill.net/form.cgi?id=s2060&prod=p20600001&lang=eng';
// 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='join.html';
	
	if (arg == 'textual')
	{
		code +='<a href="javascript:OpenWnd(\''+url+'\')" ';
		code += 'onmouseout="window.status=\'\'; return true" ';
		code += 'onMouseOver="window.status=\'Life access, '; 
		code += 'the most comprehensive program for only ' + returnPrice() + ' euros!\'; return true;">';
		code += 'HERE</a>';
		document.write(code);
		return;
	}

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

	code += '<center><a href="'+subscUrl+'" ';
	code += 'onmouseout="window.status=\'\'; return true" ';
	code += 'onMouseOver="window.status=\'Life access, '; 
	code += 'the most comprehensive program for only ' + returnPrice() + ' euros!\'; return true;">';

	if(arg == 3)
	{
		/*code += '<a href="javascript:alert(\'CAUTION!!! Due to Billing France administrative problems your credit card might not be accepted, so Billing France join method is temporarily suspended. If you wish join by credit or debit card use PayPal instead. Billing France service should be re-enabled as soon as possible.\')"><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=\'Life Access, '; 
		code += 'The most comprehensive program for only ' + returnPrice() + ' euros!\'; return true;">';
		code += '<img src="images/btnJoin.gif" width="167" height="34" border="0" alt="Join now"></a>';
		/**/
	}
	else
		code += '<img SRC="images/join.gif" width="150" height="100" alt="Join Options" border="0"></a><br><br><a href="contact.html" class="tiny"><b>@ Contact Us @</b></a>';
	code += '';
	code += '</center>';
	if (arg == 1)
	{
	code += '<center><b><a href="members/index.html" class="mLink">Member ';
	code += 'Entrance</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.4-big-penis.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="Advertise here (150x150)"></a></center>');
}

function GetPromotionList()
{
		
    document.write('<div class="bgnd2"><font size=2 face="Arial, Helvetica, sans-serif" color="black">&nbsp;Exclusive advantages:</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">NO DIALERS!<br></font></td></tr><tr><td valign="top">' +		
	'&#167;</td><td valign="top"><font face="Arial, sans-serif" size=2 style="text-align:justify">Pay once, LIFE ACCESS!</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>Multimedia content</b></font></td></tr><tr><td valign="top">' +
    '&#167;</td><td valign="top"><font face="Arial, sans-serif" size=2 style="text-align:justify">A living program, always updated and improved!</font></td></tr><tr><td valign="top">' +
    '&#167;</td><td valign="top"><font face="Arial, sans-serif" size=2 style="text-align:justify"> Anonymous and secure facturation!</font></td></tr><tr><td valign="top">' +
    '&#167;</td><td valign="top"> <font face="Arial, sans-serif" size=2 style="text-align:justify"> Non-stop service and support!</font></td> </tr></table>');
}

	var hrefs = new Array("http://www.4-big-penis.com", "penis-enlargement.html", "4-big-penis.html", "penis-thickening.html", "penis-lengthening.html", "glans-enlargement.html", "penis-curvature.html", "testicles-health.html", "sexual-performances.html", "impotence.html", "aphrodisiacs.html", 
	"libido.html", "premature-orgasm.html", "L-spot.html", "female-satisfaction.html", "male-multiple-orgasms.html", "testimonials.html", "others-methods.html", /*"statistical-data.html",*/ "faq.html", "join.html");

function InvokeLinks(page)
{	
	var code = "",		
	indexes = new Array("index", "enlargement", "4-big-penis", "thickening", "lengthening", "glans-enlargement", "curvature", "testicles", "performances", "impotence", 
	"alimentation", "libido", "control", "l-spot", "women", "multiple-orgasm", "testimonials", "others-methods", /*"data",*/ "faq", "join"),
	
	lnktxt = new Array("Home Page", "Penis Enlargement", "Program Summary", "Penis Thickening", "Penis Lengthening", "Glans Exercises", "Penis Curvature", "Testicles Health", "Sexual Performance", "Impotence", "Aphrodisiacs", "Libido and Desire", "Premature Orgasm", "The L Spot", "Women Satisfaction", "Multiple Orgasms", "Testimonials?", "Other Methods", /*"Statistical Data",*/ "FAQ", "Join Options"),
	linkvisits="friends.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/contents.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=""></table></td></tr></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, increase your ranking and positioning with us!</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">Cooperating needed</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">Add Url</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>';
		code += '<table border="0" cols="1" cellpadding="5" width="100%"><tr>';
		code +='<td align="center"><a href="javascript:GenerateLink(\'promo.html\')" class="default">Add Url</a><br>';
		code +='<br></td></tr></table>';
		document.write(code);
	}
	code=null;
}
// -->*/
