/*
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(85, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Hem", "../html/valkommen.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(85, 120);
dhtmlMenu.addItem(new NavBarMenuItem("Personal", "../html/personal.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(85, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Måleri", "../html/maleri.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(85, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Nyheter", "../html/nyheter.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(85, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Rekrytering", "../html/rekrytering.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(85, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Kontakt", "../html/kontakt.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(85, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Länkar", "../html/links.html"));
myNavBar1.addMenu(dhtmlMenu);

//set menu colors
myNavBar1.setColors("#000000", "#000000", "#9cc16a", "#000000", "#a4ffa4", "#000000", "#00c663", "#ffffff", "#a4ffa4")

//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);
}
