var selectedTextColor = '#FFEF84';
var selectedBackColor = '#AF6229';
var normalTextColor = '#632918';

function ov(x)
{
	x.style.backgroundColor=selectedBackColor;
	x.style.cursor='hand';
}

function ou(x)
{
	x.style.backgroundColor='transparent';
}

function hov(obj, theLink)
{
	obj.style.backgroundColor = selectedBackColor;

	var ctl = document.getElementById(theLink);
	if (ctl == null)
		ctl = document.anchors[theLink];
	ctl.style.color = selectedTextColor;

	obj.style.cursor='hand';
	return true;
}

function hou(obj, theLink)
{
	obj.style.backgroundColor='transparent';
	var ctl = document.getElementById(theLink);
	if (ctl == null)
		ctl = document.anchors[theLink];
	ctl.style.color = normalTextColor;
	return true;
}

function hovm(theObj, theLink, theMenu)
{
	theObj.style.backgroundColor = selectedBackColor;
	var ctl = document.getElementById(theLink);
	if (ctl == null)
		ctl = document.anchors[theLink];
	ctl.style.color = selectedTextColor;

	theObj.style.cursor='hand';

	if (is_supportMenus)
	{
		ctl = null;
		if (theObj.parentNode)
			ctl = theObj.parentNode.parentNode.parentNode;
		if (ctl)
			y = ctl.offsetTop + 2 + theObj.scrollHeight;
		else
			y = 120;
		x = theObj.offsetLeft + 2;
	
		window.FW_showMenu(theMenu,x,y+2)
	}
	return true;
}

function houm(obj, theLink)
{
	obj.style.backgroundColor='transparent';
	var ctl = document.getElementById(theLink);
	if (ctl == null)
		ctl = document.anchors[theLink];
	ctl.style.color = normalTextColor;

	if (is_supportMenus)
		FW_startTimeout();
	return true;
}
