﻿// 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 About = new Object();
var Room = new Object();
var Availability = new Object();
var Restaurant = new Object();
var Functions = new Object();
var Area = new Object();
var Contact = 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:	7,
				listsize:	7,
				name:	"Top_Menu",
				
				cell1:	"About<br>Birch Ridge",
				menu1:	About,
				link1:	"about.html",
				target1:	"_parent",
				mover1:	"showDIV('About')",
				
				cell2:	"Guest<br>Rooms",
				menu2:	Room,
				link2:	"Rooms/description.html",
				target2:	"_parent",
				mover2:	"showDIV('Room')",
				
				cell3:	"Rates &<br>Availability",
				menu3:	Availability,
				link3:	"availability.html",
				target3:	"_parent",
				mover3:	"showDIV('Availability')",

				cell4:	"Dining",
				menu4:	Restaurant,
				link4:	"Restaurant/cuisine.html",
				target4:	"_parent",
				mover4:	"showDIV('Restaurant')",

				cell5:	"Weddings &<br>Functions",
				menu5:	Functions,
				link5:	"Functions/functions.html",
				target5:	"_parent",
				mover5:	"showDIV('Functions')",
				
				cell6:	"Area",
				menu6:	Area,
				link6:	"Discover_Vermont/explore.html",
				target6:	"_parent",
				mover6:	"showDIV('Area')",

				cell7:	"Additional<br>Info",
				menu7:	Contact,
				link7:	"info.html",
				target7:	"_parent",
				mover7:	"showDIV('Contact')"

			};

	//	Define About Menu
	About ={
				size:	7,
				listsize:	9,
				name:	"About",
				
				cell1:	"Great<br>Room",
				menu1:	"none",
				link1:	"Facilities/great_room.html",
				target1:	"_parent",
				mover1:	"none",

				cell2:	"Slate<br>Fireplace",
				menu2:	"none",
				link2:	"Facilities/slate_fireplace.html",
				target2:	"_parent",
				mover2:	"none",

				cell3:	"Sitting<br>Room",
				menu3:	"none",
				link3:	"Facilities/sitting_room.html",
				target3:	"_parent",
				mover3:	"none",
	
				cell4:	"Carriageway",
				menu4:	"none",
				link4:	"Facilities/carriage_way.html",
				target4:	"_parent",
				mover4:	"none",
	
				cell5:	"Directions",
				menu5:	"none",
				link5:	"directions.html",
				target5:	"_parent",
				mover5:	"none",
				
				cell6:	"Innkeepers<br>Blog",
				menu6:	"none",
				link6:	"www.killingtonblog.com",
				target6:	"_blank",
				mover6:	"none",
				
				cell7:	"Birch Ridge<br>Inc",
				menu7:	"none",
				link7:	"inc.html",
				target7:	"_parent",
				mover7:	"none",
				
				cell8:	"Ethan Allen Express",
				menu8:	"none",
				link8:	"directions/ethan.html",
				target8:	"_parent",
				mover8:	"none",
				
				cell9:	"Air",
				menu9:	"none",
				link9:	"directions/air.html",
				target9:	"_parent",
				mover9:	"none"

			};

	//	Define Room Menu
	Room ={
				size:	10,
				listsize:	10,
				name:	"Room",
				
				cell1:	"French<br>Provincial",
				menu1:	"none",
				link1:	"Rooms/room10.html",
				target1:	"_parent",
				mover1:	"none",

				cell2:	"Shaker<br>with Lace",
				menu2:	"none",
				link2:	"Rooms/room9.html",
				target2:	"_parent",
				mover2:	"none",
	
				cell3:	"English<br>Gentlemans",
				menu3:	"none",
				link3:	"Rooms/room8.html",
				target3:	"_parent",
				mover3:	"none",
	
				cell4:	"Traditional",
				menu4:	"none",
				link4:	"Rooms/room7.html",
				target4:	"_parent",
				mover4:	"none",
				
				cell5:	"American<br>Classic",
				menu5:	"none",
				link5:	"Rooms/room6.html",
				target5:	"_parent",
				mover5:	"none",

				cell6:	"European",
				menu6:	"none",
				link6:	"Rooms/room5.html",
				target6:	"_parent",
				mover6:	"none",

				cell7:	"Colonial<br>Maple",
				menu7:	"none",
				link7:	"Rooms/room4.html",
				target7:	"_parent",
				mover7:	"none",

				cell8:	"Shaker",
				menu8:	"none",
				link8:	"Rooms/room3.html",
				target8:	"_parent",
				mover8:	"none",

				cell9:	"Antique<br>Lace",
				menu9:	"none",
				link9:	"Rooms/room2.html",
				target9:	"_parent",
				mover9:	"none",
	
				cell10:	"Mission",
				menu10:	"none",
				link10:	"Rooms/room1.html",
				target10:	"_parent",
				mover10:	"none"

			};
			
	//	Define Availability Menu
	Availability ={
				size:	6,
				listsize:	11,
				name:	"Availability",

				cell1:	"Check<br>Availability",
				menu1:	"none",
				link1:	"Availability/availability.html",
				target1:	"_parent",
				mover1:	"none",
				
				cell2:	"Make<br>Reservation",
				menu2:	"none",
				link2:	"reservation.html",
				target2:	"_parent",
				mover2:	"none",
							
				cell3:	"Room Rate<br>Calculator",
				menu3:	"none",
				link3:	"Rooms/rate_calculator.html",
				target3:	"_parent",
				mover3:	"none",

				cell4:	"Ski Package<br>Calculator",
				menu4:	"none",
				link4:	"Rooms/ski_pkg_calculator.html",
				target4:	"_parent",
				mover4:	"none",

				cell5:	"Golf Package<br>Calculator",
				menu5:	"none",
				link5:	"Rooms/golf_pkg_calculator.html",
				target5:	"_parent",
				mover5:	"none",

				cell6:	"Other Package<br>Information",
				menu6:	"none",
				link6:	"Rooms/packages.html",
				target6:	"_parent",
				mover6:	"none",
					
				cell7:	"Wine Festival<br>Package",
				menu7:	"none",
				link7:	"Rooms/Wine_Festival_Package.html",
				target7:	"_parent",
				mover7:	"none",
					
				cell8:	"Rates",
				menu8:	"none",
				link8:	"Rooms/rates.html",
				target8:	"_parent",
				mover8:	"none",

				cell9:	"Check<br>Availability",
				menu9:	"none",
				link9:	"Availability/availability_framed.html",
				target9:	"_parent",
				mover9:	"none",

				cell10:	"Summer Romance<br>Package",
				menu10:	"none",
				link10:	"Rooms/Summer_Romance.html",
				target10:	"_parent",
				mover10:	"none",

				cell11:	"Winter Romance<br>Package",
				menu11:	"none",
				link11:	"Rooms/Winter_Romance.html",
				target11:	"_parent",
				mover11:	"none"

			};
	//	Define Restaurant Menu
	Restaurant ={
				size:	4,
				listsize: 7,
				name:	"Restaurant",
				
				cell2:	"Current Menu",
				menu2:	"none",
				link2:	"Restaurant/current_menu.php",
				target2:	"_parent",
				mover2:	"none",

				cell3:	"Reservations",
				menu3:	"none",
				link3:	"dinner_reservation.html",
				target3:	"_parent",
				mover3:	"none",
				
				cell5:	"New Years Eve Menu",
				menu5:	"none",
				link5:	"Restaurant/new_years_menu.php",
				target5:	"_parent",
				mover5:	"none",
				
				cell6:	"Christmas Menu",
				menu6:	"none",
				link6:	"Restaurant/christmas_menu.php",
				target6:	"_parent",
				mover6:	"none"

			};
	//	Define Functions Menu
	Functions ={
				size:	7,
				listsize:	7,
				name:	"Functions",
				
				cell4:	"Weddings",
				menu4:	"none",
				link4:	"Functions/weddings.html",
				target4:	"_parent",
				mover4:	"none",

				cell5:	"Private<br>Parties",
				menu5:	"none",
				link5:	"Functions/parties.html",
				target5:	"_parent",
				mover5:	"none",

				cell6:	"Conferences",
				menu6:	"none",
				link6:	"Functions/conferences.html",
				target6:	"_parent",
				mover6:	"none",
	
				cell7:	"Plan<br>Function",
				menu7:	"none",
				link7:	"Functions/plan_function.html",
				target7:	"_parent",
				mover7:	"none"
			};
	//	Define Area Menu
	Area ={
				size:	10,
				listsize:	13,
				name:	"Area",

				cell1:	"Golf in<br>Killington",
				menu1:	"none",
				link1:	"Golf/courses.html",
				target1:	"_parent",
				mover1:	"none",
	
				cell2:	"Plan<br>Golf<br>Vacation",
				menu2:	"none",
				link2:	"Golf/golf_vacation.html",
				target2:	"_parent",
				mover2:	"none",
				
				cell3:	"Skiing",
				menu3:	"none",
				link3:	"Ski/mtns.html",
				target3:	"_parent",
				mover3:	"none",
				
				cell4:	"Snow<br>Boarding",
				menu4:	"none",
				link4:	"Discover_Vermont/riding.html",
				target4:	"_parent",
				mover4:	"none",

				cell5:	"Cross<br>Country<br>Skiing",
				menu5:	"none",
				link5:	"Discover_Vermont/xcountry.html",
				target5:	"_parent",
				mover5:	"none",

				cell6:	"Plan<br>Ski<br>Vacation",
				menu6:	"none",
				link6:	"Ski/ski_vacation.html",
				target6:	"_parent",
				mover6:	"none",

				
				cell7:	"Hike<br>Vermont",
				menu7:	"none",
				link7:	"Discover_Vermont/hiking.html",
				target7:	"_parent",
				mover7:	"none",

				cell8:	"Bike the<br>Green<br>Mountains",
				menu8:	"none",
				link8:	"Discover_Vermont/biking.html",
				target8:	"_parent",
				mover8:	"none",

				cell9:	"Fishing",
				menu9:	"none",
				link9:	"Discover_Vermont/fishing.html",
				target9:	"_parent",
				mover9:	"none",
	
				cell10:	"Covered<br>Bridges",
				menu10:	"none",
				link10:	"Discover_Vermont/covered_bridges.html",
				target10:	"_parent",
				mover10:	"none",
				
				cell11:	"Ski Killington",
				menu11:	"none",
				link11:	"Discover_Vermont/skiing.html",
				target11:	"_parent",
				mover11:	"none",
				
				cell12:	"Salt Ash Loop",
				menu12:	"none",
				link12:	"Discover_Vermont/salt_ash_loop.html",
				target12:	"_parent",
				mover12:	"none",
				
				cell13:	"Bike Killington",
				menu13:	"none",
				link13:	"Discover_Vermont/bike_killington.html",
				target13:	"_parent",
				mover13:	"none"

			};
	//	Define Contact Menu
	Contact ={
				size:	7,
				listsize:	14,
				name:	"Contact",
				

				cell1:	"Innkeepers<br>Blog",
				menu1:	"none",
				link1:	"www.killingtonblog.com",
				target1:	"_blank",
				mover1:	"none",

				cell2:	"Press<br>Information",
				menu2:	"none",
				link2:	"Press_kit/press.html",
				target2:	"_parent",
				mover2:	"none",
				
				cell3:	"ADA and<br>Birch Ridge",
				menu3:	"none",
				link3:	"Policies/ADA.html",
				target3:	"_parent",
				mover3:	"none",
				
				cell4:	"Inn<br>Policies",
				menu4:	"none",
				link4:	"Policies/Policies.html",
				target4:	"_parent",
				mover4:	"none",
				
				cell5:	"Killington<br>Links",
				menu5:	"none",
				link5:	"Related_Links/killington.html",
				target5:	"_parent",
				mover5:	"none",

				cell6:	"Vermont<br>Links",
				menu6:	"none",
				link6:	"Related_Links/Vermont.html",
				target6:	"_parent",
				mover6:	"none",
				
				cell7:	"Contact the<br>Innkeepers",
				menu7:	"none",
				link7:	"contact_us.html",
				target7:	"_parent",
				mover7:	"none",
				
				cell8:	"Smoking Policy",
				menu8:	"none",
				link8:	"Policies/smoking.html",
				target8:	"_parent",
				mover8:	"none",
				
				cell9:	"Children Policy",
				menu9:	"none",
				link9:	"Policies/children.html",
				target9:	"_parent",
				mover9:	"none",
				
				cell10:	"Reservation Policy",
				menu10:	"none",
				link10:	"Policies/reservations.html",
				target10:	"_parent",
				mover10:	"none",
				
				cell11:	"Confirmation Policy",
				menu11:	"none",
				link11:	"Policies/confirmation.html",
				target11:	"_parent",
				mover11:	"none",
				
				cell12:	"Payment Policy",
				menu12:	"none",
				link12:	"Policies/payment.html",
				target12:	"_parent",
				mover12:	"none",
				
				cell13:	"Cancellation Policy",
				menu13:	"none",
				link13:	"Policies/cancellation.html",
				target13:	"_parent",
				mover13:	"none",
				
				cell14:	"Ski Free Restrictions",
				menu14:	"none",
				link14:	"Policies/SkiFreeRestrictions.html",
				target14:	"_parent",
				mover14:	"none"
								
			};
	}			
// -->  end
