// build the heiarchy
//initialize dynamic area of



		var aSubmenuData = [
					
					{
						id: "schedules",
						itemdata: [
							{	
								text: "Bus", url: staticServer + "Bus_schedules.shtml",
								submenu: {
									id: "busSched",
									itemdata: [
									{ text: "Local/Limited", url: appServer + "schedules/getRouteList.action?routeType=1" ,
									  submenu: routeType1 },										
									{ text: "Express", url: appServer + "schedules/getRouteList.action?routeType=3" ,
									  submenu: routeType3 },										
									{ text: "Regional", url: appServer + "schedules/getRouteList.action?routeType=5" ,
									  submenu: routeType5 },										
									{ text: "SkyRide", url: appServer + "schedules/getRouteList.action?routeType=9" ,
									  submenu: routeType9 },										
									{ text: "FREE MallRide&nbsp;&nbsp;&nbsp;", url: staticServer + "FreeMallRideSchedules.shtml" },
									]
								}
							},
							{
								text: "Light Rail", url: appServer + "schedules/getRouteList.action?routeType=2",
								submenu: routeType2
							},
							/*{ 
								text: "Rider Alerts", url: appServer + "schedules/alertDetour/getActiveAlertDetour.action",
								submenu: {
									id: "alertDetourSub",
									itemdata: [
									{ 
										text: "Bus&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", url: "#",
										submenu: {
											id: "alertDetourBusSub",
											itemdata: [
											{ text: "Local/Limited", url: "#", 
											  submenu: alertRouteTypeLocal },
											{ text: "Express", url: "#" ,
											  submenu: alertRouteTypeExpress },										
											{ text: "Regional", url: "#" ,
											  submenu: alertRouteTypeRegional },										
											{ text: "SkyRide", url: "#" ,
											  submenu: alertRouteTypeSkyRide },										
											{ text: "FREE MallRide&nbsp;&nbsp;&nbsp;", url: staticServer + "FreeMallRideSchedules.shtml" },											
											]
										}
									},
									{ text: "Light Rail", url: "#", 
									  submenu: alertRouteTypeLightRail },
									]
								}
							},*/
								{ text: "Rider Alerts", url: appServer + "schedules/alertDetour/getActiveAlertDetour.action" },
								{ text: "Service Changes", url: staticServer + "ServiceChanges.shtml" },
								{ text: "Developer Resources", url: staticServer + "Developer.shtml" },

							]
					},

					{
						id: "systemInfo",
						itemdata: [
							{ text: "System Map", url: appServer + "elbert/SystemMap" },
							{ text: "Transit Centers", url: staticServer + "TransitCenters.shtml" },
							{ text: "Accessibility", url: staticServer + "Accessibility.shtml" },
							{ text: "Bus", url: staticServer + "Bus_subHome.shtml" },
							{ text: "Light Rail", url: staticServer + "lightRail_subHome.shtml" },
							{ text: "SkyRide", url: staticServer + "skyRide_SubHome.shtml" },
							{ text: "Access-a-Ride", url: staticServer + "accessARide.shtml" },
							{ text: "Call-n-Ride", url: staticServer + "callNRide.shtml" },
							{ text: "SeniorRide", url: staticServer + "seniorRide.shtml" },
							{ text: "FREE MallRide", url: staticServer + "FREEMallRide.shtml" },
							{ text: "Park-n-Ride", url: appServer + "elbert/PNRMap/index.cfm" },
							{ text: "Seasonal Service&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", url: staticServer + "SeasonalService.shtml" },
							{ text: "Non-RTD Transit Services", url: staticServer + "NonRTD-Transit.shtml" },
							]
					},
					
                    {
                        id: "riderTools", 
                        itemdata: [ 
							{ text: "How to Ride", url: staticServer + "HowToRide.shtml",
							submenu: {
								id: "howtoride",
								itemdata: [
								{ text: "Bus", url: staticServer + "HowToRideBus.shtml" },
								{ text: "Light Rail", url: staticServer + "HowToRideLR.shtml" },
								{ text: "How to Transfer", url: staticServer + "HowToTransfer.shtml" },
								]
								}
							},
							{ text: "Parking", url: staticServer + "HowToPark.shtml" },
							{ text: "New Riders and Visitors", url: staticServer + "NewRiders.shtml" },
							{ text: "Mobile Tools", url: staticServer + "MobileTools.shtml" },
							{ text: "Bike-n-Ride", url: staticServer + "Bike_n_Ride.shtml" },
							{ text: "Lost &amp; Found", url: staticServer + "LostandFound.shtml" },
							{ text: "Kiosk Locations", url: staticServer + "kioskLocations.shtml" },
							{ text: "Safety &amp; Security", url: staticServer + "SafetySecurity.shtml" },
                        ]
                    },

                    {
                        id: "faresPasses", 
                        itemdata: [
							{ text: "Fares", url: staticServer + "Fares.shtml" },
							{ text: "Passes and Ticket Books", url: staticServer +  "Passes_Ticketbooks.shtml" },
							{ text: "Corporate and Community Pass Programs", url: staticServer + "Corporate_CommunityPasses.shtml" },
							{ text: "Purchase Online", url: "http://store.rtdpasses.com/", target: "_blank" },
                        ]    
                    },
                    
                    {
                        id: "businesscenter", 
                        itemdata: [
							{ text: "Doing Business with RTD", url: staticServer + "Biz_DoingBiz.shtml" },
							{ text: "Current Solicitations", url: appServer + "elbert/CurrentSolicitations/index.cfm" },
							{ text: "DBE/SBE Information", url: staticServer + "Biz_DBESBE.shtml" },
							{ text: "WIN", url: staticServer + "WIN.shtml" },
							{ text: "Bus & Light Rail Advertising", url: staticServer + "BusLtRailAd.shtml" },
							{ text: "Forms", url: staticServer + "Biz_Forms.shtml" },
                        ] 
                    },

                    {
                        id: "insideRTD",
                        itemdata: [
							{ text: "Board of Directors", url: staticServer + "BoardDirectors.shtml" },
							{ text: "General Manager", url: staticServer + "GeneralManager.shtml" },
							{ text: "Operator of the Month", url: staticServer + "MonthlyOperator.shtml" },
							{ 
								text: "Customer Support",
								submenu: {
									id: "contactus",
									itemdata: [
									{ text: "Customer Comment Form", url: staticServer +"CustomerComments.shtml" },
									//{ text: "Customer Comment Form", url: appServer + "elbert/ContactUs/generalContact/contactForm.cfm" },
									{ text: "Contact Numbers", url: staticServer + "ContactUs.shtml" },
									]
								}
							},
							{ text: "Careers", url: staticServer + "careers.shtml",
								submenu: {
										id: "careers",
										itemdata: [
										// This is alert message for Online Job Site when iRecruitement is down
										//{ text: "Online Job Site", url: "#", onclick: { fn: alertIRecruitment } },
										{ text: "Online Job Site", url: "https://careers.rtd-denver.com/", target: "_blank" },
										{ text: "Benefits of Working at RTD", url: staticServer + "Careers_Benefits.shtml" },
										]
								}
							},
							{ text: "Reports and Policies", url: staticServer + "Reports.shtml" },
							{ text: "RTD FasTracks", url: "http://www.rtd-fastracks.com/", target: "_blank" },
							{ 
								text: "RTD News", url: appServer + "elbert/news/archive/archiveIndex.cfm",
								submenu: {
									id: "rtdnews",
									itemdata: [
									{ text: "Media Center", url: staticServer + "MediaCenter.shtml" },
									{ text: "Read-n-Ride", url: staticServer + "ReadNRideNews.shtml" },
									]
								}
							},
						]
                    }                    
                ];


// This is alert message for Online Job Site when iRecruitement is down
function alertIRecruitment()
{
	alert("The online job site will be unavailable due to routine maintenance from 6am Saturday, October 30th until Sunday morning.\n"
	+"We are sorry for the inconvenience. Please call the RTD Job Line at 303-299-2309 to get information about current job postings.");
	return false;
}

