/*
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(100, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Inicio", "index.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 120);
dhtmlMenu.addItem(new NavBarMenuItem("Ajedrez", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Partidas", "partidaspgn.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Mis Trabajos", "trabajos.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Máquinas", "maquinas.htm"));

myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(110, 120);
dhtmlMenu.addItem(new NavBarMenuItem("Fotografías", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Fotos Ajedrez en Burgos", "fotosdeburgos.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Fotos de Lerma", "fotosdelerma.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Imágenes de Ajedrez", "imageschess.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Caricaturas", "caricatura.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Mis Amigos :-)", ""));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Listas Elo", "listas_elo.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Burgos", "listas_elo.htm#burgos"));
dhtmlMenu.addItem(new NavBarMenuItem("Top 100 mundial", "listas_elo.htm#top100"));
dhtmlMenu.addItem(new NavBarMenuItem("FEDA", "http://www.ajedrezaranjuez.com/feda.aspx"));
dhtmlMenu.addItem(new NavBarMenuItem("FIDE", "http://www.ajedrezaranjuez.com/fide.aspx"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Descargas", "descargas.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Software VIP A21", "http://www.ajedrez21.com/software"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Eventos", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Olimpiadas Calvia", "calvia2004.htm"));

dhtmlMenu.addItem(new NavBarMenuItem("I Mundial Humanos-Maquinas", "humanos_maquinas.htm"));


myNavBar1.addMenu(dhtmlMenu);



//set menu colors 
//1)borde 2)color letra 3)color fondo 
//4)color letra selecc 5)color fondo selección título 
//6) color letra submenu 7) color fondo submenú
//8) color letra submenú seleccionado 8) color fondo submenú selecc
//myNavBar1.setColors("#000000", "#000000", "#C0C0C0", "#ffffff", "#666666", "#000000", "#cccccc", "#ffffff", "#000080")
myNavBar1.setColors("#000000", "#000000", "#abcdef", "#fffaaa", "#666666", "#000000", "#abcdef", "#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);
}
