<!-- hide script from old browsers

	browserName = navigator.appName;
	browserVer = parseInt(navigator.appVersion);
	if (browserName == "Netscape" && browserVer >= 3) version = "n3"; 
	else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "n3";
	else version = "n2";
	if (version == "n3")

	{	
	
				
		 p1 = new Image();
		 p1.src = "2.jpg";
		 p1_on = new Image();
		 p1_on.src = "2_.jpg";


}


		function img_on(imgName) {
		if (version == "n3") {
		imgOn = eval(imgName + "_on.src");
		document [imgName].src = imgOn;
		} }
		function img_out(imgName) {
		if (version == "n3") {
		imgOut = eval(imgName + ".src");
		document [imgName].src = imgOut;
		} }

function OpenFormatWindow(theURL,winName,w,h,scroll)
{
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
pop = window.open(theURL,winName,settings);
pop.document.write('<title>GALERIA</title><body bgcolor="white" topmargin="0" leftmargin="0"><center>');
pop.document.write('<a href="javascript:window.close();"><img src="'+theURL+'" alt="Zamknij okno" border=0></a></center>');
pop.document.write('</body>');
}

function OpenWindow(theURL,winName,w,h,scroll)
{
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
  window.open(theURL,winName,settings);
}

function makevisible(cur,which)
{
 if (which==0)
  cur.filters.alpha.opacity=100
 else
  cur.filters.alpha.opacity=70
}

function drukuj(){
 if (!window.print){
  alert("Musisz mieæ NS4.x lub IE5,\naby u¿yæ przycisku drukowania!")
  return  }
 window.print()
}


// end hiding script from old browsers -->

