// ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
//
// Coded by Travis Beckham
// http://www.squidfingers.com | http://www.podlob.com
// If want to use this code, feel free to do so, but please leave this message intact.
//
// ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||


//-----------------------------------------------------------
Menu = {timer : null, current : null};
Menu.getStyle = function(name){
	if( document.getElementById(name)!=null ) return document.getElementById(name).style;
	else if(document.all!=null) {
	  if(document.all[name]!=null) { return document.all[name].style; }
	} else if(document.layers) return document.layers[name];
}
Menu.show = function(name){
	if(this.timer) clearTimeout(this.timer);
	if(this.getStyle(name)!=null) this.getStyle(name).visibility = "visible";
	this.current = name;
}
Menu.hide = function(){
	this.timer = setTimeout("Menu.doHide()",300);
}
Menu.doHide = function(){
	if(this.current){
    if(this.getStyle(this.current)!=null) this.getStyle(this.current).visibility = "hidden";
	  this.current = null;
	}
}
//-----------------------------------------------------------

