//////////////////////////////////////////////// FUNKCJE - ETIKO VER 1.O		///////////////////////////////////////////////////////////////////////////////////////////////////////var viewer, NN=false,IE=false;var kierunek="", tmScroll;var zoomS=1;//////////var TStan =new Array();TStan["div1"]=1;TStan["div2"]=1;/////////////////////////////////////////////////////function f_DetectViewer(){if(!document.all){viewer="NN"; NN=true}else if(document.all){viewer="IE"; IE=true}elseviewer="X";}////////function f_GoUp(){	window.scroll(0,0);}/////////////------------------//////////-----------------///////*Auto Maximize Window Script- By Nick Lowe (nicklowe@ukonline.co.uk)For full source code, 100's more free DHTML scripts, and Terms Of UseVisit http://www.dynamicdrive.com*/function f_MaximizeWindow(){   window.moveTo(0,0);    if (document.all) {       top.window.resizeTo(screen.availWidth,screen.availHeight);    }    else if (document.layers||document.getElementById) {       if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){       top.window.outerHeight = screen.availHeight;       top.window.outerWidth = screen.availWidth;	   }    }}/////////////////////function f_ZmienTytul(nowy_tytul){		 //document.getElementById('tytul').innerHTML=nowy_tytul;}function f_PokazTresc(tresc){		ftresc.src=tresc;		f_Wyczysc();}function f_Wyczysc(){		//alert("e");		window.parent.document.all.infoblad.innerText="";		//window.parent.document.all.infoblad.style.visibility="hidden";}function f_PokazWiecej(co){			//alert(co);			TStan[co]=-TStan[co];			if(TStan[co]==-1){			document.getElementById(co).style.overflow = "visible";			document.getElementById(co).style.height = "280px";			document.getElementById("p"+co).innerHTML="-";			document.getElementById("zw"+co).innerHTML=text_zwin;			}			else{			document.getElementById(co).style.overflow = "hidden";			document.getElementById(co).style.height = "15px";			document.getElementById("p"+co).innerHTML="+";			document.getElementById("zw"+co).innerHTML=text_wiecej;			}			}  ////////////// FUNKCJE DO MAPYvar mapka_mala=new Image;mapka_mala.src="img/mapa_dojazd_mala.gif";var mapka_duza=new Image;mapka_mala.src="img/mapa_dojazd_duza.gif";///function f_ShowMap(){window.open("mapka.html","mapka",", height=445, width=454, menubar=no, toolbar=no")			/*with(window.mapka){			//document.all.raczka.innerHTML="<img src='img/raczka.gif'>";			//document.all.ukryj_mape.innerHTML="Ukryj mapkÍ [X]";			//document.all.raczka.style.visibility="visible";			//document.all.raczka.style.left=80;			//document.all.raczka.style.top=140;			//document.all.lmapka.style.visibility="visible";			//document.all.plmapka.style.backgroundImage="url(img/mapa_dojazd_duza.gif)";zoomS=1;			//document.all.info_mapki.innerHTML="Kliknij na mapkÍ aby powiÍkszyÊ";					focus()		}*/}/// /* przeniesione do strony: mapka.htmlfunction f_HideMap(){	window.close();}///function f_ZoomMap(){	//alert(zoomS+"\n"+document.all.plmapka.style.backgroundImage)	if(document.layers){		if(zoomS==1){			document.layers["plmapka"].backgroundImage="img/mapa_dojazd_duza.gif";		}		else{			document.layers["plmapka"].backgroundImage=mapka_mala.src;		}	}	else{		if(zoomS==1){			//document.all.raczka.style.visibility="hidden";			document.all.raczka.style.left=190;			document.all.raczka.style.top=130;						document.all.info_mapki.innerHTML=text_pomniejsz//"Kliknij na mapkÍ aby pomniejszyÊ";			//document.all.plmapka.style.backgroundImage="url(img/mapa_dojazd_mala.gif)";			document.all.plmapka.src=TMap['mala'].src//"img/mapa_dojazd_mala.gif"//mapka_mala.src;			zoomS=zoomS*(-1);		}		else{			//document.all.raczka.style.visibility="visible";			document.all.raczka.style.left=80;			document.all.raczka.style.top=50;			document.all.info_mapki.innerHTML=text_powieksz//"Kliknij na mapkÍ aby powiÍkszyÊ";			//document.all.plmapka.style.backgroundImage="url(img/mapa_dojazd_duza.gif)";			document.all.plmapka.src=TMap['duza'].src//"img/mapa_dojazd_duza.gif"			zoomS=zoomS*(-1);		}			}}*/////////////////////////////////////var mysz = new Punkt(100,100);//function Punkt(x,y){this.x=x;this.y=y;}// Detect if the browser is IE or not.// If it is not IE, we assume that the browser is NS.var IE = document.all?true:false;var FF = document.getElementById?true:false;// If NS -- that is, !IE -- then set up for mouse captureif (!IE||!FF) document.captureEvents(Event.MOUSEMOVE)//////////////////////////////function getMouseXY(e) {	  if (IE) {    mysz.x = event.clientX + document.body.scrollLeft;    mysz.y = event.clientY + document.body.scrollTop;  }     else {     mysz.x = e.pageX;    mysz.y = e.pageY;  }      // catch possible negative values in NS4  if (mysz.x < 0){mysz.x = 0}  if (mysz.y < 0){mysz.y = 0}  // show the position values in the form named Show  // in the text fields named MouseX and MouseY    return mysz;}////////////////////////////////////////function f_PokazDymek(id_dymek,tresc,evt){				document.onmousemove = getMouseXY;		posx= mysz.x+5+"px";		posy=mysz.y+5+"px";		document.getElementById(id_dymek).style.left = posx;		document.getElementById(id_dymek).style.top = posy;				//info = "poz dymkai: "+document.getElementById(id_dymek).style.left+" , "+document.getElementById(id_dymek).style.top;		//alert(info);		//		if(tresc!="")			document.getElementById(id_dymek).innerHTML=tresc;		//			document.getElementById(id_dymek).style.visibility="visible";}////function f_UkryjDymek(id_dymek){	document.getElementById(id_dymek).style.visibility="hidden";}/////////////////////////////////////////////////////////f_DetectViewer();