

/////////////////////////////////////////////////////////////////////////////
// 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('146','Home',ssUrlPrefix + 'index.htm',null,'SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region2');
g_navNode_0=g_navNode_Root.addNode('147','About ITA',ssUrlPrefix + 'AboutITA/index.htm','SectionListBullet==FALSE','SectionQuery==dSecurityGroup \x3csubstring\x3e \x60ElectedOfficials\x60  \x3cAND\x3e  dDocAccount \x3ccontains\x3e \x60MYR\x2a\x60','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_0_0=g_navNode_0.addNode('150','Contact Information',ssUrlPrefix + 'AboutITA/ContactInformation/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_0_1=g_navNode_0.addNode('151','Mission Statement',ssUrlPrefix + 'AboutITA/MissionStatement/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_0_2=g_navNode_0.addNode('103','ITA Annual Report',ssUrlPrefix + 'AboutITA/ITAAnnualReport/index.htm','SectionShowNode==FALSE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_0_3=g_navNode_0.addNode('152','Governing Boards',ssUrlPrefix + 'AboutITA/GoverningBoards/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_0_4=g_navNode_0.addNode('153','Organization Overview',ssUrlPrefix + 'AboutITA/Overview/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_0_5=g_navNode_0.addNode('154','Technology Solutions',ssUrlPrefix + 'AboutITA/TechnologySolutions/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_0_6=g_navNode_0.addNode('155','Policy \x26 Public Services',ssUrlPrefix + 'AboutITA/PolicyPublicServices/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_0_7=g_navNode_0.addNode('156','Enterprise Services',ssUrlPrefix + 'AboutITA/EnterpriseServices/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_0_8=g_navNode_0.addNode('157','Public Safety Services',ssUrlPrefix + 'AboutITA/PublicSafetyServices/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_0_9=g_navNode_0.addNode('158','Business and Administrative Services',ssUrlPrefix + 'AboutITA/BusinessandAdministrativeServices/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1=g_navNode_Root.addNode('148','Residents',ssUrlPrefix + 'Residents/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_0=g_navNode_1.addNode('159','Video Services/Cable TV',ssUrlPrefix + 'Residents/VideoServicesCableTV/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_0_0=g_navNode_1_0.addNode('186','Video Services / Cable TV Home',ssUrlPrefix + 'Residents/VideoServicesCableTV/VideoServicesCableTVHome/index.htm','SectionShowNode==FALSE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_0_1=g_navNode_1_0.addNode('188','Information for Subscribers',ssUrlPrefix + 'Residents/VideoServicesCableTV/InformationforSubscribers/index.htm','SectionListBGHeader==TRUE','SectionListBullet==FALSE','SectionQuery==dDocType \x3csubstring\x3e \x60Contributor_Web_Content\x60  \x3cAND\x3e  dSecurityGroup \x3csubstring\x3e \x60Departments\x60  \x3cAND\x3e  dDocAccount \x3ccontains\x3e \x60ITA\x2a\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60ITA\x60  \x3cAND\x3e  xWebsiteSection \x3csubstring\x3e \x60ITA\x3a188\x60 ','SectionShowDocDate==TRUE','SectionShowListHeader==TRUE','SectionShowNode==TRUE','SectionSortField==xIssueDate','SectionSortOrder==DESC','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_0_2=g_navNode_1_0.addNode('993','Loss of Free Cable TV Services',ssUrlPrefix + 'Residents/VideoServicesCableTV/LossofFreeCableTVServices/index.htm');
g_navNode_1_0_3=g_navNode_1_0.addNode('190','P.E.G. Access',ssUrlPrefix + 'Residents/VideoServicesCableTV/P.E.G.Access/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_0_4=g_navNode_1_0.addNode('167','City Council Adopts Option One for PEG Access \x28Update\x29',ssUrlPrefix + 'Residents/VideoServicesCableTV/CityCounciltoConsiderFutureofPEGAccess/index.htm','maxAge==300');
g_navNode_1_0_5=g_navNode_1_0.addNode('189','Legislation',ssUrlPrefix + 'Residents/VideoServicesCableTV/Legislation/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_0_6=g_navNode_1_0.addNode('191','Private Line Franchise',ssUrlPrefix + 'Residents/VideoServicesCableTV/PrivateLineFranchise/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_0_7=g_navNode_1_0.addNode('192','Info for Video Services Providers',ssUrlPrefix + 'Residents/VideoServicesCableTV/InfoforVideoServicesProviders/index.htm','SectionListBGHeader==FALSE','SectionQuery==dDocType \x3csubstring\x3e \x60Contributor_Web_Content\x60  \x3cAND\x3e  dSecurityGroup \x3csubstring\x3e \x60Departments\x60  \x3cAND\x3e  dDocAccount \x3ccontains\x3e \x60ITA\x2a\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60ITA\x60  \x3cAND\x3e  xWebsiteSection \x3csubstring\x3e \x60ITA\x3a192\x60  \x3cAND\x3e  xDocCategory \x3csubstring\x3e \x60Miscellaneous\x60','SectionShowDocDate==TRUE','SectionShowListHeader==TRUE','SectionShowNode==TRUE','SectionSortField==xIssueDate','SectionSortOrder==DESC','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_0_8=g_navNode_1_0.addNode('193','Video Services Pricing',ssUrlPrefix + 'Residents/VideoServicesCableTV/VideoServicesPricing/index.htm','SectionQuery==dDocType \x3csubstring\x3e \x60Contributor_Web_Content\x60  \x3cAND\x3e  dSecurityGroup \x3csubstring\x3e \x60Departments\x60  \x3cAND\x3e  dDocAccount \x3ccontains\x3e \x60ITA\x2a\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60ITA\x60  \x3cAND\x3e  xWebsiteSection \x3csubstring\x3e \x60ITA\x3a193\x60  \x3cAND\x3e  xDocCategory \x3csubstring\x3e \x60Miscellaneous\x60','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_0_9=g_navNode_1_0.addNode('194','Reports',ssUrlPrefix + 'Residents/VideoServicesCableTV/Reports/index.htm','SectionListBGHeader==TRUE','SectionQuery==dDocType \x3csubstring\x3e \x60Contributor_Web_Content\x60  \x3cAND\x3e  dSecurityGroup \x3csubstring\x3e \x60Departments\x60  \x3cAND\x3e  dDocAccount \x3ccontains\x3e \x60ITA\x2a\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60ITA\x60  \x3cAND\x3e  xWebsiteSection \x3csubstring\x3e \x60ITA\x3a194\x60  \x3cAND\x3e  xDocCategory \x3csubstring\x3e \x60Report\x60','SectionShowDocDate==TRUE','SectionShowListHeader==TRUE','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','checkinMetadataFields==xIssueDate','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_1=g_navNode_1.addNode('160','LA CityView 35',ssUrlPrefix + 'Residents/LACityWiew35/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','maxAge==300','secondaryUrlVariableField==region1');
if (SSContributor)
{
g_navNode_1_1_0=g_navNode_1_1.addNode('180','Mission Statement',ssUrlPrefix + 'Residents/LACityWiew35/MissionStatement/index.htm','contributorOnly==TRUE','maxAge==300','secondaryUrlVariableField==region1');
}
if (SSContributor)
{
g_navNode_1_1_1=g_navNode_1_1.addNode('181','About Us',ssUrlPrefix + 'Residents/LACityWiew35/AboutUs/index.htm','contributorOnly==TRUE','maxAge==300','secondaryUrlVariableField==region1');
}
if (SSContributor)
{
g_navNode_1_1_2=g_navNode_1_1.addNode('182','LA CityView Webcasts',ssUrlPrefix + 'Residents/LACityWiew35/LACityViewWebcasts/index.htm','contributorOnly==TRUE','maxAge==300');
}
if (SSContributor)
{
g_navNode_1_1_3=g_navNode_1_1.addNode('183','Weekly Schedule',ssUrlPrefix + 'Residents/LACityWiew35/WeeklySchedule/index.htm','contributorOnly==TRUE','maxAge==300');
}
if (SSContributor)
{
g_navNode_1_1_4=g_navNode_1_1.addNode('184','Program Guide',ssUrlPrefix + 'Residents/LACityWiew35/ProgramGuide/index.htm','SectionListBullet==FALSE','SectionQuery==dDocType \x3csubstring\x3e \x60Contributor_Web_Content\x60  \x3cAND\x3e  dSecurityGroup \x3csubstring\x3e \x60Departments\x60  \x3cAND\x3e  dDocAccount \x3ccontains\x3e \x60ITA\x2a\x60  \x3cAND\x3e  xWebsites \x3ccontains\x3e \x60ITA\x60  \x3cAND\x3e  xWebsiteSection \x3csubstring\x3e \x60ITA\x3a184\x60  \x3cAND\x3e  xDocCategory \x3csubstring\x3e \x60Miscellaneous\x60','SectionShowDocDate==TRUE','SectionShowListHeader==FALSE','contributorOnly==TRUE','maxAge==300','secondaryUrlVariableField==region1');
}
if (SSContributor)
{
g_navNode_1_1_5=g_navNode_1_1.addNode('185','Council Phone',ssUrlPrefix + 'Residents/LACityWiew35/CouncilPhone/index.htm','contributorOnly==TRUE','maxAge==300','secondaryUrlVariableField==region1');
}
g_navNode_1_2=g_navNode_1.addNode('102','LA WiFi',ssUrlPrefix + 'Residents/LAWiFi/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','maxAge==300');
g_navNode_1_2_0=g_navNode_1_2.addNode('132','Home',ssUrlPrefix + 'Residents/LAWiFi/Home/index.htm','contributorOnly==FALSE','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_2_1=g_navNode_1_2.addNode('133','Updates, Notices, and News',ssUrlPrefix + 'Residents/LAWiFi/UpdatesNoticesandNews/index.htm','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_2_2=g_navNode_1_2.addNode('134','Project Timeline',ssUrlPrefix + 'Residents/LAWiFi/ProjectTimeline/index.htm','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_2_3=g_navNode_1_2.addNode('137','Community Outreach',ssUrlPrefix + 'Residents/LAWiFi/CommunityOutreach/index.htm','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_2_4=g_navNode_1_2.addNode('139','Frequently Asked Questions',ssUrlPrefix + 'Residents/LAWiFi/FrequentlyAskedQuestions/index.htm','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_2_5=g_navNode_1_2.addNode('140','Contact Us',ssUrlPrefix + 'Residents/LAWiFi/ContactUs/index.htm','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_2_6=g_navNode_1_2.addNode('141','Attend Upcoming Events',ssUrlPrefix + 'Residents/LAWiFi/AttendUpcomingEvents/index.htm','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_2_7=g_navNode_1_2.addNode('142','Subscribe to Updates, Notices, \x26 News',ssUrlPrefix + 'Residents/LAWiFi/SubscribetoUpdatesNoticesNews/index.htm','CustomIframeSSBorder==0','CustomIframeSSHeight==500','CustomIframeSSScrolling==auto','CustomIframeSSURL==http\x3a//parc3.lacity.org/ens/depts/ita/lawifisub.cfm','CustomIframeSSWidth==100\x25','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_2_8=g_navNode_1_2.addNode('143','Current City of Los Angeles Wi-Fi Locations',ssUrlPrefix + 'Residents/LAWiFi/CurrentCityofLosAngelesWi-FiLocations/index.htm','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_2_9=g_navNode_1_2.addNode('144','Council Wi-Fi Actions',ssUrlPrefix + 'Residents/LAWiFi/CouncilWi-FiActions/index.htm','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_2_10=g_navNode_1_2.addNode('145','Related Links',ssUrlPrefix + 'Residents/LAWiFi/RelatedLinks/index.htm','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_3=g_navNode_1.addNode('162','Council Phone',ssUrlPrefix + 'Residents/CouncilPhone/index.htm','SectionShowNode==TRUE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','maxAge==300','secondaryUrlVariableField==region1');
g_navNode_1_4=g_navNode_1.addNode('164','3-1-1 CityWide Services',ssUrlPrefix + 'Residents/311CitywideServices/index.htm','SectionShowNode==TRUE','maxAge==300');
g_navNode_2=g_navNode_Root.addNode('149','Business',ssUrlPrefix + 'Business/index.htm','maxAge==300');
g_navNode_2_0=g_navNode_2.addNode('166','Bids/RFPs',ssUrlPrefix + 'Business/BidsRFPs/index.htm');
if (SSContributor)
{
g_navNode_3=g_navNode_Root.addNode('208','Admin',ssUrlPrefix + 'admin/index.htm','SectionListBGHeader==TRUE','SectionListBullet==TRUE','SectionQuery==\x3cNOT\x3e \x28dFormat \x3cmatches\x3e \x60hcsp\x60\x29','SectionShowDocDate==TRUE','SectionShowMetadataFields==TRUE','SectionShowNode==FALSE','checkinDefaultValues==_dSecurityGroup\x3d\"Departments\",_docAccount\x3d\"ITA_Contributor\"','checkinMetadataFields==xIssueDate','contributorOnly==TRUE','secondaryUrlVariableField==region1');
}
