﻿// Ths script defines the menu_array to be operated on by menubar.js
// by defining a creates a series of object structures
// to define a meu structure.
// the basic structure takes the form of Top_Menu to Specific_Menu to Specific_Cell
// all objects take the form
//	Menu_Name = {
//					size:	number,		where number represents the number of menu cells to be displayed
//				listsize:	number,		where number represents the number of pages which list the menu name as a reference
//					name:	"string"	where "string" is the name of the object
//					cellxx: "string" 	where "string" represents what should be displayed in the cell when rendered
//					menuxx:	object		where object is the name of the menu Object to be rendered for the cell
//										if no subsequent menu object is to be rendered, Menu Name set to "none"
//					linkxx: "url"		where "url" is a string representing the path to the url linked to the cell
//										for relative url's, the bath should be relative to the page rendered for "Top_Menu"
//										which is typically the root
//										for direct url's, start url with "www."
//					targetxx: "string"	where "string" is a string representing the target page that the url linked to the cell
//										should call.  For instance _parent, _blank, _top, etc
//										for direct url's, start url with "www."
//					moverxx:"action"  	where "action: is a string calling the function to be executed on a mousover of the cell
//										or "non" if no mouse over action is desired.
//				};

//				were xx is identified, it means item1 to itemlistsize (ie if size = 2, you would have item1 and item 2)//
//				Objects 1 to size are displayed in the menu
//				Objects 1 to listsize display correct url path in menu
//
// first, create an object variable for each cell.  Menu objects begin with Capital letters, Individual cells are lower case
// top menu cells
var Top_Menu = new Object();
var info = new Object();
var lodging = new Object();
var dining = new Object();
var nightlife = new Object();
var shopping = new Object();
var recreation = new Object();
var realestate = new Object();
var community = new Object();

var menu_levels = 3;
// include for statement to read objects by the number of menu levels to pick up all of the object definitions
for(read_objects = 0; read_objects < menu_levels; read_objects++)
	{
	// define the Top_Menu
	Top_Menu ={
				size:	8,
				listsize:	8,
				name:	"Top_Menu",
				
				cell1:	"Killington<br>Info",
				menu1:	info,
				link1:	"info.html",
				target1:	"_parent",
				mover1:	"showDIV('info')",
				
				cell2:	"Lodging",
				menu2:	lodging,
				link2:	"lodging.html",
				target2:	"_parent",
				mover2:	"showDIV('lodging')",
				
				cell3:	"Dining",
				menu3:	dining,
				link3:	"dining.html",
				target3:	"_parent",
				mover3:	"showDIV('dining')",

				cell4:	"Nightlife",
				menu4:	nightlife,
				link4:	"nightlife.html",
				target4:	"_parent",
				mover4:	"showDIV('nightlife')",

				cell5:	"Shopping",
				menu5:	shopping,
				link5:	"shopping.html",
				target5:	"_parent",
				mover5:	"showDIV('shopping')",
				
				cell6:	"Recreation",
				menu6:	recreation,
				link6:	"recreation.html",
				target6:	"_parent",
				mover6:	"showDIV('recreation')",

				cell7:	"Real<br>Estate",
				menu7:	realestate,
				link7:	"real_estate.html",
				target7:	"_parent",
				mover7:	"showDIV('realestate')",
				
				cell8:	"Community<br>Links",
				menu8:	community,
				link8:	"community.html",
				target8:	"_parent",
				mover8:	"showDIV('community')"


			};

	//	Define Info Menu
	info ={
				size:	8,
				listsize:	8,
				name:	"info",
				
				cell1:	"General<br>Information",
				menu1:	"none",
				link1:	"info/general.html",
				target1:	"_parent",
				mover1:	"none",

				cell2:	"Directions",
				menu2:	"none",
				link2:	"info/directions.html",
				target2:	"_parent",
				mover2:	"none",

				cell3:	"Weather",
				menu3:	"none",
				link3:	"info/weather.html",
				target3:	"_parent",
				mover3:	"none",
	
				cell4:	"Other<br>Info Links",
				menu4:	"none",
				link4:	"info/other_links.html",
				target4:	"_parent",
				mover4:	"none"
	
			};

	//	Define Lodging Menu
	lodging ={
				size:	8,
				listsize:	8,
				name:	"lodging",
				
				cell1:	"Bed &<br>Breakfast",
				menu1:	"none",
				link1:	"lodging/bedandbreakfast.html",
				target1:	"_parent",
				mover1:	"none",

				cell2:	"Country<br>Inns",
				menu2:	"none",
				link2:	"lodging/inns.html",
				target2:	"_parent",
				mover2:	"none",
	
				cell3:	"Hotels",
				menu3:	"none",
				link3:	"lodging/hotels.html",
				target3:	"_parent",
				mover3:	"none",
				
				cell4:	"Motels",
				menu4:	"none",
				link4:	"lodging/motels.html",
				target4:	"_parent",
				mover4:	"none",

	
				cell5:	"Condo &<br>House Rentals",
				menu5:	"none",
				link5:	"lodging/condo_house.html",
				target5:	"_parent",
				mover5:	"none",
				
				cell6:	"Lodging<br>Resources",
				menu6:	"none",
				link6:	"lodging/resource.html",
				target6:	"_parent",
				mover6:	"none"

			};
			
	//	Define Dining Menu
	dining ={
				size:	8,
				listsize:	8,
				name:	"dining",

				cell1:	"Breakfast",
				menu1:	"none",
				link1:	"dining/breakfast.html",
				target1:	"_parent",
				mover1:	"none",
				
				cell2:	"Lunch",
				menu2:	"none",
				link2:	"dining/lunch.html",
				target2:	"_parent",
				mover2:	"none",
							
				cell3:	"Dinner",
				menu3:	"none",
				link3:	"dining/dinner.html",
				target3:	"_parent",
				mover3:	"none",

				cell4:	"Fine<br>Dining",
				menu4:	"none",
				link4:	"dining/fine.html",
				target4:	"_parent",
				mover4:	"none",

				cell5:	"Casual<br>Dining",
				menu5:	"none",
				link5:	"dining/casual.html",
				target5:	"_parent",
				mover5:	"none",

				cell6:	"Pubs &<br>Taverns",
				menu6:	"none",
				link6:	"dining/pubs.html",
				target6:	"_parent",
				mover6:	"none",
					
				cell7:	"Ethnic",
				menu7:	"none",
				link7:	"dining/ethnic.html",
				target7:	"_parent",
				mover7:	"none"
			};
			
	//	Define Nightlife Menu
	nightlife ={
				size:	8,
				listsize: 8,
				name:	"nightlife",
				
				cell4:	"Live<br>Music",
				menu4:	"none",
				link4:	"nightlife/music.html",
				target4:	"_parent",
				mover4:	"none",

				cell5:	"Intimate<br>Bars",
				menu5:	"none",
				link5:	"nightlife/ibars.html",
				target5:	"_parent",
				mover5:	"none"
			};
	//	Define Shopping Menu
	shopping ={
				size:	8,
				listsize:	8,
				name:	"shopping",
				
				cell5:	"Athletic",
				menu5:	"none",
				link5:	"shopping/athletic.html",
				target5:	"_parent",
				mover5:	"none",

				cell6:	"Clothing",
				menu6:	"none",
				link6:	"shopping/clothing.html",
				target6:	"_parent",
				mover6:	"none",
	
				cell7:	"Gifts &<br>Souvenirs",
				menu7:	"none",
				link7:	"shopping/gifts.html",
				target7:	"_parent",
				mover7:	"none",
				
				cell8:	"Groceries &<br>Beverages",
				menu8:	"none",
				link8:	"shopping/groceries.html",
				target8:	"_parent",
				mover8:	"none"

			};
	//	Define Recreation Menu
	recreation ={
				size:	8,
				listsize:	8,
				name:	"recreation",

				cell6:	"Summer",
				menu6:	"none",
				link6:	"recreation/summer.html",
				target6:	"_parent",
				mover6:	"none",
				
				cell7:	"Winter",
				menu7:	"none",
				link7:	"recreation/winter.html",
				target7:	"_parent",
				mover7:	"none",

				cell8:	"Theater<br>Arts",
				menu8:	"none",
				link8:	"recreation/theater.html",
				target8:	"_parent",
				mover8:	"none"


			};
	//	Define Real Estate Menu
	realestate ={
				size:	8,
				listsize:	8,
				name:	"realestate",

				cell6:	"Sales and<br>Rental Agents",
				menu6:	"none",
				link6:	"realestate/agents.html",
				target6:	"_parent",
				mover6:	"none",
				
				cell7:	"Contractors",
				menu7:	"none",
				link7:	"realestate/contractors.html",
				target7:	"_parent",
				mover7:	"none",

				cell8:	"Condominiums",
				menu8:	"none",
				link8:	"realestate/condos.html",
				target8:	"_parent",
				mover8:	"none"
								
			};
	//	Define Services Menu
	community ={
				size:	8,
				listsize:	8,
				name:	"community",
				
				cell6:	"Places of<br>Worship",
				menu6:	"none",
				link6:	"community/worship.html",
				target6:	"_parent",
				mover6:	"none",
				
				cell7:	"Organizations",
				menu7:	"none",
				link7:	"community/organizations.html",
				target7:	"_parent",
				mover7:	"none",

				cell8:	"Interesting<br>Web Sites",
				menu8:	"none",
				link8:	"community/web.html",
				target8:	"_parent",
				mover8:	"none"
								
			};

	}			
// -->  end
