/*
Top Navigational Bar II (By Mike Hall @ Brainjar.com)
Last updated: 00/05/08
Permission granted to 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

dhtmlMenu = new NavBarMenu(100, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Introduction", "intro.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 120);
dhtmlMenu.addItem(new NavBarMenuItem("Transportation", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Cars", "car.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Planes", "planes.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Space", "space.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(110, 120);
dhtmlMenu.addItem(new NavBarMenuItem("Med. Science", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Surgery", "surgery.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("DNA", "dna.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Cloning", "cloning.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Computers", ""));
dhtmlMenu.addItem(new NavBarMenuItem("The Internet", "internet.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Games", "games.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Virtual Reality", "vr.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Misc. Stuff", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Fun Stuff", "fun.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Links", "links.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Credits", "credits.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Email Us!", "mailto:abintan@hotmail.com"));
myNavBar1.addMenu(dhtmlMenu);


//set menu colors
myNavBar1.setColors("#000000", "#ffe4c4", "#000000", "#ffffff", "#000000", "#ffe4c4", "#000000", "#ffffff", "#000000")
myNavBar1.setFonts("Arial" , null, null, "16", "Arial", null, null, "14")

//uncomment below line to center the menu (valid values are "left", "center", and "right"
//myNavBar1.setAlign("center")

var fullWidth;

function init() {

  // Get width of window, need to account for scrollbar width in Netscape.

  fullWidth = getWindowWidth() 
    - (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);

  myNavBar1.resize(fullWidth);
  myNavBar1.create();
  myNavBar1.setzIndex(2);
}
