var mapwin;
if(document.all && !document.getElementById) {
    document.getElementById = function(id) {
         return document.all[id];
    }
}

function mapqam(cUrl) {
var cType, nPSB;	
var screenW=(typeof(screen)=="object") ? screen.width : 800;
if (cUrl==undefined) {
	cUrl = "http://dojazd.pl/cgi-bin/loadhtml.exe?id=ztm"; }
else {
	nPSB  = parseInt(cUrl);
	cType = cUrl.charAt(cUrl.length - 1);
	cType = (cType=='P') ? 'Parkingi' : 'Bilety';
	cUrl='http://dojazd.pl/cgi-bin/loadhtml.exe?id=ztm&s_lay='+cType+'%20STREFA&s_fld=Nr_PSB&s_str='+nPSB;
}
pars="'menubar=no,scrollbars=no,resizable=1,status=1,width=780,height=592,left="+(screenW-780-20)+", top=0'";
if (typeof(mapwin)=="object") { mapwin.close(); }
mapwin=window.open(cUrl,'mapqa',pars);	
}

function show_block(cID,nlinkID)
{
     document.getElementById(cID).style.display = 'block';
     if (nlinkID!=0) {
     	 document.getElementById('show'+nlinkID).style.display = 'none'
	 document.getElementById('hide'+nlinkID).style.display = 'inline'
	}

}
function hide_block(cID,nlinkID)
{
     document.getElementById(cID).style.display = 'none';
     if (nlinkID!=0) {
     	 document.getElementById('hide'+nlinkID).style.display = 'none'
	 document.getElementById('show'+nlinkID).style.display = 'inline'
	}
}     


function f(x) { 
   var object=document.getElementById(x) 
     object.style.display='none';
     if (showJKM) { showit("footerJKM"); }
     if (IE) {
     	showit("product");
	showit("district");
	}
}

function hideit(o) {
 	var object=document.getElementById(o) 
 	object.style.visibility='hidden' 
}

function showit(o) {
 	var object=document.getElementById(o) 
 	object.style.visibility='visible' 
}

