browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
   version = "no";
   if (browserName == "Netscape" && browserVer >= 3) version = "ok";
   if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "ok";

if (version == "ok")
{     

var normal="kom/przezrocz.gif";
// var koment = new MakeArray(19);
var koment= new Array(13);
koment[1] ="kom/1.gif";
koment[2] ="kom/2.gif";
koment[3] ="kom/3.gif";
koment[4] ="kom/4.gif";
koment[5] ="kom/5.gif";
koment[6] ="kom/6.gif";
koment[7] ="kom/7.gif";
koment[8] ="kom/8.gif";
koment[9] ="kom/9.gif";
koment[10] ="kom/10.gif";
koment[11] ="kom/11.gif";
koment[12] ="kom/12.gif";

   
hint = new Array();
      for (i = 1; i < koment.length; i++)
      {
        hint[i] = new Image();
        hint[i].src = koment[i];
     }
}


 function msover(num) {
	 if (version == "ok") {    
        document.images.opis.src = hint[num].src
				  }
		}


function msout() {
	if (version == "ok") {    
         document.images.opis.src = normal
                        }                   
	}
				
function foto(adres,wid,hei,komentarz,tytul,okno) {        
		var wid2 = wid +60;
		var hei2 = hei +60;
 		var Win = window.open("",okno,'width=' + wid2 + ',height=' + hei2 + ',resizable=1,top=0,left=0,scrollbars=no,menubar=no');
		Win.focus()
		Win.document.write('<html><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-2"><title>',tytul,'</title></head><BODY bgcolor="#E0E8D0">');
 		Win.document.write('<center>');
	 	Win.document.write('<img src="',adres,'" width=',wid,' height=',hei,' vspace=5 border=1 alt="',tytul,'"><br clear="all"><font face="Arial CE, Arial" size="2" color="#000000">',komentarz,'<br><br><br><br><br></center></body></html>');
}			


function selecturl(s) {
	var gourl = s.options[s.selectedIndex].value;	window.top.location.href = gourl;
} 

nn4=(document.layers)? true:false;
ie4=(document.all)? true:false;

function pokaz(ident) {
	if(nn4) {
		document.layers[ident].visibility = "show";
	} else if(ie4) {
		document.all[ident].style.visibility = "visible";
	}
}

function schowaj(ident) {
	if(nn4) {
		document.layers[ident].visibility = "hide";
	} else if(ie4) {
		document.all[ident].style.visibility = "hidden";
	}
}
