//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(50, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Home", "index.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(150, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Executive Apartments", "vc.htm"));
myNavBar1.addMenu(dhtmlMenu);



dhtmlMenu = new NavBarMenu(50, 0);
dhtmlMenu.addItem(new NavBarMenuItem("York", "york.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(75, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Facilities", "facilities.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(50, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Tour", "tour.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(50, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Tariff", "tariff.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(150, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Bookings/Contact", "bookings.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(75, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Location", "location.htm"));
myNavBar1.addMenu(dhtmlMenu);


//set menu colors
myNavBar1.setColors(ClrBord, ClrBText, ClrBBgnd, ClrHilite, ClrHiBack, ClrDTxt, ClrDBack, ClrDHilite, ClrDHBack)

//uncomment below line to center the menu (valid values are "left", "center", and "right"
myNavBar1.setAlign("center")

var fullWidth;
var yPos1;
var screenWidth;

function init() {

  // Get width of window, need to account for scrollbar width in Netscape.

  fullWidth = getWindowWidth() 
    - (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);

  myNavBar1.create();
  myNavBar1.setzIndex(2);
  
  screenWidth = getWindowWidth()/2;
  yPos1 = screenWidth - (myNavBar1.getWidth()/2);

  myNavBar1.moveTo(yPos1, vOffset);

}
