// This will check for both IE and Mozilla dhtml expanded
var dhtmlEnhanced = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )) ||
				((navigator.appCodeName == "Mozilla") && (parseInt(navigator.appVersion) >= 5));


var gBackColor = "";
var gForeColor = "";

function m_over(x) {
	if(x == null)
		x= window.event.srcElement;
		
	var el = getContainer(x, "TR");
				
	el.style.background="#FFCC66";
	el.style.cursor = "hand";
}

function m_out(x) 
{
	if(x == null)
		x= window.event.srcElement;
		
	var el = getContainer(x, "TR");
			
	el.style.background="none";
	el.style.cursor = "default";
}

function m_click(dest) {
	var url = dest;
	
	location.href = url;
}


function n_over(x) 
{
	if(x == null)
		x= window.event.srcElement;
	x.style.background="#FFCC66";
	x.style.color = "white";
	x.style.cursor = "hand";
}

function n_out(x) 
{
	if(x == null)
		x= window.event.srcElement;
	x.style.background="#E6E6E6";
	x.style.color = "steelblue";
	x.style.cursor = "default";
}

function tab_over(x) 
{
	if(x == null)
		x= window;
	x.event.srcElement.style.background="#ff9933";
	x.event.srcElement.style.color = "white";
	x.event.srcElement.style.cursor = "hand";
}

function tab_out(x) 
{
	if(x == null)
		x= window;
	x.event.srcElement.style.background = "";
	x.event.srcElement.style.color = "";
	x.event.srcElement.style.cursor = "default";

}

function getContainer(el, tagName) {
	var temp = el;
	while ((temp != null) && (temp.tagName != "BODY")) {
		if (temp.tagName == tagName) {
			return temp;
		}
		temp = temp.parentElement;
	}
	return el;
}
