/////////////////////////////////////////////////////////////////////////////
// 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('2612','ILO in Asia and the Pacific',ssUrlPrefix + 'index.htm',null,'BreadcrumbPrefixNode==global\x3a147','NavigationRootLevel==1','SectionLabelShort_en==Asia and the Pacific','SectionLabel_en==ILO in Asia and the Pacific','SiteLabel_en==Asia and the Pacific','SiteLanguages==en','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0=g_navNode_Root.addNode('2642','Offices in the Region',ssUrlPrefix + 'offices/index.htm','SectionLabel_en==Offices in the Region','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1=g_navNode_Root.addNode('2625','About us',ssUrlPrefix + 'about/index.htm','SectionLabel_en==About us','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2=g_navNode_Root.addNode('2626','Areas of work',ssUrlPrefix + 'areas/index.htm','SectionLabel_en==Areas of work','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_0=g_navNode_2.addNode('5136','Child Labour',ssUrlPrefix + 'areas/child-labour/index.htm','SectionLabel_en==Child Labour','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_0_0=g_navNode_2_0.addNode('5148','facet',ssUrlPrefix + 'areas/child-labour/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Child Labour resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_1=g_navNode_2.addNode('5137','Employment promotion',ssUrlPrefix + 'areas/employment-promotion/index.htm','SectionLabel_en==Employment promotion','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_1_0=g_navNode_2_1.addNode('5149','facet',ssUrlPrefix + 'areas/employment-promotion/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Employment promotion resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_2=g_navNode_2.addNode('5138','Equality and discrimination',ssUrlPrefix + 'areas/equality-and-discrimination/index.htm','SectionLabel_en==Equality and discrimination','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_2_0=g_navNode_2_2.addNode('5150','facet',ssUrlPrefix + 'areas/equality-and-discrimination/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Equality and discrimination resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_3=g_navNode_2.addNode('5139','Green jobs',ssUrlPrefix + 'areas/green-jobs/index.htm','SectionLabel_en==Green jobs','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_3_0=g_navNode_2_3.addNode('5151','facet',ssUrlPrefix + 'areas/green-jobs/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Green jobs resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_4=g_navNode_2.addNode('5140','Informal economy',ssUrlPrefix + 'areas/informal-economy/index.htm','SectionLabel_en==Informal economy','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_4_0=g_navNode_2_4.addNode('5152','facet',ssUrlPrefix + 'areas/informal-economy/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Informal economy resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_5=g_navNode_2.addNode('5141','International labour standards',ssUrlPrefix + 'areas/international-labour-standards/index.htm','SectionLabel_en==International labour standards','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_5_0=g_navNode_2_5.addNode('5153','facet',ssUrlPrefix + 'areas/international-labour-standards/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==International labour standards resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_6=g_navNode_2.addNode('5142','Labour market governance and working conditions',ssUrlPrefix + 'areas/labour-market-governance-and-working-conditions/index.htm','SectionLabel_en==Labour market governance and working conditions','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_6_0=g_navNode_2_6.addNode('5154','facet',ssUrlPrefix + 'areas/labour-market-governance-and-working-conditions/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Labour market governance and working conditions resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_7=g_navNode_2.addNode('5143','Labour migration',ssUrlPrefix + 'areas/labour-migration/index.htm','SectionLabel_en==Labour migration','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_7_0=g_navNode_2_7.addNode('5155','facet',ssUrlPrefix + 'areas/labour-migration/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Labour migration resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_8=g_navNode_2.addNode('5144','Safety and health at work',ssUrlPrefix + 'areas/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('5156','facet',ssUrlPrefix + 'areas/safety-and-health-at-work/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Safety and health at work resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_9=g_navNode_2.addNode('5145','Skills and employability',ssUrlPrefix + 'areas/skills-and-employability/index.htm','SectionLabel_en==Skills and employability','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_9_0=g_navNode_2_9.addNode('5157','facet',ssUrlPrefix + 'areas/skills-and-employability/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Skills and employability resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_10=g_navNode_2.addNode('5146','Social security',ssUrlPrefix + 'areas/social-security/index.htm','SectionLabel_en==Social security','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_10_0=g_navNode_2_10.addNode('5158','facet',ssUrlPrefix + 'areas/social-security/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Social security resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_11=g_navNode_2.addNode('5147','Workers and Employers Organizations',ssUrlPrefix + 'areas/workers-and-employers-organizations/index.htm','SectionLabel_en==Workers and Employers Organizations','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_11_0=g_navNode_2_11.addNode('5159','facet',ssUrlPrefix + 'areas/workers-and-employers-organizations/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Workers and Employers Organizations resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3=g_navNode_Root.addNode('2627','Countries covered',ssUrlPrefix + 'countries/index.htm','SectionLabel_en==Countries covered','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_0=g_navNode_3.addNode('5160','Afghanistan',ssUrlPrefix + 'countries/afghanistan/index.htm','Hide==TRUE','SectionLabel_en==Afghanistan','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_0_0=g_navNode_3_0.addNode('5182','facet',ssUrlPrefix + 'countries/afghanistan/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Afghanistan resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_1=g_navNode_3.addNode('5161','Australia',ssUrlPrefix + 'countries/australia/index.htm','Hide==TRUE','SectionLabel_en==Australia','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_1_0=g_navNode_3_1.addNode('5183','facet',ssUrlPrefix + 'countries/australia/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Australia resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_2=g_navNode_3.addNode('5162','Brunei Darussalam',ssUrlPrefix + 'countries/brunei-darussalam/index.htm','Hide==TRUE','SectionLabel_en==Brunei Darussalam','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_2_0=g_navNode_3_2.addNode('5184','facet',ssUrlPrefix + 'countries/brunei-darussalam/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Brunei Darussalam resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_3=g_navNode_3.addNode('5163','Cambodia',ssUrlPrefix + 'countries/cambodia/index.htm','Hide==TRUE','SectionLabel_en==Cambodia','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_3_0=g_navNode_3_3.addNode('5185','facet',ssUrlPrefix + 'countries/cambodia/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Cambodia resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_4=g_navNode_3.addNode('5165','Iran',ssUrlPrefix + 'countries/iran/index.htm','Hide==TRUE','SectionLabel_en==Iran','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_4_0=g_navNode_3_4.addNode('5186','facet',ssUrlPrefix + 'countries/iran/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Iran','SectionLabel_en==Iran resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_5=g_navNode_3.addNode('5166','Japan',ssUrlPrefix + 'countries/japan/index.htm','Hide==TRUE','SectionLabel_en==Japan','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_5_0=g_navNode_3_5.addNode('5187','facet',ssUrlPrefix + 'countries/japan/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Japan resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_6=g_navNode_3.addNode('5168','Korea',ssUrlPrefix + 'countries/korea/index.htm','Hide==TRUE','SectionLabel_en==Korea','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_6_0=g_navNode_3_6.addNode('5188','facet',ssUrlPrefix + 'countries/korea/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Korea resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_7=g_navNode_3.addNode('5169','Lao People\'s Democratic Republic',ssUrlPrefix + 'countries/lao-peoples-democratic-republic/index.htm','Hide==TRUE','SectionLabel_en==Lao People\\x27s Democratic Republic','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_7_0=g_navNode_3_7.addNode('5189','facet',ssUrlPrefix + 'countries/lao-peoples-democratic-republic/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Lao People\\x27s Democratic Republic resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_8=g_navNode_3.addNode('5170','Malaysia',ssUrlPrefix + 'countries/malaysia/index.htm','Hide==TRUE','SectionLabel_en==Malaysia','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_8_0=g_navNode_3_8.addNode('5190','facet',ssUrlPrefix + 'countries/malaysia/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Malaysia resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_9=g_navNode_3.addNode('5171','Maldives',ssUrlPrefix + 'countries/maldives/index.htm','Hide==TRUE','SectionLabel_en==Maldives','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_9_0=g_navNode_3_9.addNode('5191','facet',ssUrlPrefix + 'countries/maldives/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Maldives resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_10=g_navNode_3.addNode('5173','New Zealand',ssUrlPrefix + 'countries/new-zealand/index.htm','Hide==TRUE','SectionLabel_en==New Zealand','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_10_0=g_navNode_3_10.addNode('5192','facet',ssUrlPrefix + 'countries/new-zealand/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==New Zealand resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_11=g_navNode_3.addNode('5176','Singapore',ssUrlPrefix + 'countries/singapore/index.htm','Hide==TRUE','SectionLabel_en==Singapore','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_11_0=g_navNode_3_11.addNode('5193','facet',ssUrlPrefix + 'countries/singapore/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Singapore resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_12=g_navNode_3.addNode('5178','Thailand',ssUrlPrefix + 'countries/thailand/index.htm','Hide==TRUE','SectionLabel_en==Thailand','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_12_0=g_navNode_3_12.addNode('5194','facet',ssUrlPrefix + 'countries/thailand/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Thailand resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4=g_navNode_Root.addNode('2628','Decent work in Asia',ssUrlPrefix + 'decentwork/index.htm','SectionLabel_en==Decent work in Asia','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_0=g_navNode_4.addNode('2644','Decent Work Country Programmes',ssUrlPrefix + 'decentwork/dwcp/index.htm','SectionLabel_en==Decent Work Country Programmes','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_1=g_navNode_4.addNode('2645','Asian Decent Work Decade',ssUrlPrefix + 'decentwork/adwd/index.htm','SectionLabel_en==Asian Decent Work Decade','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5=g_navNode_Root.addNode('2629','What we do',ssUrlPrefix + 'whatwedo/index.htm','SectionLabel_en==What we do','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_0=g_navNode_5.addNode('2630','Programmes and projects',ssUrlPrefix + 'whatwedo/projects/index.htm','SectionLabel_en==Programmes and projects','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_1=g_navNode_5.addNode('2631','Events and meetings',ssUrlPrefix + 'whatwedo/events/index.htm','SectionLabel_en==Events and meetings','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_2=g_navNode_5.addNode('2632','Publications',ssUrlPrefix + 'whatwedo/publications/index.htm','SectionLabel_en==Publications','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_6=g_navNode_Root.addNode('2633','Information resources',ssUrlPrefix + 'info/index.htm','SectionLabel_en==Information resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_6_0=g_navNode_6.addNode('2634','Public information',ssUrlPrefix + 'info/public/index.htm','SectionLabel_en==Public information','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_6_0_0=g_navNode_6_0.addNode('2635','Press releases',ssUrlPrefix + 'info/public/pr/index.htm','SectionLabel_en==Press releases','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_6_0_1=g_navNode_6_0.addNode('3141','Feature articles',ssUrlPrefix + 'info/public/features/index.htm','SectionLabel_en==Feature articles','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_6_0_2=g_navNode_6_0.addNode('2636','Newsletters',ssUrlPrefix + 'info/public/newsletters/index.htm','SectionLabel_en==Newsletters','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_6_0_3=g_navNode_6_0.addNode('2647','Speeches',ssUrlPrefix + 'info/public/speeches/index.htm','SectionLabel_en==Speeches','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_6_0_5=g_navNode_6_0.addNode('2638','Video and audio stories',ssUrlPrefix + 'info/public/video/index.htm','SectionLabel_en==Video and audio stories','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_6_0_6=g_navNode_6_0.addNode('2639','Media contacts',ssUrlPrefix + 'info/public/mediacontacts/index.htm','SectionLabel_en==Media contacts','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_6_1=g_navNode_6.addNode('2640','Library',ssUrlPrefix + 'info/library/index.htm','SectionLabel_en==ILO Knowledge Centre','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_6_2=g_navNode_6.addNode('2905','Research and data',ssUrlPrefix + 'info/research-and-data/index.htm','SectionLabel_en==Research and data','secondaryUrlVariableField==pl_replaceable_content');

