// JavaScript Document

/* ****   ArrPages ****
   This array contains the meta data for each page in the manual.
   It's created globally because it's accessed by many javascript programs. */

  // This is where you keep the array of metadata for all the pages in your manual

var ArrPages = new Array();

ArrPages[0] = "00.00.00.00|index.shtml|Template Home Page";//this is where you put the home page for each book. Note that first string is absolute section number, in four two digit chunks with periods as dividers


  /* Metadata is:
       [section number.subsection number.subsection number.final section number,page file name, page title].
       The the metadata chapter numbers (xx.xx.xx.xx) DO NOT CORRESPOND to displayed, UI indexing schemes.
  */

  // The first entry (above) is a default value.
  // Dupe one of the push lines and change the data to fit your actual site.
  // The order of the lines does not matter, only that the numbering scheme is entered properly.
  
ArrPages.push("01.00.00.00|intro.shtml|Introduction");
ArrPages.push("02.00.00.00|announce.shtml|What's New");

 // starting here, some metadata entries have a fourth member, the "category" or "chapter."

ArrPages.push("03.00.00.00|template1.shtml|Template 1|Menu Category 1");
ArrPages.push("03.01.00.00|template1a.shtml|Template 1A|Menu Category 1");
ArrPages.push("03.02.00.00|template1b.shtml|Template 1B|Menu Category 1");

ArrPages.push("04.00.00.00|template2.shtml|Template 2 with a Long Title|Menu Category 2");
ArrPages.push("04.01.00.00|template2a.shtml|Template 2A|Menu Category 2");
ArrPages.push("04.02.00.00|template2b.shtml|Template 2B|Menu Category 2");

ArrPages.push("05.00.00.00|template3.shtml|Template 3|Menu Category 2");
ArrPages.push("05.01.00.00|template3a.shtml|Template 3A|Menu Category 2");
ArrPages.push("05.02.00.00|template3b.shtml|Template 3B|Menu Category 2");

ArrPages.push("98.00.00.00|toc.shtml|Site Map|Site Map");
ArrPages.push("99.00.00.00|contact.shtml|Contact Information");

ArrPages.sort();

//JUMP MENU CODE (CUSTOMIZABLE PORTION)
// Global attribute settings for all menus 
g_css_primary_color    = "#942205";       // Color used in 'custom.css' as PRIMARY color
g_css_secondary_color  = "#CCCCCC";       // Color used in 'custom.css' as SECONDARY color
g_fontFamily           = "Arial, Helvetica, sans-serif"; 
g_fontWeight           = "normal"; 
g_fontSize             = 12; 
g_fontColor            = "#000000";            // cell font color when not mouse-over
g_fontColorHilite      = "#FFFFFF";            // cell font color at mouse-over
g_alignHorizontal      = "left";               // horizontal alignment of cell text
g_alignVertical        = "middle";             // vertical alignment of cell text
g_cellHeight           = 24;                   // cell height
g_indent               = 0;                    // cell text indent
g_padHorizontal        = 5;                    // cell padding (within cell)
g_spaceVertical        = 0;                    // cell spacing (between cells)
g_bgColor              = g_css_secondary_color;    // cell background color when not mouse-over 
g_menuHiliteBgColor    = g_css_primary_color;  // cell background color at mouse-over 
g_menuBorder           = 0;                    // menu outside border thickness
g_menuBorderBgColor    = "#CCCCCC";            // menu outside border color
g_bgOpaque             = false;                 // menu border opaque
g_menuContainerBgColor = g_bgColor;            // container background color
g_verticalList         = true;                 // menu list vertical
g_timeout              = 1000;                  // menu timeout
g_subXoffset           = 0;                    // sub-menu X-offset
g_subYoffset           = 0;                    // sub-menu Y-offset
g_posRelative          = true;                // sub-menu relative to item


function LoadMenus() 
{
  if (window.menu_default) return;  // if menus are already built, exit function

  LoadMenus_Helper("03", 150);
  LoadMenus_Helper("04", 200);
  LoadMenus_Helper("05", 250);
  
  menu_default.writeMenus(); // writes all menus
}

