/////////////////////////////////////////////////////////////////////////////
// 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('2757','Employment',ssUrlPrefix + 'index.htm',null,'BreadcrumbPrefixNode==global\x3a278','NavigationRootLevel==1','SectionLabel_en==Employment sector','SectionLabel_es==Sector de Empleo','SectionLabel_fr==Secteur de l\\x27Emploi','SiteLabel_en==EMPLOYMENT','SiteLabel_es==EMPLOYMENT','SiteLabel_fr==EMPLOYMENT','SiteLanguages==en,es,fr','SiteSupplementalSectionId==2758','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0=g_navNode_Root.addNode('2768','About us',ssUrlPrefix + 'about/index.htm','SectionLabel_en==About us','SectionLabel_es==Qui\xe9nes somos','SectionLabel_fr==\xc0 propos de nous','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0_0=g_navNode_0.addNode('649','What\'s new',ssUrlPrefix + 'about/news/index.htm','SectionLabel_en==News','SectionLabel_es==Novedades','SectionLabel_fr==Actualit\xe9s','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1=g_navNode_Root.addNode('2769','Departments and programmes',ssUrlPrefix + 'DepartmentsOffices/index.htm','SectionLabel_en==Departments and programmes','SectionLabel_es==Departamentos y programas','SectionLabel_fr==D\xe9partements et programmes','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_0=g_navNode_1.addNode('4577','Rural development',ssUrlPrefix + 'DepartmentsOffices/rural-development/index.htm','Hide==TRUE','SectionLabel_en==Rural development','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2=g_navNode_Root.addNode('2770','Areas of work',ssUrlPrefix + 'areas/index.htm','SectionLabel_en==Areas of work','SectionLabel_es==Ambitos de trabajo','SectionLabel_fr==Domaines de travail','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_0=g_navNode_2.addNode('54','Crisis response',ssUrlPrefix + 'areas/crisis-response/index.htm','Hide==TRUE','SectionLabel_en==Crisis response','SectionLabel_es==Respuesta a crisis','SectionLabel_fr==R\xe9ponse aux crises','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_0_0=g_navNode_2_0.addNode('5069','facet',ssUrlPrefix + 'areas/crisis-response/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabelShort_es==Recursos','SectionLabelShort_fr==Ressources','SectionLabel_en==Crisis response resources','SectionLabel_es==Recursos de Respuesta a crisis','SectionLabel_fr==Ressources de R\xe9ponse aux crises','hide==TRUE','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_1=g_navNode_2.addNode('55','Gender and employment',ssUrlPrefix + 'areas/gender-and-employment/index.htm','Hide==TRUE','SectionLabel_en==Gender and employment','SectionLabel_es==G\xe9nero y empleo','SectionLabel_fr==Genre et emploi','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_1_0=g_navNode_2_1.addNode('5072','facet',ssUrlPrefix + 'areas/gender-and-employment/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabelShort_es==Recursos','SectionLabelShort_fr==Ressources','SectionLabel_en==Gender and employment resources','SectionLabel_es==Recursos de G\xe9nero y empleo','SectionLabel_fr==Ressources de Genre et emploi','hide==TRUE','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_2=g_navNode_2.addNode('56','Global Employment Agenda',ssUrlPrefix + 'areas/global-employment-agenda/index.htm','Hide==TRUE','SectionLabel_en==Global Employment Agenda','SectionLabel_es==Programa Global de Empleo','SectionLabel_fr==Agenda global pour l\\x27emploi','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_2_0=g_navNode_2_2.addNode('5073','facet',ssUrlPrefix + 'areas/global-employment-agenda/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabelShort_es==Recursos','SectionLabelShort_fr==Ressources','SectionLabel_en==Global Employment Agenda resources','SectionLabel_es==Recursos de Programa Global de Empleo','SectionLabel_fr==Ressources de Agenda global pour l\\x27emploi','hide==TRUE','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_3=g_navNode_2.addNode('57','Social finance',ssUrlPrefix + 'areas/social-finance/index.htm','Hide==TRUE','SectionLabel_en==Social finance','SectionLabel_es==Finanzas sociales','SectionLabel_fr==Finance sociale','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_3_0=g_navNode_2_3.addNode('5074','facet',ssUrlPrefix + 'areas/social-finance/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabelShort_es==Recursos','SectionLabelShort_fr==Ressources','SectionLabel_en==Social finance resources','SectionLabel_es==Recursos de Finanzas sociales','SectionLabel_fr==Ressources de Finance sociale','hide==TRUE','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_4=g_navNode_2.addNode('58','Trade and employment',ssUrlPrefix + 'areas/trade-and-employment/index.htm','Hide==TRUE','SectionLabel_en==Trade and employment','SectionLabel_es==Comercio y empleo','SectionLabel_fr==Commerce et emploi','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_4_0=g_navNode_2_4.addNode('5075','facet',ssUrlPrefix + 'areas/trade-and-employment/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabelShort_es==Recursos','SectionLabelShort_fr==Ressources','SectionLabel_en==Trade and employment resources','SectionLabel_es==Recursos de Comercio y empleo','SectionLabel_fr==Ressources de Commerce et emploi','hide==TRUE','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_5=g_navNode_2.addNode('59','Youth employment',ssUrlPrefix + 'areas/youth-employment/index.htm','Hide==TRUE','SectionLabel_en==Youth employment','SectionLabel_es==Empleo juvenil','SectionLabel_fr==Emploi des jeunes','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_5_0=g_navNode_2_5.addNode('5076','facet',ssUrlPrefix + 'areas/youth-employment/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabelShort_es==Recursos','SectionLabelShort_fr==Ressources','SectionLabel_en==Youth employment resoures','SectionLabel_es==Recursos de Empleo juvenil','SectionLabel_fr==Ressources de Emploi des jeunes','hide==TRUE','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4=g_navNode_Root.addNode('2772','What we do',ssUrlPrefix + 'Whatwedo/index.htm','SectionLabel_en==What we do','SectionLabel_es==Actividades','SectionLabel_fr==Activit\xe9s','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_0=g_navNode_4.addNode('2773','Projects',ssUrlPrefix + 'Whatwedo/Projects/index.htm','SectionLabel_en==Projects','SectionLabel_es==Proyectos','SectionLabel_fr==Projets','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_1=g_navNode_4.addNode('2774','Events and meetings',ssUrlPrefix + 'Whatwedo/Eventsandmeetings/index.htm','SectionLabel_en==Events and meetings','SectionLabel_es==Eventos y reuniones','SectionLabel_fr==\xc9v\xe9nements et reunions','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_2=g_navNode_4.addNode('2775','Publications',ssUrlPrefix + 'Whatwedo/Publications/index.htm','SectionLabel_en==Publications','SectionLabel_es==Publicaciones','SectionLabel_fr==Publications','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_2_0=g_navNode_4_2.addNode('4652','Employment Working Papers',ssUrlPrefix + 'Whatwedo/Publications/working-papers/index.htm','SectionLabel_en==Employment Working Papers','SectionLabel_es==Documentos de Trabajo de Empleo','SectionLabel_fr==Documents de Travail de l\\x27Emploi','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_2_1=g_navNode_4_2.addNode('4653','Employment Reports',ssUrlPrefix + 'Whatwedo/Publications/employment-reports/index.htm','SectionLabel_en==Employment Reports','SectionLabel_fr==Rapports sur l\\x27Emploi','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_2_2=g_navNode_4_2.addNode('4654','Employment Working Papers and Reports Archive',ssUrlPrefix + 'Whatwedo/Publications/archive/index.htm','SectionLabel_en==Employment Working Papers Series Archive','SectionLabel_es==Archivo de las Series de Documentos de Trabajo de Empleo','SectionLabel_fr==Archives des Series de Documents de Travail de l\\x27Emploi','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_3=g_navNode_4.addNode('2776','Instructional materials',ssUrlPrefix + 'Whatwedo/Instructionmaterials/index.htm','SectionLabel_en==Instructional materials','SectionLabel_es==Herramientas did\xe1cticas','SectionLabel_fr==Mat\xe9riel didactique','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5=g_navNode_Root.addNode('2777','Information resources',ssUrlPrefix + 'Informationresources/index.htm','SectionLabel_en==Information resources','SectionLabel_es==Recursos de Informaci\xf3n','SectionLabel_fr==Ressources d\u2019information','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_1=g_navNode_5.addNode('2787','Library documentation center',ssUrlPrefix + 'Informationresources/Librarydocumentationcenter/index.htm','SectionLabel_en==Library / documentation center','SectionLabel_es==Biblioteca / Centro de documentaci\xf3n','SectionLabel_fr==Bibliotheque / Centre de documentation','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_3=g_navNode_5.addNode('2789','Databases',ssUrlPrefix + 'Informationresources/Databases/index.htm','SectionLabel_en==Databases','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_4=g_navNode_5.addNode('2790','Statistics',ssUrlPrefix + 'Informationresources/Statistics/index.htm','SectionLabel_en==Statistics','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_5=g_navNode_5.addNode('2791','Links',ssUrlPrefix + 'Informationresources/Links/index.htm','SectionLabel_en==Links','secondaryUrlVariableField==pl_replaceable_content');

