

/////////////////////////////////////////////////////////////////////////////
// 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('703','Home',ssUrlPrefix + 'index.htm',null,'SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD6_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_0=g_navNode_Root.addNode('3','About',ssUrlPrefix + 'About/index.htm');
g_navNode_0_0=g_navNode_0.addNode('759','Biography',ssUrlPrefix + 'About/BIOGRAPHY/index.htm','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD6_Contributor\"');
g_navNode_0_1=g_navNode_0.addNode('8','Sixth District',ssUrlPrefix + 'About/SixthDistrict/index.htm');
g_navNode_0_2=g_navNode_0.addNode('11','Committees',ssUrlPrefix + 'About/Committees/index.htm');
g_navNode_1=g_navNode_Root.addNode('15','Issues',ssUrlPrefix + 'Issues/index.htm');
g_navNode_1_0=g_navNode_1.addNode('63','Gang Prevention',ssUrlPrefix + 'Issues/GangPrevention/index.htm');
g_navNode_1_1=g_navNode_1.addNode('92','Animal Welfare',ssUrlPrefix + 'Issues/AnimalWelfare/index.htm');
g_navNode_1_2=g_navNode_1.addNode('187','Community Beautification',ssUrlPrefix + 'Issues/CommunityBeautification/index.htm');
g_navNode_1_3=g_navNode_1.addNode('195','Environment',ssUrlPrefix + 'Issues/Environment/index.htm');
g_navNode_1_4=g_navNode_1.addNode('196','Economic Development',ssUrlPrefix + 'Issues/EconomicDevelopment/index.htm');
g_navNode_1_5=g_navNode_1.addNode('258','Technology',ssUrlPrefix + 'Issues/Technology/index.htm');
g_navNode_1_6=g_navNode_1.addNode('260','Public Safety',ssUrlPrefix + 'Issues/PublicSafety/index.htm');
g_navNode_2=g_navNode_Root.addNode('739','District Info',ssUrlPrefix + 'districtinfo/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD6_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_2_0=g_navNode_2.addNode('747',' Maps',ssUrlPrefix + 'districtinfo/newsletter/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD6_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_2_1=g_navNode_2.addNode('748','Schools \x26 Parent Center',ssUrlPrefix + 'districtinfo/beautification/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD6_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_2_2=g_navNode_2.addNode('749','Libraries',ssUrlPrefix + 'districtinfo/motions/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD6_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_2_3=g_navNode_2.addNode('750','Non Profit Organizations',ssUrlPrefix + 'districtinfo/districtaccomplishments/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD6_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_2_4=g_navNode_2.addNode('763','Neighborhood Organizations',ssUrlPrefix + 'districtinfo/NEIHGBPORHOODCOUNCILS/index.htm');
g_navNode_2_5=g_navNode_2.addNode('764','Public Safety',ssUrlPrefix + 'districtinfo/L.A.P.D/index.htm');
g_navNode_3=g_navNode_Root.addNode('17','Press',ssUrlPrefix + 'Press/index.htm');
g_navNode_3_0=g_navNode_3.addNode('760','Press Releases',ssUrlPrefix + 'Press/PRESSRELEASES/index.htm','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD6_Contributor\"','checkinMetadataFields==xDocCategory');
g_navNode_3_1=g_navNode_3.addNode('762','Newsletters',ssUrlPrefix + 'Press/NEWSLETTER/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD6_Contributor\"');
g_navNode_4=g_navNode_Root.addNode('738','Multimedia',ssUrlPrefix + 'multimedia/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD6_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_0=g_navNode_4.addNode('745','Videos',ssUrlPrefix + 'multimedia/featuredvideos/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD6_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_1=g_navNode_4.addNode('761','Photo Gallery',ssUrlPrefix + 'multimedia/PHOTOGALLERY/index.htm');
g_navNode_5=g_navNode_Root.addNode('740','Calendar',ssUrlPrefix + 'calendar/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD6_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_6=g_navNode_Root.addNode('741','Contact Us',ssUrlPrefix + 'contactus/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD6_Contributor\"','checkinMetadataFields==xIssueDate');
