//Author: Younes Bouab
//Date:   05-02-02
//Title:  Menu Configuration: Config.js
//
//Copyright: Younes Bouab 2001 
//Technical Support: bouaby@SUPEReDITION.com
//
/////////////////////////////////////////////////////////////////////////////////////
//Copyright (c) 2002 Younes Bouab (www.SUPEReDITION.com) Version 1.0
//
//Eperience the DHTML Menu - Get it at www.SUPEReDITION.com
//
//This script can be used freely as long as all copyright messages are intact.
//
//Menu HomePage: http://www.superedition.com/Main.asp?Page=Tutorials&query=Javascript
//////////////////////////////////////////////////////////////////////////////////////


//Modified: Lance A. Fujieki
//
//Usage:    cmoreDS Navigation


//Menu Configuration File
/////////////////////////////////////////////////
/////You can change the value of a variable 
/////below or turn it off by making it equal "" 
/////to suit your needs, but you should not
/////delete any variable.
///////////////////////////////////////////////


/**********************************************/
//Menu Type: Do Not Change! 
/**********************************************/
MENU_TYPE=1; //1: Horizental
             //2: Vertical

Sort=0;   //Sort: When set to 1, the 
          //menu items are sorted according 
          //to the index value. This feature
          //can be used when a server side
          //language (asp. jsp. php,...)
          //is used to generate the menu items 
          //from a database and they are not always 
          //in order.  


/**********************************************/
//Menu Starting point
/**********************************************/
TOP=55;

var width;
if (window.innerWidth) {
  // Non-IE
  width = window.innerWidth - 160;
}
else {
  // IE
  width = document.documentElement.clientWidth - 160; 
}

LEFT=(width-700)/2;



/**********************************************/
//Menu item Dimension
/**********************************************/
WIDTH=142;
HEIGHT=20;


/**********************************************/
//Layers Alignment
/**********************************************/
HALIGN="LEFT";
VALIGN="MIDDLE";


/**********************************************/
//Global Menu Settings for all
/**********************************************/
//Main Menu Items
LayerColor="#FFFFFF";
LayerRollColor="#AFFFFF";
FONT="verdana";
FONTSIZE="2";
FONTSTYLE="" // "": Normal, "B": Bold, "I": Italic
FONTCOLOR="#000033";
ROLL_FONTCOLOR="#000000";
START_CHAR="&nbsp;"; //Starting Character


/**********************************************/
//Main Parent Settings: Optional 
// leave empty "", if you would like to use 
// the Global Menu Settings above
/**********************************************/
Main_Parent_LayerColor="";
Main_Parent_LayerRollColor=""; 
Main_Parent_FONT="verdana";
Main_Parent_FONTSTYLE="";
Main_Parent_FONTSIZE="2";
Main_Parent_FONTCOLOR="";
Main_Parent_ROLL_FONTCOLOR="";
Main_Parent_START_CHAR="&nbsp;";


/**********************************************/
//Layer Border Properties
/**********************************************/
LayerBorderSize="1";
LayerBorderStyle="solid";
LayerBorderColor="#000000";


/**********************************************/
//Menu Children Offsets
/**********************************************/
TOP_OFFSET=5;
LEFT_OFFSET=5;


/**********************************************/
//Create Menu Heirarcy
/**********************************************/
function MenuBar()
{
  AddMenu("1"  ,  "1"  ,  "Modify"                 ,  ""  ,  ""  , "modify1.html");
  AddMenu("2"  ,  "2"  ,  "Data Extraction"        ,  ""  ,  ""  , "");
  AddMenu("3"  ,  "2"  ,  "Bottle"                 ,  ""  ,  ""  , "bextraction.html");
  AddMenu("4"  ,  "2"  ,  "CTD"                    ,  ""  ,  ""  , "cextraction.html");
  AddMenu("5"  ,  "5"  ,  "Vertical Profiles"      ,  ""  ,  ""  , "");   
  AddMenu("6"  ,  "5"  ,  "Display"                ,  ""  ,  ""  , "");   
  AddMenu("7"  ,  "6"  ,  "Bottle"                 ,  ""  ,  ""  , "bdisplay.html");
  AddMenu("8"  ,  "6"  ,  "CTD"                    ,  ""  ,  ""  , "cdisplay.html");
  AddMenu("20" ,  "6"  ,  "Underway"               ,  ""  ,  ""  , "udisplay.html");
  AddMenu("9"  ,  "9"  ,  "Horizontal Profiles"    ,  ""  ,  ""  , "");   
  AddMenu("10" ,  "9"  ,  "Contour"                ,  ""  ,  ""  , "");
  AddMenu("11" ,  "10" ,  "Bottle"                 ,  ""  ,  ""  , "bcontour.html");  
  AddMenu("12" ,  "10" ,  "CTD"                    ,  ""  ,  ""  , "ccontour.html");  
  AddMenu("13" ,  "13" ,  "Miscellaneous"          ,  ""  ,  ""  , "");   
  AddMenu("21" ,  "13" ,  "Mixed-layer Depth"      ,  ""  ,  ""  , "mldepth.html");   
  AddMenu("14" ,  "14" ,  "<strong>Help</strong>"  ,  ""  ,  ""  , "");   
}
