function SetMenu(menuId)
{
	var oMenu =	document.getElementById(menuId);
	var numRows = oMenu.rows.length;
	for(i=0; i < numRows ; i++)
	{
		var oddRow = i%2;
		if(!oddRow)
		{
			oMenu.rows(i).cells(oMenu.rows(i).cells.length - 1).onclick = ShowHideSub;
			oMenu.rows(i).cells(oMenu.rows(i).cells.length - 1).click();
			oMenu.rows(i).cells(oMenu.rows(i).cells.length - 1).style.cursor = "hand";
		}
	}
}

function ShowHideSub()
{
	var rowImage = this.firstChild;
	var curRow = this.parentElement.rowIndex + 1;
	var oMenu = this.parentElement.parentElement;
	
	if(oMenu.rows(curRow))
	{
		with(oMenu.rows(curRow).style)
		{
			if(display == "" || display == "block")
			{
				display = "none";
				if(rowImage && rowImage.tagName == "IMG") rowImage.src = rowImage.src.replace("-u","-d");
			}
			else
			{
				display = "block";
				if(rowImage && rowImage.tagName == "IMG") rowImage.src = rowImage.src.replace("-d","-u");
			}
		}
	}
}

function Hilite(oCell,fillColor,edgeColor)
{
	oCell.style.backgroundColor = fillColor;
	oCell.style.borderColor = edgeColor;

}
