/******************************************************************************
* nasetup.js                                                                  *
*                                                                             *
* Copyright 2000 by Mike Hall.                                                *
* Web address: http://www.brainjar.com                                        *
* Last update: August 29th, 2001.                                             *
*                                                                             *
* Setup the menus is a nice to include file.                                  *
* Note: requires dhtmllib.js                                                  *
******************************************************************************/
/*
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

dhtmlMenu = new NavBarMenu(100, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Home", "index.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 0);
dhtmlMenu.addItem(new NavBarMenuItem("News(rss)", "news.php"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 180);
dhtmlMenu.addItem(new NavBarMenuItem("Games", ""));
dhtmlMenu.addItem(new NavBarMenuItem("MineXweeper", "minexweeper.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Connect4", "connect4.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Boxes", "boxes.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Others", "others.html"));
dhtmlMenu.addItem(new NavBarMenuItem("sensitiveX (Jamie Fuller)", "http://www.jamiefuller.co.uk/sensitivex.php"));
dhtmlMenu.addItem(new NavBarMenuItem("Jihad (theunprofessional)","http://www.theunprofessional.com/"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 180);
dhtmlMenu.addItem(new NavBarMenuItem("Tools", ""));
dhtmlMenu.addItem(new NavBarMenuItem("eXmail", "exmail.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 180);
dhtmlMenu.addItem(new NavBarMenuItem("Dowloads", ""));
dhtmlMenu.addItem(new NavBarMenuItem("MineXweeper", "http://xboxgames.x-b-o-x.net/downloads/XBOX.MineXweeper.zip"));
dhtmlMenu.addItem(new NavBarMenuItem("Connect4", "http://xboxgames.x-b-o-x.net/downloads/XBOX.Connect4_1.1.zip"));
dhtmlMenu.addItem(new NavBarMenuItem("Boxes(prototype)", "http://xboxgames.x-b-o-x.net/downloads/XBOX.Boxes.zip"));
dhtmlMenu.addItem(new NavBarMenuItem("Othello(prototype)", "http://xboxgames.x-b-o-x.net/downloads/XBOX.Othello.zip"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Search", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Google", "http://www.google.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Alta Vista", "http://www.altavista.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Infoseek", "http://www.infoseek.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Excite", "http://www.excite.com"));
dhtmlMenu.addItem(new NavBarMenuItem("HotBot", "http://www.hotbot.com"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Guestbook", "http://members.lycos.co.uk/jippie666/guestbook.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Useful Links", ""));
dhtmlMenu.addItem(new NavBarMenuItem("xbox-scene", "http://xbox-scene.com"));
dhtmlMenu.addItem(new NavBarMenuItem("slashdot org", "http://slashdot.org/"));
dhtmlMenu.addItem(new NavBarMenuItem("Freewarejava.com", "http://freewarejava.com"));
dhtmlMenu.addItem(new NavBarMenuItem("BrainJar", "http://brainjar.com"));
dhtmlMenu.addItem(new NavBarMenuItem("XFactorDev", "http://www.xfactordev.net/index.php"));
dhtmlMenu.addItem(new NavBarMenuItem("XboxDev", "http://www.xbdev.net/xbdev.php"));
dhtmlMenu.addItem(new NavBarMenuItem("Wired", "http://www.wired.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Dynamic Drive", "http://www.dynamicdrive.com"));
myNavBar1.addMenu(dhtmlMenu);

//set menu colors
myNavBar1.setColors("#000099", "#cc0000", "#ffff99", "#0000ff", "#ffffff", "#0033ff", "#ffffff", "#cc3300", "#ffffcc")

//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);
  //UNCOMMENT BELOW LINE TO MOVE MENU DOWN 50 pixels
  //myNavBar1.moveTo(0, 50);
}
