/*
un_navbar.js - created by Brendan Ratter 18/03/2007
This file contains the array that builds the specific menu bar instance for the top navigation bar
Please read the brief instructions below before editing
More detailed instructions available at __________
*/

/*-------------------------------------------------------------------------------------------------------------------------------------------
BREIF INSTRUCTIONS:

If you wish to modify the menu bar headings, please do the following:
1. Do not edit the 'declarations' section immediately below this comment
2. To edit a heading entry change anything between existing quotation marks, after the equals sign NOT before
3. To edit a list item, again, change anything between existing quotation marks
4. It is important to remember not to delete the quotation marks
5. If you want to add or delete a menu item, make adjustments inside the brackets, but be careful to copy the syntax
6. To create a totally new menu section, copy and paste the entire slab into the desired location, and modify as desired
7. An empty 'ml' and 'ml_href' array will give a heading without a drop down menu.
8. If a 'href' corresponding to a menu item is missing, clicking the link will do nothing 
9. To edit colors and other styling issues, use menubar.css
-------------------------------------------------------------------------------------------------------------------------------------------*/

//-------------------------declarations-------------------------//
//declare structure of the menu array
var menu_array = new Array();
menu_array['mh'] = new Array();
menu_array['mh_href'] = new Array();
menu_array['ml'] = new Array();
menu_array['ml_href'] = new Array();
var cur = 0;
//-----------------------end declarations-----------------------//



//----------start menu entry - edit next four lines----------//
//heading parameters
menu_array['mh'][cur] = 'Home';
menu_array['mh_href'][cur] = '/';
//list parameters
menu_array['ml'][cur] = new Array();
menu_array['ml_href'][cur] = new Array();
cur++; //do not edit
//-----------------------end menu entry-----------------------//

//----------start menu entry - edit next four lines----------//
//heading parameters
menu_array['mh'][cur] = 'Member Services';
menu_array['mh_href'][cur] = '/members';
//list parameters
menu_array['ml'][cur] = new Array('About Us','Join the Society','Calendar','eNews and Archive','Disclaimer and Privacy');
menu_array['ml_href'][cur] = new Array('/members/about.html','/members/join.html','/members/calendar.html','/members/enews.html','/members/disclaimer.html');
cur++; //do not edit
//-----------------------end menu entry-----------------------//

//----------start menu entry - edit next four lines----------//
//heading parameters
menu_array['mh'][cur] = 'The Society';
menu_array['mh_href'][cur] = '/society';
//list parameters
menu_array['ml'][cur] = new Array('Mission Statement','History','The Executive','Position Descriptions','Constitution');
menu_array['ml_href'][cur] = new Array('/society/statement.html','/society/history.html','/society/executive.html','/society/positions.html','/society/constitution.html');
cur++; //do not edit
//-----------------------end menu entry-----------------------//

//----------start menu entry - edit next four lines----------//
//heading parameters
menu_array['mh'][cur] = 'MUN Program';
menu_array['mh_href'][cur] = '/mun';
//list parameters
menu_array['ml'][cur] = new Array('What is Model UN?','MiniMUN Program','AMUNC','MUN Resources');
menu_array['ml_href'][cur] = new Array('/mun/mun101.html','/mun/minimun.html','/mun/amunc.html','/mun/resources.html');
cur++; //do not edit
//-----------------------end menu entry-----------------------//

//----------start menu entry - edit next four lines----------//
//heading parameters
menu_array['mh'][cur] = 'Contact Us';
menu_array['mh_href'][cur] = '/contact.html';
//list parameters
menu_array['ml'][cur] = new Array();
menu_array['ml_href'][cur] = new Array();
cur++; //do not edit
//-----------------------end menu entry-----------------------//

//----------start menu entry - edit next four lines----------//
//heading parameters
menu_array['mh'][cur] = 'Site Map';
menu_array['mh_href'][cur] = '/sitemap.html';
//list parameters
menu_array['ml'][cur] = new Array();
menu_array['ml_href'][cur] = new Array();
cur++; //do not edit
//-----------------------end menu entry-----------------------//


//---------------------make the menubar----------------------//
//call the function to build the menu and place into the page
//menu is placed at the point in the page where <script> tag is placed
var un_navbar = buildMenuBar('un_navbar',menu_array);

//adjusts any ie quirks to present as desired
//var agt = navigator.userAgent.toLowerCase();
//var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
if (document.getElementById('un_navbartb').style.borderSpacing == undefined) {
	//don't forget to change this to all versions compatible function
	document.getElementById('un_navbartb').style.borderCollapse = 'collapse';
	
	var monitor = menuglobal['un_navbar'].monitor;
	for (var i = 0; i < un_navbar.count; i++) {
		if (un_navbar.headings[i].hasMenu == true) {
			document.getElementById('ml' + i + 'tb').style.borderCollapse = 'collapse';
			showMenu('blah',i,monitor);
			document.getElementById('ml' + i).style.visibility = 'hidden';
		}
	}
	
	var el = document.getElementById('un_navbartb').style;
	el.borderLeft = '2px solid #FFFFFF';
}
