/*
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(150,150);
dhtmlMenu.addItem(new NavBarMenuItem("Health Topics", ""));
dhtmlMenu.addItem(new NavBarMenuItem("ADD & ADHD", "http://Support4hope.com/add.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Panic Anxiety Disorder", "http://Support4hope.com/anxiety_disorders/index.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Autism", "http://Support4hope.com/autism.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Bipolar Disorder", "http://Support4hope.com/bipolar_disorder/index.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Depression", "http://Support4hope.com/depression/index.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("GAD", "http://Support4hope.com/gad/index.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("OCD", "http://Support4hope.com/ocd/index.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Domestic Abuse", "http://Support4hope.org/domestic_abuse/index.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Phobias", "http://Support4hope.com/phobia.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("PTSD", "http://Support4hope.com/ptsd/index.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Schizophrenia", "http://Support4hope.com/schizophrenia/index.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(150, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Other Information", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Meds By Category", "http://Support4hope.com/medications/index.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Meds By Name", "http://Support4hope.com/medications/index.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Mental Health News", "http://Support4hope.com/news.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Editorial", "http://Support4hope.com/editorial.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("FAQ", "http://Support4hope.com/faq.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("SuicideHotlines.com", "http://Suicidehotlines.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Youth Crisis Hotline<BR>1-800-999-9999", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Do you feel suicidal?<BR>Please call 911 or a local help service, we cannot discuss this in our chats", ""));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(150, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Community", ""));
dhtmlMenu.addItem(new NavBarMenuItem("S4H Chats", "http://Support4hope.com/cbclient.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("S4H Forum Boards", "http://support4hope.com/forum.shtml"));
dhtmlMenu.addItem(new NavBarMenuItem("Special Topic Chats", "http://Support4hope.com/cbclient.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Topic Chat Scedule", "http://Support4hope.com/cgibin/calendar/calendar.cgi"));
dhtmlMenu.addItem(new NavBarMenuItem("S4H Newsletter", "http://Support4hope.com/newsletter_form.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Previous Newsletters", "http://Support4hope.com/newsletter.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Chat Rules", "http://Support4hope.com/chatroomrules.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Forum Rules", "http://Support4hope.com/forumrules.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Chat Slang", "http://Support4hope.com/chatslang.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Search", "http://Support4hope.com/search.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(150, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Legal Info", ""));
dhtmlMenu.addItem(new NavBarMenuItem("User Agreement", "http://Support4hope.com/useragreement.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Disclaimer", "http://Support4hope.com/disclaimer.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Pivacy Policy", "http://Support4hope.com/privacypolicy.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(150, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Contact Us", ""));
dhtmlMenu.addItem(new NavBarMenuItem("S4H Online Store", "http://Support4hope.com/albums.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Sponsors", "http://Support4hope.com/sponsor.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Our Awards!!", "http://Support4hope.com/awards.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Special Thank You Page", "http://Support4hope.com/thanks2.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Events Calendar", "http://Support4hope.com/cgibin/calendar/calendar.cgi.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Comments", "http://Support4hope.com/comments_form.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Read Comments", "http://Support4hope.com/comments.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Administrator", "mailto:admin@support4hope.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Webmaster", "mailto:webmaster@Support4hope.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Mailing Address: Support4Hope <BR>PO Box 184 <BR> Deer Lodge,TN 37726", ""));
myNavBar1.addMenu(dhtmlMenu);

//set menu colors
myNavBar1.setColors("#9933CC", "#FFFF00", "#0000FF", "#000000", "#FFFF99", "#000000", "#66CCFF", "#FF0000", "#FFFFCC")

//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);
}