/////////////////////////////////////////////////////////////////////////////
// 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('3251','EMP/ELM',ssUrlPrefix + 'index.htm',null,'BreadcrumbPrefixNode==employment\x3a2769','NavigationRootLevel==1','SectionLabel_en==Economic and Labour Market Analysis Department \x28EMP/ELM\x29','SectionLabel_es==El Departamento de An\xe1lisis de los Mercados Econ\xf3micos y Laborales \x28EMP/ELM\x29','SectionLabel_fr==D\xe9partement de l\\x27analyse \xe9conomique et des march\xe9s du travail \x28EMP/ELM\x29','SiteLabel_en==EMP/ELM','SiteLabel_es==EMP/ELM','SiteLabel_fr==EMP/ELM','SiteLanguages==en,es,fr','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0=g_navNode_Root.addNode('3252','About the department',ssUrlPrefix + 'about/index.htm','SectionLabel_en==About the department','SectionLabel_es==Acerca del departamento','SectionLabel_fr==\xc0 propos du d\xe9partement','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1=g_navNode_Root.addNode('3253','Units',ssUrlPrefix + 'units/index.htm','SectionLabel_en==Units','SectionLabel_es==Unidades','SectionLabel_fr==Unit\xe9s','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_0=g_navNode_1.addNode('36','Employment Analysis and Research',ssUrlPrefix + 'units/employment-analysis-and-research/index.htm','SectionLabel_en==Employment Analysis and Research \x28EMP/ANALYSIS\x29','SectionLabel_es==An\xe1lisis e Investigaci\xf3n del Empleo \x28EMP/ANALYSIS\x29','SectionLabel_fr==Recherches et analyses sur l\\x27emploi \x28EMP/ANALYSIS\x29','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_0_0=g_navNode_1_0.addNode('5045','facet',ssUrlPrefix + 'units/employment-analysis-and-research/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabelShort_es==Recursos','SectionLabelShort_fr==Ressources','SectionLabel_en==Employment Analysis and Research \x28EMP/ANALYSIS\x29 resources','SectionLabel_es==Recursos de An\xe1lisis e Investigaci\xf3n del Empleo \x28EMP/ANALYSIS\x29','SectionLabel_fr==Ressources de Recherches et analyses sur l\\x27emploi \x28EMP/ANALYSIS\x29','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_1=g_navNode_1.addNode('37','Employment Trends',ssUrlPrefix + 'units/employment-trends/index.htm','SectionLabel_en==Employment Trends \x28EMP/TRENDS\x29 ','SectionLabel_es==Tendencias del Empleo \x28EMP/TRENDS\x29','SectionLabel_fr==Tendances de l\\x27emploi \x28EMP/TRENDS\x29','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_1_0=g_navNode_1_1.addNode('5046','facet',ssUrlPrefix + 'units/employment-trends/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabelShort_es==Recursos','SectionLabelShort_fr==Ressources','SectionLabel_en==Employment Trends \x28EMP/TRENDS\x29 resources','SectionLabel_es==Recursos de Tendencias del Empleo \x28EMP/TRENDS\x29','SectionLabel_fr==Ressources de Tendances de l\\x27emploi \x28EMP/TRENDS\x29','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2=g_navNode_Root.addNode('3254','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('28','Employment trends and labour market information',ssUrlPrefix + 'areas/employment-trends/index.htm','SectionLabel_en==Employment trends and labour market information','SectionLabel_es==Tendencias del empleo e informaci\xf3n sobre el mercado de trabajo','SectionLabel_fr==Tendances de l\u2019emploi et information sur le march\xe9 du travail','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_0_0=g_navNode_2_0.addNode('5059','facet',ssUrlPrefix + 'areas/employment-trends/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabelShort_es==Recursos','SectionLabelShort_fr==Ressources','SectionLabel_en==Resources on Employment trends and labour market information','SectionLabel_es==Tendencias del empleo e informaci\xf3n sobre el mercado de trabajo','SectionLabel_fr==Ressources sur les Tendances de l\u2019emploi et information sur le march\xe9 du travail','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_1=g_navNode_2.addNode('29','Macroeconomic policies and development',ssUrlPrefix + 'areas/macroeconomic-policies/index.htm','SectionLabel_en==Macroeconomic policies and development','SectionLabel_es==Pol\xedticas macroecon\xf3micas y desarrollo','SectionLabel_fr==Politiques macro-\xe9conomiques et d\xe9veloppement','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_1_0=g_navNode_2_1.addNode('5061','facet',ssUrlPrefix + 'areas/macroeconomic-policies/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabelShort_es==Recursos','SectionLabelShort_fr==Ressources','SectionLabel_en==Resources on Macroeconomic policies and development','SectionLabel_es==Recursos sobre las Pol\xedticas macroecon\xf3micas y desarrollo','SectionLabel_fr==Ressources sur les Politiques macro-\xe9conomiques et d\xe9veloppement','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_2=g_navNode_2.addNode('30','Labour market policies and institutions',ssUrlPrefix + 'areas/labour-market-policies-and-institutions/index.htm','Hide==FALSE','SectionLabel_en==Labour market policies and institutions','SectionLabel_es==Pol\xedticas e instituciones del mercado laboral','SectionLabel_fr==Politiques et institutions du march\xe9 du travail','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_2_0=g_navNode_2_2.addNode('5062','facet',ssUrlPrefix + 'areas/labour-market-policies-and-institutions/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabelShort_es==Recursos','SectionLabelShort_fr==Ressources','SectionLabel_en==Resources on Labour market policies and institutions','SectionLabel_es==Recursos sobre las Pol\xedticas e instituciones del mercado laboral','SectionLabel_fr==Ressources sur les Politiques et institutions du march\xe9 du travail','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_3=g_navNode_2.addNode('31','Employment targeting and sectoral employment policies',ssUrlPrefix + 'areas/employment-targeting/index.htm','SectionLabel_en==Employment targeting and sectoral employment policies','SectionLabel_es==Fijaci\xf3n de objetivos de empleo y pol\xedticas sectoriales de empleo ','SectionLabel_fr==Les objectifs en mati\xe8re d\\x27emploi et les politiques d\\x27emploi sectorielles','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_3_0=g_navNode_2_3.addNode('5063','facet',ssUrlPrefix + 'areas/employment-targeting/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabelShort_es==Recursos','SectionLabelShort_fr==Ressources','SectionLabel_en==Resources on Employment targeting and sectoral employment policies','SectionLabel_es==Recursos sobre la Fijaci\xf3n de objetivos de empleo y pol\xedticas sectoriales de empleo ','SectionLabel_fr==Ressources sur Les objectifs en mati\xe8re d\\x27emploi et les politiques d\\x27emploi sectorielles','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3=g_navNode_Root.addNode('3257','Projects',ssUrlPrefix + 'projects/index.htm','SectionLabel_en==Programmes and projects','SectionLabel_es==Programas y proyectos','SectionLabel_fr==Programmes et projets','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4=g_navNode_Root.addNode('3259','Publications',ssUrlPrefix + 'pubs/index.htm','SectionLabel_en==Publications','SectionLabel_es==Publicaciones','SectionLabel_fr==Publications','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_6=g_navNode_Root.addNode('3273','Links',ssUrlPrefix + 'links/index.htm','SectionLabel_en==Links','SectionLabel_es==Enlaces \xfatiles','SectionLabel_fr==Liens utiles','secondaryUrlVariableField==pl_replaceable_content');

