var CurrentCell = "";

function HiliteTCell(idnum)			// called from index
{
//return;
	if (idnum != "38")	// no changes on clicking a link that opens a new window
	{
		var cellid = "cell" + idnum;
		if (CurrentCell != "")
		{
			var tcellp = document.getElementById(CurrentCell);
			if (tcellp) 
			{	
//				tcellp.style.backgroundColor = "transparent";
//				if (CurrentCell == "cell38" || CurrentCell == "cell41") tcellp.style.backgroundImage = "url(img/MenuCell2pdf.gif)"; else
				tcellp.style.backgroundImage = "url(img/MenuCell6C.gif)";	// SPRING = 4C   summer = 6C   winter=2
			}
		}
		tcell = document.getElementById(cellid);
		if (tcell) 
		{
//tcell.blur();
//			if (cellid == "cell38" || cellid == "cell41") tcell.style.backgroundImage = "url(img/MenuCell1pdf.gif)";  else
				tcell.style.backgroundImage = "url(img/MenuCell6D.gif)";		// SPRING = 4D  summer = 6D  winter = 1
//alert("pause");
//---			tcell.blur();		// removes the dotted focus rectangle     no it doesn't
//			setTimeout("tcell.blur();", 200);
			CurrentCell = cellid;
////			window.setTimeout("RemoveFocusRect();", 300);
//var bcell = document.getElementById("cell35");
//if (bcell) bcell.focus();
//alert("pause");
		}
	}
}

function HiliteMenuCell(idnum)		//called from a subpage
{
//return;
//alert("HiliteMenuCell  " + parent.CurrentCell + "  " + idnum);
	if (idnum != "38")	// no changes on clicking a link that opens a new window
	{
		var cellid = "cell" + idnum;
		if (parent.CurrentCell != "")
		{
			var tcellp = parent.document.getElementById(parent.CurrentCell);
			if (tcellp) 
			{	
				tcellp.style.backgroundImage = "url(img/MenuCell6C.gif)";	// spring = 4C  summer = 6C  winter = 2
			}
		}
		tcell = parent.document.getElementById(cellid);
		if (tcell) 	// the hilite cell
		{
			tcell.style.backgroundImage = "url(img/MenuCell6D.gif)";		// spring = 4D   winter = 1  summer = 6D
			parent.CurrentCell = cellid;
		}
	}
}
