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(130, 170);
dhtmlMenu.addItem(new NavBarMenuItem("Home", ""));
dhtmlMenu.addItem(new NavBarMenuItem("www.artmouldings.co.za","../Home/Home.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(130, 140);
dhtmlMenu.addItem(new NavBarMenuItem("Corporate", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Philosophy", "../Corporate/Philosophy.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Directors", "../Corporate/Directors.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Branches", "../Corporate/Branches.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(130, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Products", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Wood Mouldings", "../Products/ProdList_WMP1.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Object Boxes", "../Products/Object_Boxes.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Matt Boards", "../Products/Moorman_MattBrds.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Ornates", "../Products/Ornates_1.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Decor Beadings", "../Products/Decor_Beadings.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Machinery", "../Products/machinery_1.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Wood Moulding Samples", "../Products/Samples_1.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(160, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Marketing & Sales", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Ordering and Delivery", "../MarketingSales/Ordering_Delivery.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Terms and Conditions", "../MarketingSales/Terms_Conditions.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Returns", "../MarketingSales/Returns.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Credit Application", "../MarketingSales/MainCreditApp.html"));
myNavBar1.addMenu(dhtmlMenu);


dhtmlMenu = new NavBarMenu(130, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Contacts", ""));
dhtmlMenu.addItem(new NavBarMenuItem("General E-mail addresses", "../Contacts/Contacts.html"));
myNavBar1.addMenu(dhtmlMenu);

//set menu colors
myNavBar1.setColors("#3333ff", "#eee8aa", "#3333ff", "#3333ff", "#99ccff", "#000000", "#cccccc", "#eee8aa", "#3333ff")
myNavBar1.moveTo(0, 65)
myNavBar1.setSizes(1, 1, 1)
//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);
}