// JavaScript Document

sfHover = function() {
	var sfEls = document.getElementById("topmenu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


function mouseover(id){
	pos = document.getElementById(id).className;

	if(pos=='left'){
		document.getElementById(id).style.backgroundImage = "url(fileadmin/templates/nav_hover_left.gif)";
		document.getElementById(id).style.color = "#ffffff";	
	}else if(pos=='middle'){
		document.getElementById(id).style.backgroundImage = "url(fileadmin/templates/nav_hover_middle.gif)";
		document.getElementById(id).style.color = "#ffffff";
	}/*else if(pos=='right'){
		document.getElementById(id).style.backgroundImage = "url(fileadmin/templates/nav_hover_right.gif)";
		document.getElementById(id).style.color = "#ffffff";
	}*/
	
}

function mouseout(id){
	pos = document.getElementById(id).className;

	if(pos=='left'){
		document.getElementById(id).style.backgroundImage = "none";
		document.getElementById(id).style.color = "#7f7f7f";	
	}else if(pos=='middle'){
		document.getElementById(id).style.backgroundImage = "none";
		document.getElementById(id).style.color = "#7f7f7f";
	}/*else if(pos=='right'){
		document.getElementById(id).style.backgroundImage = "url(fileadmin/templates/nav_right.gif)";
		document.getElementById(id).style.color = "#7f7f7f";
	}*/
}
