// JavaScript Document
//This script defines the menu structure.
//The format of the menu Item is:
// Item( text,     //Text to appear in the menu
//       href,     //URL of the target page use '#' to define no target - normally where an item has a submenu
//		 submenu)  //The Array index of the submenu - 0 if there is no submenu
//NOTE: The href is relative to the site's root directory. When the menu is built, on 
//loading the page it is prefixed with a pageRoot. This var is defined on the actual page
//and defines the path from the current page to the site's root directory.  
var menu = new Array(); 
//alert( "Initialising Menu");
//Root menu
menu[0] = new Array();
menu[0][0] = new Item('Home', 'index.html', 0, 0);
menu[0][1] = new Item('Membership', 'membership/index.html', 2, 0);
menu[0][2] = new Item('Programme', 'agenda/index.html', 0, 0);
menu[0][3] = new Item('Galleries', 'gallery/index.html', 1, 0);
menu[0][4] = new Item('Location', 'location/index.html', 0, 0);
menu[0][5] = new Item('Links', 'links/index.html',0, 0);
menu[0][6] = new Item('Contact Us', 'contact/index.html', 0, 0);
//Sub menus
menu[1] = new Array();
menu[1][0] = new Item('Photo2010', 'http://www.photo2010.net', 0, 0);
menu[1][1] = new Item('Members Gallery', 'gallery/index.html', 0, 0);

menu[2] = new Array();
menu[2][0] = new Item('Login', 'scripts2/membership/membership.cgi?action=login', 0, 1);
