
var path = window.location.pathname;
var query = window.location.search;

if (findpath(query,'AboutTRS')>0)
	document.getElementById('UcNavGlobal_hlAboutTRS').style.color='Black';

if (findpath(path,'Sitemap')>0)
	document.getElementById('UcNavGlobal_hlSitemap').style.color='Black';

if (findpath(path,'po_IRA')>0)
	document.getElementById('UcNavGlobal_hlProdServ').style.color='Black';

if (findpath(path,'Search/')>0)
{
	document.getElementById('UcNavGlobal_hlSearch').style.color='Black';
}

if (findpath(query,'/ProductsAndServices/')>0)
{
	document.getElementById('UcNavGlobal_hlProdServ').style.color='Black';
}

if (findpath(query,'/FundInformation/')>0)
{
	document.getElementById('UcNavGlobal_hlFundInfo').style.color='Black';
}

if (findpath(query,'/Fund/')>0)
{
	document.getElementById('UcNavGlobal_hlFundInfo').style.color='Black';
}

if (findpath(path,'Fund')>0)
{	
	// AAM - Getting set when employer/plan funds clicked (NL)
	//document.getElementById('UcNavGlobal_hlFundInfo').style.color='Black';
}

if (findpath(query,'id=554')>0)
{
	document.getElementById('UcNavGlobal_hlRetPlan').style.color='Black';
}

if (document.domain+path == document.domain+'/')	
		document.getElementById('UcNavGlobal_hlHome').style.color='Black';	
		
if (document.domain+path == document.domain+'/default.aspx')	
		document.getElementById('UcNavGlobal_hlHome').style.color='Black';	
		
setUserType();

function findpath(string,value)
{
	string=string.toLowerCase();
	//alert(string);
	value=value.toLowerCase();
	//alert(value);
	return string.indexOf(value)
}

function setUserType()
{

	var usertype = '';

	if (findpath(query,'usertype=r') > 0)
		usertype = 'r';

	if (findpath(query,'usertype=i') > 0)
		usertype = 'i';
		
	if (findpath(query,'usertype=x') > 0)
		usertype = 'x';

	//if (usertype == '')
	//	usertype = document.getElementById(["UserType"]).value;
	
	if (usertype == 'r')
		document.getElementById('UcNavGlobal_hlRetPlan').style.color='#568ABE';

	if (usertype == 'i')
		document.getElementById('UcNavGlobal_hlFundInfo').style.color='#568ABE';

	if (usertype == 'x')
		document.getElementById('UcNavGlobal_hlProdServ').style.color='#568ABE';	
}
	
function ShowROT(id)
{
	document.getElementById(id).className='rollOverTextVisible';
}

function HideROT(id)
{
	document.getElementById(id).className='rollOverTextHidden';
}

