/////////////////////////////////////////////////////////////////////////////
// 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('3283','ACTRAV',ssUrlPrefix + 'index.htm',null,'EnglishBreadCrumbLabel==ACTRAV','EnglishSectionLabel==Bureau for Workers\\x27 Activities \x28ACTRAV\x29','FrenchSectionLabel==Bureau des Activit\xe9s pour les Travailleurs \x28ACTRAV\x29','IsSurveyMonkeyOn==TRUE','Property_3==es,fr','SpanishSectionLabel==Oficina de Actividades para los Trabajadores \x28ACTRAV\x29','secondaryUrlVariableField==region1');
g_navNode_0=g_navNode_Root.addNode('3284','About us',ssUrlPrefix + 'about/index.htm','EnglishSectionLabel==About ACTRAV','FrenchSectionLabel==\xc0 propos de nous','SpanishSectionLabel==Qui\xe9nes somos','secondaryUrlVariableField==region1');
g_navNode_2=g_navNode_Root.addNode('3286','Areas of work',ssUrlPrefix + 'areas/index.htm','DefaultGroupFieldName==xDateIssued','DefaultGroupType==1','EnglishSectionLabel==Areas of work','FacetBoxTitleEnglish==by area of work','FacetBoxTitleFrench==par domaine du travail','FacetBoxTitleSpanish==por ambito de trabajo','FacetQueryIndex==-1','FacetSetTitleEnglish==Resources','FrenchSectionLabel==Domaines de travail','SpanishSectionLabel==Ambitos de trabajo','secondaryUrlVariableField==region1');
g_navNode_3=g_navNode_Root.addNode('3287','Regional activities',ssUrlPrefix + 'countries/index.htm','EnglishSectionLabel==Regional activities','FacetBoxTitleEnglish==by region/country','FacetBoxTitleFrench==par r\xe9gion/pays','FacetBoxTitleSpanish==por region/pa\xeds','FacetQueryIndex==-1','FacetSetTitleEnglish==Resources','FrenchSectionLabel==Pays couverts','HideInNav==FALSE','SpanishSectionLabel==Pa\xedses abarcados','secondaryUrlVariableField==region1');
g_navNode_4=g_navNode_Root.addNode('3288','What we do',ssUrlPrefix + 'what/index.htm','AlwaysExplode==TRUE','EnglishSectionLabel==What we do','FacetBoxTitleEnglish==by type','FacetQueryIndex==-1','FrenchSectionLabel==Activit\xe9s','PrimaryFacetType==TYP','SpanishSectionLabel==Actividades','secondaryUrlVariableField==region1');
g_navNode_4_0=g_navNode_4.addNode('3289','Projects',ssUrlPrefix + 'what/projects/index.htm','DefaultGroupFieldName==xDateAvailableStartDate','DefaultGroupType==1','EnglishSectionLabel==Projects','FacetBoxTitleEnglish==by type','FacetQueryIndex==1','FacetSetTitleEnglish==Browse programmes and projects','FrenchSectionLabel==Projets','PrimaryFacetType==TYP','PrimaryFacetValue==Project','Query_1==\x28dDocType \x3cmatches\x3e \x60Project\x60\x29 \x3c\x24SortSpec\x3d\"dDocTitle ASC\"\x24\x3e','SpanishSectionLabel==Proyectos','secondaryUrlVariableField==region1');
g_navNode_4_1=g_navNode_4.addNode('3290','Events and meetings',ssUrlPrefix + 'what/events/index.htm','DefaultGroupFieldName==xDateAvailableStartDate','DefaultGroupType==0','EnglishSectionLabel==Events and meetings','FacetBoxTitleEnglish==by type','FacetQueryIndex==-1','FacetSetTitleEnglish==Browse events and meetings','FrenchSectionLabel==\xc9v\xe9nements et reunions','PrimaryFacetType==TYP','PrimaryFacetValue==Event','Query_1==\x28dDocType \x3csubstring\x3e \x60Event\x60\x29','SecondGroupFieldName==xDateAvailableStartDate','SecondGroupType==0','SpanishSectionLabel==Eventos y reuniones','secondaryUrlVariableField==region1');
g_navNode_4_2=g_navNode_4.addNode('3291','Publications',ssUrlPrefix + 'what/pubs/index.htm','DefaultGroupFieldName==xDateIssued','DefaultGroupType==1','EnglishSectionLabel==Publications','FacetBoxTitleEnglish==by type','FacetQueryIndex==2','FacetSetTitleEnglish==Browse publications','FrenchSectionLabel==Publications','PrimaryFacetType==TYP','PrimaryFacetValue==Publication','Query_2==\x28dDocType \x3csubstring\x3e \x60Publication\x60\x29 \x3cAND\x3e \x3cNOT\x3e \x28xWebsiteSection \x3csubstring\x3e \x603297\x60\x29','SpanishSectionLabel==Publicaciones','secondaryUrlVariableField==region1');
g_navNode_5=g_navNode_Root.addNode('3293','Information resources',ssUrlPrefix + 'info/index.htm','AlwaysExplode==TRUE','EnglishSectionLabel==Information resources','FrenchSectionLabel==Ressources d\u2019information','SpanishSectionLabel==Recursos de Informaci\xf3n','secondaryUrlVariableField==region1');
g_navNode_5_0=g_navNode_5.addNode('3295','Press releases',ssUrlPrefix + 'info/pr/index.htm','DefaultGroupFieldName==xDateIssued','DefaultGroupType==1','EnglishSectionLabel==Press releases','FrenchSectionLabel==Communiqu\xe9s de presse','PrimaryFacetType==TYP','Query_2==dDocType \x3csubstring\x3e \x60PressRelease\x60','SpanishSectionLabel==Comunicados de prensa','secondaryUrlVariableField==region1');
g_navNode_5_1=g_navNode_5.addNode('3296','Factsheets',ssUrlPrefix + 'info/fs/index.htm','DefaultGroupFieldName==xDateIssued','DefaultGroupType==1','EnglishSectionLabel==Factsheets','FacetSetTitleEnglish==Factsheets','FrenchSectionLabel==Fiches d\\x27information','PrimaryFacetType==TYP','Query_2==dDocType \x3csubstring\x3e \x60Publication\x60  \x3cAND\x3e  xTypeSubtype \x3cmatches\x3e \x6010\x60','SpanishSectionLabel==Hojas de datos','secondaryUrlVariableField==region1');
g_navNode_5_2=g_navNode_5.addNode('3297','Newsletters',ssUrlPrefix + 'info/nl/index.htm','DefaultGroupFieldName==xDateIssued','DefaultGroupType==1','EnglishSectionLabel==Newsletters','FacetQueryIndex==2','FacetSetTitleEnglish==Newsletters','FrenchSectionLabel==Bulletins','PrimaryFacetType==TYP','Query_2==\x28dDocType \x3csubstring\x3e \x60Publication\x60  \x3cAND\x3e  xTypeSubtype \x3cmatches\x3e \x6012\x60 \x3cAND\x3e xWebsiteSection \x3csubstring\x3e \x603297\x60\x29','SpanishSectionLabel==Boletins','secondaryUrlVariableField==region1');
g_navNode_5_8=g_navNode_5.addNode('3305','Links',ssUrlPrefix + 'info/links/index.htm','EnglishSectionLabel==Links','FrenchSectionLabel==Liens utiles','HideInNav==FALSE','SpanishSectionLabel==Enlaces \xfatiles','secondaryUrlVariableField==region1');
g_navNode_6=g_navNode_Root.addNode('3306','Supplemental Navigation',ssUrlPrefix + 'SupplementalNavigation/index.htm','HideInNav==TRUE','SiteSupplementalSectionId==3306');
g_navNode_6_0=g_navNode_6.addNode('3307','Disclaimer',ssUrlPrefix + 'SupplementalNavigation/Disclaimer/index.htm','HideInNav==TRUE');
g_navNode_6_1=g_navNode_6.addNode('3308','Site Search',ssUrlPrefix + 'SupplementalNavigation/SiteSearch/index.htm','HideInNav==TRUE');
g_navNode_6_1_0=g_navNode_6_1.addNode('3309','Contextual Search Results',ssUrlPrefix + 'SupplementalNavigation/SiteSearch/ContextualSearchResults/index.htm');
g_navNode_6_3=g_navNode_6.addNode('3311','Site map',ssUrlPrefix + 'SupplementalNavigation/Sitemap/index.htm','EnglishSectionLabel==Site map','FrenchSectionLabel==Plan du site','SpanishSectionLabel==Mapa del sitio');
g_navNode_6_4=g_navNode_6.addNode('3312','Contact us',ssUrlPrefix + 'SupplementalNavigation/Contactus/index.htm','EnglishSectionLabel==Contact us','FrenchSectionLabel==Contactez-nous','SpanishSectionLabel==Cont\xe1ctenos');
g_navNode_7=g_navNode_Root.addNode('3313','Error Handler',ssUrlPrefix + 'ErrorHandler/index.htm','HideInNav==TRUE');
g_navNode_8=g_navNode_Root.addNode('3314','What\'s new',ssUrlPrefix + 'Whatsnew/index.htm','EnglishSectionLabel==What\\x27s new','FrenchSectionLabel==Actualit\xe9s','HideInNav==TRUE','Query_3==\x28dDocType \x3csubstring\x3e \x60NewsItem\x60\x29 \x3c\x24SortSpec\x3d\"xDateIssued DESC\"\x24\x3e','SpanishSectionLabel==Novedades','secondaryUrlVariableField==region1');
