// JavaScript Document

// Generates the Navigation Menu for the General Homepage/Public pages
function createNavigationMenu(isMember, location)
{

	if(location == "mainView") // for NON-homepage PUBLIC pages
	{
		var myMenu =
		[
			['', 'ARE Homepage', '/index.php', '_self', 'The most comprehensive, interactive running website in the Capital Region.'],  
			['', 'ARE Online Store', '/apparel/index.php', '_self', 'Get yourself some of the best clothing around!'],  
			['', 'Club News', '/homeView.php?view=/clubnews&s=n', '_self', 'Read about all the trips and races the ARE has been to.'],  			
			['', 'Members', '/members.php', '_self', 'This link is only active for ARE members'],   // a folder item				
			['', 'Pictures', '/homeView.php?view=/pictures&s=n', '_self', 'Check out over 10,000 pictures from events the ARE has been to.'],  			
			['', 'Race Results', '/homeView.php?view=/results/index&s=n', '_self', 'Race results..'],  
			['', 'Race Reviews', '/homeView.php?view=/races/race_listing', '_self', 'Race reviews submitted by ARE Members.'],  // a menu 			
			['', 'Race Schedule', '/homeView.php?view=/schedule', '_self', 'Complete area race schedule.'],  					
			['', 'Running Routes', '/homeView.php?view=/trails&h=570', '_self', 'Find a place to run.'],  			
		]; // end the NAVIGATION SYSTEM	
	}
	else if(isMember)
	{
		var myMenu =
		[
			['', 'ARE Homepage', '/index.php', '_self', 'The most comprehensive, interactive running website in the Capital Region.'],  
			['', 'ARE Event Productions', 'http://www.areep.com', '_self', 'The event management arm of the ARE.'],  
			['', 'ARE Online Store', '/apparel/index.php', '_self', 'Get yourself some of the best clothing around!'],  
			['', 'Club News', '/homeView.php?view=/clubnews&s=n', '_self', 'Read about all the trips and races the ARE has been to.'],  			
			['', 'Grand Prix Trail Series', '/homeView.php?view=/grandPrix/index', '_self', 'Coverage of the ARE Grand Prix Trail Series'],  							
			['', 'Members', '/members.php', '_self', 'This link is only active for ARE members'],   // a folder item				
			['', 'Message Board <img src=\'/images/new.gif\'>', '/homeView.php?view=/mboard/index_main&h=876&s=y', '_self', 'The ARE Message Board'],   // a folder item				
			['', 'Pictures', '/homeView.php?view=/pictures&s=n', '_self', 'Check out over 10,000 pictures from events the ARE has been to.'],  			
			['', 'Race Results', '/homeView.php?view=/results/index&s=n', '_self', 'Race results..'],  
			['', 'Race Reviews', '/homeView.php?view=/races/race_listing', '_self', 'Race reviews submitted by ARE Members.'],  // a menu 			
			['', 'Race Schedule', '/homeView.php?view=/schedule', '_self', 'Complete area race schedule.'],  					
			['', 'Road and Trail Talk', '/homeView.php?view=/RATT/index&h=570', '_self', 'Road and Trail Talk Magazine - the hippest mag out there!'],  			
			['', 'Running Routes', '/homeView.php?view=/trails&h=570', '_self', 'Find a place to run.'],  			
			['', 'Links', '/links.php', '_self', 'Check out our links.'],  			
		]; // end the NAVIGATION SYSTEM
	}
	else
	{
		var myMenu =
		[
			['', 'ARE Homepage', '/index.php', '_self', 'The most comprehensive, interactive running website in the Capital Region.'],  
			['', 'ARE Event Productions', 'http://www.areep.com', '_self', 'The event management arm of the ARE.'],  
			['', 'ARE Online Store', '/apparel/index.php', '_self', 'Get yourself some of the best clothing around!'],  
			['', 'Club News', '/homeView.php?view=/clubnews&s=n', '_self', 'Read about all the trips and races the ARE has been to.'],  			
			['', 'Grand Prix Trail Series', '/homeView.php?view=/grandPrix/index', '_self', 'Coverage of the ARE Grand Prix Trail Series'],  							
			['', 'Members [LOGIN FIRST]', '', '', 'This link is only active for ARE members',], // a folder item				
			['', 'Message Board <img src=\'/images/new.gif\'>', '/homeView.php?view=/mboard/index_main&h=876&s=y', '_self', 'The ARE Message Board'],   // a folder item				
			['', 'Pictures', '/homeView.php?view=/pictures&s=n', '_self', 'Check out over 10,000 pictures from events the ARE has been to.'],  			
			['', 'Race Results', '/homeView.php?view=/results/index&s=n', '_self', 'Race results..'],  
			['', 'Race Reviews', '/homeView.php?view=/races/race_listing', '_self', 'Race reviews submitted by ARE Members.'],  // a menu 			
			['', 'Race Schedule', '/homeView.php?view=/schedule', '_self', 'Complete area race schedule.'],  					
			['', 'Road and Trail Talk', '/homeView.php?view=/RATT/index&h=570', '_self', 'Road and Trail Talk Magazine - the hippest mag out there!'],  			
			['', 'Running Routes', '/homeView.php?view=/trails&h=570', '_self', 'Find a place to run.'],  			
			['', 'Links', '/links.php', '_self', 'Check out our links.'],  			
		]; // end the NAVIGATION SYSTEM
	}	
	
	return myMenu;
	
	
	// MEMBER SUB-NAVIGATION	
		/*
		['', 'Members', '/members.php', '_self', 'This link is only active for ARE members',   // a folder item
				['', 'My Profile', '', '_self', 'Race results dating back to 2002.',  
						['', 'User Information', '/membersOnly/viewprof.php', '_self', 'Race results dating back to 2002.'],  
						['', 'Running Log', '/membersOnly/run_log/index.php', '_self', 'Read about what other Capital area runners think about local races.'],  		
						['', 'My Member Profile', '/membersOnly/profiles/make_profile.php', '_self', 'Complete area race schedule.'],  		
				], // end the MY PROFILE sub menu
				['', 'Members Info', '', '_self', 'Race results dating back to 2002.',  
						['', 'Member Contact Information', '/membersOnly/memListings/mem_contact_info.php', '_self', 'Race results dating back to 2002.'],  
						['', 'Find Someone to Run With', '/membersOnly/memListings/availability.php', '_self', 'Read about what other Capital area runners think about local races.'],  		
						['', 'Member Profiles', '/membersOnly/profiles/index.php', '_self', 'Complete area race schedule.'],  		
				], // end the MEMBERS INFO sub menu
				['', 'Group Runs', '/members.php?frame=/membersOnly/group_runs/view_group_runs1b.php', '_self', 'Read about what other Capital area runners think about local races.'],  		
				['', 'Racing', '/results/index.php', '_self', 'Race results dating back to 2002.',  
						['', 'Race Listing', '/membersOnly/races/index.php', '_self', 'Race results dating back to 2002.'],  
						['', 'Race Reviews', '/races/race_listing.php', '_self', 'Read about what other Capital area runners think about local races.'],  		
						['', 'Race and Trip Page', '/membersOnly/events/raceTripPage.php', '_self', 'Complete area race schedule.'],  		
				], // end the RACING sub menu								
			], // end the members sub menu
		*/


}//================================================================
