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', '_o.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('_o.jpg', '_n.jpg');
					}
					//NavOut(this);
				}
			}
		}
	}
}

function NavOver(oBild){
	oBild.src = oBild.src.replace("_n.gif", "_a.gif");
	oBild.src = oBild.src.replace("_n.png", "_a.png");
	sBildSrc = oBild.src;
	if(sBildSrc.indexOf("philosoph") > 0 || sBildSrc.indexOf("global-compact") > 0){
		if(document.getElementById("subPhilosophie") != null){
			document.getElementById("subPhilosophie").className += " over";
		}
		if(document.getElementById("subPhilosophy") != null){
			document.getElementById("subPhilosophy").className += " over";
		}
		if(typeof(subtimeout) != "undefined"){
			window.clearTimeout(subtimeout);
		}
	}
}


function NavOut(oBild){
	oBild.src = oBild.src.replace("_a.gif", "_n.gif");
	oBild.src = oBild.src.replace("_a.png", "_n.png");
	sBildSrc = oBild.src;
	if(sBildSrc.indexOf("philosoph") > 0 || sBildSrc.indexOf("global-compact") > 0){
		subtimeout = window.setTimeout("NavUnterWeg()", 100);
	}
}
function NavUnterWeg(){
	if(document.URL.indexOf("philosoph") > 0){
	}else{
		if(document.getElementById("subPhilosophie") != null){
			document.getElementById("subPhilosophie").className = "";
		}
		if(document.getElementById("subPhilosophy") != null){
			document.getElementById("subPhilosophy").className = "";
		}
	}
}


function NavOverMarken(oBild, sMarke){
	oBild.src = oBild.src.replace("_n.jpg", "_o.jpg");
	NavOver(document.getElementById("nav_"+sMarke));
	document.getElementById("li_"+sMarke).className += " over";
}
function NavOutMarken(oBild, sMarke){
	oBild.src = oBild.src.replace("_o.jpg", "_n.jpg");
	NavOut(document.getElementById("nav_"+sMarke));
	document.getElementById("li_"+sMarke).className = "";
}

window.onload=startList;
