
var currentCell = null;

function deactiveCurrent()
{
	if (currentCell != null)	
	{
		currentCell.style.backgroundColor = "#DDDDDD";
		currentCell.style.backgroundImage = "";
		currentCell.style.backgroundPosition= "top";
		currentCell.style.backgroundRepeat = "repeat-x";
		currentCell.style.borderBottom = "1px solid black";
	}
}

function activeNew(newCell, newloc)
{
	deactiveCurrent();
	currentCell = document.getElementById(newCell);
	currentCell.style.backgroundImage = "url('images/mnubk.jpg')";
	currentCell.style.backgroundPosition= "top";
	currentCell.style.backgroundRepeat = "repeat-x";	
    currentCell.style.borderBottom = "1px solid white";
    
    parent.mainframe.location = newloc;
}


function hoverIn(newCell)
{
	
	var cell = document.getElementById(newCell);	
	if (cell != currentCell)
	{
		//cell.style.color = "#800000"
		cell.style.backgroundImage = "url('images/mnubk2.jpg')";
		cell.style.backgroundPosition= "top";
		cell.style.backgroundRepeat = "repeat-x";	
	}
}

function hoverOut(newCell)
{
	var cell = document.getElementById(newCell);	
	if (cell != currentCell)
	{
		cell.style.color = "#008000"
		cell.style.backgroundImage = "";
	}
}
