/******************************************
* navcond.js - Condensed version of       *
*              dhtmllib.js and navbar.js. *
* Copyright 2000 by Mike Hall.            *
* Web address: http://www.brainjar.com    *
* Last update: August 29th, 2001.         *
******************************************/
/*
Top Navigational Bar II (By Mike Hall)
Last updated: 00/05/08
Permission granted and modified by Dynamicdrive.com to include script in archive
For this and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var myNavBar1 = new NavBar(0);
var dhtmlMenu;

//define menu items (first parameter of NavBarMenu specifies main category width, second specifies sub category width in pixels)
//add more menus simply by adding more "blocks" of same code below


//set menu colors
//colours are: drop down bkgd lines, top menu text, top menu bkgd, top text colour, top menu bkgd stays, page identifier, text page bkgd identifier, drop menu text, drop down bkgd, roll over drop down, roll over drop bkgd, 
myNavBar1.setColors("#cccccc", "#000000", "#cccccc", "#FF0000", "#cccccc", "#ffffff", "#ff0000", "#000000", "#cccccc", "#ff0000", "#ffffff", "#000000", "#00ff00")


//set menu font
myNavBar1.setFonts("Verdana", "normal", "bold", "10px", "Verdana", "normal", "bold", "10px")

//uncomment below line to center the menu (valid values are "left", "center", and "right"
//myNavBar1.setAlign("center")

//set border and padding on drop down items
myNavBar1.setSizes(0, 2, 3)

//set position of navigation bar
myNavBar1.moveTo(0,91)

var fullWidth;

function init(menuSelIndex,itemSelIndex) {

  // Get width of window, need to account for scrollbar width in Netscape.

  fullWidth = getWindowWidth() 
    - (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);

  myNavBar1.setSelected(menuSelIndex,itemSelIndex);
  myNavBar1.resize(fullWidth);
  myNavBar1.create();
  myNavBar1.setzIndex(2);

}
