startList = function() {
			if (document.all&&document.getElementById) {
			navRoot = document.getElementById("nav");
			for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
			node.onmouseover=function() {
			this.className+=" over";
			  }
			  node.onmouseout=function() {
			  this.className=this.className.replace(" over", "");
			   }
			   }
			  }
			 }
			}

function foto(href,wys,szer)
{
	var w = window.open('','foto',"width=1,height=1");
    w.close();
    w = window.open(href,'foto',"dependent=no,toolbar=no, statusbar=no, scrollbars=yes,resizable=yes,width="+(szer + 50)+",height="+(wys + 90));
	return false;
}

function opis(href,wys,szer)
{
	//var w = window.open('','opis','width=1,height=1');
   //w.close();
    //w = window.open(href,'opis',"dependent=no,toolbar=no, scrollbars=yes,resizable=yes,width="+(szer)+",height="+(wys));
	//window.open(href, '', "width="+szer+", height="+wys+", resizable=yes,location=no");
    
    var w = window.open(href, 'opis', 'toolbar=no,menubar=no,scrollbars=yes, resizable=yes,status=no,location=no,directories=no,top=177, left=122,fullscreen=no,width='+(szer)+',height='+(wys)); 
	w.focus();
    return false;
}
			
function funkcje_init()
{
	startList();
}
window.onload = funkcje_init;