/////////////////////////////////////////////////////////////////////////////
// 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('EU_Home','Home',ssUrlPrefix + 'index.htm',null,'hideContact==TRUE','iLanguage==EN');
g_navNode_1=g_navNode_Root.addNode('EU_Funds','Funds',ssUrlPrefix + 'Funds/Fundinfo');
g_navNode_2=g_navNode_Root.addNode('EU_InvestmentServices','Investment Services',ssUrlPrefix + 'InvestmentServices/index.htm');
g_navNode_2_0=g_navNode_2.addNode('EU_DistributorsAdvisors','Distributors \x26 Advisors',ssUrlPrefix + 'InvestmentServices/DistributorsAdvisors/index.htm');
g_navNode_2_0_0=g_navNode_2_0.addNode('216','Services',ssUrlPrefix + 'InvestmentServices/DistributorsAdvisors/Services/index.htm');
g_navNode_2_0_1=g_navNode_2_0.addNode('214','Contact',ssUrlPrefix + 'InvestmentServices/DistributorsAdvisors/Contact/index.htm');
g_navNode_2_1=g_navNode_2.addNode('EU_Institutionalclients','Institutional Clients',ssUrlPrefix + 'InvestmentServices/Institutionalclients/index.htm');
g_navNode_2_1_0=g_navNode_2_1.addNode('1760','Implemented Client Solutions',ssUrlPrefix + 'InvestmentServices/Institutionalclients/ImplementedClientSolutions/index.htm');
g_navNode_2_1_0_0=g_navNode_2_1_0.addNode('1761','Investment Solutions',ssUrlPrefix + 'InvestmentServices/Institutionalclients/ImplementedClientSolutions/InvestmentSolutions/index.htm');
g_navNode_2_1_0_1=g_navNode_2_1_0.addNode('1762','Multi Management',ssUrlPrefix + 'InvestmentServices/Institutionalclients/ImplementedClientSolutions/MultiManagement/index.htm');
g_navNode_2_1_0_2=g_navNode_2_1_0.addNode('1763','Operations',ssUrlPrefix + 'InvestmentServices/Institutionalclients/ImplementedClientSolutions/Operations/index.htm');
g_navNode_2_1_0_3=g_navNode_2_1_0.addNode('1764','Contact',ssUrlPrefix + 'InvestmentServices/Institutionalclients/ImplementedClientSolutions/Contact/index.htm');
g_navNode_2_1_1=g_navNode_2_1.addNode('EU_InvestmentStrategies','Investment Strategies',ssUrlPrefix + 'InvestmentServices/Institutionalclients/InvestmentStrategies/index.htm');
g_navNode_2_1_2=g_navNode_2_1.addNode('1750','ING IM Updates',ssUrlPrefix + 'InvestmentServices/Institutionalclients/INGIMUpdates/index.htm');
g_navNode_2_1_2_0=g_navNode_2_1_2.addNode('1807','Global Opportunities',ssUrlPrefix + 'InvestmentServices/Institutionalclients/INGIMUpdates/GlobalOpportunities/index.htm');
g_navNode_2_1_2_1=g_navNode_2_1_2.addNode('1751','Asia Update',ssUrlPrefix + 'InvestmentServices/Institutionalclients/INGIMUpdates/AsiaUpdate/index.htm');
g_navNode_2_1_2_2=g_navNode_2_1_2.addNode('1752','High Dividend Update',ssUrlPrefix + 'InvestmentServices/Institutionalclients/INGIMUpdates/HighDividendUpdate/index.htm');
g_navNode_2_1_2_3=g_navNode_2_1_2.addNode('1753','Emerging Markets Update',ssUrlPrefix + 'InvestmentServices/Institutionalclients/INGIMUpdates/EmergingMarketUpdate/index.htm');
g_navNode_2_1_2_4=g_navNode_2_1_2.addNode('1754','Strategy Update',ssUrlPrefix + 'InvestmentServices/Institutionalclients/INGIMUpdates/StrategyUpdate/index.htm');
g_navNode_2_1_3=g_navNode_2_1.addNode('EU_Contact_2','Contact',ssUrlPrefix + 'InvestmentServices/Institutionalclients/Contact/index.htm');
g_navNode_2_2=g_navNode_2.addNode('EU_Consultants','Consultants',ssUrlPrefix + 'InvestmentServices/Consultants/index.htm');
g_navNode_2_2_0=g_navNode_2_2.addNode('EU_Consultantservicing','Consultant Relations',ssUrlPrefix + 'InvestmentServices/Consultants/Consultantrelations/index.htm');
g_navNode_2_2_1=g_navNode_2_2.addNode('1605','Investment Strategies',ssUrlPrefix + 'InvestmentServices/Consultants/InvestmentStrategies/index.htm');
g_navNode_2_2_2=g_navNode_2_2.addNode('1810','IM Insights',ssUrlPrefix + 'InvestmentServices/Consultants/IMInsights/index.htm');
g_navNode_2_2_3=g_navNode_2_2.addNode('EU_Contacts','Contacts',ssUrlPrefix + 'InvestmentServices/Consultants/Contacts/index.htm');
g_navNode_2_3=g_navNode_2.addNode('EU_PrivateInvestors','Private Investors',ssUrlPrefix + 'InvestmentServices/PrivateInvestors/index.htm');
g_navNode_2_3_0=g_navNode_2_3.addNode('EU_WhyINGfunds','Why ING funds',ssUrlPrefix + 'InvestmentServices/PrivateInvestors/WhyINGfunds/index.htm');
g_navNode_2_3_1=g_navNode_2_3.addNode('EU_Wheretobuy','Where to buy',ssUrlPrefix + 'InvestmentServices/PrivateInvestors/Wheretobuy/index.htm');
g_navNode_2_3_2=g_navNode_2_3.addNode('EU_Contact_3','Contact',ssUrlPrefix + 'InvestmentServices/PrivateInvestors/Contact/index.htm');
g_navNode_3=g_navNode_Root.addNode('EU_MarketCommentary','Market Commentary',ssUrlPrefix + 'MarketCommentary/index.htm');
g_navNode_3_0=g_navNode_3.addNode('EU_MC_Archive','Archive',ssUrlPrefix + 'MarketCommentary/Archive/index.htm','secondaryUrlVariableField==region3');
g_navNode_3_1=g_navNode_3.addNode('EU_MC_Webcasts','Webcasts',ssUrlPrefix + 'MarketCommentary/Webcasts/index.htm');
g_navNode_3_2=g_navNode_3.addNode('EU_Columns','Columns',ssUrlPrefix + 'MarketCommentary/Columns/index.htm','secondaryUrlVariableField==region3');
g_navNode_4=g_navNode_Root.addNode('EU_News','News',ssUrlPrefix + 'News/index.htm');
g_navNode_4_1=g_navNode_4.addNode('EU_Pressroom2','Press room',ssUrlPrefix + 'News/Pressroom/index.htm');
g_navNode_4_1_0=g_navNode_4_1.addNode('EU_Pressroom','Press releases',ssUrlPrefix + 'News/Pressroom/Pressreleases/index.htm');
g_navNode_4_1_0_0=g_navNode_4_1_0.addNode('2061','Archive 2009',ssUrlPrefix + 'News/Pressroom/Pressreleases/Archive2009/index.htm');
g_navNode_4_1_0_1=g_navNode_4_1_0.addNode('2062','Archive 2008',ssUrlPrefix + 'News/Pressroom/Pressreleases/Archive2008/index.htm');
g_navNode_4_1_1=g_navNode_4_1.addNode('154','Press contacts',ssUrlPrefix + 'News/Pressroom/Presscontacts/index.htm');
g_navNode_4_1_3=g_navNode_4_1.addNode('156','Press Information',ssUrlPrefix + 'News/Pressroom/Mediakit/index.htm');
g_navNode_4_1_3_0=g_navNode_4_1_3.addNode('249','Press kits',ssUrlPrefix + 'News/Pressroom/Mediakit/Presskits/index.htm');
g_navNode_4_2=g_navNode_4.addNode('EU_NWS_Webcasts','Webcasts',ssUrlPrefix + 'News/Webcasts/index.htm');
g_navNode_5=g_navNode_Root.addNode('EU_AboutINGIM','About ING IM',ssUrlPrefix + 'AboutINGIM/index.htm');
g_navNode_5_0=g_navNode_5.addNode('EU_KeyfactsINGIMEurope','Key facts \x28ING IM Europe\x29',ssUrlPrefix + 'AboutINGIM/KeyfactsINGIMEurope/index.htm');
g_navNode_5_1=g_navNode_5.addNode('EU_Ambitionandstrategy','Ambition and strategy',ssUrlPrefix + 'AboutINGIM/Ambitionandstrategy/index.htm');
g_navNode_5_2=g_navNode_5.addNode('EU_Ourstrengths','Our strengths',ssUrlPrefix + 'AboutINGIM/Ourstrengths/index.htm');
g_navNode_5_3=g_navNode_5.addNode('EU_Ourpeople','Our people',ssUrlPrefix + 'AboutINGIM/Ourpeople/index.htm');
g_navNode_5_4=g_navNode_5.addNode('EU_OrganisationStructure','Organisation Structure',ssUrlPrefix + 'AboutINGIM/OrganisationStructure/index.htm');
g_navNode_5_5=g_navNode_5.addNode('1578','Corporate information',ssUrlPrefix + 'AboutINGIM/Corporateinformation/index.htm');
g_navNode_5_6=g_navNode_5.addNode('EU_Awards','Awards',ssUrlPrefix + 'AboutINGIM/Awards/index.htm','secondaryUrlVariableField==region3');
g_navNode_5_7=g_navNode_5.addNode('EU_CorporateGovernance','Corporate Governance',ssUrlPrefix + 'AboutINGIM/CorporateGovernance/index.htm');
g_navNode_5_7_0=g_navNode_5_7.addNode('EU_Generalintroduction','General introduction',ssUrlPrefix + 'AboutINGIM/CorporateGovernance/Generalintroduction/index.htm');
g_navNode_5_7_1=g_navNode_5_7.addNode('EU_ProprietaryandClientsassets','Proprietary and Clients assets',ssUrlPrefix + 'AboutINGIM/CorporateGovernance/ProprietaryandClientsassets/index.htm');
g_navNode_5_7_2=g_navNode_5_7.addNode('EU_INGIMEuropesvotingpolicy','ING IM Europe\'s voting policy',ssUrlPrefix + 'AboutINGIM/CorporateGovernance/INGIMEuropesvotingpolicy/index.htm');
g_navNode_5_8=g_navNode_5.addNode('EU_INGIMPolicies','ING IM Policies',ssUrlPrefix + 'AboutINGIM/INGIMPolicies/index.htm');
g_navNode_5_9=g_navNode_5.addNode('2000','Contact',ssUrlPrefix + 'AboutINGIM/Contact/index.htm');
g_navNode_6=g_navNode_Root.addNode('EU_Careers','Careers',ssUrlPrefix + 'Careers/index.htm');
g_navNode_16=g_navNode_Root.addNode('2073','Demo Web Portal',ssUrlPrefix + 'DemoWebPortal/index.htm');
