

/////////////////////////////////////////////////////////////////////////////
// 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('1059','Home',ssUrlPrefix + 'index.htm',null,'SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_0=g_navNode_Root.addNode('1067','YOUR TEAM',ssUrlPrefix + 'YOUR_TEAM/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_0_0=g_navNode_0.addNode('1060','Paul Koretz',ssUrlPrefix + 'YOUR_TEAM/Paul_Koretz/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_0_1=g_navNode_0.addNode('1061','CD 5 Staff',ssUrlPrefix + 'YOUR_TEAM/CD5_Staff/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_0_2=g_navNode_0.addNode('1063','Committees',ssUrlPrefix + 'YOUR_TEAM/Committees/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_1=g_navNode_Root.addNode('1068','MAY WE HELP YOU?',ssUrlPrefix + 'MAY_WE_HELP_YOU/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_1_0=g_navNode_1.addNode('1062','Appointments With Paul',ssUrlPrefix + 'MAY_WE_HELP_YOU/Appointments_With_Paul/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_1_1=g_navNode_1.addNode('1064','Do You Need Service',ssUrlPrefix + 'MAY_WE_HELP_YOU/Do_You_Need_Service/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_1_2=g_navNode_1.addNode('1065','311 Info',ssUrlPrefix + 'MAY_WE_HELP_YOU/311_Info/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_2=g_navNode_Root.addNode('1069','CONTACT US',ssUrlPrefix + 'CONTACT_US/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_2_0=g_navNode_2.addNode('1066','Newsletter Sign-up',ssUrlPrefix + 'CONTACT_US/Newsletter_Sign_up/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_2_1=g_navNode_2.addNode('1070','CD 5 Offices',ssUrlPrefix + 'CONTACT_US/CD5_Offices/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_3=g_navNode_Root.addNode('1071','ABOUT COUNCIL DISTRICT 5',ssUrlPrefix + 'ABOUT_COUNCIL_DISTRICT_5/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_3_0=g_navNode_3.addNode('1072','Facts and Figures',ssUrlPrefix + 'ABOUT_COUNCIL_DISTRICT_5/Facts_and_Figures/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_3_1=g_navNode_3.addNode('1074','Communities of CD 5',ssUrlPrefix + 'ABOUT_COUNCIL_DISTRICT_5/Communities_of_CD5/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_3_2=g_navNode_3.addNode('1075','CD 5 Neighborhood Councils',ssUrlPrefix + 'ABOUT_COUNCIL_DISTRICT_5/CD5_Neighborhood_Councils/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4=g_navNode_Root.addNode('1076','MORE INFORMATION AND LINKS',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_0=g_navNode_4.addNode('1077','Sign up for E-Policing',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Sign_up_for_EPolicing/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_1=g_navNode_4.addNode('1078','Bicycling Services',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Bicycling_Services/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_2=g_navNode_4.addNode('1079','Links to Neighborhood Councils',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Links_to_Neighborhood_Councils/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_3=g_navNode_4.addNode('1080','Links to Community-Based and Non-Profit Organizations',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Links_to_Community_Based_and_Non_Profit_Organizations/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_4=g_navNode_4.addNode('1081','Schools',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Schools/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_5=g_navNode_4.addNode('1082','Libraries',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Libraries/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_6=g_navNode_4.addNode('1083','Police Stations',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Police_Stations/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_7=g_navNode_4.addNode('1084','Fire Stations',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Fire_Stations/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_8=g_navNode_4.addNode('1085','Hospitals',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Hospitals/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_9=g_navNode_4.addNode('1086','Parks',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Parks/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_10=g_navNode_4.addNode('1087','Religious Institutions',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Religious_Institutions/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_11=g_navNode_4.addNode('1088','Cultural Endeavors',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Cultural_Endeavors/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_12=g_navNode_4.addNode('1089','Transportation',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Transportation/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_13=g_navNode_4.addNode('1090','Community Highlights',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Community_Highlights/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_14=g_navNode_4.addNode('1091','Community Announcements',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Community_Announcements/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_4_15=g_navNode_4.addNode('1092','Community Calendar',ssUrlPrefix + 'MORE_INFORMATION_AND_LINKS/Community_Calendar/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_5=g_navNode_Root.addNode('1093','NEWS ON THE TUBE',ssUrlPrefix + 'NEWS_ON_THE_TUBE/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_6=g_navNode_Root.addNode('1094','NEWS',ssUrlPrefix + 'Blog/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate','secondaryUrlVariableField==region5');
g_navNode_7=g_navNode_Root.addNode('1095','FUN STUFF',ssUrlPrefix + 'FUN_STUFF/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_7_0=g_navNode_7.addNode('1096','CD 5 Recipes',ssUrlPrefix + 'FUN_STUFF/CD5_Recipes/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_7_1=g_navNode_7.addNode('1097','Where\u2019s Paul?',ssUrlPrefix + 'FUN_STUFF/Wheres_Paul/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_7_2=g_navNode_7.addNode('1098','Kid Quizzes',ssUrlPrefix + 'FUN_STUFF/Kid_Quizzes/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_7_3=g_navNode_7.addNode('1099','Then and Now',ssUrlPrefix + 'FUN_STUFF/Then_and_Now/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_8=g_navNode_Root.addNode('1100','HOW TO\x21',ssUrlPrefix + 'HOW_TO/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_8_0=g_navNode_8.addNode('1101','Video and Print Tutorials',ssUrlPrefix + 'HOW_TO/Video_and_Print_Tutorials/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_8_1=g_navNode_8.addNode('1102','Green Tips',ssUrlPrefix + 'HOW_TO/Green_Tips/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_9=g_navNode_Root.addNode('1103','ISSUES',ssUrlPrefix + 'ISSUES/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_10=g_navNode_Root.addNode('1104','ARCHIVES',ssUrlPrefix + 'ARCHIVES/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_10_0=g_navNode_10.addNode('1105','Newsletters',ssUrlPrefix + 'ARCHIVES/Newsletters/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_10_1=g_navNode_10.addNode('1106','Motions',ssUrlPrefix + 'ARCHIVES/Motions/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_10_2=g_navNode_10.addNode('1107','Press Releases',ssUrlPrefix + 'ARCHIVES/Press_Releases/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_10_3=g_navNode_10.addNode('1108','Editorials and Op Eds',ssUrlPrefix + 'ARCHIVES/Editorials_and_Op_Eds/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_10_4=g_navNode_10.addNode('1109','Articles',ssUrlPrefix + 'ARCHIVES/Articles/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
g_navNode_10_5=g_navNode_10.addNode('1110','Speeches',ssUrlPrefix + 'ARCHIVES/Speeches/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"ElectedOfficials\",_docAccount\x3d\"CD5_Contributor\"','checkinMetadataFields==xIssueDate');
