/*******************************************************************************
 ***	VARIABLES
 ******************************************************************************/
var payments	= Array();
payments[0]		= Array();	payments[0]['type']	= "ppm";	payments[0]['name']	= "Telephone";		payments[0]['deny']	= "";
//payments[1]		= Array();	payments[1]['type']	= "cc";		payments[1]['name']	= "Membership";		payments[1]['deny']	= "";
//payments[1]		= Array();	payments[1]['type']	= "eud";	payments[1]['name']	= "EU Debit Card";	payments[1]['deny']	= "";
//payments[3]		= Array();	payments[3]['type']	= "fas";	payments[3]['name']	= "Fasterpay";		payments[3]['deny']	= Array( "NL", "DE"	);
//payments[4]		= Array();	payments[4]['type']	= "deb";	payments[4]['name']	= "E-banking";		payments[4]['deny']	= Array( "NL", "DE"	);
//payments[5]		= Array();	payments[5]['type']	= "mrc";	payments[4]['name']	= "Mister Cash";	payments[5]['deny']	= Array( "NL", "DE"	);

var languages	= Array();
languages[0]	= Array( "en",	"English"		);
languages[1]	= Array( "nl",	"Nederlands"	);
languages[2]	= Array( "de",	"Deutsch"		);
languages[3]	= Array( "es",	"Espa&#241;ol"	);

var text						= Array();
////////////////////////////////////////////////////////////////////////////////
////  EN
////////////////////////////////////////////////////////////////////////////////
text['en']						= Array();
text['en']['txt_dvd_link']		= "Buy the DVD here";
text['en']['txt_dwl_link']		= "Buy the Download here";
text['en']['txt_safe']			= "*** confidential, secure and easy payments ***";
text['en']['txt_full']			= "WATCH FULL MOVIES HERE";
text['en']['txt_top']			= "<p>JOIN US NOW AND GET FULL ACCESS TO ALL <a href='http://www.zoopassport.com/?pid=" + pid + "&nr=" + info + "' target='_blank'>ZOOPASSPORT.COM</a> SITES AND CONTENT !!</p>";
text['en']['txt_language']		= "Language:";
text['en']['txt_payment']		= "Payment:";
text['en']['txt_ppm_nopt1']		= "Important information";
text['en']['txt_ppm_nopt2']		= "This payment option is not availible for your country.<br><br> Choose another payment option to get access to our member area.";
text['en']['txt_eud_step1']		= "Access by debitcard";
text['en']['txt_eud_info1']		= "Click on the button below to visit our secure payment page.";
text['en']['txt_ppm_step1']		= "Access by phone";
text['en']['txt_ppm_info1']		= "Click on the button below to visit our secure payment page.";
text['en']['txt_ppm_step2']		= "Member login";
text['en']['txt_ppm_info2']		= "Stay connected, to keep your access. Every minute you dial gives you 1 minute access.";
text['en']['txt_login_here']	        = "<br>Existing members, click here!";
text['en']['txt_login']			= "Username:";
text['en']['txt_password']		= "Password:";
text['en']['txt_cc_step1']		= "Choose a membership:";
text['en']['txt_cc_info1']		= "<a href='" + pp_url + "' target='_blank'><span class='info'>I forgot my login data...</span></a><br><a href='" + pp_url + "' target='_blank'><span class='info'>I want to cancel my membership...</span><a>";
text['en']['txt_cc_step2']		= "Member login";

text['en']['AT']				= Array();
text['en']['AT']['txt_country']	= "Austria";
text['en']['AT']['txt_coun_sh']	= "Austrian";
text['en']['AT']['txt_bonus']	= "";
text['en']['AT']['txt_phone']	= "0930-776650";
text['en']['AT']['txt_price']	= "Costs: &euro; 1,80 p/m";

text['en']['BE']				= Array();
text['en']['BE']['txt_country']	= "Belgium";
text['en']['BE']['txt_coun_sh']	= "Belgian";
text['en']['BE']['txt_bonus']	= "*** BONUS: AFTER 10 MINUTES, 10 MINUTES FREE ***";
text['en']['BE']['txt_phone']	= "0907-07600";
text['en']['BE']['txt_costs']	= "Costs: &euro; 2,00 p/m (max 10 minuten)";

text['en']['CH']				= Array();
text['en']['CH']['txt_country']	= "Switzerland";
text['en']['CH']['txt_coun_sh']	= "Swiss";
text['en']['CH']['txt_bonus']	= "";
text['en']['CH']['txt_phone']	= "0906-090608";
text['en']['CH']['txt_costs']	= "Costs: CHF 4,23 p/m";

text['en']['ES']				= Array();
text['en']['ES']['txt_country']	= "Spain";
text['en']['ES']['txt_coun_sh']	= "Spanish";
text['en']['ES']['txt_phone']	= "803-453003";
text['en']['ES']['txt_bonus']	= "*** BONUS: AFTER 25 MINUTES, 25 MINUTES FREE ***";
text['en']['ES']['txt_costs']	= "Call Price incl.: Fixed &euro; 1.16 p / m - Mobile &euro; 1.51 per min max";

////////////////////////////////////////////////////////////////////////////////
////  NL
////////////////////////////////////////////////////////////////////////////////
text['nl']						= Array();
text['nl']['txt_dvd_link']		= "Koop de DVD hier";
text['nl']['txt_dwl_link']		= "Koop de download hier";
text['nl']['txt_safe']			= "*** vertrouwd, veilig en gemakkelijk betalen ***";
text['nl']['txt_full']			= "BEKIJK DE VOLLEDIGE FILMS";
text['nl']['txt_top']			= "<p>WORD NU LID EN KRIJG VOLLEDIGE TOEGANG TOT ALLE SITES EN CONTENT VAN <a href='http://www.zoopassport.com/?pid=" + pid + "&nr=" + info + "' target='_blank'>ZOOPASSPORT.COM</a> !!</p>";
text['nl']['txt_language']		= "Taal:";
text['nl']['txt_payment']		= "betaling:";
text['nl']['txt_ppm_nopt1']		= "Belangrijke Informatie";
text['nl']['txt_ppm_nopt2']		= "Deze betaaloptie is niet beschikbaar voor uw land.<br><br>Kiest u alstublieft een andere betaal methode om toegang te krijgen tot onze website.";
text['nl']['txt_eud_step1']		= "Toegang met een debitcard";
text['nl']['txt_eud_info1']		= "Click on the button below to visit our secure payment page.";
text['nl']['txt_ppm_step1']		= "Toegang via de telefoon";
text['nl']['txt_ppm_info1']		= "Klik op onderstaande button om naar de beveiligde betaalpagina te gaan.";
text['nl']['txt_ppm_step2']		= "Leden login";
text['nl']['txt_ppm_info2']		= "Blijf aan de lijn. De toegang wordt gestopt indien u ophangt. Voor elke minuut dat u belt krijgt u 1 minuut member toegang.";
text['nl']['txt_login_here']	        = "Bent u lid, klik hier!";
text['nl']['txt_login']			= "Gebruikersnaam:";
text['nl']['txt_password']		= "Wachtwoord:";
text['nl']['txt_cc_step1']		= "Kies een membership:";
text['nl']['txt_cc_info1']		= "<a href='" + pp_url + "' target='_blank'><span class='info'>Ik ben mijn inlog gegevens vergeten...</span></a><br><a href='" + pp_url + "' target='_blank'><span class='info'>Ik wil mijn lidmaatschap op zeggen...</span><a>";
text['nl']['txt_cc_step2']		= "Leden Login:";

text['nl']['AT']				= Array();
text['nl']['AT']['txt_bonus']	= "";
text['nl']['AT']['txt_country']	= "Oostenrijk";
text['nl']['AT']['txt_coun_sh']	= "Oostentijkse";
text['nl']['AT']['txt_phone']	= "0930-776650";
text['nl']['AT']['txt_costs']	= "Kosten: &euro; 1,80 p/m";

text['nl']['BE']				= Array();
text['nl']['BE']['txt_country']	= "Belgi&euml;";
text['nl']['BE']['txt_coun_sh']	= "Belgische";
text['nl']['BE']['txt_bonus']	= "*** BONUS: NA 10 MINUTEN, 10 MINUTEN GRATIS ***";
text['nl']['BE']['txt_phone']	= "0907-07600";
text['nl']['BE']['txt_costs']	= "Kosten: &euro; 2,00 p/m (max 10 minuten)";

text['nl']['CH']				= Array();
text['nl']['CH']['txt_country']	= "Zwitserland";
text['nl']['CH']['txt_coun_sh']	= "Zwitserse";
text['nl']['CH']['txt_bonus']	= "";
text['nl']['CH']['txt_phone']	= "0906-090608";
text['nl']['CH']['txt_costs']	= "Kosten: CHF 4,23 p/m";

text['nl']['ES']				= Array();
text['nl']['ES']['txt_country']	= "Spanje";
text['nl']['ES']['txt_coun_sh']	= "Spaanse";
text['nl']['ES']['txt_bonus']	= "*** BONUS: NA 25 MINUTEN, 25 MINUTEN GRATIS ***";
text['nl']['ES']['txt_phone']	= "803-453003";
text['nl']['ES']['txt_costs']	= "Kosten: Vaste lijn maximaal &euro; 1,16 p/m<br>Mobile netwerk maximaal &euro; 1,51 p/m";

////////////////////////////////////////////////////////////////////////////////
////  DE
////////////////////////////////////////////////////////////////////////////////
text['de']						= Array();
text['de']['txt_dvd_link']		= "Kaufen Sie die DVD hier";
text['de']['txt_dwl_link']		= "Kaufen Sie die Download hier";
text['de']['txt_safe']			= "*** ertraulich, sicher und bequem bezahlen ***";
text['de']['txt_full']			= "DAS GANZE VIDEO JETZT SEHEN";
text['de']['txt_top']			= "<p>TRETEN SIE EIN UND ERHALTEN SIE ZUGRIFF AUF ALLE <a href='http://www.zoopassport.com/?pid=" + pid + "&nr=" + info + "' target='_blank'>ZOOPASSPORT.COM</a> SEITEN UND INHALTE !!</p>";
text['de']['txt_language']		= "Sprache:";
text['de']['txt_payment']		= "Zahlung";
text['de']['txt_ppm_nopt1']		= "Wichtige Informationen";
text['de']['txt_ppm_nopt2']		= "Diese Zahlungsmethode ist f&#252;r Ihr Land nicht verf&#252;gbar.<br><br>W&#228;hlen Sie eine andere Zahlungsm&#246;glichkeit, den Zugang zu unserem Member-Bereich zu erhalten.";
text['de']['txt_eud_step1']		= "Zugang mit einer EC-Karte";
text['de']['txt_eud_info1']		= "Click on the button below to visit our secure payment page.";
text['de']['txt_ppm_step1']		= "Zugang per Telefon";
text['de']['txt_ppm_info1']		= "Klicken Sie auf den Button und besuchen Sie unsere sichere Zahlungsabwicklung Seite";
text['de']['txt_ppm_step2']		= "Mitglied Login";
text['de']['txt_ppm_info2']		= "Halten Sie die Verbindung um Zugang zu bekommen. Every minute you dial gives you 1 minute access.";
text['de']['txt_login_here']	= "<br>Bestehende Mitglieder, klicken Sie hier!";
text['de']['txt_login']			= "Benutzername:";
text['de']['txt_password']		= "Kennwort:";
text['de']['txt_cc_step1']		= "W&#228hlen Sie eine Mitgliedschaft:";
text['de']['txt_cc_info1']		= "<a href='" + pp_url + "' target='_blank'><span class='info'>Ich habe meine Zugangsdaten vergessen...</span></a><br><a href='" + pp_url + "' target='_blank'><span class='info'>Ich m&#246chte meine Mitgliedschaft k&#252ndigen...</span><a>";
text['de']['txt_cc_step2']		= "Mitglied Login";

text['de']['AT']				= Array();
text['de']['AT']['txt_bonus']	= "";
text['de']['AT']['txt_country']	= "&Ouml;sterreich";
text['de']['AT']['txt_coun_sh']	= "&Ouml;sterreicher";
text['de']['AT']['txt_phone']	= "0930-776650";
text['de']['AT']['txt_costs']	= "Preis: &euro; 1,80 p/m";

text['de']['BE']				= Array();
text['de']['BE']['txt_country']	= "Belgien";
text['de']['BE']['txt_coun_sh']	= "Belgier";
text['de']['BE']['txt_bonus']	= "*** BONUS: NACH 10 MINUTEN, 10 MINUTEN KOSTENLOS ***";
text['de']['BE']['txt_phone']	= "0907-07600";
text['de']['BE']['txt_costs']	= "Preis: &euro; 2,00 p/m (max 10 minuten)";

text['de']['CH']				= Array();
text['de']['CH']['txt_country']	= "Schweiz";
text['de']['CH']['txt_coun_sh']	= "Schweizer";
text['de']['CH']['txt_bonus']	= "";
text['de']['CH']['txt_phone']	= "0906-090608";
text['de']['CH']['txt_costs']	= "Preis: CHF 4,23 p/m";

text['de']['ES']				= Array();
text['de']['ES']['txt_country']	= "Spanien";
text['de']['ES']['txt_coun_sh']	= "Spanisch";
text['de']['ES']['txt_bonus']	= "*** BONUS: NACH 25 MINUTEN, 25 MINUTEN KOSTENLOS ***";
text['de']['ES']['txt_phone']	= "803-453003";
text['de']['ES']['txt_costs']	= "Preis inkl. gesetzl.: &euro; Fixed 1,16 p/m - Mobile &euro; 1,51 p/m max";

////////////////////////////////////////////////////////////////////////////////
////  ES
////////////////////////////////////////////////////////////////////////////////
text['es']				= Array();
text['es']['txt_dvd_link']		= "Compra el DVD aqu&#237;";
text['es']['txt_dwl_link']		= "Comprar Descargar aqu&#237;";
text['es']['txt_safe']			= "*** los pagos de manera confidencial y segura ***";
text['es']['txt_full']			= "MIRE LA PELICULA COMPLETA";
text['es']['txt_top']			= "<p>EBTRA Y TENER ACCESO A TODOS LOS SITIOS Y CONTENIDO <a href='http://www.zoopassport.com/?pid=" + pid + "&nr=" + info + "' target='_blank'>ZOOPASSPORT.COM</a> !!</p>";
text['es']['txt_language']		= "Idioma:";
text['es']['txt_payment']		= "Pago:";
text['es']['txt_ppm_nopt1']		= "Informaci&#243;n adiciona";
text['es']['txt_ppm_nopt2']		= "Esta opci&#243;n de pago no est&#225; disponible para su pa&#237;s.<br><br>Selecciona otra opci&#243;n de pago para acceder a la zona privada.";
text['es']['txt_eud_step1']		= "Access by phone";
text['es']['txt_eud_info1']		= "Click on the button below to visit our secure payment page.";
text['es']['txt_ppm_step1']		= "Acceso por tel&eacute;fono";
text['es']['txt_ppm_info1']		= "Haga clic en el bot&oacute;n y visite nuestra p&aacute;gina de pago seguro";
text['es']['txt_ppm_step2']		= "Miembro de entrada";
text['es']['txt_ppm_info2']		= "Mant&eacute;ngase conectado, para mantener su acceso. Cada minuto que le da una l&iacute;nea de acceso minuto.";
text['es']['txt_login_here']	        = "los miembros, haga clic aqu&#237;!";
text['es']['txt_login']			= "Nombre de usuario:";
text['es']['txt_password']		= "Contrase&#241;a:";
text['es']['txt_cc_step1']		= "Elegir un socio:";
text['es']['txt_cc_info1']		= "<a href='" + pp_url + "' target='_blank'><span class='info'>He olvidado mis datos de entrada...</span></a><br><a href='" + pp_url + "' target='_blank'><span class='info'>Quiero cancelar mi suscripci&#243;n...</span><a>";
text['es']['txt_cc_step2']		= "Miembro de entrada";

text['es']['AT']				= Array();
text['es']['AT']['txt_country']	= "Austria";
text['es']['AT']['txt_coun_sh']	= "Austriaco";
text['es']['AT']['txt_bonus']	= "";
text['es']['AT']['txt_phone']	= "0930-776650";
text['es']['AT']['txt_costs']	= "precio: &euro; 1,80 p/m";

text['es']['BE']				= Array();
text['es']['BE']['txt_country']	= "B&#233;lgica";
text['es']['BE']['txt_coun_sh']	= "Belga";
text['es']['BE']['txt_bonus']	= "*** BONUS: DESPU&#233;S DE 10 MINUTOS, 10 MINUTOS GRATIS ***";
text['es']['BE']['txt_phone']	= "0907-07600";
text['es']['BE']['txt_costs']	= "precio: &euro; 2,00 p/m (m&#225;x. 10 minutos)";

text['es']['CH']				= Array();
text['es']['CH']['txt_country']	= "Suiza";
text['es']['CH']['txt_coun_sh']	= "Suizo";
text['es']['CH']['txt_bonus']	= "";
text['es']['CH']['txt_phone']	= "0906-090608";
text['es']['CH']['txt_costs']	= "precio: CHF 4,23 p/m";

text['es']['ES']				= Array();
text['es']['ES']['txt_country']	= "Espa&#241;a";
text['es']['ES']['txt_coun_sh']	= "Espa&#241;oles";
text['es']['ES']['txt_bonus']	= "*** BONUS: DESPU&#201;S DE 25 MINUTOS, 25 MINUTOS GRATIS ***";
text['es']['ES']['txt_phone']	= "803-453003";
text['es']['ES']['txt_costs']	= "Precio de la llamada IVA incl.: Fijo &euro;1,16 p/m - Movil &euro; 1,51 maximo por min";



/*******************************************************************************
 ***	SHOWOPTIONS
 ******************************************************************************/
function ShowOptions( l, m )
{
////////////////////////////////////////////////////////////////////////////////
///		BUILD LANGUAGE PULLDOWN
////////////////////////////////////////////////////////////////////////////////
	data 	= "<select id='sel_language' onChange=\"javascript: ShowOptions( this.value, '" + m + "' );\">";
	for( i=0; i < languages.length; i++ )
	{
		data = data + "<option value='"+ languages[i][0] + "'";
		if( l == languages[i][0] )	data = data + " selected";
		data = data + ">"+ languages[i][1] + "</option>";
	}
	data = data + "</select>";
	document.getElementById( 'pd_language' ).innerHTML = data;


////////////////////////////////////////////////////////////////////////////////
///		BUILD PAYMENT OPTION PULLDOWN
////////////////////////////////////////////////////////////////////////////////
	if( payments.length == 1 )
		data	= "<select id='sel_payment' disabled>";
	else
		data	= "<select id='sel_payment' onChange=\"javascript:  ShowOptions( '" + l + "', this.value );\">";
	for( i=0; i < payments.length; i++ )
	{
		deny 	= payments[i]['deny'];
		display	= true;
		for( j=0; j < deny.length; j++ )	{	if( c == deny[j] )	display = false;	}
		if( ( payments[i][0] == 'cc' ) && ( pid != 0 ) && ( ( pid == "" ) || ( pp_aff == "" ) ) ) 	display = false;

		if( display == true ) {
			data = data + "<option value='"+ payments[i]['type'] + "'";
			if( m == payments[i]['type'] )	data = data + " selected";
			data = data + ">"+ payments[i]['name'] + "</option>";
		}
	}
	data = data + "</select>";
	document.getElementById( 'pd_payment' ).innerHTML = data;


////////////////////////////////////////////////////////////////////////////////
///		BUILD PAYMENT FORM
////////////////////////////////////////////////////////////////////////////////
	switch( m )
	{
		////////////////////////////////////////////////////////////////////////
		///		PPCPM
		case 'ppm':		data =
"\n\n<div id='ppm'>\n" +
"\t<div id='txt_ppm_step1'></div>\n" +
"\t<div id='txt_ppm_info1'></div>\n" +
"\t<div id='ppm_code1'>\n\t\t<fieldset>\n" +
"\t\t\t<form action='" + ppm_url + "' method='get'>\n" +
"\t\t\t\t<input type='hidden' name='resellerid' value='1133'>\n" +
"\t\t\t\t<input type='hidden' name='paidaccessid' value='" + ppm_site + "'>\n" +
"\t\t\t\t<input type='hidden' name='webmasterid' value='" + ppm_aff + "'>\n" +
"\t\t\t\t<input type='submit' value='Go to phone billing' id='ppmbutton'>\n" +
"\t\t\t</form>\n\t\t</fieldset>\n\t</div>\n" +
"\t<div id='txt_ppm_step2'></div>\n" +
"\t<div id='cc_code2'>\n\t\t<fieldset>\n" +
"\t\t\t<form method='post' action='" + url + "/members/login.php'>" +
"<input type='hidden' name='link' value='" + url + "'>" +
"<table width='90%' align='center'>" +
"<tr><td colspan='2'>&nbsp;</td></tr>" +
"<tr><td align='right' width='300px'><div id='txt_login'   ></div></td><td><input size='16' name='username' type='text'    ></td></tr>" +
"<tr><td align='right' width='300px'><div id='txt_password'></div></td><td><input size='16' name='password' type='password'></td></tr>" +
/*"<tr><td colspan='2' align='center' class='login_text'>Save my loging info <input type='checkbox' name='save_login' value='1'></td></tr>" +*/
"<tr><td colspan='2' align='center'><input type='submit' name='submit' value='Login'></td></tr>" +
"</table></form>\t\t\t</form>\n\t\t</fieldset>\n\t</div>\n</div>\n\n";
						break;


		////////////////////////////////////////////////////////////////////////
		///		EU DEBIT
		case 'eud':		data =
"\n\n<div id='eud'>\n" +
"\t<div id='txt_eud_step1'></div>\n" +
"\t<div id='txt_eud_info1'></div>\n" +
"\t<div id='ppm_code1'>\n\t\t<fieldset>\n" +
"\t\t\t<form action='" + ppm_url + "' method='get'>\n" +
"\t\t\t\t<input type='hidden' name='resellerid' value='1133'>\n" +
"\t\t\t\t<input type='hidden' name='productid' value='100'>\n" +
"\t\t\t\t<input type='hidden' name='paidaccessid' value='" + ppm_site + "'>\n" +
"\t\t\t\t<input type='hidden' name='webmasterid' value='" + ppm_aff + "'>\n" +
"\t\t\t\t<input type='submit' value='Go to debitcard billing' id='ppmbutton'>\n" +
"\t\t\t</form>\n\t\t</fieldset>\n\t</div>\n" +
"\t<div id='txt_ppm_step2'></div>\n" +
"\t<div id='cc_code2'>\n\t\t<fieldset>\n" +
"\t\t\t<form method='post' action='" + url + "/members/login.php'>" +
"<input type='hidden' name='link' value='" + url + "'>" +
"<table width='90%' align='center'>" +
"<tr><td colspan='2'>&nbsp;</td></tr>" +
"<tr><td align='right' width='300px'><div id='txt_login'   ></div></td><td><input size='16' name='username' type='text'    ></td></tr>" +
"<tr><td align='right' width='300px'><div id='txt_password'></div></td><td><input size='16' name='password' type='password'></td></tr>" +
/*"<tr><td colspan='2' align='center' class='login_text'>Save my loging info <input type='checkbox' name='save_login' value='1'></td></tr>" +*/
"<tr><td colspan='2' align='center'><input type='submit' name='submit' value='Login'></td></tr>" +
"</table></form>\t\t\t</form>\n\t\t</fieldset>\n\t</div>\n</div>\n\n";
						break;


		////////////////////////////////////////////////////////////////////////
		///		FLASHBILL CC
		case 'cc':		opt	= "";
						for( i=0; i < pp_opt.length; i++ )
						{
							opt = opt + "\t\t\t\t\t<option value='" + pp_opt[i][0] + "'>" + pp_opt[i][1] + "</option>\n";
						}
						data =
"\n\n<div id='cc'>\n" +
"\t<div id='txt_cc_step1'></div>\n" +
"\t<div id='cc_code1'>\n\t\t<fieldset>\n" +
"\t\t\t<form action='" + pp_url + pp_script + "' method='get'>\n" +
"\t\t\t\t<input type='hidden' name='v' value='1-V419984'>\n" +
"\t\t\t\t<input type='hidden' name='s' value='" + pp_site + "'>\n" +
"\t\t\t\t<input type='hidden' name='a' value='" + pp_aff + "'>\n" +
"\t\t\t\t<select name='p' id='pd_cc_payment' style='width:290px'>\n" + opt + "\t\t\t\t</select><br>\n" +
"\t\t\t\t<input type='submit' value='Signup' id='ccbutton'>\n" +
"\t\t\t</form>\n\t\t</fieldset>\n\t</div>\n" +
"\t<div id='txt_cc_info1'></div>\n" +
"\t<div id='txt_cc_step2'></div>\n" +
"\t<div id='cc_code2'>\n\t\t<fieldset>\n" +
"\t\t\t<form method='post' action='" + url + "/members/login.php'>" +
"<input type='hidden' name='link' value='" + url + "'>" +
"<table width='90%' align='center'>" +
"<tr><td colspan='2'>&nbsp;</td></tr>" +
"<tr><td align='right' width='300px'><div id='txt_login'   ></div></td><td><input size='16' name='username' type='text'    ></td></tr>" +
"<tr><td align='right' width='300px'><div id='txt_password'></div></td><td><input size='16' name='password' type='password'></td></tr>" +
/*"<tr><td colspan='2' align='center' class='login_text'>Save my loging info <input type='checkbox' name='save_login' value='1'></td></tr>" +*/
"<tr><td colspan='2' align='center'><input type='submit' name='submit' value='Login'></td></tr>" +
"</table></form>\t\t\t</form>\n\t\t</fieldset>\n\t</div>\n</div>\n\n";
						break;


		////////////////////////////////////////////////////////////////////////
		///		VAS
		case 'fas':
		case 'deb':
		case 'mrc':		data =
"<div id='vas'><iframe name='vas_frame' id='vas_frame' class='wframe' marginheight='0' marginwidth='0' frameborder='0' scrolling='no' " +
"src= \"http://vas.dialxs.eu/vz/?s={{SITEID}}&layout={{SITE}}&pr=vz&p={{PID}}&l={{LANG}}&c=en&ru={{RU}}&rtd=http%3A%2F%promo.zoocash.eu%2templates%2Fvas_tpl%2F&info={{PI}}\" ></iframe></div>";
						break;


		////////////////////////////////////////////////////////////////////////
		///		VAS
		default:		data =
"\n\n<div id='none'>\n" +
"\t<div id='txt_ppm_nopt1'></div>\n" +
"\t<div id='txt_ppm_nopt2'></div>\n" +
"</div>\n\n";
	}
	document.getElementById( 'payment' ).innerHTML = data;


////////////////////////////////////////////////////////////////////////////////
///		FILL THE TEXT LOCATIONS WITH THE TEXT
////////////////////////////////////////////////////////////////////////////////
	if( document.getElementById('txt_dvd_link'	) )	document.getElementById('txt_dvd_link'	).innerHTML	= text[l]['txt_dvd_link'];
	if( document.getElementById('txt_dwl_link'	) )	document.getElementById('txt_dwl_link'	).innerHTML	= text[l]['txt_dwl_link'];

	if( document.getElementById('txt_full'		) )	document.getElementById('txt_full'		).innerHTML	= text[l]['txt_full'];
	if( document.getElementById('txt_top'		) )	document.getElementById('txt_top'		).innerHTML	= text[l]['txt_top'];
	if( document.getElementById('txt_language'	) )	document.getElementById('txt_language'	).innerHTML	= text[l]['txt_language'];
	if( document.getElementById('txt_payment'	) )	document.getElementById('txt_payment'	).innerHTML	= text[l]['txt_payment'];
	if( document.getElementById('txt_ppm_step1'	) )	document.getElementById('txt_ppm_step1'	).innerHTML	= text[l]['txt_ppm_step1'];
	if( document.getElementById('txt_ppm_info1'	) )	document.getElementById('txt_ppm_info1'	).innerHTML	= text[l]['txt_ppm_info1'];
	if( document.getElementById('txt_ppm_step2'	) )	document.getElementById('txt_ppm_step2'	).innerHTML	= text[l]['txt_ppm_step2'];
	if( document.getElementById('txt_ppm_info2'	) )	document.getElementById('txt_ppm_info2'	).innerHTML	= text[l]['txt_ppm_info2'];
	if( document.getElementById('txt_ppm_nopt1'	) )	document.getElementById('txt_ppm_nopt1'	).innerHTML	= text[l]['txt_ppm_nopt1'];
	if( document.getElementById('txt_ppm_nopt2'	) )	document.getElementById('txt_ppm_nopt2'	).innerHTML	= text[l]['txt_ppm_nopt2'];
	if( document.getElementById('txt_login_here'    ) )	document.getElementById('txt_login_here').innerHTML	= text[l]['txt_login_here'];
	if( document.getElementById('txt_login'		) )	document.getElementById('txt_login'		).innerHTML	= text[l]['txt_login'];
	if( document.getElementById('txt_password'	) )	document.getElementById('txt_password'	).innerHTML	= text[l]['txt_password'];

	if( document.getElementById('txt_eud_step1'	) )	document.getElementById('txt_eud_step1'	).innerHTML	= text[l]['txt_eud_step1'];
	if( document.getElementById('txt_eud_info1'	) )	document.getElementById('txt_eud_info1'	).innerHTML	= text[l]['txt_eud_info1'];

	if( document.getElementById('txt_cc_step1'	) )	document.getElementById('txt_cc_step1'	).innerHTML	= text[l]['txt_cc_step1'];
	if( document.getElementById('txt_cc_info1'	) )	document.getElementById('txt_cc_info1'	).innerHTML	= text[l]['txt_cc_info1'];
	if( document.getElementById('txt_cc_step2'	) )	document.getElementById('txt_cc_step2'	).innerHTML	= text[l]['txt_cc_step2'];
	if( document.getElementById('txt_cc_info2'	) )	document.getElementById('txt_cc_info2'	).innerHTML	= text[l]['txt_cc_info2'];
	if( document.getElementById('txt_cc_costs'	) )	document.getElementById('txt_cc_costs'	).innerHTML	= text[l]['txt_cc_costs'];
}


/*******************************************************************************
 ***	TOGGLESUBMIT
 ******************************************************************************/
function toggleSubmit()
{
    frm = document.forms[0];
    if( frm.submit.disabled == true )	{	frm.submit.disabled = false;	}
	else								{	frm.submit.disabled = true;		}
}


/*******************************************************************************
 ***	CHECKKEY
 ******************************************************************************/
function CheckKey(evt)
{
	var charCode = (evt.which) ? evt.which : event.keyCode
	if( charCode > 31 && ( charCode < 48 || charCode > 57 ) )	return false;
	return true;
}


/*******************************************************************************
 ***	SWITCHPLAYER
 ******************************************************************************/
function SwitchPlayer( player )
{
	file = "http://promo.zoocash.eu/gallery/" + document.getElementById('plainfile').value;

	if( player == 'flv' ) {
		document.getElementById('movie-area').innerHTML =
			"<embed src='http://promo.zoocash.eu/include/player.swf' width='420' height='300' align='top' " +
			"bgcolor='#ffffff' allowscriptaccess='always' allowfullscreen='false' " +
			"type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' " +
			"flashvars='file=" + file + ".flv&displayheight=300&autostart=true&volume=100&plugins=false' wmode='transparent' menu='false' /> ";
	}

	if( player == 'wmv' ) {
		document.getElementById('movie-area').innerHTML =
			"<OBJECT id=MediaPlayer codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 type=application/x-oleobject height=300 width=420 classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>" +
			"<param name='FileName' value='" + file + ".wmv'><param name='animationatStart' value='true'>" +
			"<param name='transparentatStart' value='false'><param name='showControls' value='true'>" +
			"<embed src='" + file + ".wmv' width=420 height=312 type=\"video/x-ms-wmv\" pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' filename='" + file + ".wmv' " +
			"animationatstart='true' transparentatstart='true' showcontrols='true'></embed></OBJECT>";
	}
}


/*******************************************************************************
 ***	LOADTRAILER
 ******************************************************************************/
function LoadTrailer ( trailer )
{
	document.getElementById('plainfile').value = trailer;
	if( document.getElementById('type') )	{	type = document.getElementById('type').value;	}
	else									{	type = 'flv';									}
	SwitchPlayer( type );
}

/*

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; AskTB5.6)
Timestamp: Fri, 30 Jul 2010 11:47:56 UTC


Message: 'pp_opt[...].0' is null or not an object
Line: 299
Char: 8
Code: 0
URI: http://promo.zoocash.eu/include/gallery.js

*/
