/////////////////////////////////////////////////////////////////////////////
// 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('2757','Home page',ssUrlPrefix + 'index.htm',null,'EnglishBreadCrumbLabel==EMPLOYMENT Sector','EnglishSectionLabel==EMPLOYMENT sector','FrenchSectionLabel==Page d\u2019accueil','IsSurveyMonkeyOn==TRUE','Property_3==es,fr','SiteSupplementalSectionId==2758','secondaryUrlVariableField==region1');
g_navNode_0=g_navNode_Root.addNode('2758','Supplemental Navigation',ssUrlPrefix + 'SupplementalNavigation/index.htm','HideInNav==TRUE');
g_navNode_0_3=g_navNode_0.addNode('2766','Site map',ssUrlPrefix + 'SupplementalNavigation/Sitemap/index.htm');
g_navNode_0_4=g_navNode_0.addNode('2760','Contact us',ssUrlPrefix + 'SupplementalNavigation/Contactus/index.htm');
g_navNode_2=g_navNode_Root.addNode('2768','About us',ssUrlPrefix + 'Aboutus/index.htm','EnglishSectionLabel==About us','FrenchSectionLabel==\xc0 propos de nous','SpanishSectionLabel==Qui\xe9nes somos','secondaryUrlVariableField==region1');
g_navNode_3=g_navNode_Root.addNode('2769','Departments /  Offices',ssUrlPrefix + 'DepartmentsOffices/index.htm','EnglishSectionLabel==Departments ','FacetBoxTitleEnglish==by department','FacetQueryIndex==-1','FrenchSectionLabel==D\xe9partements','PrimaryFacetType==ORG','SpanishSectionLabel==Departamentos','secondaryUrlVariableField==region1');
g_navNode_4=g_navNode_Root.addNode('2770','Areas of work',ssUrlPrefix + 'Areasofwork/index.htm','DefaultGroupType==1','EnglishSectionLabel==Areas of work','FacetBoxTitleEnglish==by area of work','FacetQueryIndex==-1','FacetSetTitleEnglish==Browse resources','Facet_1==2772','Facet_2==2771','Facet_3==2769','FrenchSectionLabel==Domaines de travail','PrimaryFacetType==LOC.EMP','PrimaryFacetValue==EMP.NULL','SpanishSectionLabel==Ambitos de trabajo','secondaryUrlVariableField==region1');
g_navNode_5=g_navNode_Root.addNode('2771','Countries covered',ssUrlPrefix + 'Countriescovered/index.htm','EnglishSectionLabel==Countries covered','FacetBoxTitleEnglish==by region/country','FacetQueryIndex==-1','FacetSetTitleEnglish==Resources by','FrenchSectionLabel==Pays couverts','HideInNav==TRUE','PrimaryFacetType==GEO','SpanishSectionLabel==Pa\xedses abarcados','secondaryUrlVariableField==region1');
g_navNode_6=g_navNode_Root.addNode('2772','What we do',ssUrlPrefix + 'Whatwedo/index.htm','AlwaysExplode==TRUE','EnglishSectionLabel==What we do','FacetBoxTitleEnglish==by type','FacetQueryIndex==-1','FacetSetTitleEnglish==Resources','FrenchSectionLabel==Activit\xe9s','PrimaryFacetType==TYP','SpanishSectionLabel==Actividades','secondaryUrlVariableField==region1');
g_navNode_6_0=g_navNode_6.addNode('2773','Projects',ssUrlPrefix + 'Whatwedo/Projects/index.htm','DefaultGroupType==1','EnglishSectionLabel==Projects','FacetBoxTitleEnglish==by type','FacetSetTitleEnglish==Browse projects','Facet_1==2771','Facet_2==2770','Facet_3==2769','FrenchSectionLabel==Projets','PrimaryFacetType==TYP','PrimaryFacetValue==Project','Query_1==dDocType \x3csubstring\x3e \x60Project\x60','SpanishSectionLabel==Proyectos','secondaryUrlVariableField==region1');
g_navNode_6_1=g_navNode_6.addNode('2774','Events and meetings',ssUrlPrefix + 'Whatwedo/Eventsandmeetings/index.htm','DefaultGroupType==0','EnglishSectionLabel==Events and meetings','FacetBoxTitleEnglish==by type','FacetSetTitleEnglish==Browse events','Facet_1==2770','Facet_2==2771','Facet_3==2769','FrenchSectionLabel==\xc9v\xe9nements et reunions','PrimaryFacetType==TYP','PrimaryFacetValue==Event','Query_1==dDocType \x3csubstring\x3e \x60Event\x60','SpanishSectionLabel==Eventos y reuniones','secondaryUrlVariableField==region1');
g_navNode_6_2=g_navNode_6.addNode('2775','Publications',ssUrlPrefix + 'Whatwedo/Publications/index.htm','DefaultGroupType==1','EnglishSectionLabel==Publications','FacetBoxTitleEnglish==by type','FacetQueryIndex==2','FacetSetTitleEnglish==Browse publications','Facet_1==2770','Facet_2==2771','Facet_3==2769','FeedQueryIndex==2','FeedRefreshTime==3600','FrenchSectionLabel==Publications','ListNodeId_2==2775','PrimaryFacetType==TYP','PrimaryFacetValue==Publication','Query_2==\x28dDocType \x3csubstring\x3e \x60Publication\x60\x29','SpanishSectionLabel==Publicaciones','secondaryUrlVariableField==region1');
g_navNode_6_3=g_navNode_6.addNode('2776','Instructional materials',ssUrlPrefix + 'Whatwedo/Instructionmaterials/index.htm','DefaultGroupType==1','EnglishSectionLabel==Instructional materials','FacetBoxTitleEnglish==by type','FacetQueryIndex==1','FacetSetTitleEnglish==Browse instructional materials','Facet_1==2771','Facet_2==2770','FrenchSectionLabel==Mat\xe9riel didactique','PrimaryFacetType==TYP','PrimaryFacetValue==InstructionalMaterial','Query_1==\x28dDocType \x3csubstring\x3e \x60InstructionalMaterial\x60\x29','SpanishSectionLabel==Herramientas did\xe1cticas','secondaryUrlVariableField==region1');
g_navNode_7=g_navNode_Root.addNode('2777','Information resources',ssUrlPrefix + 'Informationresources/index.htm','AlwaysExplode==TRUE','EnglishSectionLabel==Information resources','FrenchSectionLabel==Ressources d\u2019information','SpanishSectionLabel==Recursos de Informaci\xf3n','secondaryUrlVariableField==region1');
g_navNode_7_1=g_navNode_7.addNode('2787','Library documentation center',ssUrlPrefix + 'Informationresources/Librarydocumentationcenter/index.htm','EnglishSectionLabel==Library / documentation center','FrenchSectionLabel==Bibliotheque / Centre de documentation','SpanishSectionLabel==Biblioteca / Centro de documentaci\xf3n','secondaryUrlVariableField==region1');
g_navNode_7_3=g_navNode_7.addNode('2789','Databases',ssUrlPrefix + 'Informationresources/Databases/index.htm','EnglishSectionLabel==Databases','FrenchSectionLabel==Bases de donn\xe9es','SpanishSectionLabel==Bases de datos','secondaryUrlVariableField==region1');
g_navNode_7_4=g_navNode_7.addNode('2790','Statistics',ssUrlPrefix + 'Informationresources/Statistics/index.htm','EnglishSectionLabel==Statistics','FrenchSectionLabel==Statistiques','SpanishSectionLabel==Estad\xedsticas','secondaryUrlVariableField==region1');
g_navNode_7_5=g_navNode_7.addNode('2791','Links',ssUrlPrefix + 'Informationresources/Links/index.htm','EnglishSectionLabel==Links','FrenchSectionLabel==Liens utiles','SpanishSectionLabel==Enlaces \xfatiles','secondaryUrlVariableField==region1');
g_navNode_8=g_navNode_Root.addNode('2767','Error Handler',ssUrlPrefix + 'ErrorHandler/index.htm','HideInNav==TRUE');
