et_title = "EuroTicket on-Line";
var helpPath = 'http://sale.euroticket.pl/';

function PutNavigation()
{
    //jesli klient chce innej obslugi nalezy ten kod usunac lub zakomentowac -> //
    document.write('<div id="header">');
    StdPutPageNavigation();
    document.write('</div>'); // div id ='header'
}

function PutHeaderImg()
{
    STDPutHeaderImg();
}

function PutMenu()
{
    StdPutPageMenu();
}

function openHelp()
{
    STDOpenHelp(helpPath);
}

function PutFooterImg()
{
    StdPutFooterImg();

    if( js_cnt == 'cts' )
    {
	if( document.combos.curr.length > 1 )
	{ 
	    //dla IE - wazna jest kolejnosc
	    document.write( "<style> .currency  {display: inline ! important;} </style>");
	    //dla FireFox
	    document.write( "<style> .currency  {display: table-row ! important;} </style>");
	}
    }

    var ForSaferPay = document.location.href;
    if (ForSaferPay.indexOf("cnt=orp") != -1)
    {
	document.getElementById("nexthref").setAttribute('href','javascript:GoAndrewGo()');
	var Andrew = document.getElementsByName("orp_addr1")[0];
	var Andrew2 = document.createElement('img');
	Andrew2.setAttribute('src', 'https://sale.euroticket.pl/profiles/atas_london_pl_html/img/required.gif');
	Andrew2.setAttribute('id', 'Stupid');
	Andrew.parentNode.appendChild(Andrew2);
	document.getElementById("Stupid").style.visibility = 'visible';
 

    }



}

function GoAndrewGo()
{
    if (document.getElementsByName("orp_addr1")[0].value != "")
    {
	OnNextClick();
    }
    if (document.getElementsByName("orp_addr1")[0].value == "") 
    {
	alert("Adres zamawiającego jest wymagany przez Centrum Autoryzacji Płatności.");    
    }
 

}



version=0
    if (navigator.appVersion.indexOf("MSIE")!=-1){
	temp=navigator.appVersion.split("MSIE")
	version=parseFloat(temp[1])

	if (version < 5.5)
	{
	    document.writeln("<div class='browserDetect'>Do przegladania tej strony zalecamy uzywanie przegladarki Microsoft Explorer w wersji 5.5 lub wyzszej.</div>");
	}
    }


    if(navigator.userAgent.indexOf("Firefox")!=-1){
	var versionindex=navigator.userAgent.indexOf("Firefox")+8;
	if(parseInt(navigator.userAgent.charAt(versionindex)) == 1)
	{
	    if(parseInt(navigator.userAgent.charAt(versionindex + 2)) < 5 )
	    {
		document.writeln("<div class='browserDetect'>Do przegladania tej strony zalecamy uzywanie przegladarki Firefox w wersji 1.5 lub wyzszej.</div>");
	    }
	}
    }

if ((navigator.appName == "Opera") || (navigator.appName == "opera")){

    if (parseFloat(navigator.appVersion) < 9.0)
    {
	document.writeln("<div class='browserDetect'>Do przegladania tej strony zalecamy uzywanie przegladarki Opera w wersji 9.0 lub wyzszej.</div>");
    }
}

if ((navigator.userAgent.indexOf ("Firefox/3.5.0")!=-1) || (navigator.userAgent.indexOf("Firefox/3.5.1")!=-1 ) && ( js_cnt == 'ctr' || js_cnt == 'cts' || js_cnt == 'swr' || js_cnt == 'log' )) {

    document.write('<font color=red>');
    document.write('<b>PL: </b>Z powodu błędu w wersji przeglądarki Firefox 3.5.0 i 3.5.1 uniemożliwiającego zakup biletu prosimy o tymczasowe skorzystanie ze starszej wersji ');
    document.write('lub innej przeglądarki np. MS Internet Explorer. Można również pobrać wersję pre-release Firefox 3.5.2 <a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/3.5.2-candidates/build1/unsigned/win32/en-US/Firefox%20Setup%203.5.2.exe" target="_parent"><strong>ze strony Mozilli </strong></a> ');
    document.write('w której błąd został już poprawiony.<br /><br />');

    document.write('<b>EN: </b>Due to the critical error in Firefox 3.5.0 and 3.5.1 browsers it may be impossible to complete purchase of the coach ticket. ');
    document.write('We strongly recommend that you use earlier versions of the Firefox, or use different browser (i.e. Internet Explorer) altogether. ');
    document.write('It is also possible to upload from <a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/3.5.2-candidates/build1/unsigned/win32/en-US/Firefox%20Setup%203.5.2.exe" target="_parent"><strong>the Mozilla site</strong></a> pre-release of the Firefox 3.5.2 version which addressed issues with the earlier versions.<br/><br/> ');

    document.write('</font>');

}

