function toggle_hover(li) {
	
	var ulchilds = li.getElementsByTagName('UL');
	if (ulchilds.length) {
		ulchilds[0].style.display = ulchilds[0].style.display == 'block' ? 'none' : 'block';
	}
	
	if (!jQuery.browser.msie) {
		var hover_name = 'current-hover';
		//find the a tags in the li
		var achilds = li.getElementsByTagName('A');
		
		//if we found one
		if (achilds.length) {
			//checks if the hover name is in the classes
			if (achilds[0].className.match(hover_name)) {
				//remove the class
				achilds[0].className = achilds[0].className.replace(hover_name, "").replace(/^\s+|\s+$/g,"");
			} else {
				//add the class
				achilds[0].className = achilds[0].className.length == 0 ? hover_name : achilds[0].className + ' ' + hover_name;
			}
		}
	}
	
}

