var activeLeftLinkID = null;
var currLeftLink = null;
var currLink = null;

function changeon(td)
{
	td.className = "leftnavon";
	//td.style.color = "#FFB200";
}

function doOnLoad(linkID)
{
	var linkObj = document.getElementById(linkID);
	linkObj.className = "leftnavon";
}


function changeoff(td)
{    if (td.id == activeLeftLinkID)
		return;
    td.className = "leftfont";
	//td.style.color = "#ffffff";
}
function changetopon(link)
{
	var td = link.parentNode;
	td.className = "topnavon";
	link.className = "topnavon";
}
function changetopoff(link)
{
	var td = link.parentNode;
	td.className = "topnavoff";
	link.className = "topnavoff";
}
function showHand(obj)
{
	if (navigator.appName == "Microsoft Internet Explorer")
		obj.style.cursor='hand';
	else
		obj.style.cursor='pointer';
}

function activateLeftLink(linkID) {
	activeLeftLinkID = linkID;
	
	changeon(jQuery('.shsMatchNav #'+linkID).get(0));
//	changeon(document.getElementById(linkID));
}

function activateTopLink(linkID) {
	currLink = linkID;
	changetopon(jQuery('.shsMatchNav #'+linkID).get(0));
//	changetopon(document.getElementById(linkID));
}

function controlMouseOut(link) {
	if (link.id != currLink)
		changetopoff(link);
}
