if (window.name!="Menu")	{
	document.cookie="myhybridpage=" + window.location;
	if (window.name != "Main") {
		window.top.location.replace("frames.html");
	}
}

var mycursor;
if (navigator.appName=="Microsoft Internet Explorer")	{
	mycursor="hand";
}
else	{
	mycursor="pointer";
}

function myBorderStyle(mytd)	{
//Because Firefox allocates "inset inset inset inset" as style, rather than just "inset" as IE does.
	var myborder=mytd.style.borderStyle;
	if (myborder.indexOf(" ")==-1)	{	// no space, single style attribute as in IE
		return myborder;
	}
	else	{	// space found, multiple style attribute as in Firefox
		myborder=myborder.substring(0,myborder.indexOf(" "));
		return myborder;
	}
}



function mover(mytd)	{
	if(myBorderStyle(mytd) !="inset")	{
	mytd.style.color="#00ffff";
	mytd.style.cursor=mycursor;
	}
}

function mout(mytd)	{
	if(myBorderStyle(mytd) !="inset")	{
	mytd.style.color="yellow";
	mytd.style.cursor="default";
	}
}

function mclick(mytd)	{
	var mytable=window.top.Menu.document.getElementsByTagName("TD");
	for (var x=0; x<mytable.length; x++)	{
		if (mytable[x].id==mytd.id)	{
			mytable[x].style.borderStyle="inset";
			mytable[x].style.color="gray";
		}
		else	{
			mytable[x].style.borderStyle="outset";
			mytable[x].style.color="yellow";
		}
	}
	window.top.Main.location=mytd.id+".html";
}

function menuReset(which)	{
	var mytable=window.top.Menu.document.getElementsByTagName("TD");
	for (var x=0; x<mytable.length; x++)	{
		if (mytable[x].id==which)	{
			mytable[x].style.borderStyle="inset";
			mytable[x].style.color="gray";
		}
		else	{
			mytable[x].style.borderStyle="outset";
			mytable[x].style.color="yellow";
		}
	}
}
function temp(){
	var mytd=window.top.Menu.document.getElementById(which);
	mytd.style.color="gray";
	mytd.style.borderStyle="inset";
	mytd.style.cursor="default";
}
