<!--
act    = "l0";
pd_id   = 0;
crtTime = window.setTimeout("pup()",100);

function hg(id) {
	act = id.substr(0,2);

	document.getElementsByTagName("body")[0].style.background = "url(gif/hg_"+nr+".jpg) no-repeat";
	document.getElementById("m"+act).style.color = "#99CCFF";
	document.getElementById("m"+act).style.backgroundColor = "#336699";
	
	//if (pd_id != 0) pup();
}

function mover(typ, id) {
	var col_fr, col_bg;
	if (1 == typ) {
		window.clearTimeout(crtTime);
		col_fr = "#99CCFF";
		col_bg = "#336699";
	} else {
		crtTime = window.setTimeout("pup()",100);
		col_fr = "#336699";
		col_bg = "#99CCFF";
	}
	if (act!=id.substr(1,3)) {
		document.getElementById(id).style.color = col_fr;
		document.getElementById(id).style.backgroundColor = col_bg;
	}
}

function pdown(id) {
	pup();
	pd_id = id;
	document.getElementById(id).style.visibility = "visible";
}

function pup() {
	if (0 != pd_id) document.getElementById(pd_id).style.visibility = "hidden";
	pd_id = 0;
}

startList = function() {
	if (document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="A") {
				node.onmouseover=function() {
					mover(1, this.id);
					pdown('pdown_'+this.id);
				}
				node.onmouseout=function() {
					mover(2, this.id);
				}
			}
		}
		
		navRoot = document.getElementById("umenus");
	
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			k = 0;
			if (node.nodeName=="DIV") {
				k++;
				for (j=0; j<node.childNodes.length; j++) {
					navUMenu = node.childNodes[j];
					
					if (navUMenu.nodeName=="A") {
						navUMenu.onmouseover=function() {
							window.clearTimeout(crtTime);
						}
						navUMenu.onmouseout=function() {
							mover(2, this.id);
						}
					}
				}
			}
		}
		
		
	}
	hg(nr);
}
window.onload=startList;
//-->
