var dropdownMenu = {
timeout: 400,
menuObj: null,

hideMenu: function() {
this.hideMenuTimeout=setTimeout("dropdownMenu.menuObj.style.display='none'",this.timeout)
},

showMenu: function(link){
	linkObj=document.getElementById(link);

	
	this.menuObj.style.left=linkObj.offsetLeft-40+"px";
	this.menuObj.style.top=linkObj.offsetTop+20+"px";
	
	this.menuObj.style.display='inline';
},

toggleMenu: function(obj,menuID,linkID) {
	if(document.all&&document.getElementById) {
		if (this.menuObj!=null) {
			this.menuObj.style.display="none";
			this.clearHideMenu();
		}
		obj.onmouseout=function(){dropdownMenu.hideMenu()}
		this.menuObj=document.getElementById(menuID);
		this.menuObj.onmouseover=function(){dropdownMenu.clearHideMenu()};
		this.menuObj.onmouseout=function(){dropdownMenu.hideMenu()};
		this.showMenu(linkID);
	}
},

clearHideMenu:function(){
	if (this.hideMenuTimeout!="undefined")
		clearTimeout(this.hideMenuTimeout);
}

}