function changeImages()
	{
	if (document.images)
		{
		document.getElementById(this.o).src = this.oImg;
		}
	}

function cancelHide()
	{
	if (this.tid) clearTimeout(this.tid);
	}

function show()
	{
	this.cancelHide();
	
	if (prevMenu && prevMenu!=this.oID)
		{
		eval(prevMenu+"Obj.hideCallback();");
		eval(prevMenu+"Obj.cancelHide();");
		}
	
	prevMenu = this.oID;
	document.getElementById(this.oID).style.display = "";
	this.oImg = "/images/standard/" + this.o + "_on.gif";
	this.changeImages();
	}

function hide()
	{
	this.tid = eval("setTimeout('"+this.oID+"Obj.hideCallback()', 2000);");
	}

function hideCallback()
	{
	document.getElementById(this.oID).style.display = 'none';
	this.oImg = "/images/standard/" + this.o + ".gif";
	this.changeImages();
	}

//first object attempt
function menuMaker(oID, o)
	{
	//properties
	this.oID = oID;
	this.o = o;
	this.oImg;
	this.tid;
	
	//methods
	this.show = show;
	this.hide = hide;
	this.hideCallback = hideCallback;
	this.cancelHide = cancelHide;
	this.changeImages = changeImages;
	}