/////////////////////////////////////////////////////////////////////////////
// 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('3149','SAFEWORK',ssUrlPrefix + 'index.htm',null,'BreadcrumbPrefixNode==protection\x3a3616','NavigationRootLevel==1','SectionLabel_en==Programme on Safety and Health at Work and the Environment \x28SafeWork\x29 ','SectionLabel_es==Programa de Seguridad y Salud en el Trabajo y Medio Ambiente \x28SafeWork\x29','SectionLabel_fr==Programme sur la s\xe9curit\xe9 et la sant\xe9 au travail et sur l\\x27environnement \x28SafeWork\x29','SiteLabel_en==SafeWork','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_0=g_navNode_Root.addNode('3150','About us',ssUrlPrefix + 'about/index.htm','SectionLabel_en==About us','SectionLabel_es==Qui\xe9nes somos','SectionLabel_fr==\xc0 propos de nous','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1=g_navNode_Root.addNode('3152','Areas of work',ssUrlPrefix + 'areasofwork/index.htm','SectionLabel_en==Areas of work','SectionLabel_es==Ambitos de trabajo','SectionLabel_fr==Domaines de travail','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_0=g_navNode_1.addNode('5402','National Occupational Safety and Health Systems and Programmes',ssUrlPrefix + 'areasofwork/national-occupational-safety-and-health-systems-and-programmes/index.htm','SectionLabel_en==National Occupational Safety and Health Systems and Programmes','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_0_0=g_navNode_1_0.addNode('5423','facet',ssUrlPrefix + 'areasofwork/national-occupational-safety-and-health-systems-and-programmes/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==National Occupational Safety and Health Systems and Programmes resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_1=g_navNode_1.addNode('5403','Occupational Safety and Health Management Systems',ssUrlPrefix + 'areasofwork/occupational-safety-and-health-management-systems/index.htm','SectionLabel_en==Occupational Safety and Health Management Systems','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_1_0=g_navNode_1_1.addNode('5422','facet',ssUrlPrefix + 'areasofwork/occupational-safety-and-health-management-systems/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Occupational Safety and Health Management Systems resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_2=g_navNode_1.addNode('5404','Occupational Safety and Health  Information and Knowledge Sharing',ssUrlPrefix + 'areasofwork/occupational-safety-and-health-informationand-knowledge-sharing/index.htm','SectionLabel_en==Occupational Safety and Health  Information and Knowledge Sharing','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_2_0=g_navNode_1_2.addNode('5421','facet',ssUrlPrefix + 'areasofwork/occupational-safety-and-health-informationand-knowledge-sharing/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Occupational Safety and Health  Information and Knowledge Sharing resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_3=g_navNode_1.addNode('5405','Occupational Health',ssUrlPrefix + 'areasofwork/occupational-health/index.htm','SectionLabel_en==Occupational Health','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_3_0=g_navNode_1_3.addNode('5420','facet',ssUrlPrefix + 'areasofwork/occupational-health/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Occupational Health resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_4=g_navNode_1.addNode('5406','Chemical Safety and the Environment',ssUrlPrefix + 'areasofwork/chemical-sSafety-and-the-environment/index.htm','SectionLabel_en==Chemical Safety and the Environment','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_4_0=g_navNode_1_4.addNode('5419','facet',ssUrlPrefix + 'areasofwork/chemical-sSafety-and-the-environment/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Chemical Safety and the Environment resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_5=g_navNode_1.addNode('5407','Hazardous Work',ssUrlPrefix + 'areasofwork/hazardous-work/index.htm','SectionLabel_en==Hazardous Work','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_5_0=g_navNode_1_5.addNode('5418','facet',ssUrlPrefix + 'areasofwork/hazardous-work/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Hazardous Work resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_6=g_navNode_1.addNode('5408','Radiation Protection',ssUrlPrefix + 'areasofwork/radiation-protection/index.htm','SectionLabel_en==Radiation Protection','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_6_0=g_navNode_1_6.addNode('5417','facet',ssUrlPrefix + 'areasofwork/radiation-protection/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Radiation Protection resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_7=g_navNode_1.addNode('5409','Workplace health promotion and well-being',ssUrlPrefix + 'areasofwork/workplace-health-promotion-and-well-being/index.htm','SectionLabel_en==Workplace health promotion and well-being','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_7_0=g_navNode_1_7.addNode('5416','facet',ssUrlPrefix + 'areasofwork/workplace-health-promotion-and-well-being/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Workplace health promotion and well-being resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_8=g_navNode_1.addNode('5410','Occupational Safety and Health Inspection',ssUrlPrefix + 'areasofwork/occupational-safety-and-health-inspection/index.htm','SectionLabel_en==Occupational Safety and Health Inspection','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_8_0=g_navNode_1_8.addNode('5415','facet',ssUrlPrefix + 'areasofwork/occupational-safety-and-health-inspection/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Occupational Safety and Health Inspection resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_9=g_navNode_1.addNode('5411','Economic Aspects of Occupational Safety and Health',ssUrlPrefix + 'areasofwork/economic-aspects-of-occupational-safety-and-health/index.htm','SectionLabel_en==Economic Aspects of Occupational Safety and Health','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_9_0=g_navNode_1_9.addNode('5414','facet',ssUrlPrefix + 'areasofwork/economic-aspects-of-occupational-safety-and-health/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Economic Aspects of Occupational Safety and Health resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_10=g_navNode_1.addNode('5412','Gender and Occupational Safety and Health',ssUrlPrefix + 'areasofwork/gender-and-occupational-safety-and-health/index.htm','SectionLabel_en==Gender and Occupational Safety and Health','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_1_10_0=g_navNode_1_10.addNode('5413','facet',ssUrlPrefix + 'areasofwork/gender-and-occupational-safety-and-health/facet/index.htm','Hide==TRUE','SectionLabelShort_en==Resources','SectionLabel_en==Gender and Occupational Safety and Health resources','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2=g_navNode_Root.addNode('3151','ILO instruments on OSH',ssUrlPrefix + 'normative/index.htm','SectionLabel_en==ILO instruments on OSH','SectionLabel_es==ES\x3a ILO instruments on OSH','SectionLabel_fr==FR\x3a ILO instruments on OSH','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_0=g_navNode_2.addNode('3201','Conventions and Recommendations',ssUrlPrefix + 'normative/conventions/index.htm','SectionLabel_en==Conventions and Recommendations','SectionLabel_es==Convenios y recomendaciones','SectionLabel_fr==Conventions et recommandations','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_2_1=g_navNode_2.addNode('3202','Codes of practice',ssUrlPrefix + 'normative/codes/index.htm','SectionLabel_en==Codes of Practice','SectionLabel_es==Repertorios de recomendaciones pr\xe1cticas','SectionLabel_fr==Recueils de directives pratiques','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_3=g_navNode_Root.addNode('3155','Projects',ssUrlPrefix + 'projects/index.htm','SectionLabel_en==Projects','SectionLabel_es==Proyectos','SectionLabel_fr==Projets','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4=g_navNode_Root.addNode('3156','Events and training',ssUrlPrefix + 'events/index.htm','SectionLabel_en==Events and training','SectionLabel_es==Eventos y reuniones','SectionLabel_fr==\xc9v\xe9nements et reunions','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_0=g_navNode_4.addNode('3203','World Day for Safety and Health at Work',ssUrlPrefix + 'events/safeday/index.htm','SectionLabel_en==World Day for Safety and Health at Work','SectionLabel_es==D\xeda Mundial de la Seguridad y Salud en el Trabajo','SectionLabel_fr==Journ\xe9e mondiale de la s\xe9curit\xe9 et de la sant\xe9 au travail','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_1=g_navNode_4.addNode('4345','Events',ssUrlPrefix + 'events/meetings/index.htm','SectionLabel_en==Events','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_2=g_navNode_4.addNode('3204','Conferences',ssUrlPrefix + 'events/conferences/index.htm','SectionLabel_en==Conferences','SectionLabel_es==Conferencias','SectionLabel_fr==Conf\xe9rences','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_4_3=g_navNode_4.addNode('3205','Courses',ssUrlPrefix + 'events/courses/index.htm','SectionLabel_en==Courses','SectionLabel_es==Cursos','SectionLabel_fr==Cours','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5=g_navNode_Root.addNode('3159','Information resources',ssUrlPrefix + 'info/index.htm','SectionLabel_en==Information resources','SectionLabel_es==Recursos de Informaci\xf3n','SectionLabel_fr==Ressources d\u2019information','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_0=g_navNode_5.addNode('3169','Databases',ssUrlPrefix + 'info/databases/index.htm','SectionLabel_en==Databases','SectionLabel_es==Bases de datos','SectionLabel_fr==Bases de donn\xe9es','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_1=g_navNode_5.addNode('3157','Publications',ssUrlPrefix + 'info/publications/index.htm','SectionLabel_en==Publications','SectionLabel_es==Publicaciones','SectionLabel_fr==Publications','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_2=g_navNode_5.addNode('3158','Training materials',ssUrlPrefix + 'info/instr/index.htm','SectionLabel_en==Training materials','SectionLabel_es==Material de la formaci\xf3n','SectionLabel_fr==Mat\xe9riel de formation','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_3=g_navNode_5.addNode('3168','Meeting documents',ssUrlPrefix + 'info/meetingdocs/index.htm','SectionLabel_en==Meeting documents','SectionLabel_es==Documentos de reuniones','SectionLabel_fr==Documents des reunions','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_3_0=g_navNode_5_3.addNode('3206','International Labour Conference documents',ssUrlPrefix + 'info/meetingdocs/ilc/index.htm','SectionLabel_en==International Labour Conference documents','SectionLabel_es==Documentos de la Conferencia Internacional del Trabajo','SectionLabel_fr==Documents de la Conf\xe9rence internationale de Travail','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_3_1=g_navNode_5_3.addNode('3207','Governing Body documents',ssUrlPrefix + 'info/meetingdocs/gb/index.htm','SectionLabel_en==Governing Body documents','SectionLabel_es==Documentos del Consejo de Administraci\xf3n','SectionLabel_fr==Documents du Conseil d\u2019administration','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_4=g_navNode_5.addNode('3165','Videos',ssUrlPrefix + 'info/video/index.htm','SectionLabel_en==Videos and presentations','SectionLabel_es==V\xeddeos','SectionLabel_fr==Vid\xe9os','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_5_5=g_navNode_5.addNode('3171','Links',ssUrlPrefix + 'info/links/index.htm','SectionLabel_en==Links','SectionLabel_es==Enlaces \xfatiles','SectionLabel_fr==Liens utiles','secondaryUrlVariableField==pl_replaceable_content');
g_navNode_6=g_navNode_Root.addNode('3170','CIS',ssUrlPrefix + 'cis/index.htm','SectionLabel_en==International Occupational Safety and Health Information Centre \x28CIS\x29','secondaryUrlVariableField==pl_replaceable_content');

