/////////////////////////////////////////////////////////////////////////////
// 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('2000','Home',ssUrlPrefix + 'index.htm',null,'EnglishBreadCrumbLabel==Home','EnglishSectionLabel==A Fair Globalization, Making it Happen','FrenchBreadCrumbLabel==Page d\\x27accueil','FrenchSectionLabel==Une mondialisation juste, En faire une r\xe9alit\xe9','IsSurveyMonkeyOn==TRUE','SiteSupplementalSectionId==2320','SpanishBreadCrumbLabel==P\xe1gina de entrada','SpanishSectionLabel==Pour una globalizaci\xf3n justa, Podemos lograrlo');
g_navNode_0=g_navNode_Root.addNode('2337','Follow-up Activities and Events',ssUrlPrefix + 'follow/index.htm','EnglishSectionLabel==Follow-up Activities \x26 Events ','FrenchSectionLabel==Ev\xe9nements et activit\xe9s de suivi ','SpanishSectionLabel==Actividades y eventos de seguimiento ');
g_navNode_0_0=g_navNode_0.addNode('2344','Publications and documents',ssUrlPrefix + 'follow/Publications/index.htm','EnglishSectionLabel==Publications and documents','FrenchSectionLabel==Publications et documents','Query_1==dDocAccount \x3csubstring\x3e \x60DGREPORTS/WCSDG\x60 \x3cAND\x3e \x28 \x28dDocType \x3cmatches\x3e \x60Publication\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60BriefingNote\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60MeetingDocument\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60Statement\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60Presentation\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60PressRelease\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60NormativeInstrument\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60GenericDocument\x60\x29\x29','SpanishSectionLabel==Publicaciones y documentos','secondaryUrlVariableField==region1');
g_navNode_0_1=g_navNode_0.addNode('2388','Global activities and events',ssUrlPrefix + 'follow/Global/index.htm','DefaultGroupFieldName==xDateAvailableStartDate','DefaultGroupType==1','EnglishSectionLabel==Global activities and events','FrenchSectionLabel==Activit\xe9s et \xe9v\xe9nements mondiaux','Query_1==dDocAccount \x3csubstring\x3e \x60DGREPORTS/WCSDG\x60 \x3cAND\x3e \x28\x28\x28xCoverageSpatialRegions \x3cmatches\x3e \x60\x60\x29 \x3cAND\x3e \x28xCoverageSpatialCountries \x3cmatches\x3e \x60\x60\x29 \x29\x3cOR\x3e \x28xCoverageSpatialRegions \x3cmatches\x3e \x600\x60\x29\x29  \x3cAND\x3e \x3cNOT\x3e \x28dDocType \x3cstarts\x3e \x60SiteStudio\x60\x29 \x3cAND\x3e \x3cNOT\x3e \x28 \x28dDocType \x3cmatches\x3e \x60Publication\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60BriefingNote\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60MeetingDocument\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60Statement\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60Presentation\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60PressRelease\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60NormativeInstrument\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60GenericDocument\x60\x29 \x29','SpanishSectionLabel==Actividades y eventos globales','secondaryUrlVariableField==region1');
g_navNode_0_2=g_navNode_0.addNode('2389','Regional activities and events',ssUrlPrefix + 'follow/Regional/index.htm','DefaultGroupFieldName==xDateAvailableStartDate','DefaultGroupType==1','EnglishSectionLabel==Regional activities and events','FrenchSectionLabel==Activit\xe9s et \xe9v\xe9nements regionaux','Query_1==dDocAccount \x3csubstring\x3e \x60DGREPORTS/WCSDG\x60 \x3cAND\x3e \x3cNOT\x3e \x28xCoverageSpatialRegions \x3cmatches\x3e \x60\x60\x29 \x3cAND\x3e \x3cNOT\x3e \x28dDocType \x3cstarts\x3e \x60SiteStudio\x60\x29 \x3cAND\x3e \x3cNOT\x3e \x28 \x28dDocType \x3cmatches\x3e \x60Publication\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60BriefingNote\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60MeetingDocument\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60Statement\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60Presentation\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60PressRelease\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60NormativeInstrument\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60GenericDocument\x60\x29 \x29','SpanishSectionLabel==Actividades y eventos regionales ','secondaryUrlVariableField==region1');
g_navNode_0_3=g_navNode_0.addNode('2390','National activities and events',ssUrlPrefix + 'follow/National/index.htm','DefaultGroupFieldName==xDateAvailableStartDate','DefaultGroupType==1','EnglishSectionLabel==National activities and events','FrenchSectionLabel==Activit\xe9s et \xe9v\xe9nements nationaux','Query_1==dDocAccount \x3csubstring\x3e \x60DGREPORTS/WCSDG\x60 \x3cAND\x3e \x3cNOT\x3e \x28xCoverageSpatialCountries \x3cmatches\x3e \x60\x60\x29 \x3cAND\x3e \x3cNOT\x3e \x28dDocType \x3cstarts\x3e \x60SiteStudio\x60\x29 \x3cAND\x3e \x3cNOT\x3e\x28 \x28dDocType \x3cmatches\x3e \x60Publication\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60BriefingNote\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60MeetingDocument\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60Statement\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60Presentation\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60PressRelease\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60NormativeInstrument\x60\x29 \x3cOR\x3e \x28dDocType \x3cmatches\x3e \x60GenericDocument\x60\x29 \x29','SpanishSectionLabel==Actividades y eventos nationales','secondaryUrlVariableField==region1');
g_navNode_1=g_navNode_Root.addNode('2338','The World Commission\x3a Origins and Working Methods',ssUrlPrefix + 'origins/index.htm','EnglishSectionLabel==The World Commission\x3a Origins and Working Methods ','FrenchSectionLabel==La Commission mondiale\x3a origines et m\xe9thodes de travail ','SpanishSectionLabel==La Comisi\xf3n Mundial\x3a or\xedgenes y m\xe9todos de trabajo ');
g_navNode_2=g_navNode_Root.addNode('2339','The Report of the World Commission',ssUrlPrefix + 'report/index.htm','EnglishSectionLabel==The Report of the World Commission ','FrenchSectionLabel==Le rapport de la Commission mondiale ','SpanishSectionLabel==Informe de la Comisi\xf3n Mundial ');
g_navNode_2_0=g_navNode_2.addNode('2340','Access the full report',ssUrlPrefix + 'report/full/index.htm','EnglishSectionLabel==Access the full report ','FrenchSectionLabel==Acc\xe8s au rapport ','SpanishSectionLabel==Acceso al Informe');
g_navNode_2_1=g_navNode_2.addNode('2341','Toolkit and summary of the Report',ssUrlPrefix + 'report/toolkit/index.htm','EnglishSectionLabel==Toolkit and summary of the Report ','FrenchSectionLabel==Manuel pratique et r\xe9sum\xe9 du rapport \x28en anglais seulement\x29 ','SpanishSectionLabel==Gu\xeda pr\xe1ctica y resumen del Informe \x28solamente en ingl\xe8s\x29 ');
g_navNode_2_2=g_navNode_2.addNode('2342','References to the Report',ssUrlPrefix + 'report/references/index.htm','EnglishSectionLabel==References to the Report ','FrenchSectionLabel==R\xe9f\xe9rences au rapport ','SpanishSectionLabel==Gu\xeda pr\xe1ctica y resumen del Informe \x28solamente en ingl\xe8s\x29 ');
g_navNode_3=g_navNode_Root.addNode('2343','The role and mandate of the ILO',ssUrlPrefix + 'mandate/index.htm','EnglishSectionLabel==The role and mandate of the ILO ','FrenchSectionLabel==Le r\xf4le et le mandat de l\\x27OIT ','SpanishSectionLabel==La funci\xf3n y el mandato de la OIT ');
g_navNode_4=g_navNode_Root.addNode('2320','Supplemental Navigation',ssUrlPrefix + 'SupplementalNavigation/index.htm','HideInNav==TRUE');
g_navNode_4_0=g_navNode_4.addNode('2321','Disclaimer',ssUrlPrefix + 'SupplementalNavigation/Disclaimer/index.htm','HideInNav==TRUE');
g_navNode_4_0_0=g_navNode_4_0.addNode('2326','Reproduction of Extracts for Printed form/CD-ROM/Internet',ssUrlPrefix + 'SupplementalNavigation/Disclaimer/andIdliketoaskyouacoupleofquestionsinorderto/index.htm');
g_navNode_4_0_1=g_navNode_4_0.addNode('2327','Copyright and Permissions',ssUrlPrefix + 'SupplementalNavigation/Disclaimer/CopyrightandPermissions/index.htm');
g_navNode_4_0_2=g_navNode_4_0.addNode('2328','Disclaimer',ssUrlPrefix + 'SupplementalNavigation/Disclaimer/Disclaimer/index.htm');
g_navNode_4_0_3=g_navNode_4_0.addNode('2329','Request for permission to reproduce ILO Copyright Material',ssUrlPrefix + 'SupplementalNavigation/Disclaimer/RequestforpermissiontoreproduceILOCopyrightMaterial/index.htm');
g_navNode_4_0_4=g_navNode_4_0.addNode('2330','Photocopying',ssUrlPrefix + 'SupplementalNavigation/Disclaimer/Photocopying/index.htm');
g_navNode_4_0_5=g_navNode_4_0.addNode('2331','Translations for Printed form/Internet/CD-ROM',ssUrlPrefix + 'SupplementalNavigation/Disclaimer/TranslationsforPrintedformInternetCD-ROM/index.htm');
g_navNode_4_0_6=g_navNode_4_0.addNode('2332','Reprints for Printed form/Internet/CD-ROM',ssUrlPrefix + 'SupplementalNavigation/Disclaimer/ReprintsforPrintedformInternetCD-ROM/index.htm');
g_navNode_4_1=g_navNode_4.addNode('2322','Contact Us',ssUrlPrefix + 'SupplementalNavigation/ContactUs/index.htm');
g_navNode_4_2=g_navNode_4.addNode('2323','Site Search',ssUrlPrefix + 'SupplementalNavigation/SiteSearch/index.htm','HideInNav==TRUE');
g_navNode_4_2_0=g_navNode_4_2.addNode('2333','Contextual Search Results',ssUrlPrefix + 'SupplementalNavigation/SiteSearch/ContextualSearchResults/index.htm');
g_navNode_4_2_1=g_navNode_4_2.addNode('2334','Search Results',ssUrlPrefix + 'SupplementalNavigation/SiteSearch/SearchResults/index.htm');
g_navNode_4_2_2=g_navNode_4_2.addNode('2335','Advanced Search Results',ssUrlPrefix + 'SupplementalNavigation/SiteSearch/AdvancedSearchResults/index.htm');
g_navNode_4_3=g_navNode_4.addNode('2324','Site Index',ssUrlPrefix + 'SupplementalNavigation/SiteIndex/index.htm','HideInNav==TRUE');
g_navNode_4_4=g_navNode_4.addNode('2325','Site Map',ssUrlPrefix + 'SupplementalNavigation/SiteMap/index.htm','HideInNav==TRUE');
g_navNode_5=g_navNode_Root.addNode('2336','Error Handler',ssUrlPrefix + 'ErrorHandler/index.htm','HideInNav==TRUE');
g_navNode_6=g_navNode_Root.addNode('2351','Statements by Director-General',ssUrlPrefix + 'statements/index.htm','EnglishSectionLabel==Statements by Director-General','FrenchSectionLabel==D\xe9clarations du Directeur g\xe9n\xe9ral','HideInNav==TRUE','SpanishSectionLabel==Declaraciones del Director General');
g_navNode_7=g_navNode_Root.addNode('2352','Knowledge networks',ssUrlPrefix + 'Knowledgenetworks/index.htm','EnglishSectionLabel==Knowledge networks','FrenchSectionLabel==Knowledge networks','HideInNav==TRUE','SpanishSectionLabel==Knowledge networks','secondaryUrlVariableField==region1');
