/////////////////////////////////////////////////////////////////////////////
// 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('3453','ILO-Jakarta',ssUrlPrefix + 'index.htm',null,'BreadcrumbPrefixNode==asia\x3a2642','NavigationRootLevel==1','SectionLabel_en==CO-Jakarta','SiteLabel_en==CO-Jakarta','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0=g_navNode_Root.addNode('3454','About the Office',ssUrlPrefix + 'aboutus/index.htm','SectionLabel_en==About the Office','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2=g_navNode_Root.addNode('3456','Areas of work',ssUrlPrefix + 'areasofwork/index.htm','SectionLabel_en==Areas of work','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_0=g_navNode_2.addNode('5226','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('5237','facet',ssUrlPrefix + 'areasofwork/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('5227','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('5238','facet',ssUrlPrefix + 'areasofwork/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('5228','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('5239','facet',ssUrlPrefix + 'areasofwork/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('5229','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('5240','facet',ssUrlPrefix + 'areasofwork/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('5230','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('5241','facet',ssUrlPrefix + 'areasofwork/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('5231','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('5242','facet',ssUrlPrefix + 'areasofwork/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('5232','Social security',ssUrlPrefix + 'areasofwork/social-security/index.htm','SectionLabel_en==Social security','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_6_0=g_navNode_2_6.addNode('5243','facet',ssUrlPrefix + 'areasofwork/social-security/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Social security resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_7=g_navNode_2.addNode('5233','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('5244','facet',ssUrlPrefix + 'areasofwork/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('5234','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('5245','facet',ssUrlPrefix + 'areasofwork/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('5235','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('5246','facet',ssUrlPrefix + 'areasofwork/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('5236','Workers\u2019 and Employers\u2019 Organizations',ssUrlPrefix + 'areasofwork/workers-and-employers-organizations/index.htm','SectionLabel_en==Workers and Employers Organizations','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_10_0=g_navNode_2_10.addNode('5247','facet',ssUrlPrefix + 'areasofwork/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('3457','Countries covered',ssUrlPrefix + 'country/index.htm','SectionLabel_en==Countries covered','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_0=g_navNode_3.addNode('5248','Indonesia',ssUrlPrefix + 'country/indonesia/index.htm','SectionLabel_en==Indonesia','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_0_0=g_navNode_3_0.addNode('5250','facet',ssUrlPrefix + 'country/indonesia/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Indonesia resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_1=g_navNode_3.addNode('5249','Timor-Leste',ssUrlPrefix + 'country/timor-leste/index.htm','SectionLabel_en==Timor-Leste','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_1_0=g_navNode_3_1.addNode('5251','facet',ssUrlPrefix + 'country/timor-leste/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Timor-Leste resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4=g_navNode_Root.addNode('3458','What we do',ssUrlPrefix + 'whatwedo/index.htm','SectionLabel_en==What we do','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_0=g_navNode_4.addNode('3459','Projects',ssUrlPrefix + 'whatwedo/projects/index.htm','SectionLabel_en==Projects','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_1=g_navNode_4.addNode('3460','Events and meetings',ssUrlPrefix + 'whatwedo/eventsandmeetings/index.htm','SectionLabel_en==Events and meetings','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_2=g_navNode_4.addNode('3461','Publications',ssUrlPrefix + 'whatwedo/publications/index.htm','SectionLabel_en==Publications','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5=g_navNode_Root.addNode('3463','Information resources',ssUrlPrefix + 'info/index.htm','SectionLabel_en==Information resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_0=g_navNode_5.addNode('3464','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('3465','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('3466','Feature stories',ssUrlPrefix + 'info/public/fs/index.htm','SectionLabel_en==Feature stories','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_0_2=g_navNode_5_0.addNode('3467','Newsletters',ssUrlPrefix + 'info/public/nl/index.htm','SectionLabel_en==Newsletters','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_0_4=g_navNode_5_0.addNode('3469','Videos',ssUrlPrefix + 'info/public/vid/index.htm','SectionLabel_en==Videos','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_1=g_navNode_5.addNode('3471','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('3475','Links',ssUrlPrefix + 'info/links/index.htm','SectionLabel_en==Links','secondaryUrlVariableField==pl_replaceable_content');

