// creates the menu bar and the pull down buttons

sniffBrowsers();

// sets the icon on the left of each menu item
menuItemBullet = new bulletPoint("bullets/menu_off.gif","bullets/menu_on.gif");
labelBullet = new bulletPoint("bullets/newheader_off.gif","bullets/newheader_on.gif");
subMenuBullet = new bulletPoint("bullets/sub_header_off.gif","bullets/sub_header_on.gif");
nolabelBullet = new bulletPoint("bullets/header_off.gif","bullets/header_off.gif");

// creates the menubar
// color of button followed by color hover over button
button_width = 134;
WRR = new menuBar('WRR',button_width, 'vertical', '#0000ff', '#0000ff');
// height of buttons - default 14
WRR.height = 30;
def_color = '#1166ff';
over_color = '#0000aa';
// the buttons
WRR.addLabel('nolabelBullet', 	'Home', 				1, button_width, def_color, over_color, 'index.shtml', 'left');
WRR.addLabel('nolabelBullet', 	'Calendar', 			2, button_width, def_color, over_color, 'calendar.shtml', 'left');
WRR.addLabel('labelBullet', 	'Programs', 			3, button_width, def_color, over_color, 'programs.shtml', 'left');
WRR.addLabel('nolabelBullet', 	'Summer Day Camp', 		4, button_width, def_color, over_color, 'day-camp.shtml', 'left');
WRR.addLabel('labelBullet', 	'Welcome Aboard', 		5, button_width, def_color, over_color, 'purchases.shtml', 'left');
WRR.addLabel('nolabelBullet', 	'Join Our e-mail List',	6, button_width, def_color, over_color, 'join_e-mail.shtml', 'left');
WRR.addLabel('labelBullet', 	'Newsletter',			7, button_width, def_color, over_color, 'newsletter.shtml', 'left');
WRR.addLabel('labelBullet', 	'Local Interest',		8, button_width, def_color, over_color, 'local_interest.shtml', 'left');
WRR.addLabel('labelBullet', 	'Volunteer', 			9, button_width, def_color, over_color, 'volunteer.shtml', 'left');
WRR.addLabel('labelBullet', 	'Library', 				10, button_width, def_color, over_color, 'library.shtml', 'left');
WRR.addLabel('nolabelBullet', 	'Exhibits', 			11, button_width, def_color, over_color, 'exhibits.shtml', 'left');
WRR.addLabel('labelBullet', 	'Museum Shop', 			12, button_width, def_color, over_color, 'museumshop.shtml', 'left');
WRR.addLabel('nolabelBullet', 	'Boats For Sale', 		13, button_width, def_color, over_color, 'forsale.shtml', 'left');
WRR.addLabel('nolabelBullet', 	'Weddings and Reunions',14, button_width, def_color, over_color, 'weddings.shtml', 'left');
WRR.addLabel('labelBullet', 	'Contact Us', 			15, button_width, def_color, over_color, 'contact.shtml', 'left');

// creates the pull-downs
pdheight = 30;
pddef_color = '#1166ff';
pdover_color = '#0000aa';
sub_button_width = 130;
menus[1] = new menu(sub_button_width, 'vertical', '#000000', '#000000');
menus[1].height = pdheight;
menus[1].writeMenu();

menus[2] = new menu(sub_button_width, 'vertical', '#000000', '#000000');
menus[2].height = pdheight;
menus[2].writeMenu();

menus[3] = new menu(sub_button_width, 'vertical', '#000000', '#000000');
menus[3].height = pdheight;
menus[3].addItem('menuItemBullet', 'Winter Luncheons', null, sub_button_width, pddef_color, pdover_color, 'luncheon2010.pdf', 'left');
menus[3].addItem('subMenuBullet', 'Going Green', null, sub_button_width, pddef_color, pdover_color, 'going_green.shtml', 'left');
menus[3].addItem('subMenuBullet', 'Heritage Eco Tour', null, sub_button_width, pddef_color, pdover_color, 'raingarden.shtml', 'left');
menus[3].addItem('subMenuBullet', 'Teachers Activity Guide', null, sub_button_width, pddef_color, pdover_color, 'chesapeakewaterman/index.html', 'left');
menus[3].writeMenu();

menus[4] = new menu(sub_button_width, 'vertical', '#000000', '#000000');
menus[4].height = pdheight;
menus[4].writeMenu();

menus[5] = new menu(sub_button_width, 'vertical', '#000000', '#000000');
menus[5].height = pdheight;
menus[5].addItem('menuItemBullet', 'About Us', null, sub_button_width, pddef_color, pdover_color, 'society.shtml', 'left');
menus[5].addItem('menuItemBullet', 'Membership', null, sub_button_width, pddef_color, pdover_color, 'purchases.shtml#membership', 'left');
menus[5].addItem('menuItemBullet', 'Contact Us', null, sub_button_width, pddef_color, pdover_color, 'contact.shtml', 'left');
menus[5].addItem('menuItemBullet', 'Directions', null, sub_button_width, pddef_color, pdover_color, 'directions.shtml', 'left');
menus[5].addItem('menuItemBullet', 'Staff', null, sub_button_width, pddef_color, pdover_color, 'personnel.shtml#staff', 'left');
menus[5].addItem('menuItemBullet', 'Board of Trustees', null, sub_button_width, pddef_color, pdover_color, 'personnel.shtml#board', 'left');
menus[5].addItem('menuItemBullet', 'Volunteers', null, sub_button_width, pddef_color, pdover_color, 'personnel.shtml#volunteers', 'left');
menus[5].addItem('menuItemBullet', 'Mission Statement', null, sub_button_width, pddef_color, pdover_color, 'mission.shtml', 'left');
menus[5].writeMenu();

menus[6] = new menu(sub_button_width, 'vertical', '#000000', '#000000');
menus[6].height = pdheight;
menus[6].writeMenu();

menus[7] = new menu(sub_button_width, 'vertical', '#000000', '#000000');
menus[7].height = pdheight;
menus[7].addItem('menuItemBullet', 'View Newsletters', null, sub_button_width, pddef_color, pdover_color, 'newsletter.shtml', 'left');
menus[7].addItem('menuItemBullet', 'Join Our e-mail List', null, sub_button_width, pddef_color, pdover_color, 'join_e-mail.shtml', 'left');
menus[7].writeMenu();

menus[8] = new menu(sub_button_width, 'vertical', '#000000', '#000000');
menus[8].height = pdheight;
menus[8].addItem('menuItemBullet', 'Gateways Network', null, sub_button_width, pddef_color, pdover_color, 'http://baygateways.net', 'left');
menus[8].addItem('menuItemBullet', 'Places Of Interest', null, sub_button_width, pddef_color, pdover_color, 'AAplaces.shtml', 'left');
menus[8].addItem('menuItemBullet', 'Historical Markers', null, sub_button_width, pddef_color, pdover_color, 'markers.shtml', 'left');
menus[8].addItem('menuItemBullet', '4 Rivers Museums', null, sub_button_width, pddef_color, pdover_color, 'http://fourriversheritage.org/', 'left');
menus[8].writeMenu();

menus[9] = new menu(sub_button_width, 'vertical', '#000000', '#000000');
menus[9].addItem('menuItemBullet', 'Sign Up!', null, sub_button_width, pddef_color, pdover_color, 'volunteer_form.shtml', 'left');
menus[9].addItem('menuItemBullet', 'In the Library', null, sub_button_width, pddef_color, pdover_color, 'library_tasks.shtml', 'left');
menus[9].addItem('menuItemBullet', 'About Volunteering', null, sub_button_width, pddef_color, pdover_color, 'volunteer.shtml', 'left');
menus[9].addItem('menuItemBullet', 'Hours', null, sub_button_width, pddef_color, pdover_color, 'volunteer_hours_2011.shtml', 'left');
menus[9].height = pdheight;
menus[9].writeMenu();

menus[10] = new menu(sub_button_width, 'vertical', '#000000', '#000000');
menus[10].height = pdheight;
menus[10].addItem('menuItemBullet', 'History', null, sub_button_width, pddef_color, pdover_color, 'library.shtml', 'left');
menus[10].addItem('menuItemBullet', 'Printed Material', null, sub_button_width, pddef_color, pdover_color, 'library.shtml#printed', 'left');
menus[10].addItem('menuItemBullet', 'Photographs', null, sub_button_width, pddef_color, pdover_color, 'library_photos.shtml', 'left');
menus[10].addItem('menuItemBullet', 'Oral Histories', null, sub_button_width, pddef_color, pdover_color, 'library_oral.shtml', 'left');
menus[10].addItem('menuItemBullet', 'Help Needed', null, sub_button_width, pddef_color, pdover_color, 'library_tasks.shtml', 'left');
menus[10].addItem('menuItemBullet', 'Teachers Activity Guide', null, sub_button_width, pddef_color, pdover_color, 'http://chesapeakewaterman.org', 'left');
menus[10].addItem('menuItemBullet', 'Our Volunteers', null, sub_button_width, pddef_color, pdover_color, 'library_volunteers.shtml', 'left');
menus[10].writeMenu();

menus[11] = new menu(sub_button_width, 'vertical', '#000000', '#000000');
menus[11].height = pdheight;
menus[11].writeMenu();

menus[12] = new menu(sub_button_width, 'vertical', '#000000', '#000000');
menus[12].addItem('menuItemBullet', 'Books', null, sub_button_width, pddef_color, pdover_color, 'publications.shtml', 'left');
menus[12].addItem('menuItemBullet', 'Stockton Doll Collection', null, sub_button_width, pddef_color, pdover_color, 'dolls.shtml', 'left');
menus[12].height = pdheight;
menus[12].writeMenu();

menus[13] = new menu(sub_button_width, 'vertical', '#000000', '#000000');
menus[13].height = pdheight;
menus[13].writeMenu();

menus[14] = new menu(sub_button_width, 'vertical', '#000000', '#000000');
menus[14].height = pdheight;
menus[14].writeMenu();

menus[15] = new menu(sub_button_width, 'vertical', '#000000', '#000000');
menus[15].addItem('menuItemBullet', 'email us', null, sub_button_width, pddef_color, pdover_color, 'contact.shtml', 'left');
menus[15].addItem('menuItemBullet', 'mail us', null, sub_button_width, pddef_color, pdover_color, 'contact.shtml', 'left');
menus[15].addItem('menuItemBullet', 'phone us', null, sub_button_width, pddef_color, pdover_color, 'contact.shtml', 'left');
menus[15].addItem('menuItemBullet', 'find us', null, sub_button_width, pddef_color, pdover_color, 'directions.shtml', 'left');
menus[15].addItem('menuItemBullet', 'directory', null, sub_button_width, pddef_color, pdover_color, 'personnel.shtml', 'left');
menus[15].addItem('menuItemBullet', 'about us', null, sub_button_width, pddef_color, pdover_color, 'society.shtml', 'left');
menus[15].height = pdheight;
menus[15].writeMenu();


// aligns the pull-downs tothe menu items
menus[1].align='right';
menus[2].align='right';
menus[3].align='right';
menus[4].align='right';
menus[5].align='right';
menus[6].align='right';
menus[7].align='right';
menus[8].align='right';
menus[9].align='right';
menus[10].align='right';
menus[11].align='right';
menus[12].align='right';
menus[13].align='right';
menus[14].align='right';
menus[15].align='right';


