function otworzokno(numer,wys,szer,nazwa) {
okno=window.open("","",'toolbar=no, menubar=no, personalbar=no, status=no, resizable=no,height='+wys+',width='+szer+',left=100,top=100');
okno.document.write("<html><head><META HTTP-EQUIV='Content-type' CONTENT='text/html; charset=iso-8859-2'><link rel='stylesheet' href='_c/style1.css' type='text/css'><title>" + nazwa + "</title></HEAD><body background='img/kolor.gif' ><center><table border=0 cellpadding=0 cellspacing=5 width=100% height=100%><tr><td valign=middle align=center>");
okno.document.write("<a href='javascript:window.close()'><img src=pliki/" + numer + " border=0></a><br><span style=font-size:11px;>" + nazwa + "</span></td></tr></table></center></body></html>");
}

function powieksz(numer,wys,szer) {
	okno=window.open("","",'toolbar=no, menubar=no, personalbar=no, status=no, resizable=no,height='+wys+',width='+szer+',left=50,top=50');
	okno.document.write("<html><head><META HTTP-EQUIV='Content-type' CONTENT='text/html; charset=iso-8859-2'><link rel='stylesheet' href='_c/style1.css' type='text/css'><title>Galeria</title></HEAD><body leftmargin=0 rightmargin=0 topmargin=0 marginwidth=0 marginheight=0><center><table border=0 cellpadding=0 cellspacing=0><tr><td valign=middle align=center>");
	okno.document.write("<a href='javascript:window.close()'><img src=galeria/" + numer + " border=0></a></td></tr></table></center></body></html>");
}

function powieksz2(numer,wys,szer,katal) {
	okno=window.open("","",'toolbar=no, menubar=no, personalbar=no, status=no, resizable=no,height='+wys+',width='+szer+',left=50,top=50');
	okno.document.write("<html><head><META HTTP-EQUIV='Content-type' CONTENT='text/html; charset=iso-8859-2'><link rel='stylesheet' href='_c/style1.css' type='text/css'><title>Galeria</title></HEAD><body leftmargin=0 rightmargin=0 topmargin=0 marginwidth=0 marginheight=0><center><table border=0 cellpadding=0 cellspacing=0><tr><td valign=middle align=center>");
	okno.document.write("<a href='javascript:window.close()'><img src='" + katal + " /" + numer + "' border=0></a></td></tr></table></center></body></html>");
}

function podmien(numer, nazwa) 
{
    if(document.images)
    	document[nazwa].src = img[numer].src; 
}


if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

window.onload = function() {
  nodes = document.getElementById('nav').getElementsByTagName('li');
  for (i=0; i != nodes.length; i++) {
    nodes[i].onmouseover = function() {
      this.className = 'over';
    }
    nodes[i].onmouseout = function() {
      this.className = this.className.replace('over', '');
	  }
  }
}

function change_values(obj) {
	if (obj.value == obj.defaultValue)
		obj.value = "";
	else if (obj.value == "")
		obj.value = obj.defaultValue;
}



function shz(j,k)
{
   var t = 'zk'+j;
   var nodes = document.getElementById(t).childNodes;
   for (var i = 0; i < nodes.length; i++)
   {
     	var act=(i==k) ? 'block' : 'none';
     	nodes[i].style.display = act;
	}
}
