// Browserweiche
if (typeof Prototype != 'undefined')
{ 
	var Browser = {
		detect: function() {
			var UA = navigator.userAgent;
			this.isKHTML = /Konqueror|Safari|KHTML/.test(UA);
			this.isGecko = Prototype.Browser.Gecko;
			this.isOpera = Prototype.Browser.Opera;
			this.isMSIE  = Prototype.Browser.IE;
			this.isMSIE5 = this.isMSIE && !document.compatMode;
			this.isMSIE7 = this.isMSIE && window.XMLHttpRequest;
			this.isMSIE6 = this.isMSIE && !this.isMSIE5 && !this.isMSIE7;
		} // function detect
	}
	Browser.detect();

	$(document).observe('dom:loaded', function() {
		// Navigation
		if (Browser.isMSIE6 || Browser.isMSIE5)
		{ 
			$A($$('#navigation > li')).each(
				function(oLI)
				{ 
					$(oLI).observe('mouseover', function() { oLI.className += ' sfhover'; } );
					$(oLI).observe('mouseout',  function() { oLI.className = oLI.className.replace(' sfhover', '');} );
				} // function
			);
		} // if
    
    
    // Navigation, beim aktiven Punkt wird der Subnavigations-Layer nicht angezeigt
		if (Browser.isMSIE6 || Browser.isMSIE5)
		{ 
			$A($$('#navigation > li.aktiv')).each(
				function(oLI)
				{ 
					$(oLI).observe('mouseover', function() { oLI.className += ' sfhover-no'; } );
					$(oLI).observe('mouseout',  function() { oLI.className = oLI.className.replace(' sfhover-no', '');} );
				} // function
			);
		} // if
    
    
	});
}

