startList = function() {
	isMac  = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
	if(document.all && document.getElementById && isMac){
		document.getElementById("horizon").style.top= 450 + "px";
	}
	if(!document.getElementById("navMarken")){
		return true;
	}
	if (document.all && document.getElementById && !isMac) {
		navRoot = document.getElementById("navMarken");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					//alert(this.className);
					this.className+=" over";
					if(this.id){
						aAktuell = this.id.split('_');
						document.images['intro_'+aAktuell[1]].src=document.images['intro_'+aAktuell[1]].src.replace('_n.jpg', '_a.jpg');
					}
					//NavOver(this);
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
					if(this.id){
						aAktuell = this.id.split('_');
						document.images['intro_'+aAktuell[1]].src=document.images['intro_'+aAktuell[1]].src.replace('_a.jpg', '_n.jpg');
					}
					//NavOut(this);
				}
			}
		}
	}
}

function NavOver(oBild){
	oBild.src = oBild.src.replace("_n.gif", "_a.gif");
}
function NavOut(oBild){
	oBild.src = oBild.src.replace("_a.gif", "_n.gif");
}

function NavOver2(oBild, sNavName){
	oBild.src = oBild.src.replace("_n.gif", "_a.gif");
	if(!document.getElementById("navUnter"+sNavName)){
		return true;
	}
	document.getElementById("navUnter"+sNavName).className = 'navHaupt'+sNavName+'A';
	eval('if(typeof(timeout'+sNavName+') != "undefined"){ window.clearTimeout(timeout'+sNavName+'); }');
}
function NavOut2(oBild, sNavName){
	oBild.src = oBild.src.replace("_a.gif", "_n.gif");
	if(!document.getElementById("navUnter"+sNavName)){
		return true;
	}
	eval('timeout'+sNavName+' = window.setTimeout("NavUnterWeg(\'"+sNavName+"\')", 100);');
}
function NavOut2a(oBild, sNavName){
	if(!document.getElementById("navUnter"+sNavName)){
		return true;
	}
	eval('timeout'+sNavName+' = window.setTimeout("NavUnterWeg(\'"+sNavName+"\')", 100);');
}

function NavUnterWeg(sNavName){
	document.getElementById("navUnter"+sNavName).className = 'navHaupt'+sNavName;
}

function NavOverMarken(oBild, sMarke){
	oBild.src = oBild.src.replace("_n.jpg", "_a.jpg");
	NavOver(document.getElementById("nav_"+sMarke));
	document.getElementById("li_"+sMarke).className += " over";
}
function NavOutMarken(oBild, sMarke){
	oBild.src = oBild.src.replace("_a.jpg", "_n.jpg");
	NavOut(document.getElementById("nav_"+sMarke));
	document.getElementById("li_"+sMarke).className = "";
}

window.onload=startList;