/////////////////////////////////////////////////////////////////////////////
// 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('4032','SRO-New Delhi',ssUrlPrefix + 'index.htm',null,'BreadcrumbPrefixNode==asia\x3a2642','NavigationRootLevel==1','SectionLabelShort_en==DWT/CO\u2013New Delhi','SectionLabel_en==ILO Decent Work Team for South Asia and ILO Country Office for India \x28DWT/CO-New Delhi\x29','SiteLabel_en==DWT/CO-New Delhi','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0=g_navNode_Root.addNode('4033','About the Office',ssUrlPrefix + 'aboutus/index.htm','SectionLabel_en==About the Office','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2=g_navNode_Root.addNode('4035','Areas of work',ssUrlPrefix + 'areasofwork/index.htm','SectionLabel_en==Areas of work','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_0=g_navNode_2.addNode('5195','Child labour',ssUrlPrefix + 'areasofwork/child-labour/index.htm','SectionLabel_en==Child labour','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_0_0=g_navNode_2_0.addNode('5196','facet',ssUrlPrefix + 'areasofwork/child-labour/facet/index.htm','Hide==TRUE','SectionLabel_en==Resources on child labour','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_1=g_navNode_2.addNode('5197','Employment promotion',ssUrlPrefix + 'areasofwork/employment-promotion/index.htm','SectionLabel_en==Employment promotion','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_1_0=g_navNode_2_1.addNode('5198','facet',ssUrlPrefix + 'areasofwork/employment-promotion/facet/index.htm','Hide==TRUE','SectionLabel_en==Resources on employment promotion','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_2=g_navNode_2.addNode('5199','Equality and discrimination',ssUrlPrefix + 'areasofwork/equality-and-discrimination/index.htm','SectionLabel_en==Equality and discrimination','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_2_0=g_navNode_2_2.addNode('5200','facet',ssUrlPrefix + 'areasofwork/equality-and-discrimination/facet/index.htm','Hide==TRUE','SectionLabel_en==Resources on equality and discrimination','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_3=g_navNode_2.addNode('5201','Green jobs',ssUrlPrefix + 'areasofwork/green-jobs/index.htm','SectionLabel_en==Green jobs','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_3_0=g_navNode_2_3.addNode('5202','facet',ssUrlPrefix + 'areasofwork/green-jobs/facet/index.htm','Hide==TRUE','SectionLabel_en==Resources on green jobs','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_4=g_navNode_2.addNode('5203','Informal economy',ssUrlPrefix + 'areasofwork/informal-economy/index.htm','SectionLabel_en==Informal economy','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_4_0=g_navNode_2_4.addNode('5204','facet',ssUrlPrefix + 'areasofwork/informal-economy/facet/index.htm','Hide==TRUE','SectionLabel_en==Resources on informal economy','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_5=g_navNode_2.addNode('5205','International labour standards',ssUrlPrefix + 'areasofwork/international-labour-standards/index.htm','SectionLabel_en==International labour standards','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_5_0=g_navNode_2_5.addNode('5206','facet',ssUrlPrefix + 'areasofwork/international-labour-standards/facet/index.htm','Hide==TRUE','SectionLabel_en==Resources on international labour standards','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_7=g_navNode_2.addNode('5209','Labour migration',ssUrlPrefix + 'areasofwork/labour-migration/index.htm','SectionLabel_en==Labour migration','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_7_0=g_navNode_2_7.addNode('5210','facet',ssUrlPrefix + 'areasofwork/labour-migration/facet/index.htm','Hide==TRUE','SectionLabel_en==Resources on labour migration','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_8=g_navNode_2.addNode('5211','Safety and health at work',ssUrlPrefix + 'areasofwork/safety-and-health-at-work/index.htm','SectionLabel_en==Safety and health at work','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_8_0=g_navNode_2_8.addNode('5212','facet',ssUrlPrefix + 'areasofwork/safety-and-health-at-work/facet/index.htm','Hide==TRUE','SectionLabel_en==Resources on safety and health at work','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_9=g_navNode_2.addNode('5213','Skills and employability',ssUrlPrefix + 'areasofwork/skills-and-employability/index.htm','SectionLabel_en==Skills and employability','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_9_0=g_navNode_2_9.addNode('5214','facet',ssUrlPrefix + 'areasofwork/skills-and-employability/facet/index.htm','Hide==TRUE','SectionLabel_en==Resources on skills and employability','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_10=g_navNode_2.addNode('5215','Social security',ssUrlPrefix + 'areasofwork/social-security/index.htm','SectionLabel_en==Social security','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_10_0=g_navNode_2_10.addNode('5216','facet',ssUrlPrefix + 'areasofwork/social-security/facet/index.htm','Hide==TRUE','SectionLabel_en==Resources on social security','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_11=g_navNode_2.addNode('5217','Workers\' and Employers\' Organizations',ssUrlPrefix + 'areasofwork/workers-and-employers-organizations/index.htm','SectionLabel_en==Workers\\x27 and Employers\\x27 Organizations','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_11_0=g_navNode_2_11.addNode('5218','facet',ssUrlPrefix + 'areasofwork/workers-and-employers-organizations/facet/index.htm','Hide==TRUE','SectionLabel_en==Resources on workers\\x27 and employers\\x27 organizations','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3=g_navNode_Root.addNode('4036','Countries covered',ssUrlPrefix + 'country/index.htm','SectionLabel_en==Countries covered','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4=g_navNode_Root.addNode('4037','What we do',ssUrlPrefix + 'whatwedo/index.htm','SectionLabel_en==What we do','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_0=g_navNode_4.addNode('4038','Projects',ssUrlPrefix + 'whatwedo/projects/index.htm','SectionLabel_en==Projects','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_0_0=g_navNode_4_0.addNode('5167','Prevention of HIV/AIDS in the World of Work',ssUrlPrefix + 'whatwedo/projects/prevention-of-hiv-in-the-world-of-work/index.htm','SectionLabelShort_en==Prevention of HIV/AIDS in the World of Work','SectionLabel_en==Prevention of HIV/AIDS in the World of Work\x3a A Tripartite Response','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_0_0_0=g_navNode_4_0_0.addNode('5172','Publications',ssUrlPrefix + 'whatwedo/projects/prevention-of-hiv-in-the-world-of-work/publications/index.htm','SectionLabelShort_en==Publications','SectionLabel_en==Publications','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_0_0_1=g_navNode_4_0_0.addNode('5174','Events',ssUrlPrefix + 'whatwedo/projects/prevention-of-hiv-in-the-world-of-work/events/index.htm','SectionLabelShort_en==Events','SectionLabel_en==Events','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_0_0_2=g_navNode_4_0_0.addNode('5175','Documents and Links',ssUrlPrefix + 'whatwedo/projects/prevention-of-hiv-in-the-world-of-work/documents-and-links/index.htm','SectionLabelShort_en==Documents','SectionLabel_en==Documents and Links','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_1=g_navNode_4.addNode('4039','Events and meetings',ssUrlPrefix + 'whatwedo/eventsandmeetings/index.htm','SectionLabel_en==Events and meetings','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_1_0=g_navNode_4_1.addNode('5095','IBSA International Workshop on South-South Cooperation \'Innovations in Public Employment Programmes and Sustainable Inclusive Growth\'',ssUrlPrefix + 'whatwedo/eventsandmeetings/ibsa/index.htm','Hide==TRUE','SectionLabelShort_en==IBSA International Workshop','SectionLabel_en==IBSA International Workshop on South-South Cooperation \\x27Innovations in Public Employment Programmes and Sustainable Inclusive Growth\\x27, 1- 3 March 2012, New Delhi','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_1_0_0=g_navNode_4_1_0.addNode('5101','Registration',ssUrlPrefix + 'whatwedo/eventsandmeetings/ibsa/registration/index.htm','Hide==TRUE','SectionLabelShort_en==Registration','SectionLabel_en==Registration for the IBSA International Workshop on South-South Cooperation \\x27Innovations in Public Employment Programmes and Sustainable Inclusive Growth\\x27, 1- 3 March 2012, New Delhi','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_1_0_1=g_navNode_4_1_0.addNode('5102','Registration Confirmation',ssUrlPrefix + 'whatwedo/eventsandmeetings/ibsa/registration-confirmation/index.htm','Hide==TRUE','SectionLabelShort_en==Confirmation','SectionLabel_en==Registration Confirmation','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_2=g_navNode_4.addNode('4040','Publications',ssUrlPrefix + 'whatwedo/publications/index.htm','SectionLabel_en==Publications','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5=g_navNode_Root.addNode('4042','Information resources',ssUrlPrefix + 'info/index.htm','SectionLabel_en==Information resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_0=g_navNode_5.addNode('4043','Public information',ssUrlPrefix + 'info/public/index.htm','SectionLabel_en==Public information','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_0_0=g_navNode_5_0.addNode('4044','Press releases',ssUrlPrefix + 'info/public/pr/index.htm','SectionLabel_en==Press releases','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_0_1=g_navNode_5_0.addNode('4045','Feature articles',ssUrlPrefix + 'info/public/fs/index.htm','SectionLabel_en==Feature articles','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_0_3=g_navNode_5_0.addNode('4047','Speeches',ssUrlPrefix + 'info/public/sp/index.htm','SectionLabel_en==Speeches','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_1=g_navNode_5.addNode('4050','Library documentation center',ssUrlPrefix + 'info/library/index.htm','SectionLabel_en==Library / documentation center','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_5=g_navNode_5.addNode('4054','Links',ssUrlPrefix + 'info/links/index.htm','SectionLabel_en==Links','secondaryUrlVariableField==pl_replaceable_content');

