//menu.js Version 1.7

var eleById = (document.getElementById) ? true : false;
var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && eleById) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && eleById) ? true : false;
var ns4 = (document.layers && !eleById) ? true : false;
var ie4 = (document.all && !eleById) ? true : false;
var nodhtml = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;
var SaveColor="#000000";
var SaveBGColor="#FFFFFF";

function returnColor(t)
{
	if (!ns4)
	{
		t.style.color = SaveColor;
		t.style.background = SaveBGColor;
	}
}

function turnBrown(t,decoration)
{
debugger;
	if (typeof decoration == 'undefined') var decoration='none';
	if (!ns4)
	{
		SaveColor = t.style.color;
		SaveBGColor = t.style.background;
		t.style.color = "#AD8C31";
		//t.text-decoration=decoration;

		if ( "#E7DEBD" != t.style.background  )
		{
			t.style.background = "#E7DEBD";
		}
		else
		{
			t.style.background = "#FFFFFF";
		}
	}
}

function turnBlack(t)
{
	if (!ns4)
	{
		SaveColor = t.style.color;
		SaveBGColor = t.style.background;
		if ( "HOME" == t.name )
		{
			t.style.background = "#E7DEBD";
			t.style.background = "#FFFFFF";
		}
		else
		{
			t.style.color = "#000000";
			t.style.background = "#FFFFFF";
		}
	}
}
