/*
Top Navigational Bar II (By Mike Hall @ Brainjar.com)
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

dhtmlMenu = new NavBarMenu(110, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Home", "index.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(110, 150);
dhtmlMenu.addItem(new NavBarMenuItem("General", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Preview", "http://www.ccon.org/conf00/html/preview.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("About AV2000", "http://www.ccon.org/conf00/html/about.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("About Vlearn 3D 2000", "http://www.ccon.org/conf00/html/aboutlive3d.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(150, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Team & Sponsors", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Team", "http://www.ccon.org/conf00/html/team.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Mailing List Sign-up", "http://www.ccon.org/lists/avatars.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Sponsors", "http://www.ccon.org/conf00/html/sponsors.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Logo Art", "http://www.ccon.org/conf00/html/logos.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Past Conferences", "http://www.ccon.org/event/"));
dhtmlMenu.addItem(new NavBarMenuItem("Press Releases", "http://www.ccon.org/conf00/html/pressrelease.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Community Pages", "http://www.digitalspace.com/avatars"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(150, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Events & Exhibits", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Art Gallery", "http://www.fluxfire.com/av00art/av00art.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Avvy Awards", "http://www.ccon.org/conf00/html/avvy.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Big Board", "http://www.ccon.org/conf00/html/bigboard.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Blaxxun StarshipC3", "http://www.ccon.org/conf00/html/blaxxun.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Booths", "http://www.ccon.org/conf00/html/booths.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("How to Attend", "http://www.ccon.org/conf00/html/attend.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Onlive Traveler/Oz", "http://www.ccon.org/conf00/html/traveler.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Schedule of Events", "http://www.ccon.org/conf00/html/scheduleofevents.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Speakers", "http://www.ccon.org/conf00/html/speakers.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Web Cams", "http://www.ccon.org/conf00/html/webcams.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Worlds Tour", "http://www.ccon.org/conf00/html/worldstour.htm"));
myNavBar1.addMenu(dhtmlMenu);

//set menu colors
myNavBar1.setColors("#F0F0FF", "#000080", "#F0F0FF", "#ffffff", "#9999FF", "#000000", "#CCCCFF", "#ffffff", "#000080")

//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);
}