

/////////////////////////////////////////////////////////////////////////////
// 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('2','Home',ssUrlPrefix + 'index.htm',null,'SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','externalSourceFile==http\x3a//www.lacity.org/mayor/mayorvideo.xml','internalSourceFile==LACITY_MAYORS_004064','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_0=g_navNode_Root.addNode('4','Mayor\'s Office',ssUrlPrefix + 'mayorsoffice/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_0_0=g_navNode_0.addNode('9','Welcome',ssUrlPrefix + 'mayorsoffice/Welcome/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_0_1=g_navNode_0.addNode('10','Biography',ssUrlPrefix + 'mayorsoffice/Biography/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_0_2=g_navNode_0.addNode('99','Executive Directives',ssUrlPrefix + 'mayorsoffice/ExecutiveDirectives/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_0_5=g_navNode_0.addNode('124','Jobs',ssUrlPrefix + 'mayorsoffice/Jobs/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_0_6=g_navNode_0.addNode('14','Internships',ssUrlPrefix + 'mayorsoffice/Internship/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_0_7=g_navNode_0.addNode('16','Write the Mayor',ssUrlPrefix + 'mayorsoffice/WritetheMayor/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_0_10=g_navNode_0.addNode('867','New Media Internship',ssUrlPrefix + 'mayorsoffice/MediaInternshipProgram/index.htm','maxAge==300');
g_navNode_1=g_navNode_Root.addNode('5','Villaraigosa Plan',ssUrlPrefix + 'villaraigosaplan/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_0=g_navNode_1.addNode('18','Public Safety \x26 Homeland Security',ssUrlPrefix + 'villaraigosaplan/PublicSafety/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_0_0=g_navNode_1_0.addNode('19','1,000 New Cops',ssUrlPrefix + 'villaraigosaplan/PublicSafety/1000NewCops/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_0_1=g_navNode_1_0.addNode('20','Gang Reduction Strategy',ssUrlPrefix + 'villaraigosaplan/PublicSafety/GangReductionStrategy/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_0_2=g_navNode_1_0.addNode('21','Protecting Against Disaster',ssUrlPrefix + 'villaraigosaplan/PublicSafety/ProtectingAgainstDisaster/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_1=g_navNode_1.addNode('28','Traffic \x26 Transportation',ssUrlPrefix + 'villaraigosaplan/Transportation/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_1_0=g_navNode_1_1.addNode('30','Investing in Transit',ssUrlPrefix + 'villaraigosaplan/Transportation/InvestinginTransit/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_1_1=g_navNode_1_1.addNode('29','Efficient and Safe Roads',ssUrlPrefix + 'villaraigosaplan/Transportation/SafeRoads/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12','showAnchorContent==TRUE');
g_navNode_1_1_2=g_navNode_1_1.addNode('31','Safe, Regional and Modern Airports',ssUrlPrefix + 'villaraigosaplan/Transportation/RegionalAndModernAirports/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_2=g_navNode_1.addNode('22','Education, Youth \x26 Families',ssUrlPrefix + 'villaraigosaplan/EducationYouthFamilies/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_2_0=g_navNode_1_2.addNode('23','Partnership for LA Schools',ssUrlPrefix + 'villaraigosaplan/EducationYouthFamilies/PartnershipforLA/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_2_1=g_navNode_1_2.addNode('24','Schoolhouse Framework',ssUrlPrefix + 'villaraigosaplan/EducationYouthFamilies/SchoolhouseFramework/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_3=g_navNode_1.addNode('32','Energy \x26 Environment',ssUrlPrefix + 'villaraigosaplan/EnergyandEnvironment/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_3_0=g_navNode_1_3.addNode('35','Combating Climate Change',ssUrlPrefix + 'villaraigosaplan/EnergyandEnvironment/ClimateChange/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_3_1=g_navNode_1_3.addNode('38','Growing and Greening the Port',ssUrlPrefix + 'villaraigosaplan/EnergyandEnvironment/GrowingAndGreeningthePort/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_3_2=g_navNode_1_3.addNode('34','Greenest and Cleanest Big City',ssUrlPrefix + 'villaraigosaplan/EnergyandEnvironment/GreenestAndCleanestBigCity/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12','showAnchorContent==TRUE');
g_navNode_1_3_3=g_navNode_1_3.addNode('128','Green Building',ssUrlPrefix + 'villaraigosaplan/EnergyandEnvironment/GreenBuilding/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','contributorOnly==FALSE','secondaryUrlVariableField==region12','showDocList==TRUE','showGenList==TRUE');
g_navNode_1_4=g_navNode_1.addNode('42','Economic Development',ssUrlPrefix + 'villaraigosaplan/EconomicDevelopment/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_4_0=g_navNode_1_4.addNode('43','Major Development Projects',ssUrlPrefix + 'villaraigosaplan/EconomicDevelopment/MajorDevelopmentProjects/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_4_1=g_navNode_1_4.addNode('44','Good Paying Jobs',ssUrlPrefix + 'villaraigosaplan/EconomicDevelopment/CreatingGoodPayingJobs/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_4_2=g_navNode_1_4.addNode('45','Growing a Global Capital',ssUrlPrefix + 'villaraigosaplan/EconomicDevelopment/GrowingAGlobalCapital/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_5=g_navNode_1.addNode('39','Fiscal Responsibility \x26 Management',ssUrlPrefix + 'villaraigosaplan/FiscalResponsibilityManagement/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_5_0=g_navNode_1_5.addNode('40','Sound Budgeting',ssUrlPrefix + 'villaraigosaplan/FiscalResponsibilityManagement/SoundBudgeting/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_5_1=g_navNode_1_5.addNode('41','Strong Management',ssUrlPrefix + 'villaraigosaplan/FiscalResponsibilityManagement/StrongManagement/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','displaySideList==TRUE','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_1_6=g_navNode_1.addNode('869','Housing that Works',ssUrlPrefix + 'villaraigosaplan/HousingthatWorks/index.htm','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_2=g_navNode_Root.addNode('6','Press Room',ssUrlPrefix + 'pressroom/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300');
g_navNode_2_1=g_navNode_2.addNode('55','Press Releases',ssUrlPrefix + 'pressroom/PressReleases/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_2_2=g_navNode_2.addNode('53','Speeches',ssUrlPrefix + 'pressroom/Speeches/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_2_4=g_navNode_2.addNode('57','Multimedia Archives',ssUrlPrefix + 'pressroom/MultimediaArchives/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','externalSourceFile==http\x3a//www.lacity.org/mayor/mayorvideolarge.xml','internalSourceFile==LACITY_004359','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_3=g_navNode_Root.addNode('7','Multimedia',ssUrlPrefix + 'multimedia/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','externalSourceFile==http\x3a//www.lacity.org/mayor/mayorvideolarge.xml','internalSourceFile==LACITY_004359','maxAge==300');
g_navNode_3_0=g_navNode_3.addNode('58','Video',ssUrlPrefix + 'multimedia/Video/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','externalSourceFile==http\x3a//www.lacity.org/mayor/mayorvideolarge.xml','internalSourceFile==LACITY_004359','maxAge==300');
g_navNode_3_1=g_navNode_3.addNode('60','Audio',ssUrlPrefix + 'multimedia/Audio/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','externalSourceFile==http\x3a//www.lacity.org/mayor/mayoraudio.xml','internalSourceFile==LACITY_MAYORS_004068','maxAge==300');
g_navNode_3_3=g_navNode_3.addNode('61','Photos',ssUrlPrefix + 'multimedia/Photos/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','externalSourceFile==http\x3a//photogallery.lacity.org/mayor.htm','maxAge==300','secondaryUrlVariableField==region12','showIFrame==TRUE');
g_navNode_3_4=g_navNode_3.addNode('62','Press Archives',ssUrlPrefix + 'multimedia/PressArchives/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_4=g_navNode_Root.addNode('77','Community',ssUrlPrefix + 'community/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region12');
g_navNode_4_0=g_navNode_4.addNode('85','How Do I ...',ssUrlPrefix + 'community/HowDoI/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','showAnchorContent==TRUE');
g_navNode_4_1=g_navNode_4.addNode('86','OurLA Newsletter',ssUrlPrefix + 'community/OurLANewsletter/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300');
g_navNode_4_3=g_navNode_4.addNode('94','Serve LA',ssUrlPrefix + 'community/Volunteer/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"MYR_CH_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region12','showMyNeighborhood==TRUE');

