function tbarCell_onMouseOver( oTD)
{
	oTD.className = "toolbarCellHighlight";
}

function tbarCell_onMouseOut( oTD)
{
	oTD.className = "";
}

function tbarCell_onClick( oTD)
{
	var sURL = getMatchingTBarURL( oTD.innerText);
	
	// exit if invalid
	if( 0 >= sURL.length)
		return;
	
	// move to new page
	window.location.href = sURL;
}

function initTBarLinks()
{
	try
	{
		tdHome.innerHTML = "<nobr>Company</nobr>";
		tdServices.innerHTML = "<nobr>Services</nobr>";
		tdProducts.innerHTML = "<nobr>Products</nobr>";
		tdClients.innerHTML = "<nobr>Clients</nobr>";
		tdContacts.innerHTML = "<nobr>Team</nobr>";
		tdLinks.innerHTML = "<nobr>Resources</nobr>";
	}
	catch(e)
	{
		alert(e.description);
	}
}

// returns URL for the page the cell should be directed to
function getMatchingTBarURL( sCellTitle)
{
	if( "Company" == sCellTitle) return "index.asp";
	if( "Services" == sCellTitle) return "Services.asp";
	if( "Products" == sCellTitle) return "Products.asp";
	if( "Clients" == sCellTitle) return "company.clients.asp";
	if( "Team" == sCellTitle) return "team.AlanRuth.asp";
	if( "Resources" == sCellTitle) return "resources.asp";
	return "";	// invalid param
}
