/////////////////////////////////////////////////////////////////////////////
// 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 attrName = argValues[i].split("==")[0];
		var attrValue = argValues[i].split("==")[1];

		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 attrName = argValues[i].split("==")[0];
		var attrValue = argValues[i].split("==")[1];

		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('1766','In\xedcio',ssUrlPrefix + 'index.htm',null,'AdditionalCSS==groups/globaltemplates/documents/web_asset/emeacss.css','AnalyticsCode==UA-11736590-1','ComplianceNodeId==2037','DisplayDateFormat==dd.MM.yyyy','HTTPMetaText==\x3cmeta name\x3d\"google-site-verification\" content\x3d\"c0lEtrOdJxj-2rEEJZqo2rUg9Z79Hj0TJIutwtTRdds\" /\x3e','Language==pt','NoCookiesNodeId==5054','NotComplianceProtected==TRUE','OmnitureID==blkpt-prod','RedirectURL==2039','StartDivID==LandingPage','UnicaID==blk\x3apt');
g_navNode_0=g_navNode_Root.addNode('2039','BlackRock',ssUrlPrefix + 'Investors/index.htm','SiloName==6');
g_navNode_0_0=g_navNode_0.addNode('1767','Documenta\xe7\xe3o',ssUrlPrefix + 'Investors/Documentation/index.htm','RedirectURL==1772');
g_navNode_0_0_0=g_navNode_0_0.addNode('1772','Documenta\xe7\xe3o Legal',ssUrlPrefix + 'Investors/Documentation/LegalDocuments/index.htm','RedirectURL==2028');
g_navNode_0_0_0_0=g_navNode_0_0_0.addNode('2028','Documentos',ssUrlPrefix + 'Investors/Documentation/LegalDocuments/Documentation/index.htm','HideTabs==TRUE','Query==dDocType \x3cmatches\x3e \x60Literature\x60 \x3cAND\x3e xWebsites \x3ccontains\x3e \x60pt\x60 \x3cAND\x3e \x28xSubType \x3ccontains\x3e \x6090\x60 \x3cOR\x3e xSubType \x3ccontains\x3e \x6026 \x60  \x3cOR\x3e xSubType \x3ccontains\x3e \x6013\x60 \x3cOR\x3e xSubType \x3ccontains\x3e \x603\x60 \x3cOR\x3e xSubType \x3ccontains\x3e \x6084\x60 \x3cOR\x3e xSubType \x3ccontains\x3e \x609\x60\x29 \x3cAND\x3e xTargetAudienceOrVenue \x3ccontains\x3e \x601\x60','ShowRelResources==TRUE','SortFields==xDocumentNickname Asc');
g_navNode_0_1=g_navNode_0.addNode('1776','Perspectivas de Investimento',ssUrlPrefix + 'Investors/InvestmentInsights/index.htm','RedirectURL==1777');
g_navNode_0_1_0=g_navNode_0_1.addNode('2029','Vis\xe3o de Mercado',ssUrlPrefix + 'Investors/InvestmentInsights/MarketViews/index.htm','RedirectURL==1777');
g_navNode_0_1_0_4=g_navNode_0_1_0.addNode('1777','Week in View',ssUrlPrefix + 'Investors/InvestmentInsights/MarketViews/WeekInView/index.htm','ShowRelResources==TRUE','ShowThirdLevelNav==TRUE');
g_navNode_0_2=g_navNode_0.addNode('2036','Quem  somos',ssUrlPrefix + 'Investors/AboutUs/index.htm','RedirectURL==http\x3a//www2.blackrock.com/global/home/AboutUs/index.htm');
g_navNode_0_2_0=g_navNode_0_2.addNode('5758','NewBlackRock',ssUrlPrefix + 'Investors/AboutUs/NewBlackRock/index.htm','ShowRelResources==TRUE');
g_navNode_0_2_2=g_navNode_0_2.addNode('2027','Contacte-nos',ssUrlPrefix + 'Investors/AboutUs/ContactUs/index.htm','ShowRelResources==TRUE');
g_navNode_0_2_3=g_navNode_0_2.addNode('2040','Informa\xe7\xe3o legal',ssUrlPrefix + 'Investors/AboutUs/LegalInformation/index.htm');
g_navNode_0_2_4=g_navNode_0_2.addNode('2041','Declara\xe7\xe3o de privacidade',ssUrlPrefix + 'Investors/AboutUs/PrivacyStatement/index.htm');
g_navNode_0_3=g_navNode_0.addNode('480','Not\xedcia',ssUrlPrefix + 'Investors/News/index.htm','DoNotShowInNavigation==TRUE','ShowRelResources==TRUE','WideColumnMiddle==TRUE');
g_navNode_1=g_navNode_Root.addNode('1768','Fichas informativas',ssUrlPrefix + 'Factsheets/index.htm','RedirectURL==1769');
g_navNode_1_0=g_navNode_1.addNode('1769','Fundos de Ac\xe7\xf5es',ssUrlPrefix + 'Factsheets/Equities/index.htm','Query==dDocType \x3cmatches\x3e \x60Literature\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60pt\x60  \x3cAND\x3e  xSubType \x3ccontains\x3e \x6015\x60  \x3cAND\x3e  xAssetType \x3ccontains\x3e \x604\x60  \x3cAND\x3e  xTargetAudienceOrVenue \x3ccontains\x3e \x601\x60','ShowRelResources==TRUE','SortFields==xDocumentNickname Asc','SubHeadingMetadataField==xRegion','SubHeadingView==Region');
g_navNode_1_1=g_navNode_1.addNode('1770','Fundos de Obriga\xe7\xf5es',ssUrlPrefix + 'Factsheets/Bonds/index.htm','Query==dDocType \x3cmatches\x3e \x60Literature\x60 \x3cAND\x3e xWebsites \x3ccontains\x3e \x60pt\x60 \x3cAND\x3e xSubType \x3ccontains\x3e \x6015\x60 \x3cAND\x3e xAssetType \x3ccontains\x3e \x602\x60 \x3cAND\x3e xTargetAudienceOrVenue \x3ccontains\x3e \x601\x60','ShowRelResources==TRUE','SortFields==xDocumentNickname Asc','SubHeadingMetadataField==xCurrency','SubHeadingView==Currency');
g_navNode_1_2=g_navNode_1.addNode('1771','Fundos Mistos',ssUrlPrefix + 'Factsheets/Mixed/index.htm','Query==dDocType \x3cmatches\x3e \x60Literature\x60 \x3cAND\x3e xWebsites \x3ccontains\x3e \x60pt\x60 \x3cAND\x3e  xSubType \x3ccontains\x3e \x6015\x60  \x3cAND\x3e  xAssetType \x3ccontains\x3e \x608\x60  \x3cAND\x3e  xTargetAudienceOrVenue \x3ccontains\x3e \x601\x60','ShowRelResources==TRUE','SortFields==xDocumentNickname Asc','SubHeadingMetadataField==xCurrency','SubHeadingView==Currency');
g_navNode_4=g_navNode_Root.addNode('513','Documents',ssUrlPrefix + 'Documents/index.htm');
