/*
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(100, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Home", "index.shtml"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(150, 180);
dhtmlMenu.addItem(new NavBarMenuItem("About the Ministry", ""));
dhtmlMenu.addItem(new NavBarMenuItem("What are Healing Rooms", "./ministry.shtml"));
dhtmlMenu.addItem(new NavBarMenuItem("History of Healing Rooms", "./history.shtml"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(150, 200);
dhtmlMenu.addItem(new NavBarMenuItem("NYS Healing Rooms", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Healing Auburn", "http://healingauburn.org"));
dhtmlMenu.addItem(new NavBarMenuItem("Healing Long Island", "http://longislandhealingrooms.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Healing Rochester", "http://healingroomsrochny.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Healing Syracuse", "http://healingsyracuse.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Healing Rooms of East Hampton", "http://healingroomseh.com"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(120, 150);
dhtmlMenu.addItem(new NavBarMenuItem("IAHR", ""));
dhtmlMenu.addItem(new NavBarMenuItem("About IAHR", "http://healingrooms.com/iahr.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Statement of Faith", "http://healingrooms.com/believe.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Benefits", "http://www.healingrooms.com/iahr.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Leadership", "http://www.healingrooms.com/iahr/iahr_leadership.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("How to Join", "http://www.healingrooms.com/iahr/iahr_join.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Starting Healing Rooms", "http://healingrooms.com/starting_healing_rooms.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Application", "http://healingrooms.com/iahr/iahr_app.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("All Healing Rooms", "http://healingrooms.com/iahr/iahr_rooms.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(120, 150);
dhtmlMenu.addItem(new NavBarMenuItem("About Healing", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Ministering to the Sick", "http://healingrooms.com/ministering.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Keeping your Healing", "http://healingrooms.com/keeping_your_healing.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(120, 180);
dhtmlMenu.addItem(new NavBarMenuItem("Resources", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Books and Tapes", "./books.shtml"));
dhtmlMenu.addItem(new NavBarMenuItem("Conferences and Events", "./faithx17.shtml"));
myNavBar1.addMenu(dhtmlMenu);

//set menu colors
//myNavBar1.setColors("#000000", "#000000", "#C0C0C0", "#ffffff", "#666666", "#000000", "#cccccc", "#ffffff", "#000080")
myNavBar1.setColors("#0000ff", "#ffffff", "#000088", "#ff0000", "#0000ff", "#ffffff", "#000088", "#ffffff", "#000080")
//border color, text color, fill color, menu selection text mouseover color, mouseover fill color,
//mouseover subpanel text color, etc 
//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 - 20);
  myNavBar1.create();
  myNavBar1.setzIndex(2);
  //UNCOMMENT BELOW LINE TO MOVE MENU DOWN 50 pixels
  myNavBar1.moveTo(10, 170);
}

