<!--
	Menu = {timer : null, current: null};
	Menu.show = function(parentid, id) {
		if(this.current == id) return;

		// Close all menus first
		this.doHide();
		if(this.timer) clearTimeout(this.timer);
		this.current = id;
		$("#" + id).fadeIn("fast");

		/*
		The following code was used to dynamically position the submenu next 
		to the parent. Probably worth keeping
		*/
		
		/*
		var parent = $("#" + parentid);
		var oParent = parent.parent().get(0);
		
		// Position for child
		var posY = this.findLeft(oParent);
		var posX = this.findTop(oParent);
		
		// Modify these to get exact positioning
		var offsetX = -parent.height() + 14;
		var offsetY = parent.width() + 23;
	
		// Reposition the menu and display
		$("#" + id).css({
			'position': 'absolute',
			'top': posX + offsetX + 'px',
			'left': posY + offsetY + 'px',
			'z-index': 99999
		}).fadeIn('fast');
		*/
	}

	Menu.hide = function() {
		this.timer = setTimeout("Menu.doHide()", 300);
	}
	Menu.doHide = function() {
		if(this.current) {
			$('#' + this.current).hide();
		}
		this.current = null;
	}
	Menu.persist = function() {
		if(this.timer) clearTimeout(this.timer);
	}

	Menu.findLeft = function(obj)
	{
		curleft = 0;
		if(obj.offsetParent)
		while(1) {
			curleft += obj.offsetLeft;
			if(!obj.offsetParent)
				break;
			obj = obj.offsetParent;
		}
		else if(obj.x)
			curleft += obj.x;

		return curleft;
	}

	Menu.findTop = function(obj)
	{
		curtop = 0;
		if(obj.offsetParent)
		while(1) {
			curtop += obj.offsetTop;
			if(!obj.offsetParent)
				break;
			obj = obj.offsetParent;
		}
		else if(obj.y)
			curtop += obj.y;
		return curtop;
	}
	
	
	/*
	function slideDetails(string id)
	This function will slide open or closed a given
	object with ID
	*/
	function slideDetails(id)
	{
		var oDiv = $('#' + id);
		
		if(oDiv.css('display') == 'none') {
			oDiv.slideDown('fast');
		} else {
			oDiv.slideUp('fast');
		}
	}
	 
-->