var getById = (typeof document.getElementById != "undefined");
var blockedMenuCell;

function menuHover( menuCell, hovering ) 
{
	if ( blockedMenuCell == menuCell ) return;

	if ( hovering )
	{
		menuCell.style.backgroundColor='#cad5e0';
		menuCell.style.cursor='pointer';
	}
	else
	{
		menuCell.style.backgroundColor = '#ffffff';
		menuCell.style.cursor='default';
	}
}

function menuClick( menuCell, url) 
{
	if ( blockedMenuCell == menuCell ) return;

	window.location.href = url;
}

function menuSelect( cellID )
{
	if (!getById) return;

	var menuCell = document.getElementById(  cellID );
	blockedMenuCell = menuCell;

	menuCell.style.backgroundColor = '#315273';
	menuCell.style.color='#ffffff';
	menuCell.style.cursor= 'default';
}

