function navhighlight() 
{	
	var actualLocation = window.location.href;
	myregexp = new RegExp("http://" + window.location.hostname, "i");
		
	actualLocation = actualLocation.replace(myregexp, '');

	dirArray = actualLocation.split("/");
	
	if (!document.getElementsByTagName){ return; }
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++){
		var anchor = anchors[i];
		
		// MSIE HACK
		actualHref = anchor.getAttribute('href');
		actualHref = actualHref.replace(myregexp, '');
		
		// Überprüfung des Direktlinks
		if (actualHref == actualLocation)
		{
			anchor.style.color = "#333333";
			document.getElementById('subnav_' + anchor.getAttribute("rel")).style.display = "block";
			oldElement = document.getElementById('subnav_' + anchor.getAttribute("rel"));
		}

		actualPath = "";
		
	}
}

navhighlight();