<!-- Begin
/* Syntaxes:
 *
 * menu[menuNumber][0] = new Menu('menu ID', left, top, width, 'mouseover colour',
 *'background colour', 'border colour');
 * Left and Top are measured on-the-fly relative to the top-left corner of its trigger.
 *
 * menu[menuNumber][itemNumber] = new Item('Text', 'URL', vertical spacing to next item, 
 *target menu number);
 * If no target menu (popout) is desired, set it to 0. All menus must trace back their
 * targets to the root menu! That is, every menu must be targeted by one item somewhere.
 * Even if you're not writing the root menu, you must still specify its settings here.
 */
var menu = new Array();
// Default colours passed to most menu constructors (just passed to functions, not
// a global variable - makes things easier to change later).
var defOver = 'orange', defBack = 'red', defBorder = '#000000';
// Default height of menu items - the spacing to the next item, actually.
var defHeight = 22;
// Menu 0 is the special, 'root' menu from which everything else arises.
menu[0] = new Array();
// Pass a few different colours, as an example.
menu[0][0] = new Menu('rootMenu', 0, 0, 80, 'orange', 'darkorange', defBorder);
// Notice how the targets are all set to nonzero values...
menu[0][1] = new Item('Welcome', '#', defHeight, 1);
menu[0][2] = new Item('Information', '#', defHeight, 2);
menu[0][3] = new Item('Gallery', '#', defHeight, 3);
menu[0][4] = new Item('Fun', '#', defHeight, 4);
menu[0][5] = new Item('Links', '#', defHeight, 6);
menu[0][6] = new Item('Feedback', '#', defHeight, 7);
menu[0][7] = new Item('Guestbook', '#', defHeight, 8);
menu[0][8] = new Item('Site Map', '#', defHeight, 9);
menu[1] = new Array();
menu[1][0] = new Menu('welcomeMenu', 0, 22, 100, defOver, defBack, defBorder);
menu[1][1] = new Item('To Tiger Tales', 'index.html', defHeight, 0);
menu[2] = new Array();
menu[2][0] = new Menu('infoMenu', 0, 22, 80, defOver, defBack, defBorder);
menu[2][1] = new Item('Introduction', 'introduction.html', defHeight, 0);
menu[2][2] = new Item('5 Tigers', '#', defHeight, 5);
menu[2][3] = new Item('Tiger Facts', 'facts.html', defHeight, 0);
menu[3] = new Array();
menu[3][0] = new Menu('galleriesMenu', 0, 22, 100, defOver, defBack, defBorder);
menu[3][1] = new Item('Gallery', '#', defHeight, 10);
menu[3][2] = new Item('My Gallery', '#', defHeight, 11);
menu[3][3] = new Item('Art Gallery', 'artgallery.html', defHeight, 0);
menu[3][4] = new Item('Slideshow', 'preload.html', defHeight, 0);menu[4] = new Array();
// The File menu is positioned 0px across and 22 down from its trigger, and is 80 wide.
menu[4][0] = new Menu('funMenu', 0, 22, 80, defOver, defBack, defBorder);
menu[4][1] = new Item('WordSearch', 'wordsearch.html', defHeight, 0);
menu[4][2] = new Item('Puzzle', 'puzzle.html', defHeight, 0);
// Non-zero target means this will trigger a popup.
menu[4][3] = new Item('TiggerSong', 'tiggerssong.html', defHeight, 0);
menu[4][4] = new Item('Tiger Quiz', 'tigerquiz.html', defHeight, 0);
menu[4][5] = new Item('Tiger Mask', 'tigermask.html', defHeight, 0);
menu[5] = new Array();
// This is across but not down... a horizontal popout (with crazy colours :)...
menu[5][0] = new Menu('tigerspeciesMenu', 85, 0, 100, '#333366', '#666699', '#663399');
menu[5][1] = new Item('Bengal', 'bengal.html', defHeight, 0);
menu[5][2] = new Item('Sumatran', 'sumatran.html', defHeight, 0);
menu[5][3] = new Item('Siberian', 'siberian.html', defHeight, 0);
menu[5][4] = new Item('IndoChinese', 'indochinese.html', defHeight, 0);
menu[5][5] = new Item('South China', 'southchina.html', defHeight, 0);
menu[6] = new Array();
menu[6][0] = new Menu('linksMenu', 0, 22, 80, defOver, defBack, defBorder);
menu[6][1] = new Item('Leap Here', 'links.html', defHeight, 0);
menu[7] = new Array();
menu[7][0] = new Menu('feedbackMenu', 0, 22, 80, defOver, defBack, defBorder);
menu[7][1] = new Item('Feed Me', 'feedback.html', defHeight, 0);
menu[8] = new Array();
menu[8][0] = new Menu('guestbookMenu', 0, 22, 80, defOver, defBack, defBorder);
menu[8][1] = new Item('Sign Me', 'tigerguestbook.html', defHeight, 0);
menu[9] = new Array();
menu[9][0] = new Menu('sitemapMenu', 0, 22, 80, defOver, defBack, defBorder);
menu[9][1] = new Item('Explore', 'sitemap.html', defHeight, 0);
menu[10] = new Array();
menu[10][0] = new Menu('galleryMenu', 105, 0, 100, '#333366', '#666699', '#663399');
menu[10][1] = new Item('Gallery 1', 'gallery1.html', defHeight, 0);
menu[10][2] = new Item('Gallery 2', 'gallery2.html', defHeight, 0);
menu[10][3] = new Item('Gallery 3', 'gallery3.html', defHeight, 0);
menu[10][4] = new Item('Gallery 4', 'gallery4.html', defHeight, 0);
menu[10][5] = new Item('Gallery 5', 'gallery5.html', defHeight, 0);
menu[11] = new Array();
menu[11][0] = new Menu('mygalleryMenu', 105, 0, 100, '#333366', '#666699', '#663399');
menu[11][1] = new Item('My Gallery 1', 'mygallery1.html', defHeight, 0);
menu[11][2] = new Item('My Gallery 2', 'mygallery2.html', defHeight, 0);
menu[11][3] = new Item('My Gallery 3', 'mygallery3.html', defHeight, 0);
menu[11][4] = new Item('My Gallery 4', 'mygallery4.html', defHeight, 0);
newRoot = startDL('rootMenu', 0, 0, '730', 17, 'hidden', 'darkorange', null, 100, '');
newRoot += startDL('rootMenu1', 5, 0, 80, 17, 'inherit', 'darkorange', null, 100, mouseProps(0, 1));
newRoot += '<span class="Item">  Welcome</span>' + endDL;
newRoot += startDL('rootMenu2', 85, 0, 80, 17, 'inherit', 'darkorange', null, 100, mouseProps(0, 2));
newRoot += '<span class="Item">  Information</span>' + endDL;
newRoot += startDL('rootMenu3', 165, 0, 80, 17, 'inherit', 'darkorange', null, 100, mouseProps(0, 3));
newRoot += '<span class="Item">  Gallery</span>' + endDL;
newRoot += startDL('rootMenu4', 245, 0, 80, 17, 'inherit', 'darkorange', null, 100, mouseProps(0, 4));
newRoot += '<span class="Item">  Fun</span>' + endDL;
newRoot += startDL('rootMenu5', 325, 0, 80, 17, 'inherit', 'darkorange', null, 100, mouseProps(0, 5));
newRoot += '<span class="Item">  Links</span>' + endDL;
newRoot += startDL('rootMenu6', 405, 0, 80, 17, 'inherit', 'darkorange', null, 100, mouseProps(0, 6));
newRoot += '<span class="Item">  Feedback</span>' + endDL;
newRoot += startDL('rootMenu7', 485, 0, 80, 17, 'inherit', 'darkorange', null, 100, mouseProps(0, 7));
newRoot += '<span class="Item">  Guestbook</span>' + endDL;
newRoot += startDL('rootMenu8', 565, 0, 80, 17, 'inherit', 'darkorange', null, 100, mouseProps(0, 8));
newRoot += '<span class="Item">  Site Map</span>' + endDL;
newRoot += endDL;
// Pass this two strings - the first is HTML to write a custom root menu, or null to
// generate one normally. The second is the popout indicator HTML - try an image...?
// Try writeMenus(null, '<img src="...">'); in your own script.
writeMenus(newRoot, '<IMG SRC="images/arrow.gif">');
// This is a quick snippet that captures all clicks on the document and hides the menus
// every time you click. Use if you want.
if (isNS4) document.captureEvents(Event.CLICK);
document.onclick = clickHandle;
function clickHandle(evt) {
if (isNS4) document.routeEvent(evt);
hideAllBut(0);
}
// Show root menu command - place in an onLoad="..." type function if you want.
eval(docObj + menu[0][0].id + styObj + '.visibility = "visible"');
// This is just the moving command for the example.
function moveRoot() {
rM = eval(docObj + menu[0][0].id + styObj);
if (parseInt(rM.top) < 40) rM.top = 40;
else rM.top = 0;
}
//  End -->

