/*  set the left nav cross to the right position */
function startList() {
	if (typeof imgArr != 'undefined') {
		imageRandom();
		window.setInterval('imageRandom()', 2000);
	}
	if(document.getElementById('currentItem')){
		t = document.getElementById('currentItem');
		pos = getPosition(t);
		test = String(pos.y).substr(2,4);
		if(test != '5' && test != '4')y = pos.y - 241;
		else y = pos.y - 226;
		if(navigator.userAgent.indexOf('Firefox') > 0)y++;
		y -= 2;
		document.getElementById('spaltelinks').style.backgroundPosition = '-14px ' + y + 'px';
	}
	else if(document.getElementById('spaltelinks')) document.getElementById('spaltelinks').style.backgroundImage = 'none';
	//if(document.getElementById('spaltelinks'))
	//document.getElementById('spaltelinks').style.backgroundPosition = '-14px ' + (((n - 22 - d)*20)-23) + 'px';
	if (navigator.appVersion.indexOf("Mac") == -1 ){ 
		if (document.all&&document.getElementById) {
			navRoot = document.getElementById("nav");
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				/*
				subnode = node.lastChild;
				if (subnode.tagName=="UL") {
					subnode.onmouseover = function(){
						this.style.display = "block";
					}
					subnode.onmouseout=function() {
						this.style.display="none";
					}
				}
				*/
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+="over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace("over", "");
					}
				}
			}
		}
	}
}

	

window.onload=startList;

