//This script contains the definition for the menus.
//Moved to a separate file so we can maintain it once and include it in all files as needed
//19-MAY-05 Moved samples to Writing
sniffBrowsers();

labelBullet = new bulletPoint("Images/header_off.gif","Images/header_on.gif");
menuItemBullet = new bulletPoint("Images/menu_off.gif","Images/menu_on.gif");
subMenuBullet = new bulletPoint("Images/sub_header_off.gif","Images/sub_header_on.gif");

//Following variables added by Dirk to simplify maintenance
var M1_Off = '#1D6396';
var M1_On = '#278CCC';
var M2_Off = '#46436E';
var M2_On = '#6864A1';
var M3_Off = '3d9c45'; 
var M3_On = '#95d767'; 

//MENUBAR PARAMS: name, width, type, text colour, highlight text colour
//ADDMENU PARAMS: bullet, text, menu number, width, background color, background highlight color, target file, text alignment
//ADDITEM PARAMS: bullet, text, submenu number, width, background color, background highlight color, target file, text alignment
myTest = new menuBar('myTest',480, 'horizontal', '#000000', '#000000');
myTest.addLabel(null, '&nbsp;&nbsp;Home', 1, 120, M1_Off, M1_On, 'index.html', 'left');
myTest.addLabel(null, '&nbsp;&nbsp;Resources', 2, 120, M1_Off, M1_On, 'javascript:void(0)', 'left');
myTest.addLabel(null, '&nbsp;&nbsp;Portfolio', 3, 120, M1_Off, M1_On, 'javascript:void(0)', 'left');
myTest.addLabel(null, '&nbsp;&nbsp;Employment', 4, 120, M1_Off, M1_On, 'javascript:void(0)', 'left');
myTest.height = 20;

// Arrays start at [0] by apparently the original author didn't know that...
menus[1] = new menu(120, 'vertical', '#000000', '#000000');
menus[1].height = 20;
menus[1].addItem(null, '&nbsp;&nbsp;Home', null, 120, M2_Off, M2_On, 'index.html', 'left');
//menus[1].addItem(null, '&nbsp;&nbsp;Guestbook', null, 120, M2_Off, M2_On, 'guestbook.php', 'left');
menus[1].addItem(null, '&nbsp;&nbsp;About', 7, 120, M2_Off, M2_On, 'javascript:void(0)', 'left');
menus[1].writeMenu();
menus[1].align='left';

menus[2] = new menu(120, 'vertical', '#000000', '#000000');
menus[2].height = 20;
menus[2].addItem(null, '&nbsp;&nbsp;infoZone', null, 120, M2_Off, M2_On, 'infozone.html', 'left');
menus[2].addItem(null, '&nbsp;&nbsp;Links', null, 120, M2_Off, M2_On, 'links.html', 'left');
menus[2].addItem(null, '&nbsp;&nbsp;Bookshelf', null, 120, M2_Off, M2_On, 'BookList2.htm', 'left');
menus[2].writeMenu();
menus[2].align='left';

menus[3] = new menu(120, 'vertical', '#000000', '#000000');
menus[3].height = 20;
menus[3].addItem(null, '&nbsp;&nbsp;Writing', 5, 120, M2_Off, M2_On, 'samples.html', 'left');
menus[3].addItem(null, '&nbsp;&nbsp;Books', null, 120, M2_Off, M2_On, 'books.html', 'left');
menus[3].addItem(null, '&nbsp;&nbsp;Wikis', 9, 120, M2_Off, M2_On, 'javascript:void(0)', 'left');
menus[3].addItem(null, '&nbsp;&nbsp;Blogs', 8, 120, M2_Off, M2_On, 'javascript:void(0)', 'left');
menus[3].addItem(null, '&nbsp;&nbsp;Proofreading', null, 120, M2_Off, M2_On, 'proofing.html', 'left');
menus[3].writeMenu();
menus[3].align='left';

menus[4] = new menu(120, 'vertical', '#000000', '#000000');
menus[4].height = 20;
menus[4].addItem(null, '&nbsp;&nbsp;R&eacute;sum&eacute; / CV', null, 120, M2_Off, M2_On, 'resume.html', 'left');
menus[4].addItem(null, '&nbsp;&nbsp;Skills', null, 120, M2_Off, M2_On, 'skills.html', 'left');
menus[4].addItem(null, '&nbsp;&nbsp;Training', null, 120, M2_Off, M2_On, 'training.html', 'left');
menus[4].writeMenu();
menus[4].align='right';

menus[5] = new menu(120, 'vertical', '#000000', '#000000');
menus[5].height = 20;
menus[5].addItem(null, '&nbsp;&nbsp;Work', null, 120, M3_Off, M3_On, 'samples.html#work', 'left');
menus[5].addItem(null, '&nbsp;&nbsp;Profession', null, 120, M3_Off, M3_On, 'samples.html#profession', 'left');
menus[5].addItem(null, '&nbsp;&nbsp;Leisure', null, 120, M3_Off, M3_On, 'samples.html#leisure', 'left');
menus[5].writeMenu();
menus[5].align='right';

menus[6] = new menu(120, 'vertical', '#000000', '#000000');
menus[6].height = 20;
menus[6].addItem(null, '&nbsp;&nbsp;About', null, 120, M3_Off, M3_On, 'TheBook.html', 'left');
menus[6].addItem(null, '&nbsp;&nbsp;Contents', null, 120, M3_Off, M3_On, 'DCDR/DCDRTOC.html', 'left');
menus[6].writeMenu();
menus[6].align='right';

menus[7] = new menu(120, 'vertical', '#000000', '#000000');
menus[7].height = 20;
menus[7].addItem(null, '&nbsp;&nbsp;About this site', null, 120, M3_Off, M3_On, 'about.html', 'left');
menus[7].addItem(null, '&nbsp;&nbsp;Change Log', null, 120, M3_Off, M3_On, 'changelog.html', 'left');
menus[7].writeMenu();
menus[7].align='right';

menus[8] = new menu(120, 'vertical', '#000000', '#000000');
menus[8].height = 20;
menus[8].addItem(null, '&nbsp;&nbsp;Interrobang', null, 120, M3_Off, M3_On, 'http://www.planetmanuel.com/dirk', 'left');
menus[8].writeMenu();
menus[8].align='right';

menus[9] = new menu(120, 'vertical', '#000000', '#000000');
menus[9].height = 20;
menus[9].addItem(null, '&nbsp;&nbsp;TechWriterWiki', null, 120, M3_Off, M3_On, 'http://www.techwriterwiki.com', 'left');
menus[9].writeMenu();
menus[9].align='right';
