/////////////////////////////////////////////////////////////////////////////
// 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('1295','Home',ssUrlPrefix + 'index.htm',null,'SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_0=g_navNode_Root.addNode('1296','YOUR TEAM',ssUrlPrefix + 'YOUR_TEAM/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_0_0=g_navNode_0.addNode('1301','BIO',ssUrlPrefix + 'YOUR_TEAM/BIO/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_0_1=g_navNode_0.addNode('1408','Biograf\xeda',ssUrlPrefix + 'YOUR_TEAM/Biografia/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_0_2=g_navNode_0.addNode('1307','Community Links',ssUrlPrefix + 'YOUR_TEAM/Community_Links/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_0_3=g_navNode_0.addNode('1304','District Profile',ssUrlPrefix + 'YOUR_TEAM/District_Profile/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_0_4=g_navNode_0.addNode('1303','Contact Us',ssUrlPrefix + 'YOUR_TEAM/Contact_Us/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_1=g_navNode_Root.addNode('1297','MULTIMEDIA',ssUrlPrefix + 'MULTIMEDIA/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_1_0=g_navNode_1.addNode('1921','Facebook',ssUrlPrefix + 'MULTIMEDIA/Facebook/index.htm');
g_navNode_1_1=g_navNode_1.addNode('1922','Twitter',ssUrlPrefix + 'MULTIMEDIA/Twitter/index.htm');
g_navNode_1_2=g_navNode_1.addNode('1413','YouTube',ssUrlPrefix + 'MULTIMEDIA/YouTube/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_1_3=g_navNode_1.addNode('1412','Flickr Gallery',ssUrlPrefix + 'MULTIMEDIA/FlickrGallery/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_1_4=g_navNode_1.addNode('1923','Vimeo',ssUrlPrefix + 'MULTIMEDIA/Vimeo/index.htm');
g_navNode_2=g_navNode_Root.addNode('1299','YOUR LEGISLATION',ssUrlPrefix + 'YOUR_LEGISLATION/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_2_1=g_navNode_2.addNode('1312','Education \x26 Youth',ssUrlPrefix + 'YOUR_LEGISLATION/Education_Youth_Development/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_2_3=g_navNode_2.addNode('1314','Beautification',ssUrlPrefix + 'YOUR_LEGISLATION/Beautification/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_2_4=g_navNode_2.addNode('1315','Government',ssUrlPrefix + 'YOUR_LEGISLATION/Government/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_2_5=g_navNode_2.addNode('1316','Environment',ssUrlPrefix + 'YOUR_LEGISLATION/Environment/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_2_6=g_navNode_2.addNode('1317','Housing',ssUrlPrefix + 'YOUR_LEGISLATION/Housing/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_2_7=g_navNode_2.addNode('1318','Planning \x26 Econ. Devlp.',ssUrlPrefix + 'YOUR_LEGISLATION/Planning_Econ_Devlp/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_2_8=g_navNode_2.addNode('1319','Public Safety',ssUrlPrefix + 'YOUR_LEGISLATION/Public_Safety/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_3=g_navNode_Root.addNode('1300','YOUR NEWS',ssUrlPrefix + 'YOUR_NEWS/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_3_0=g_navNode_3.addNode('1321','Neighborhood Updates',ssUrlPrefix + 'YOUR_NEWS/Neighborhood_Updates/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate','secondaryUrlVariableField==region7');
g_navNode_3_2=g_navNode_3.addNode('1323','Press Releases',ssUrlPrefix + 'YOUR_NEWS/Press_Releases/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\",_xDocCategory\x3d\"Press Releases\"','checkinMetadataFields==xIssueDate,xDocCategory');
g_navNode_3_3=g_navNode_3.addNode('1440','Newsletter',ssUrlPrefix + 'YOUR_NEWS/Newsletter/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_3_4=g_navNode_3.addNode('1441','Annual Reports',ssUrlPrefix + 'YOUR_NEWS/AnnualReports/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_3_5=g_navNode_3.addNode('1325','Subscribe to News',ssUrlPrefix + 'YOUR_NEWS/Subscribe_to_News/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD14_Contributor\"','checkinMetadataFields==xIssueDate');

