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(120, 130);
dhtmlMenu.addItem(new NavBarMenuItem(" Corporate Profile", "c_profile.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Chairman's Desk", "chairman.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Management Team", "management.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Financial Details", "financial.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Milestones", "milestones.html"));
dhtmlMenu.addItem(new NavBarMenuItem("News Bulletin", "bulletin.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(130, 250);
dhtmlMenu.addItem(new NavBarMenuItem(" Group Companies", "group_co.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Burn Standard Co Ltd", "co_burn.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Braithwaite & Co Ltd", "co_braithwaite.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Bharat Wagon & Engineering Co Ltd", "co_bharat.html"));
dhtmlMenu.addItem(new NavBarMenuItem("The Braithwaite Burn & Jessop Construction Ltd", "co_jessop_burn.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(130, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Products & Services", "product_service.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Railway Rolling Stocks", "railway_eng.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Cranes & Materials Handling", "materials.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Bridges & Structurals", "bridge.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Refractories", "refractories.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Projects", "projects.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(120, 120);
dhtmlMenu.addItem(new NavBarMenuItem(" Sectors Served", "sectors.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Transportation", "transport.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Ports & Dockyards", "ports.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Steel", "steel.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Construction", "construction.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Energy", "energy.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Turnkey Projects", "turnkey_projects.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 100);
dhtmlMenu.addItem(new NavBarMenuItem(" Exports", "exports.html"));
myNavBar1.addMenu(dhtmlMenu);

//set menu colors
//setColors(bdColor, hdrFgColor, hdrBgColor, hdrHiFgColor, hdrHiBgColor, itmFgColor, itmBgColor, itmHiFgColor, itmHiBgColor)
myNavBar1.setColors("#ffffff", "#000080", "#ABCCFA", "#ffffff", "#000080", "#000080", "#ABCCFA", "#ffffff", "#4668E4")

//set menu borders, spacing and seperation
myNavBar1.setSizes(1, 2, 1)

//set menu fonts
//setFonts(hdrFamily, hdrStyle, hdrWeight, hdrSize, itmFamily, itmStyle, itmWeight, itmSize) 
myNavBar1.setFonts("Verdana,Arial,Helvetica", "normal", "regular", "8pt", "Verdana,Arial,Helvetica", "normal", "regular", "8pt")

//below line to center the menu (valid values are "left", "center", and "right")
//myNavBar1.setAlign("right")

//below line to center the menu text (valid values are "left", "center", and "right")
//setText(hdr, item)
//myNavBar1.setText("center", "left")

myNavBar1.moveTo(0, 90)

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);
}
