﻿// 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 Home = new Object();
var properties = new Object();
var Availability = new Object();
var Contact = new Object();
var Info = 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:	5,
				listsize:	5,
				name:	"Top Menu",
				
				cell1:	"Home",
				menu1:	Home,
				link1:	"index.php",
				target1:	"_parent",
				mover1:	"showDIV('Home')",
				
				cell2:	"Lodging Properties",
				menu2:	properties,
				link2:	"propertyguide.php",
				target2:	"_parent",
				mover2:	"showDIV('properties')",
				
				cell3:	"Availability",
				menu3:	Availability,
				link3:	"availability.html",
				target3:	"_parent",
				mover3:	"showDIV('Availability')",
								
				cell4:	"Contact Properties",
				menu4:	Contact,
				link4:	"contact.php",
				target4:	"_parent",
				mover4:	"showDIV('Contact')",

				cell5:	"Killington <br>Information",
				menu5:	Info,
				link5:	"killington_info.html",
				target5:	"_parent",
				mover5:	"showDIV('Info')"

			};
	// define Home
	Home ={
				size:	0,
				listsize:	0,
				name:	"Home"

			};

	// define properties
	properties ={
				size:	6,
				listsize:	6,
				name:	"properties",
				
				cell1:	"Birch Ridge Inn<br>and Restaurant",
				menu1:	"none",
				link1:	"detail_birchridge.php",
				target1:	"_parent",
				mover1:	"none",
				
				cell2:	"Cascades <br>Lodge",
				menu2:	"none",
				link2:	"detail_cascades.php",
				target2:	"_parent",
				mover2:	"none",
				
				cell3:	"Inn at <br>Long Trail",
				menu3:	"none",
				link3:	"detail_longtrail.php",
				target3:	"_parent",
				mover3:	"none",
				
				cell4:	"Killington <br>Accommodations",
				menu4:	"none",
				link4:	"detail_killaccommodations.php",
				target4:	"_parent",
				mover4:	"none",
				
				cell5:	"Mendon <br>Mountainview Lodge",
				menu5:	"none",
				link5:	"detail_mendonmountain.php",
				target5:	"_parent",
				mover5:	"none",
				
				cell6:	"Red Clover Inn<br>and Restaurant",
				menu6:	"none",
				link6:	"detail_redclover.php",
				target6:	"_parent",
				mover6:	"none"

			};

	// define Availability
	Availability ={
				size:	0,
				listsize:	0,
				name:	"Availability",
				
				cell3:	"Availability Calendar",
				menu3:	"none",
				link3:	"availability/availability_calendar.html",
				target3:	"_parent",
				mover3:	"none",

				cell4:	"Make Reservations",
				menu4:	"none",
				link4:	"availability/reservation.html",
				target4:	"_parent",
				mover4:	"none"
				

			};
	// define Contact
	Contact ={
				size:	7,
				listsize:	7,
				name:	"Contact",
				
				cell1:	"Birch <br>Ridge Inn",
				menu1:	"none",
				link1:	"contact_dialog.php?prop=birchridge",
				target1:	"_parent",
				mover1:	"none",
				
				cell2:	"Cascades <br>Lodge",
				menu2:	"none",
				link2:	"contact_dialog.php?prop=cascades",
				target2:	"_parent",
				mover2:	"none",
				
				cell3:	"Inn at <br>Long Trail",
				menu3:	"none",
				link3:	"contact_dialog.php?prop=longtrail",
				target3:	"_parent",
				mover3:	"none",
				
				cell4:	"Killington <br>Accommodations",
				menu4:	"none",
				link4:	"contact_dialog.php?prop=killaccommodations",
				target4:	"_parent",
				mover4:	"none",
				
				cell5:	"Mendon <br>Mountainview Lodge",
				menu5:	"none",
				link5:	"contact_dialog.php?prop=mendonmountain",
				target5:	"_parent",
				mover5:	"none",
				
				cell6:	"Red Clover Inn<br>and Restaurant",
				menu6:	"none",
				link6:	"contact_dialog.php?prop=redclover",
				target6:	"_parent",
				mover6:	"none",
				
				cell7:	"Contact <br>All Properties",
				menu7:	"none",
				link7:	"contact_dialog.php?prop=all",
				target7:	"_parent",
				mover7:	"none"
				
			};
			
			
	// define Real_Estate
	Info ={
				size:	4,
				listsize:	4,
				name:	"Info",
				
				cell1:	"Explore Killington",
				menu1:	"none",
				link1:	"area.php",
				target1:	"_parent",
				mover1:	"none",
				
				cell2:	"Dining",
				menu2:	"none",
				link2:	"dining.php",
				target2:	"_parent",
				mover2:	"none",
				
				cell3:	"Directions",
				menu3:	"none",
				link3:	"directions.php",
				target3:	"_parent",
				mover3:	"none",
				
				cell4:	"Weather",
				menu4:	"none",
				link4:	"weather.php",
				target4:	"_parent",
				mover4:	"none"

// 				event information deleted from the menu				
//				cell5:	"Events",
//				menu5:	"none",
//				link5:	"events.php",
//				target5:	"_parent",
//				mover5:	"none"

			};


	}			
// -->  end
