﻿// 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 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:	4,
				listsize:	4,
				name:	"Top_Menu",
				
				cell1:	"Home",
				menu1:	Home,
				link1:	"index.php",
				target1:	"_parent",
				mover1:	"showDIV('Home')",
				
				cell2:	"The Inns of <br>Killington Country Inns",
				menu2:	properties,
				link2:	"propertyguide.php",
				target2:	"_parent",
				mover2:	"showDIV('properties')",
												
				cell3:	"Contact the Inns",
				menu3:	Contact,
				link3:	"contact.php",
				target3:	"_parent",
				mover3:	"showDIV('Contact')",

				cell4:	"Killington <br>Information",
				menu4:	Info,
				link4:	"killington_info.html",
				target4:	"_parent",
				mover4:	"showDIV('Info')"

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

			};

	// define properties
	properties ={
				size:	3,
				listsize:	5,
				name:	"properties",
				
				cell1:	"Birch Ridge Inn<br>and Restaurant",
				menu1:	"none",
				link1:	"detail_birchridge.php",
				target1:	"_parent",
				mover1:	"none",
								
				cell2:	"Inn at Long Trail<br>and McGrath's Irish Pub",
				menu2:	"none",
				link2:	"detail_longtrail.php",
				target2:	"_parent",
				mover2:	"none",
				
				cell3:	"Snowed<br>Inn",
				menu3:	"none",
				link3:	"detail_snowedinn.php",
				target3:	"_parent",
				mover3:	"none",
				
				cell4:	"Red Clover Inn<br>and Restaurant",
				menu4:	"none",
				link4:	"detail_redclover.php",
				target4:	"_parent",
				mover4:	"none",
				
				cell5:	"Vermont<br>Inn",
				menu5:	"none",
				link5:	"detail_vermontinn.php",
				target5:	"_parent",
				mover5:	"none"

			};

	// define Contact
	Contact ={
				size:	4,
				listsize:	7,
				name:	"Contact",
				
				cell1:	"Birch <br>Ridge Inn",
				menu1:	"none",
				link1:	"contact_dialog.php?prop=birchridge",
				target1:	"_parent",
				mover1:	"none",
				
				cell2:	"Inn at <br>Long Trail",
				menu2:	"none",
				link2:	"contact_dialog.php?prop=longtrail",
				target2:	"_parent",
				mover2:	"none",
								
				cell3:	"Snowed<br>Inn",
				menu3:	"none",
				link3:	"contact_dialog.php?prop=snowedinn",
				target3:	"_parent",
				mover3:	"none",
							
				cell4:	"Contact <br>All Properties",
				menu4:	"none",
				link4:	"contact_dialog.php?prop=all",
				target4:	"_parent",
				mover4:	"none",
	
				cell5:	"Red Clover Inn<br>and Restaurant",
				menu5:	"none",
				link5:	"contact_dialog.php?prop=redclover",
				target5:	"_parent",
				mover5:	"none",
				
				cell6:	"Vermont<br>Inn",
				menu6:	"none",
				link6:	"contact_dialog.php?prop=vermontinn",
				target6:	"_parent",
				mover6:	"none"

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


	}			
// -->  end
