

/*

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, 100);

dhtmlMenu.addItem(new NavBarMenuItem("cards", ""));

dhtmlMenu.addItem(new NavBarMenuItem("art", "art_card1.htm"));

dhtmlMenu.addItem(new NavBarMenuItem("holiday", "holi_card1.htm"));

dhtmlMenu.addItem(new NavBarMenuItem("naughty", "naughty_card1.htm"));

myNavBar1.addMenu(dhtmlMenu);



dhtmlMenu = new NavBarMenu(100, 100);

dhtmlMenu.addItem(new NavBarMenuItem("art", ""));

dhtmlMenu.addItem(new NavBarMenuItem("art", "art.htm"));

dhtmlMenu.addItem(new NavBarMenuItem("design", "design.htm"));

dhtmlMenu.addItem(new NavBarMenuItem("photos", "photos.php"));

dhtmlMenu.addItem(new NavBarMenuItem("my favorite things", "favs.htm"));

myNavBar1.addMenu(dhtmlMenu);



dhtmlMenu = new NavBarMenu(100, 100);

dhtmlMenu.addItem(new NavBarMenuItem("words", ""));

dhtmlMenu.addItem(new NavBarMenuItem("lyrics", "lyrics.htm"));

dhtmlMenu.addItem(new NavBarMenuItem("poetry", "poetry.php"));

dhtmlMenu.addItem(new NavBarMenuItem("stories", "stories.php"));

myNavBar1.addMenu(dhtmlMenu);



dhtmlMenu = new NavBarMenu(100, 100);

dhtmlMenu.addItem(new NavBarMenuItem("music", ""));

dhtmlMenu.addItem(new NavBarMenuItem("bio", "bio.htm"));

dhtmlMenu.addItem(new NavBarMenuItem("buy", "buy.php"));

dhtmlMenu.addItem(new NavBarMenuItem("listen", "music.htm"));

dhtmlMenu.addItem(new NavBarMenuItem("shows", "shows.php"));

myNavBar1.addMenu(dhtmlMenu);



dhtmlMenu = new NavBarMenu(100, 0);

dhtmlMenu.addItem(new NavBarMenuItem("links", "links.htm"));

myNavBar1.addMenu(dhtmlMenu);



dhtmlMenu = new NavBarMenu(100, 0);

dhtmlMenu.addItem(new NavBarMenuItem("contact", "contact.htm"));

myNavBar1.addMenu(dhtmlMenu);



dhtmlMenu = new NavBarMenu(100, 0);

dhtmlMenu.addItem(new NavBarMenuItem("home", "index.htm"));

myNavBar1.addMenu(dhtmlMenu);





//set menu colors (Border, Text Top, Bkgd Top, Text Rollover Top, Bkgd Rollover Top, Text Menu, Bkgd Menu, Text Rollover Menu, Bkgd Rollover Menu)

myNavBar1.setColors("#000000", "#ffffcc", "#669999", "#ffffcc", "#87CBCB", "#ffffcc", "#669999", "#ffffcc", "#87CBCB")



//set position

myNavBar1.moveTo(0,100)



//uncomment below line to set font (hdrFamily, hdrStyle, hdrWeight, hdrSize, itmFamily, itmStyle, itmWeight, itmSize) 

//myNavBar1.setFonts()



//uncomment below line to center the menu (valid values are "left", "center", and "right"

myNavBar1.setAlign("left")



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);

}

