/*
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(100, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Home", "/index.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 120);
dhtmlMenu.addItem(new NavBarMenuItem("Businesses", "/bus/index.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Resorts", "/bus/index.html#resorts"));
dhtmlMenu.addItem(new NavBarMenuItem("Arrow Sports", "/bus/arrow/index.html"));
dhtmlMenu.addItem(new NavBarMenuItem("DCR Communications", "javascript:window.open('http://www.dcrcommunications.com','dcr','')"));
dhtmlMenu.addItem(new NavBarMenuItem("Great Northern Equipment", "/bus/gne/index.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Infinity Books Online", "/bus/ibooks/index.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Judy Garland Museum", "javascript:window.open('http://www.judygarlandmuseum.com','judyg','')"));
dhtmlMenu.addItem(new NavBarMenuItem("Mary Kay Cosmetics (ISD Ann Pierzina)", "javascript:window.open('http://www.marykay.com/APierzina','myky','')"));
dhtmlMenu.addItem(new NavBarMenuItem("Mary Kay Cosmetics (ISD Brenda Valtinson", "javascript:window.open('http://www.marykay.com/BValtinson','myky2','')"));
dhtmlMenu.addItem(new NavBarMenuItem("Photo Express", "/bus/photoexpress/index.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Treasure Bay Printing", "/bus/tbp/index.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(110, 115);
dhtmlMenu.addItem(new NavBarMenuItem("Services", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Job Openings", "/jobs/index.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Weather", "/weather.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Web Search", "/search.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Info", ""));
dhtmlMenu.addItem(new NavBarMenuItem("About", "/about.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Contact", "/contact.html"));
myNavBar1.addMenu(dhtmlMenu);

//set menu colors
myNavBar1.setColors("#000000", "#FFFFFF", "#CC0033", "#ffffff", "#000000", "#000000", "#0099CC", "#FFCC00", "#FFFFFF")

//uncomment below line to center the menu (valid values are "left", "center", and "right"
myNavBar1.setAlign("right")

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);
}