//********************
// Menu Constructor *
//********************
function Menu()
{	
	// get id's
	this.submenuWrapper	= document.getElementById('product_menu');
	
	if (this.submenuWrapper) this.submenu = this.submenuWrapper.getElementsByTagName('ul')[0];

	// set strings
	this.hoverClass		= 'hover';
	
	// initialize Menu object
	this.init();
}

//****************************
// Function initialize Menu *
//****************************
Menu.prototype.init = function()
{
	var _this = this;
	
	if (this.submenu)
	{
		if (this.submenu.childNodes.length > 0)
		{
			for (i=0; i < this.submenu.childNodes.length; i++)
			{
				node = this.submenu.childNodes[i];
				
				if (node.nodeName == 'LI')
				{
					node.onmouseover = function()
					{
						var anchor			= this.getElementsByTagName('a')[0];
						this.className		= _this.hoverClass;
					}
			
					node.onmouseout = function()
					{
						var anchor			= this.getElementsByTagName('a')[0];
						this.className		= '';
					}
				}
			}
		}
	}
}