// ||||||||||||||||||||||||||||||||||||||||||||||||||

// Navigation

Menu = {timer : null, current : null};
Menu.show = function(name){
	if(this.timer) clearTimeout(this.timer);

	// turn on current subnav
	this.subnavElement = $("subnav_" + name);
	if (this.subnavElement){
			this.subnavElement.style.display = "block";
	}
	// turn on current nav
	this.parentNavElement = $("nav_" + name);
	$(this.parentNavElement).style.background = 'url("/images/sites/ahf/nav/nav_on.gif")';
	
	// remember which is on
	this.current = name;

}
Menu.hide = function(){
	this.timer = setTimeout("Menu.doHide()",300);
}
Menu.doHide = function(){
	if(this.current){
		
		// turn off current subnav
		this.subnavElement = $("subnav_" + this.current);
		if (this.subnavElement){
			this.subnavElement.style.display = "none";
		}
	
		// turn off current nav
		this.parentNavElement = $("nav_" + this.current);
		$(this.parentNavElement).style.background = 'url("/images/sites/ahf/nav/nav_off.gif")';
		
		// remember none are on
		this.current = null;
	}
}


