/*
+--------------------------------------------------------------------+
|  generated by H2G Internetagentur, CH-Aarau, www.h2g.ch, May 2006  |
+--------------------------------------------------------------------+
*/

// Cache saves ID of the current opened Subnavigation
var cache;
cache = "";

// Function for making the subnavigation visible
function navhover(id) {
			
	if (cache != id) {
			
		// Hide old Subnavi (saved in cache var)
		subhide();
	
		// Get Current Subnavi
		ul = new Array();
		ul = id.getElementsByTagName("ul");	
			
		// Show Subnavi if exists
		if (ul.length == 1) {
			ul[0].className = "navi_visible";
		}
			
		// Set Mouseover Styles		
		id.className = 'nav_over';
		id.getElementsByTagName("a")[0].style.color = "#FFFC00";
	}
	
	// Save current navigation point to cache var		
	cache = id;
}

// Function to change some Styles of Subnavigations hover
function subhover(id) {
	id.getElementsByTagName("a")[0].style.color = "#FFFC00";
}

// Function to restore Styles of Subnavigations onmouseout
function subout(id) {
	id.getElementsByTagName("a")[0].style.color = "#FFFFFF";
}

// Function to hide the subnavigation stored in cache var 
function subhide() {
		
	if (cache != "") {
		
		// Hide old Subnavis
		// Get Subnavi
		ulold = new Array();
		ulold = cache.getElementsByTagName("ul");
	
		// Hide Subnavi if exists
		if (ulold.length == 1) {
			ulold[0].className = "navi_hidden";
		}
	
		// Remove Mouseover Styles
		cache.className = 'nav_out';
		cache.getElementsByTagName("a")[0].style.color = "#FFFFFF";
	}
}
