/////////////////////////////////////////////////////////////////////////////
// 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('2220','Indigenous',ssUrlPrefix + 'index.htm',null,'NavigationRootLevel==1','SectionLabel_en==Indigenous and Tribal Peoples','SectionLabel_es==Pueblos Ind\xedgenas y Tribales','SectionLabel_fr==Peuples Indig\xe8nes et Tribaux','SiteLabel_en==Indigenous','SiteLabel_es==Indigenous','SiteLabel_fr==Indigenous','SiteLanguages==en,es,fr','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0=g_navNode_Root.addNode('2255','About us',ssUrlPrefix + 'Aboutus/index.htm','SectionLabel_en==About us','SectionLabel_es==\xbfQui\xe9nes somos?','SectionLabel_fr==Pr\xe9sentation','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0_0=g_navNode_0.addNode('2263','History of ILO\'s work',ssUrlPrefix + 'Aboutus/HistoryofILOswork/index.htm','SectionLabel_en==History of ILO\u2019s work','SectionLabel_es==Historia de la labor de la OIT','SectionLabel_fr==Histoire du travail de l\u2019OIT','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0_1=g_navNode_0.addNode('2264','Programme to Promote ILO Convention No. 169 \x28PRO 169\x29',ssUrlPrefix + 'Aboutus/PRO169/index.htm','SectionLabel_en==Programme to Promote ILO Convention No. 169 \x28PRO 169\x29','SectionLabel_es==Programa para promover el Convenio n\xfam. 169 \x28PRO 169\x29','SectionLabel_fr==Programme pour la promotion de la Convention n\xb0 169 de l\\x27OIT','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0_2=g_navNode_0.addNode('2265','IP/LED programme',ssUrlPrefix + 'Aboutus/INDISCO/index.htm','SectionLabel_en==IP/LED programme','SectionLabel_es==Programa IP/LED','SectionLabel_fr==Developpement economique local et peuples indigenes \x28IP/LED\x29','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0_3=g_navNode_0.addNode('2266','Equality team',ssUrlPrefix + 'Aboutus/Equalityteam/index.htm','SectionLabel_en==Equality team','SectionLabel_es==Equipo de Equidad','SectionLabel_fr==Equipe de l\u2019\xe9galit\xe9','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0_4=g_navNode_0.addNode('2267','Meet the staff',ssUrlPrefix + 'Aboutus/Meetthestaff/index.htm','SectionLabel_en==Meet the staff','SectionLabel_es==Conozca al personal','SectionLabel_fr==Le personnel','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1=g_navNode_Root.addNode('2256','Conventions',ssUrlPrefix + 'Conventions/index.htm','SectionLabel_en==Conventions','SectionLabel_es==Convenios','SectionLabel_fr==Conventions','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_0=g_navNode_1.addNode('2260','Convention No. 107',ssUrlPrefix + 'Conventions/no107/index.htm','SectionLabel_en==Convention No. 107','SectionLabel_es==Convenio No. 107','SectionLabel_fr==Convention n\xb0 107','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_1=g_navNode_1.addNode('2261','Convention No. 169',ssUrlPrefix + 'Conventions/no169/index.htm','SectionLabel_en==Convention No. 169','SectionLabel_es==Convenio No. 169','SectionLabel_fr==Convention n\xb0 169','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_2=g_navNode_1.addNode('2262','Supervision',ssUrlPrefix + 'Conventions/Supervision/index.htm','SectionLabel_en==Supervision','SectionLabel_es==Supervisi\xf3n','SectionLabel_fr==Contr\xf4le','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2=g_navNode_Root.addNode('2257','Themes',ssUrlPrefix + 'Themes/index.htm','SectionLabel_en==Themes','SectionLabel_es==Temas','SectionLabel_fr==Th\xe8mes','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_1=g_navNode_2.addNode('2269','Child labour',ssUrlPrefix + 'Themes/Childlabour/index.htm','SectionLabel_en==Child labour','SectionLabel_es==Trabajo infantil','SectionLabel_fr==Travail des enfants','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_2=g_navNode_2.addNode('2270','Discrimination',ssUrlPrefix + 'Themes/Discrimination/index.htm','SectionLabel_en==Discrimination','SectionLabel_es==Discriminaci\xf3n','SectionLabel_fr==Discrimination','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_3=g_navNode_2.addNode('2271','Forced labour',ssUrlPrefix + 'Themes/Forcedlabour/index.htm','SectionLabel_en==Forced labour','SectionLabel_es==Trabajo forzoso','SectionLabel_fr==Travail forc\xe9','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_5=g_navNode_2.addNode('2273','Millennium Development Goals',ssUrlPrefix + 'Themes/MDG/index.htm','SectionLabel_en==Millennium Development Goals','SectionLabel_es==Objetivos de Desarrollo del Milenio','SectionLabel_fr==Objectifs du Mill\xe9naire pour le d\xe9veloppement','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_6=g_navNode_2.addNode('2274','Poverty Reduction Strategy papers',ssUrlPrefix + 'Themes/PRSP/index.htm','SectionLabel_en==Poverty Reduction Strategy papers','SectionLabel_es==Documento de estrategia de lucha contra la pobreza ','SectionLabel_fr==Documents de strat\xe9gie pour la r\xe9duction de la pauvret\xe9 \x28DSRP\x29','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_7=g_navNode_2.addNode('2275','Training and Capacity Building',ssUrlPrefix + 'Themes/TrainingandCapacityBuilding/index.htm','SectionLabel_en==Training and Capacity Building','SectionLabel_es==Formaci\xf3n y desarrollo de capacidad','SectionLabel_fr==Formation et renforcement des capacit\xe9s','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_7_0=g_navNode_2_7.addNode('2276','Fellowship programme',ssUrlPrefix + 'Themes/TrainingandCapacityBuilding/Fellowshipprogramme/index.htm','SectionLabel_en==Fellowship programme','SectionLabel_es==Programa de Becarios','SectionLabel_fr==Programme des bourses','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_7_1=g_navNode_2_7.addNode('2277','Training courses',ssUrlPrefix + 'Themes/TrainingandCapacityBuilding/Trainingcourses/index.htm','SectionLabel_en==Training courses','SectionLabel_es==Cursos de formaci\xf3n','SectionLabel_fr==Formation','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_7_2=g_navNode_2_7.addNode('2278','Training modules',ssUrlPrefix + 'Themes/TrainingandCapacityBuilding/Trainingmodules/index.htm','SectionLabel_en==Training modules','SectionLabel_es==Material de formaci\xf3n','SectionLabel_fr==Outils de formation','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_9=g_navNode_2.addNode('2280','UN coordination',ssUrlPrefix + 'Themes/UNcoordination/index.htm','SectionLabel_en==UN coordination','SectionLabel_es==Coordinaci\xf3n con la ONU','SectionLabel_fr==Coordination avec le syst\xe8me des Nations unies','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_9_0=g_navNode_2_9.addNode('2281','Permanent Forum on Indigenous Issues and Interagency Support Group',ssUrlPrefix + 'Themes/UNcoordination/PermanentForum/index.htm','SectionLabel_en==Permanent Forum on Indigenous Issues and Interagency Support Group','SectionLabel_es==Foro Permanente para las Cuestiones Ind\xedgenas y Grupo de Apoyo Interagencial','SectionLabel_fr==Instance permanente sur les questions autochtones et groupe','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_9_1=g_navNode_2_9.addNode('2282','UN Human Rights Bodies',ssUrlPrefix + 'Themes/UNcoordination/UNHumanRightsBodies/index.htm','SectionLabel_en==UN Human Rights Bodies','SectionLabel_es==\xd3rganos sobre los derechos humanos de la ONU','SectionLabel_fr==Organes de l\u2019ONU relatives aux droits de l\u2019homme','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_9_2=g_navNode_2_9.addNode('2283','UN System Programs and Agencies',ssUrlPrefix + 'Themes/UNcoordination/UNSystem/index.htm','SectionLabel_en==UN System Programs and Agencies','SectionLabel_es==Programas y Agencias del Sistema de las NU','SectionLabel_fr==Agences et programmes du syst\xe8me des Nations unies','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3=g_navNode_Root.addNode('2258','Activities by region',ssUrlPrefix + 'Activitiesbyregion/index.htm','SectionLabel_en==Activities by region','SectionLabel_es==Actividades por regi\xf3n','SectionLabel_fr==Activit\xe9s par r\xe9gion','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_0=g_navNode_3.addNode('2391','Africa',ssUrlPrefix + 'Activitiesbyregion/Africa/index.htm','SectionLabel_en==Africa','SectionLabel_es==\xc1frica','SectionLabel_fr==Afrique','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_0_0=g_navNode_3_0.addNode('2395','Africa Regional Project',ssUrlPrefix + 'Activitiesbyregion/Africa/AfricaRegionalProject/index.htm','SectionLabel_en==Africa Regional Project','SectionLabel_es==Proyecto regional en \xc1frica','SectionLabel_fr==Projet r\xe9gional pour l\u2019Afrique','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_0_1=g_navNode_3_0.addNode('2396','Burundi',ssUrlPrefix + 'Activitiesbyregion/Africa/Burundi/index.htm','SectionLabel_en==Burundi','SectionLabel_es==Burundi','SectionLabel_fr==Burundi','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_0_2=g_navNode_3_0.addNode('2397','Cameroon',ssUrlPrefix + 'Activitiesbyregion/Africa/Cameroon/index.htm','SectionLabel_en==Cameroon','SectionLabel_es==Camer\xfan','SectionLabel_fr==Cameroun','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_0_3=g_navNode_3_0.addNode('2398','Congo',ssUrlPrefix + 'Activitiesbyregion/Africa/Congo/index.htm','SectionLabel_en==Congo','SectionLabel_es==Rep\xfablica del Congo','SectionLabel_fr==Congo','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_0_4=g_navNode_3_0.addNode('2399','Kenya',ssUrlPrefix + 'Activitiesbyregion/Africa/Kenya/index.htm','SectionLabel_en==Kenya','SectionLabel_es==Kenia','SectionLabel_fr==Kenya','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_0_5=g_navNode_3_0.addNode('2400','Morocco',ssUrlPrefix + 'Activitiesbyregion/Africa/Morocco/index.htm','SectionLabel_en==Morocco','SectionLabel_es==Marruecos','SectionLabel_fr==Maroc','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_0_6=g_navNode_3_0.addNode('2401','Namibia',ssUrlPrefix + 'Activitiesbyregion/Africa/Namibia/index.htm','SectionLabel_en==Namibia','SectionLabel_es==Namibia','SectionLabel_fr==Namibie','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_1=g_navNode_3.addNode('2392','Asia',ssUrlPrefix + 'Activitiesbyregion/Asia/index.htm','SectionLabel_en==Asia','SectionLabel_es==Asia','SectionLabel_fr==Asie','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_1_0=g_navNode_3_1.addNode('2403','South Asia sub-regional project',ssUrlPrefix + 'Activitiesbyregion/Asia/SouthAsia/index.htm','SectionLabel_en==South Asia sub-regional project','SectionLabel_es==Sur de Asia \x28proyecto subregional\x29','SectionLabel_fr==Asie du Sud \x28projet sous-regional\x29','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_1_0_0=g_navNode_3_1_0.addNode('2404','Bangladesh',ssUrlPrefix + 'Activitiesbyregion/Asia/SouthAsia/Bangladesh/index.htm','SectionLabel_en==Bangladesh','SectionLabel_es==Bangladesh','SectionLabel_fr==Bangladesh','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_1_0_1=g_navNode_3_1_0.addNode('2405','India',ssUrlPrefix + 'Activitiesbyregion/Asia/SouthAsia/India/index.htm','SectionLabel_en==India','SectionLabel_es==India','SectionLabel_fr==Inde','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_1_0_2=g_navNode_3_1_0.addNode('2406','Nepal',ssUrlPrefix + 'Activitiesbyregion/Asia/SouthAsia/Nepal/index.htm','SectionLabel_en==Nepal','SectionLabel_es==Nepal','SectionLabel_fr==N\xe9pal','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_1_0_3=g_navNode_3_1_0.addNode('2407','Pakistan',ssUrlPrefix + 'Activitiesbyregion/Asia/SouthAsia/Pakistan/index.htm','SectionLabel_en==Pakistan','SectionLabel_es==Pakist\xe1n','SectionLabel_fr==Pakistan','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_1_1=g_navNode_3_1.addNode('2408','Cambodia',ssUrlPrefix + 'Activitiesbyregion/Asia/Cambodia/index.htm','SectionLabel_en==Cambodia','SectionLabel_es==Camboya','SectionLabel_fr==Cambodge','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_1_2=g_navNode_3_1.addNode('2409','Philippines',ssUrlPrefix + 'Activitiesbyregion/Asia/Philippines/index.htm','SectionLabel_en==Philippines','SectionLabel_es==Filipinas','SectionLabel_fr==Philippines','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_2=g_navNode_3.addNode('2393','Latin America',ssUrlPrefix + 'Activitiesbyregion/LatinAmerica/index.htm','SectionLabel_en==Latin America','SectionLabel_es==Am\xe9rica Latina','SectionLabel_fr==Am\xe9rique latine','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_2_0=g_navNode_3_2.addNode('2410','Argentina',ssUrlPrefix + 'Activitiesbyregion/LatinAmerica/Argentina/index.htm','SectionLabel_en==Argentina','SectionLabel_es==Argentina','SectionLabel_fr==Argentine','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_2_1=g_navNode_3_2.addNode('2411','Bolivia',ssUrlPrefix + 'Activitiesbyregion/LatinAmerica/Bolivia/index.htm','SectionLabel_en==Bolivia','SectionLabel_es==Bolivia','SectionLabel_fr==Bolivie','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_2_2=g_navNode_3_2.addNode('2412','Guatemala',ssUrlPrefix + 'Activitiesbyregion/LatinAmerica/Guatemala/index.htm','SectionLabel_en==Guatemala','SectionLabel_es==Guatemala','SectionLabel_fr==Guatemala','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_2_3=g_navNode_3_2.addNode('2413','Honduras',ssUrlPrefix + 'Activitiesbyregion/LatinAmerica/Honduras/index.htm','SectionLabel_en==Honduras','SectionLabel_es==Honduras','SectionLabel_fr==Honduras','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_2_4=g_navNode_3_2.addNode('2575','Panama',ssUrlPrefix + 'Activitiesbyregion/LatinAmerica/Panama/index.htm','SectionLabel_en==Panama','SectionLabel_es==Panam\xe1','SectionLabel_fr==Panama','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3_2_5=g_navNode_3_2.addNode('2576','Peru',ssUrlPrefix + 'Activitiesbyregion/LatinAmerica/Peru/index.htm','SectionLabel_en==Peru','SectionLabel_es==Per\xfa','SectionLabel_fr==P\xe9rou','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5=g_navNode_Root.addNode('2259','Resources',ssUrlPrefix + 'Resources/index.htm','SectionLabel_en==Resources','SectionLabel_es==Recursos','SectionLabel_fr==Ressources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_1=g_navNode_5.addNode('2309','Publications',ssUrlPrefix + 'Resources/Publications/index.htm','SectionLabel_en==Publications','SectionLabel_es==Publicaciones','SectionLabel_fr==Publications','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_2=g_navNode_5.addNode('2312','Guidelines and manuals',ssUrlPrefix + 'Resources/Guidelinesandmanuals/index.htm','SectionLabel_en==Guidelines and manuals','SectionLabel_es==Directrices y manuales','SectionLabel_fr==Guides et manuels par sujet','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_3=g_navNode_5.addNode('2314','Event documentation',ssUrlPrefix + 'Resources/Eventdocumentation/index.htm','SectionLabel_en==Event documentation','SectionLabel_es==Documentaci\xf3n de eventos','SectionLabel_fr==Documentation des activit\xe9s','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_3_0=g_navNode_5_3.addNode('2315','Workshop/seminar reports',ssUrlPrefix + 'Resources/Eventdocumentation/Workshopseminarreports/index.htm','SectionLabel_en==Workshop/seminar reports','SectionLabel_es==Informes sobre talleres y seminarios','SectionLabel_fr==Rapports des ateliers et des s\xe9minaires','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_3_1=g_navNode_5_3.addNode('2316','Statements',ssUrlPrefix + 'Resources/Eventdocumentation/Statements/index.htm','SectionLabel_en==Statements','SectionLabel_es==Declaraciones','SectionLabel_fr==D\xe9clarations','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_4=g_navNode_5.addNode('2317','Translations of Convention No. 169',ssUrlPrefix + 'Resources/Translations/index.htm','SectionLabel_en==Translations of Convention No. 169','SectionLabel_es==Traducciones del Convenio n\xfam. 169','SectionLabel_fr==Traductions de la Convention n\xb0 169','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_5=g_navNode_5.addNode('2319','Useful links',ssUrlPrefix + 'Resources/Usefullinks/index.htm','SectionLabel_en==Useful links','SectionLabel_es==Enlaces \xfatiles','SectionLabel_fr==Liens utiles','secondaryUrlVariableField==pl_replaceable_content');

