/////////////////////////////////////////////////////////////////////////////
// Function : NavNode (constructor)
// Comments :
/////////////////////////////////////////////////////////////////////////////
function NavNode(id, label, href, parent)
{
	this.m_parent = null;
	this.m_level = 0;

	if (parent)
	{
		this.m_parent = parent;
		this.m_level = parent.m_level+1;
	}

	this.m_id = id;

	// assume that m_label will most often be used directly as HTML
	this.m_rawlabel = label;

	label = label.replace(/&/g, '&amp;');
	label = label.replace(/</g, '&lt;');
	label = label.replace(/>/g, '&gt;');
	label = label.replace(/"/g, '&quot;');

	this.m_label = label;

	this.m_href = href;
	this.m_subNodes = new Array();

	var argValues = NavNode.arguments;
	var argCount = NavNode.arguments.length;

	for (i = 4 ; i < argCount ; i++)
	{
		var eqPos = argValues[i].indexOf("==");
		var attrName = argValues[i].substring(0,eqPos);
		var attrValue = argValues[i].substring(eqPos+2);

		eval("this.cp_" + attrName + " = '" + attrValue + "';");
	}

	NavNode.prototype.addNode = addNode;
	NavNode.prototype.isSelected = isSelected;
}

/////////////////////////////////////////////////////////////////////////////
// Function : addNode
// Comments :
/////////////////////////////////////////////////////////////////////////////
function addNode(id, label, href)
{
	var newIndex = this.m_subNodes.length;
	var newNode = new NavNode(id, label, href, this);

	var argValues = addNode.arguments;
	var argCount = addNode.arguments.length;

	for (i = 3 ; i < argCount ; i++)
	{
		var eqPos = argValues[i].indexOf("==");
		var attrName = argValues[i].substring(0,eqPos);
		var attrValue = argValues[i].substring(eqPos+2);

		eval("newNode.cp_" + attrName + " = '" + attrValue + "';");
	}

	this.m_subNodes[newIndex] = newNode;
	return newNode;
}

/////////////////////////////////////////////////////////////////////////////
// Function : isSelected
// Comments :
/////////////////////////////////////////////////////////////////////////////
function isSelected()
{
    var pos = window.location.href.lastIndexOf("/");
    var docname = window.location.href.substring(pos+1, window.location.href.length);

    pos = this.m_href.lastIndexOf("/");
    var myname = this.m_href.substring(pos+1, this.m_href.length);

    if (docname == myname)
		return true;
	else
		return false;
}

/////////////////////////////////////////////////////////////////////////////
// Function : customSectionPropertyExists
// Comments :
/////////////////////////////////////////////////////////////////////////////
function customSectionPropertyExists(csp)
{
	return (typeof csp != _U && csp != null);
}

/////////////////////////////////////////////////////////////////////////////
// Function : getCustomSectionProperty
// Comments :
/////////////////////////////////////////////////////////////////////////////
function getCustomSectionProperty(csp)
{
	if (customSectionPropertyExists(csp))
	{
		return csp;
	}
	else
	{
		return "";
	}
}

/////////////////////////////////////////////////////////////////////////////

var g_navNode_Root = new NavNode('123','TIAA-CREF Web Center for Financial Advisors',ssUrlPrefix + 'index.html',null,'AdditionalCopyright==TIAA01020971','AdditionalLogo==TIAA01020992','AdditionalLogoAltText==TIAA-CREF\x3a Financial Advisors','FooterContent1==TIAA02027763','FooterContent2==TIAA02027765','FooterTag==TIAA01020943','InheritableCopyright==TIAA01020966','PrimaryHeaderFooterType==home','SectionJavaScript==/ucm/groups/app/documents/webcontent/equalhieghts.js.js','SectionStyleSheet==/ucm/groups/content/\x40ap_ucm_p_tcp/documents/webasset/css_tcpub_home.css','ShowSearch==true');
g_navNode_2=g_navNode_Root.addNode('124','Products',ssUrlPrefix + 'products/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','SectionStyleSheet==/ucm/groups/app/documents/webasset/css_tcpub_about.css');
g_navNode_2_0=g_navNode_2.addNode('1645','Eligible Investors',ssUrlPrefix + 'products/eligible-investors/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_2_0_0=g_navNode_2_0.addNode('1663','IRAs',ssUrlPrefix + 'products/eligible-investors/iras/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_2_0_1=g_navNode_2_0.addNode('1664','Retirement Plans',ssUrlPrefix + 'products/eligible-investors/retirement-plans/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_2_0_2=g_navNode_2_0.addNode('1665','Keoghs',ssUrlPrefix + 'products/eligible-investors/keoghs/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_2_0_3=g_navNode_2_0.addNode('1666','Tax-Deferred Annuities',ssUrlPrefix + 'products/eligible-investors/tax-deferred-annuities/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_2_0_4=g_navNode_2_0.addNode('1667','457\x28b\x29',ssUrlPrefix + 'products/eligible-investors/457b/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_2_0_5=g_navNode_2_0.addNode('1668','Eligibility Guide',ssUrlPrefix + 'products/eligible-investors/eligibility-guide/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_2_1=g_navNode_2.addNode('1646','All Investors ',ssUrlPrefix + 'products/all-investors/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==Full');
g_navNode_2_1_0=g_navNode_2_1.addNode('1669','Mutual Funds',ssUrlPrefix + 'products/all-investors/mutual-funds/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','SectionRedirectUrl==\x3c\x21--\x24wcmUrl\x28\"nodelink\",\"52\"\x29--\x3e');
g_navNode_2_1_1=g_navNode_2_1.addNode('1670','Life Insurance',ssUrlPrefix + 'products/all-investors/life-insurance/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','SectionRedirectUrl==\x3c\x21--\x24wcmUrl\x28\"nodelink\",\"47\"\x29--\x3e');
g_navNode_2_1_2=g_navNode_2_1.addNode('1671','After-Tax Annuities',ssUrlPrefix + 'products/all-investors/after-tax-annuities/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','SectionRedirectUrl==\x3c\x21--\x24wcmUrl\x28\"nodelink\",\"46\"\x29--\x3e');
g_navNode_2_1_3=g_navNode_2_1.addNode('1672','529 College Savings Plans',ssUrlPrefix + 'products/all-investors/529-college-savings-plans/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','SectionRedirectUrl==\x3c\x21--\x24wcmUrl\x28\"nodelink\",\"50\"\x29--\x3e');
g_navNode_3=g_navNode_Root.addNode('125','How Do I?',ssUrlPrefix + 'guidance/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','SectionStyleSheet==/ucm/groups/app/documents/webasset/css_tcpub_learningcenter.css');
g_navNode_3_0=g_navNode_3.addNode('1633','Become an Authorized Advisor',ssUrlPrefix + 'guidance/become-an-authorized-advisor/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_3_1=g_navNode_3.addNode('1640','Perform Frequent Transactions',ssUrlPrefix + 'guidance/perform-frequent-transactions/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_3_1_0=g_navNode_3_1.addNode('1676','Transfers \x26 Contributions',ssUrlPrefix + 'guidance/perform-frequent-transactions/transfers-contributions/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_3_1_0_0=g_navNode_3_1_0.addNode('1679','Transfer funds into TIAA-CREF',ssUrlPrefix + 'guidance/perform-frequent-transactions/transfers-contributions/transfer-funds-into-tiaa-cref/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_3_1_0_1=g_navNode_3_1_0.addNode('1680','Make an internal transfer ',ssUrlPrefix + 'guidance/perform-frequent-transactions/transfers-contributions/make-an-internal-transfer/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_3_1_0_2=g_navNode_3_1_0.addNode('1681','Transfer funds from TIAA-CREF',ssUrlPrefix + 'guidance/perform-frequent-transactions/transfers-contributions/transfer-funds-from-tiaa-cref/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_3_1_0_3=g_navNode_3_1_0.addNode('1682','Retirement Annuities, Group Retirement Annuities and Supplemental Retirement Annuities',ssUrlPrefix + 'guidance/perform-frequent-transactions/transfers-contributions/retirement_annuities/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_3_1_1=g_navNode_3_1.addNode('1677','Distributions',ssUrlPrefix + 'guidance/perform-frequent-transactions/distributions/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_3_1_1_0=g_navNode_3_1_1.addNode('1683','Withdraw cash',ssUrlPrefix + 'guidance/perform-frequent-transactions/distributions/withdraw-cash/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_3_1_1_1=g_navNode_3_1_1.addNode('1684','Take a loan',ssUrlPrefix + 'guidance/perform-frequent-transactions/distributions/take-a-loan/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_3_1_1_2=g_navNode_3_1_1.addNode('1685','Begin minimum distributions',ssUrlPrefix + 'guidance/perform-frequent-transactions/distributions/begin-minimum-distributions/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_3_1_2=g_navNode_3_1.addNode('1678','Retirement Income',ssUrlPrefix + 'guidance/perform-frequent-transactions/retirement-income/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_3_1_2_0=g_navNode_3_1_2.addNode('1694','Create an income stream',ssUrlPrefix + 'guidance/perform-frequent-transactions/retirement-income/create-an-income-stream/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_3_1_2_1=g_navNode_3_1_2.addNode('1687','Make a post-retirement transfer',ssUrlPrefix + 'guidance/perform-frequent-transactions/retirement-income/make-a-post-retirement-transfer/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_3_2=g_navNode_3.addNode('1641','Claim Benefits',ssUrlPrefix + 'guidance/claim-benefits/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_4=g_navNode_Root.addNode('126','Advisor Specialist',ssUrlPrefix + 'advisor-specialist/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','SectionStyleSheet==/ucm/groups/app/documents/webasset/css_tcpub_fundresearch.css');
g_navNode_4_0=g_navNode_4.addNode('1650','Retirement Plans',ssUrlPrefix + 'advisor-specialist/retirement-plans/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_4_1=g_navNode_4.addNode('1651','Investments',ssUrlPrefix + 'advisor-specialist/investments/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_4_2=g_navNode_4.addNode('1652','Life Insurance',ssUrlPrefix + 'advisor-specialist/life-insurance/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','SectionRedirectUrl==\x3c\x21--\x24wcmUrl\x28\"nodelink\",\"47\"\x29--\x3e');
g_navNode_4_3=g_navNode_4.addNode('1653','529 Plans',ssUrlPrefix + 'advisor-specialist/529-plans/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_5=g_navNode_Root.addNode('128','Resource Center',ssUrlPrefix + 'resources/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','SectionStyleSheet==/ucm/groups/app/documents/webasset/css_tcpub_helpresources.css','secondaryUrlVariableField==3RD_LVL_OR_LOWER_CONTENT');
g_navNode_5_0=g_navNode_5.addNode('1658','News',ssUrlPrefix + 'resources/news/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','secondaryUrlVariableField==3RD_LVL_OR_LOWER_CONTENT');
g_navNode_5_1=g_navNode_5.addNode('1660','Financial Performance',ssUrlPrefix + 'resources/financial-performance/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','secondaryUrlVariableField==3RD_LVL_OR_LOWER_CONTENT');
g_navNode_5_1_0=g_navNode_5_1.addNode('1688','Fund Fact Sheets',ssUrlPrefix + 'resources/financial-performance/fund-fact-sheets/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_5_1_1=g_navNode_5_1.addNode('1689','Retirement Investments',ssUrlPrefix + 'resources/financial-performance/retirement-investments/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','SectionRedirectUrl==\x3c\x21--\x24wcmUrl\x28\"nodelink\",\"51\"\x29--\x3e');
g_navNode_5_1_2=g_navNode_5_1.addNode('1690','Mutual Funds',ssUrlPrefix + 'resources/financial-performance/mutual-funds/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','SectionRedirectUrl==\x3c\x21--\x24wcmUrl\x28\"nodelink\",\"53\"\x29--\x3e');
g_navNode_5_1_3=g_navNode_5_1.addNode('1691','Life Insurance',ssUrlPrefix + 'resources/financial-performance/life-insurance/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','SectionRedirectUrl==\x3c\x21--\x24wcmUrl\x28\"nodelink\",\"55\"\x29--\x3e');
g_navNode_5_1_4=g_navNode_5_1.addNode('1692','After-Tax Annuities',ssUrlPrefix + 'resources/financial-performance/after-tax-annuities/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','SectionRedirectUrl==\x3c\x21--\x24wcmUrl\x28\"nodelink\",\"54\"\x29--\x3e');
g_navNode_5_1_5=g_navNode_5_1.addNode('1693','Morningstar Ratings',ssUrlPrefix + 'resources/financial-performance/morningstar-ratings/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','SectionRedirectUrl==\x3c\x21--\x24wcmUrl\x28\"nodelink\",\"66\"\x29--\x3e');
g_navNode_5_1_6=g_navNode_5_1.addNode('3452','Monthly Interest Rates',ssUrlPrefix + 'resources/financial-performance/monthly-interest-rates/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full');
g_navNode_5_2=g_navNode_5.addNode('1661','Forms',ssUrlPrefix + 'resources/forms/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','SectionStyleSheet==/ucm/groups/app/documents/webasset/css_tcpub_forms.css','secondaryUrlVariableField==FORMS_CONTENT');
g_navNode_5_3=g_navNode_5.addNode('1662','Financial Planning Library',ssUrlPrefix + 'resources/financial-planning-library/index.html','PrimaryHeaderFooterType==full','SecondaryHeaderFooterType==full','secondaryUrlVariableField==3RD_LVL_OR_LOWER_CONTENT');

