
/*
Top Navigational Bar II (By Mike Hall @ Brainjar.com)
Last updated: 00/05/08
Permission granted to 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(80, 130);
dhtmlMenu.addItem(new NavBarMenuItem("Home", "../index.html"));
myNavBar1.addMenu(dhtmlMenu);


dhtmlMenu = new NavBarMenu(90, 130);
dhtmlMenu.addItem(new NavBarMenuItem("About Us", "../us.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Message from the President", "../message.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Policy Statements", "../policystatement.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("History", "../history.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Staff/Board", "../staff.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Careers", "../career.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Contact Us", "../contact.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(90, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Services", "../services/index.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Partnership Dev.", "../services/partner.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Resources", "../services/resource.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Practitioners/Prof./Public Awareness & Education", "../services/aware.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Evaluation & Technical Assistance", "../services/evaluate.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Coordinate & Facilitate Conferences", "../services/coord.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Training", "../services/training.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Host Organization & Incubation", "../services/host.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Workshops", "../services/workshop.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Peer Learning", "../services/peer.htm"));
myNavBar1.addMenu(dhtmlMenu);


dhtmlMenu = new NavBarMenu(90, 110);
dhtmlMenu.addItem(new NavBarMenuItem("Programs", "../program/index.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("SFFI", "../program/sffi.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("PFF", "../program/pff.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Bay Area PFF", "../program/bapff.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Common Ground Dialog", "../program/CGD.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Community Service", "../program/Community.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Family and Community Violence Prevention", "../program/FCVP.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("LPDIA", "../program/legislation.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("YDPI", "../program/ydpi.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("HUD Fatherhood Initiative", "../program/HUDFather.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(90, 130);
dhtmlMenu.addItem(new NavBarMenuItem("Calendar", "../calendar/index.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Upcoming Events", "../calendar/upcoming.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Event Registration", "../calendar/event.htm"));
myNavBar1.addMenu(dhtmlMenu);

//set menu colors
myNavBar1.setColors("#000084", "#ccccff", "#000084", "#ffffff", "#9999ff", "#000000", "#ccccff", "#ffffff", "#9999ff")

//set menu fonts
myNavBar1.setFonts("Arial", "normal", "normal", "10pt", "Arial", "normal", "normal", "9pt")


//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(600);

  myNavBar1.create();
  myNavBar1.setzIndex(2);
}

