/* AUTEUR: Nagroll */
/* DATE DE CREATION: 18/11/00 */
/*
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(75, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Home", "index.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(75, 150);
dhtmlMenu.addItem(new NavBarMenuItem("News", "news.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(85, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Art gallery", "porart.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(75, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Cars", "porcar.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(145, 175);
dhtmlMenu.addItem(new NavBarMenuItem("Museums/Exhibitions", "pormus.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(125, 125);
dhtmlMenu.addItem(new NavBarMenuItem("Popular Classics", "porclas.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(75, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Forum", "porfor.html"));
myNavBar1.addMenu(dhtmlMenu);



dhtmlMenu = new NavBarMenu(75, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Books", "books.html"));
myNavBar1.addMenu(dhtmlMenu);


//set menu colors
myNavBar1.setColors("#000000", "#000000", "#cccccc", "#ffffff", "#C0C0C0", "#000000", "#cccccc", "#ffffff", "#C0C0C0")

//uncomment below line to center the menu (valid values are "left", "center", and "right"
//myNavBar1.setAlign("center")
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);
}