/////////////////////////////////////////////////////////////////////////////
// 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('2698','Declaration',ssUrlPrefix + 'index.htm',null,'NavigationRootLevel==1','SectionLabel_en==Declaration\x3a Home page','SectionLabel_es==Declaration\x3a P\xe1gina de entrada','SectionLabel_fr==Declaration\x3a Page d\\x27accueil','SiteLabel_en==DECLARATION','SiteLabel_es==DECLARATION','SiteLabel_fr==DECLARATION','SiteLanguages==en,es,fr','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0=g_navNode_Root.addNode('2749','The Declaration',ssUrlPrefix + 'thedeclaration/index.htm','SectionLabel_en==The Declaration','SectionLabel_es==La Declaraci\xf3n','SectionLabel_fr==La D\xe9claration','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0_1=g_navNode_0.addNode('2751','The text of the Declaration and its follow-up',ssUrlPrefix + 'thedeclaration/textdeclaration/index.htm','SectionLabel_en==The text of the Declaration and its follow-up','SectionLabel_es==Texto de la Declaraci\xf3n y su seguimiento','SectionLabel_fr==Texte de la D\xe9claration et de son suivi','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0_2=g_navNode_0.addNode('2752','Background',ssUrlPrefix + 'thedeclaration/background/index.htm','SectionLabel_en==Background','SectionLabel_es==Antecedentes','SectionLabel_fr==Contexte','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0_3=g_navNode_0.addNode('2753','History',ssUrlPrefix + 'thedeclaration/history/index.htm','SectionLabel_en==History','SectionLabel_es==Historia','SectionLabel_fr==Historique','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1=g_navNode_Root.addNode('2744','The four fundamental principles and rights at work',ssUrlPrefix + 'principles/index.htm','SectionLabel_en==The four fundamental principles and rights at work','SectionLabel_es==Los principios y derechos fundamentales en el trabajo','SectionLabel_fr==Les principes et droits fondamentaux au travail','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_0=g_navNode_1.addNode('2745','Freedom of association and the effective recognition of the right to collective bargaining',ssUrlPrefix + 'principles/freedomofassociation/index.htm','SectionLabel_en==Freedom of association and the effective recognition of the right to collective bargaining','SectionLabel_es==Libertad de asociaci\xf3n y la libertad sindical y el reconocimiento efectivo del derecho de negociaci\xf3n colectiva ','SectionLabel_fr==Libert\xe9 d\\x27association et reconnaissance effective du droit de n\xe9gociation collective','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_1=g_navNode_1.addNode('2746','Elimination of all forms of forced or compulsory labour',ssUrlPrefix + 'principles/eliminationofchildlabour/index.htm','SectionLabel_en==Elimination of all forms of forced or compulsory labour','SectionLabel_es==Eliminaci\xf3n de todas las formas de trabajo forzoso u obligatorio','SectionLabel_fr==Elimination de toute forme de travail forc\xe9 ou obligatoire','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_2=g_navNode_1.addNode('2747','Effective abolition of child labour',ssUrlPrefix + 'principles/abolitionofchildlabour/index.htm','SectionLabel_en==Effective abolition of child labour','SectionLabel_es==Abolici\xf3n efectiva del trabajo infantil','SectionLabel_fr==Abolition effective du travail des enfants','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_3=g_navNode_1.addNode('2748','Elimination of discrimination in respect of employment and occupation',ssUrlPrefix + 'principles/eliminationofdiscrimination/index.htm','SectionLabel_en==Elimination of discrimination in respect of employment and occupation','SectionLabel_es==Eliminaci\xf3n de la discriminaci\xf3n en materia de empleo y ocupaci\xf3n','SectionLabel_fr==Elimination de la discrimination en mati\xe8re d\\x27emploi et de profession','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2=g_navNode_Root.addNode('2738','Follow-up to the Declaration',ssUrlPrefix + 'follow-up/index.htm','SectionLabel_en==Follow-up to the Declaration','SectionLabel_es==Seguimiento de la Declaraci\xf3n','SectionLabel_fr==Suivi de la D\xe9claration','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_0=g_navNode_2.addNode('2739','Annual review',ssUrlPrefix + 'follow-up/annualreview/index.htm','SectionLabel_en==Annual review','SectionLabel_es==Examen anual','SectionLabel_fr==Examen annuel','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_0_0=g_navNode_2_0.addNode('2740','Introduction to the compilation of annual reports',ssUrlPrefix + 'follow-up/annualreview/annualreports/index.htm','SectionLabel_en==Introduction to the compilation of annual reports','SectionLabel_es==Introduction to the compilation in Spanish','SectionLabel_fr==Introduction \xe0 la compilation des rapports annuels','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_0_1=g_navNode_2_0.addNode('2741','Compilation of country baselines',ssUrlPrefix + 'follow-up/annualreview/countrybaselines/index.htm','SectionLabel_en==Current compilation of country baselines','SectionLabel_es==Compilation actuelle des baselines par pays','SectionLabel_fr==Compilation actuelle des baselines par pays','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_0_2=g_navNode_2_0.addNode('2742','Observations by international employers and workers organizations',ssUrlPrefix + 'follow-up/annualreview/employersandworkers/index.htm','SectionLabel_en==Observations by international employers and workers organizations','SectionLabel_fr==Observations par les organisations internationales d\u2019employeurs et de travailleurs','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_0_3=g_navNode_2_0.addNode('2743','Status by country',ssUrlPrefix + 'follow-up/annualreview/ratificationstatus/index.htm','SectionLabel_en==Status by country','SectionLabel_es==Situaci\xf3n por pa\xeds','SectionLabel_fr==Situation par pays','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_0_5=g_navNode_2_0.addNode('2909','Report forms',ssUrlPrefix + 'follow-up/annualreview/Reportforms/index.htm','SectionLabel_en==Report forms','SectionLabel_es==Formularios de memoria ','SectionLabel_fr==Formulaires de rapport','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_1=g_navNode_2.addNode('2737','Global reports',ssUrlPrefix + 'follow-up/globalreports/index.htm','SectionLabel_en==Global reports','SectionLabel_es==Informes globales','SectionLabel_fr==Rapports globaux','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_2=g_navNode_2.addNode('2732','Technical cooperation projects',ssUrlPrefix + 'follow-up/tcprojects/index.htm','SectionLabel_en==Technical cooperation projects','SectionLabel_es==Proyectos de cooperaci\xf3n t\xe9cnica','SectionLabel_fr==Projets de coop\xe9ration technique','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_2_0=g_navNode_2_2.addNode('2733','Freedom of association and the effective recognition of the right to collective bargaining',ssUrlPrefix + 'follow-up/tcprojects/freedomofassociation/index.htm','SectionLabel_en==Freedom of association and the effective recognition of the right to collective bargaining','SectionLabel_es==Libertad de asociaci\xf3n y la libertad sindical y el reconocimiento efectivo del derecho de negociaci\xf3n colectiva ','SectionLabel_fr==Libert\xe9 d\\x27association et reconnaissance effective du droit de n\xe9gociation collective','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_2_1=g_navNode_2_2.addNode('2734','Elimination of all forms of forced or compulsory labour',ssUrlPrefix + 'follow-up/tcprojects/eliminationofchildlabour/index.htm','SectionLabel_en==Elimination of all forms of forced or compulsory labour','SectionLabel_es==Eliminaci\xf3n de todas las formas de trabajo forzoso u obligatorio','SectionLabel_fr==Elimination de toute forme de travail forc\xe9 ou obligatoire','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_2_2=g_navNode_2_2.addNode('2735','Effective abolition of child labour',ssUrlPrefix + 'follow-up/tcprojects/abolitionofchildlabour/index.htm','SectionLabel_en==Effective abolition of child labour','SectionLabel_es==Abolici\xf3n efectiva del trabajo infantil','SectionLabel_fr==Abolition effective du travail des enfants','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_2_3=g_navNode_2_2.addNode('2736','Elimination of discrimination in respect of employment and occupation',ssUrlPrefix + 'follow-up/tcprojects/eliminationofdiscrimination/index.htm','SectionLabel_en==Elimination of discrimination in respect of employment and occupation','SectionLabel_es==Eliminaci\xf3n de la discriminaci\xf3n en materia de empleo y ocupaci\xf3n','SectionLabel_fr==Elimination de la discrimination en mati\xe8re d\\x27emploi et de profession','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3=g_navNode_Root.addNode('2731','Events and campaigns',ssUrlPrefix + 'events/index.htm','SectionLabel_en==Events and campaigns','SectionLabel_es==Eventos y campa\xf1as','SectionLabel_fr==Ev\xe9nements et campagnes','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4=g_navNode_Root.addNode('2712','Information resources',ssUrlPrefix + 'info/index.htm','SectionLabel_en==Information resources','SectionLabel_fr==Sources d\u2019information','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_0=g_navNode_4.addNode('2713','Factsheets',ssUrlPrefix + 'info/factsheets/index.htm','SectionLabel_en==Factsheets','SectionLabel_es==Hojas de datos','SectionLabel_fr==Fiches d\\x27information','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_0_0=g_navNode_4_0.addNode('2714','Freedom of association and the effective recognition of the right to collective bargaining',ssUrlPrefix + 'info/factsheets/freedomofassociation/index.htm','SectionLabel_en==Freedom of association and the effective recognition of the right to collective bargaining','SectionLabel_es==Libertad de asociaci\xf3n y la libertad sindical y el reconocimiento efectivo del derecho de negociaci\xf3n colectiva ','SectionLabel_fr==Libert\xe9 d\\x27association et reconnaissance effective du droit de n\xe9gociation collective','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_0_1=g_navNode_4_0.addNode('2715','Elimination of all forms of forced or compulsory labour',ssUrlPrefix + 'info/factsheets/eliminationofchildlabour/index.htm','SectionLabel_en==Elimination of all forms of forced or compulsory labour','SectionLabel_es==Eliminaci\xf3n de todas las formas de trabajo forzoso u obligatorio','SectionLabel_fr==Elimination de toute forme de travail forc\xe9 ou obligatoire','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_0_2=g_navNode_4_0.addNode('2716','Effective abolition of child labour',ssUrlPrefix + 'info/factsheets/abolitionofchildlabour/index.htm','SectionLabel_en==Effective abolition of child labour','SectionLabel_es==Abolici\xf3n efectiva del trabajo infantil','SectionLabel_fr==Abolition effective du travail des enfants','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_0_3=g_navNode_4_0.addNode('2717','Elimination of discrimination in respect of employment and occupation',ssUrlPrefix + 'info/factsheets/eliminationofdiscrimination/index.htm','SectionLabel_en==Elimination of discrimination in respect of employment and occupation','SectionLabel_es==Eliminaci\xf3n de la discriminaci\xf3n en materia de empleo y ocupaci\xf3n','SectionLabel_fr==Elimination de la discrimination en mati\xe8re d\\x27emploi et de profession','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_1=g_navNode_4.addNode('2719','Links',ssUrlPrefix + 'info/links/index.htm','SectionLabel_en==Links','SectionLabel_es==Enlaces','SectionLabel_fr==Liens','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_1_0=g_navNode_4_1.addNode('2720','Freedom of association and the effective recognition of the right to collective bargaining',ssUrlPrefix + 'info/links/freedomofassociation/index.htm','SectionLabel_en==Freedom of association and the effective recognition of the right to collective bargaining','SectionLabel_es==Libertad de asociaci\xf3n y la libertad sindical y el reconocimiento efectivo del derecho de negociaci\xf3n colectiva ','SectionLabel_fr==Libert\xe9 d\\x27association et reconnaissance effective du droit de n\xe9gociation collective','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_1_1=g_navNode_4_1.addNode('2721','Elimination of all forms of forced or compulsory labour',ssUrlPrefix + 'info/links/eliminationofchildlabour/index.htm','SectionLabel_en==Elimination of all forms of forced or compulsory labour','SectionLabel_es==Eliminaci\xf3n de todas las formas de trabajo forzoso u obligatorio','SectionLabel_fr==Elimination de toute forme de travail forc\xe9 ou obligatoire','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_1_2=g_navNode_4_1.addNode('2722','Effective abolition of child labour',ssUrlPrefix + 'info/links/abolitionofchildlabour/index.htm','SectionLabel_en==Effective abolition of child labour','SectionLabel_es==Abolici\xf3n efectiva del trabajo infantil','SectionLabel_fr==Abolition effective du travail des enfants','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_1_3=g_navNode_4_1.addNode('2723','Elimination of discrimination in respect of employment and occupation',ssUrlPrefix + 'info/links/eliminationofdiscrimination/index.htm','SectionLabel_en==Elimination of discrimination in respect of employment and occupation','SectionLabel_es==Eliminaci\xf3n de la discriminaci\xf3n en materia de empleo y ocupaci\xf3n','SectionLabel_fr==Elimination de la discrimination en mati\xe8re d\\x27emploi et de profession','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_2=g_navNode_4.addNode('2724','Photo gallery',ssUrlPrefix + 'info/photogallery/index.htm','SectionLabel_en==Photo gallery','SectionLabel_es==Galer\xeda de fotos','SectionLabel_fr==Galerie photo','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_3=g_navNode_4.addNode('2725','Speeches',ssUrlPrefix + 'info/speeches/index.htm','SectionLabel_en==Speeches and presentations','SectionLabel_es==Discursos','SectionLabel_fr==Discours','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_4=g_navNode_4.addNode('2726','Publications',ssUrlPrefix + 'info/publications/index.htm','SectionLabel_en==Publications','SectionLabel_es==Publicaciones','SectionLabel_fr==Publications','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_4_0=g_navNode_4_4.addNode('2727','Freedom of association and the effective recognition of the right to collective bargaining',ssUrlPrefix + 'info/publications/freedomofassociation/index.htm','SectionLabel_en==Freedom of association and the effective recognition of the right to collective bargaining','SectionLabel_es==Libertad de asociaci\xf3n y la libertad sindical y el reconocimiento efectivo del derecho de negociaci\xf3n colectiva ','SectionLabel_fr==Libert\xe9 d\\x27association et reconnaissance effective du droit de n\xe9gociation collective','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_4_1=g_navNode_4_4.addNode('2728','Elimination of all forms of forced or compulsory labour',ssUrlPrefix + 'info/publications/eliminationofchildlabour/index.htm','SectionLabel_en==Elimination of all forms of forced or compulsory labour','SectionLabel_es==Eliminaci\xf3n de todas las formas de trabajo forzoso u obligatorio','SectionLabel_fr==Elimination de toute forme de travail forc\xe9 ou obligatoire','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_4_2=g_navNode_4_4.addNode('2729','Effective abolition of child labour',ssUrlPrefix + 'info/publications/abolitionofchildlabour/index.htm','SectionLabel_en==Effective abolition of child labour','SectionLabel_es==Abolici\xf3n efectiva del trabajo infantil','SectionLabel_fr==Abolition effective du travail des enfants','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_4_3=g_navNode_4_4.addNode('2730','Elimination of discrimination in respect of employment and occupation',ssUrlPrefix + 'info/publications/eliminationofdiscrimination/index.htm','SectionLabel_en==Elimination of discrimination in respect of employment and occupation','SectionLabel_es==Eliminaci\xf3n de la discriminaci\xf3n en materia de empleo y ocupaci\xf3n','SectionLabel_fr==Elimination de la discrimination en mati\xe8re d\\x27emploi et de profession','secondaryUrlVariableField==pl_replaceable_content');

