menu_status = new Array(); 
function showHide(caller_obj)
{
	//Get the parent <li> and the grandparent <ul> elements of the clicked anchor
	if(caller_obj.parentNode)
	{	//Firefox
		clickedLI = caller_obj.parentNode;
		parentUL = clickedLI.parentNode;
	}else{
		//IE, Opra, Safari
		clickedLI = caller_obj.parentElement;
		parentUL = clickedLI.parentElement;
	}

	//Get the list that should be shown/hidden
	listLI = document.getElementById(clickedLI.id + "_list");
	//Decide whether to show or to hide the clicked item's list
	if(listLI.style.display=='block')
		new_display_value = 'none';
	else
		new_display_value = 'block';
		
	//** hide all open lists that are at the same level with the clicked <li>**
	//Get an array of all <li> elements contained in the parent <ul>
	parentList = parentUL.getElementsByTagName("li");
	//alert(parentList.length);
	for(var i=0; i<parentList.length; i++)
	{//for each <li> element in the navigation bar
		//Check if it is a list
		var id_str = new String(parentList[i].id);
		var index = id_str.indexOf("_list");
		if (index > 0)
		{//this is a list
			//hide it
			parentList[i].style.display='none';
		}
	}

	//** show/hide the list **
	listLI.style.display=new_display_value;
	
}

function open_products()
{
document.getElementById("mymenu1").style.display='block';	
}

function open_brands()
{
document.getElementById("mymenu2").style.display='block';	
}
