/////////////////////////////////////////////////////////////////////////////
// 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('ES_Home','Home',ssUrlPrefix + 'index.htm',null,'hideContact==FALSE','iLanguage==ES');
g_navNode_1=g_navNode_Root.addNode('ES_Funds','Funds',ssUrlPrefix + 'Funds/Fundinfo');
g_navNode_2=g_navNode_Root.addNode('ES_InvestmentServices','Investment Services',ssUrlPrefix + 'InvestmentServices/index.htm');
g_navNode_2_0=g_navNode_2.addNode('ES_DistributorsAdvisors','Distributors \x26 Advisors',ssUrlPrefix + 'InvestmentServices/DistributorsAdvisors/index.htm');
g_navNode_2_1=g_navNode_2.addNode('ES_Institutionalclients','Institutional Clients',ssUrlPrefix + 'InvestmentServices/Institutionalclients/index.htm');
g_navNode_2_1_0=g_navNode_2_1.addNode('ES_InvestmentServices_2','Investment Services',ssUrlPrefix + 'InvestmentServices/Institutionalclients/InvestmentServices/index.htm');
g_navNode_2_1_1=g_navNode_2_1.addNode('ES_InvestmentStrategies','Investment Strategies',ssUrlPrefix + 'InvestmentServices/Institutionalclients/InvestmentStrategies/index.htm');
g_navNode_2_1_1_2=g_navNode_2_1_1.addNode('ES_StrategyContact','Contact',ssUrlPrefix + 'InvestmentServices/Institutionalclients/InvestmentStrategies/Contact/index.htm');
g_navNode_2_1_2=g_navNode_2_1.addNode('ES_InstitutionalContact','Contact',ssUrlPrefix + 'InvestmentServices/Institutionalclients/Contact/index.htm');
g_navNode_2_2=g_navNode_2.addNode('ES_Consultants','Consultants',ssUrlPrefix + 'InvestmentServices/Consultants/index.htm');
g_navNode_2_2_0=g_navNode_2_2.addNode('ES_Consultantservicing','Consultant servicing',ssUrlPrefix + 'InvestmentServices/Consultants/Consultantservicing/index.htm');
g_navNode_2_2_1=g_navNode_2_2.addNode('ES_ConsultantContacts','Contacts',ssUrlPrefix + 'InvestmentServices/Consultants/Contacts/index.htm');
g_navNode_2_3=g_navNode_2.addNode('ES_PrivateInvestors','Private Investors',ssUrlPrefix + 'InvestmentServices/PrivateInvestors/index.htm');
g_navNode_2_3_0=g_navNode_2_3.addNode('ES_WhyINGfunds','Why ING funds',ssUrlPrefix + 'InvestmentServices/PrivateInvestors/WhyINGfunds/index.htm');
g_navNode_2_3_1=g_navNode_2_3.addNode('ES_Wheretobuy','Where to buy',ssUrlPrefix + 'InvestmentServices/PrivateInvestors/Wheretobuy/index.htm');
g_navNode_2_3_2=g_navNode_2_3.addNode('ES_Contact_3','Contact',ssUrlPrefix + 'InvestmentServices/PrivateInvestors/Contact/index.htm');
g_navNode_2_5=g_navNode_2.addNode('1814','Actualizaci\xf3n estrategias ING IM',ssUrlPrefix + 'InvestmentServices/Actualizaci\xf3nestrategiasINGIM/index.htm');
g_navNode_2_5_0=g_navNode_2_5.addNode('1815','Global Opportunities',ssUrlPrefix + 'InvestmentServices/Actualizaci\xf3nestrategiasINGIM/GlobalGrowth/index.htm');
g_navNode_2_5_1=g_navNode_2_5.addNode('1816','Asia',ssUrlPrefix + 'InvestmentServices/Actualizaci\xf3nestrategiasINGIM/Asia/index.htm');
g_navNode_2_5_2=g_navNode_2_5.addNode('1817','High Dividend',ssUrlPrefix + 'InvestmentServices/Actualizaci\xf3nestrategiasINGIM/HighDividend/index.htm');
g_navNode_2_5_3=g_navNode_2_5.addNode('1818','Mercados Emergentes',ssUrlPrefix + 'InvestmentServices/Actualizaci\xf3nestrategiasINGIM/MercadosEmergentes/index.htm');
g_navNode_2_5_4=g_navNode_2_5.addNode('1819','Visi\xf3n de Mercado',ssUrlPrefix + 'InvestmentServices/Actualizaci\xf3nestrategiasINGIM/Visi\xf3ndeMercado/index.htm');
g_navNode_3=g_navNode_Root.addNode('ES_MarketCommentary','Market Commentary',ssUrlPrefix + 'MarketCommentary/index.htm');
g_navNode_3_0=g_navNode_3.addNode('ES_MC_Archive','Archive',ssUrlPrefix + 'MarketCommentary/Archive/index.htm','secondaryUrlVariableField==region3');
g_navNode_3_1=g_navNode_3.addNode('ES_MC_Webcasts','Webcasts',ssUrlPrefix + 'MarketCommentary/Webcasts/index.htm');
g_navNode_3_2=g_navNode_3.addNode('ES_Columns','Columns',ssUrlPrefix + 'MarketCommentary/Columns/index.htm','secondaryUrlVariableField==region3');
g_navNode_4=g_navNode_Root.addNode('ES_News','News',ssUrlPrefix + 'News/index.htm');
g_navNode_4_0=g_navNode_4.addNode('ES_NWS_News','ING IM en la prensa',ssUrlPrefix + 'News/News/index.htm','secondaryUrlVariableField==region3');
g_navNode_4_1=g_navNode_4.addNode('ES_Pressroom','Press room',ssUrlPrefix + 'News/Pressroom/index.htm');
g_navNode_4_2=g_navNode_4.addNode('ES_NWS_Webcasts','Webcasts',ssUrlPrefix + 'News/Webcasts/index.htm');
g_navNode_4_4=g_navNode_4.addNode('ES_PressContact','Contact',ssUrlPrefix + 'News/Contact/index.htm');
g_navNode_5=g_navNode_Root.addNode('ES_AboutINGIM','About ING IM',ssUrlPrefix + 'AboutINGIM/index.htm');
g_navNode_5_0=g_navNode_5.addNode('ES_KeyfactsINGIMEurope','Key facts \x28ING IM Europe\x29',ssUrlPrefix + 'AboutINGIM/KeyfactsINGIMEurope/index.htm');
g_navNode_5_1=g_navNode_5.addNode('ES_Ambitionandstrategy','Ambition and strategy',ssUrlPrefix + 'AboutINGIM/Ambitionandstrategy/index.htm');
g_navNode_5_2=g_navNode_5.addNode('ES_Ourstrengths','Our strengths',ssUrlPrefix + 'AboutINGIM/Ourstrengths/index.htm');
g_navNode_5_3=g_navNode_5.addNode('ES_Ourpeople','Our people',ssUrlPrefix + 'AboutINGIM/Ourpeople/index.htm');
g_navNode_5_4=g_navNode_5.addNode('ES_OrganisationStructure','Organisation Structure',ssUrlPrefix + 'AboutINGIM/OrganisationStructure/index.htm');
g_navNode_5_5=g_navNode_5.addNode('ES_Awards','Awards',ssUrlPrefix + 'AboutINGIM/Awards/index.htm','secondaryUrlVariableField==region3');
g_navNode_5_6=g_navNode_5.addNode('ES_CorporateGovernance','Corporate Governance',ssUrlPrefix + 'AboutINGIM/CorporateGovernance/index.htm');
g_navNode_5_6_0=g_navNode_5_6.addNode('ES_Generalintroduction','General introduction',ssUrlPrefix + 'AboutINGIM/CorporateGovernance/Generalintroduction/index.htm');
g_navNode_5_6_1=g_navNode_5_6.addNode('ES_ProprietaryandClientsassets','Proprietary and Clients assets',ssUrlPrefix + 'AboutINGIM/CorporateGovernance/ProprietaryandClientsassets/index.htm');
g_navNode_5_6_2=g_navNode_5_6.addNode('ES_INGIMEuropesvotingpolicy','Pol\xedtica de Voto de ING IM Europa',ssUrlPrefix + 'AboutINGIM/CorporateGovernance/INGIMEuropesvotingpolicy/index.htm');

