


function confirmLink(text, link)
{
	if (window.confirm(text))
	{
		window.location = link;
	} 
}

function showImage(nazwa, tytul)
{
    t = screen.height/2 - 200; l = screen.width/2 -250;
    w = window.open('about:blank','zdjecie','top='+t+',left='+l+',width=500,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
    d = w.document;
    d.write('<html><head><sc'+'ript type="text/javascript">function  adjust() {i=document.getElementById(\'mim\'); resizeTo(i.width + 80,i.height+105); moveTo(screen.width / 2 - i.width/2,screen.height/2 - i.height/2) }</scr'+'ipt></head><body bgcolor="#F3F3F3" onload="adjust()" style="margin:25px;text-align:center;cursor:pointer;"><img id="mim" src="'+nazwa+'" border="0" onclick="window.close()" /><div style="font-family:Verdana, sans-serif;font-size:12px;margin:10px;">'+tytul+'</div></body></html>');
    d.close();
}

function klibOpenDialog(url, width, height)
{
	x = parseInt(screen.width / 2.0) - (width / 2.0);
	y = parseInt(screen.height / 2.0) - (height / 2.0);

	var win = window.open(url, "klibPopup", "top=" + y + ",left=" + x + ",dialog=yes,minimizable=yes,modal=yes,width=" + width + ",height=" + height + ",resizable=yes,scrollbars=yes");
	try { win.resizeTo(width, height); } catch(e) { }
	win.focus();

}

var base_url = '/';


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", "");
   				}
   			}
  		}
 	}
}
window.onload=startList;
