function NaviMenu(menuitems)
{
	this.menuitems = menuitems;
}

NaviMenu.prototype.reset = function()
{
	for (var i = 1; i <= this.menuitems.length; i++)
	{
		try
		{
			$("menu"+i).src = this.menuitems[(i - 1) * 2];
			if ($("submenu"+i) != null)
			{
				$("submenu"+i).style.display = "none";
			}
		}
		catch (e)
		{
		}
	}
}

NaviMenu.prototype.over = function(no)
{
	this.reset();
	
	try
	{
		var img = this.menuitems[(no - 1) * 2 + 1];
		if (img) $("menu"+no).src = img;
		if ($("submenu"+no) != null)
		{

			$("submenu"+no).style.display = "inline";
		}
	}
	catch (e)
	{
	}
}
