// JavaScript Document
// Created by Krzysztof Popławski for BOLDMAN Studio
// (c) 2008 All Rights Reserved

startList = function() {
	if (document.getElementById) {
		navRoot = document.getElementById("mainlevel-nav");
		var z = document.body.childNodes.length;
				navRoot.style.zIndex = z;
				for (i=0; i<navRoot.childNodes.length; i++) {
					node = navRoot.childNodes[i];
					if (node.nodeName=="LI") {
						node.onmouseover=function() {
							if(this.childNodes[2]!=undefined){
								this.childNodes[2].style.visibility="visible";
								this.childNodes[2].style.position="absolute";
								this.childNodes[2].style.zIndex= (z + i +2);
							}
							this.childNodes[0].className += "subMenu";
							this.childNodes[0].style.zIndex= (z + i);
						}
						node.onmouseout=function() {
							if(this.childNodes[2]!=undefined){
								this.childNodes[2].style.visibility="hidden";
							}
							this.childNodes[0].className = this.className.replace(/subMenu/g, '');							
						}
					}
				}
	}
}

/* przeniesione do loader.js
window.onload = function() {
	startList();
}
*/