function popup(plik, w, h)
{
	params='toolbar=no,location=no,directories=no,status=no,menubar=no,width='+w+',height='+h;
	params += 'scrollbars=no,resizable=no, top='+((screen.height/2) - h/2)+',left='+((screen.width/2) - w/2);

   pop = window.open(plik,"pop",params);
   if(pop)
	   pop.focus();
   return false;
}


setEvents = function() {
    nRoot = document.getElementById("menu");
    for (i=0; i<nRoot.childNodes.length; i++) 
    {
        node = nRoot.childNodes[i];
        if (node.nodeName=="LI") 
        {
            //alert(node.childNodes[0].childNodes[0].nodeName);
       
            if(node.childNodes[0].childNodes[0].src.indexOf('_a.gif') != -1)
            {
	            node.childNodes[0].onmouseover=function() {
	                this.childNodes[0].src = this.childNodes[0].src.replace('_a.gif', '_b.gif');
	            }
	         
	            node.childNodes[0].onmouseout=function() {
	                this.childNodes[0].src = this.childNodes[0].src.replace('_b.gif', '_a.gif');
	            }
           	}
        }
    }
}
window.onload=setEvents; 
