/*
Simple Navigational Bar (Diego Mina - montague457@yahoo.com)
Computer Science III - Class of 2001 - http://gambino.pcti.tec.nj.us/~mina/
*/

var myNavBar1 = new NavBar(0);
var dhtmlMenu;

dhtmlMenu = new NavBarMenu(80, 95);
dhtmlMenu.addItem(new NavBarMenuItem("Guest", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Learner", "http://www.elearningspace.org/html/learner1.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Parent", "http://www.elearningspace.org/html/parent1.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Teacher", "http://www.elearningspace.org/html/teacher1.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Mentor", "http://www.elearningspace.org/html/mentor1.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Resources", "http://elearningspace.org/html/resources.htm"));
myNavBar1.addMenu(dhtmlMenu);


dhtmlMenu = new NavBarMenu(103, 95);
dhtmlMenu.addItem(new NavBarMenuItem("Register", "http://www.elearningspace.org/html/register.htm"));
myNavBar1.addMenu(dhtmlMenu);


dhtmlMenu = new NavBarMenu(85, 95);
dhtmlMenu.addItem(new NavBarMenuItem("Login", "http://www.elearningspace.org/authenticate/main.asp"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(85, 95);
dhtmlMenu.addItem(new NavBarMenuItem("Sponsors", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Bridgeport", "http://www.bridgeport.edu"));
dhtmlMenu.addItem(new NavBarMenuItem("LINCT", "http://www.linct.org"));
dhtmlMenu.addItem(new NavBarMenuItem("The Gap", "http://www.gap.com"));
dhtmlMenu.addItem(new NavBarMenuItem("Redemtech", "http://www.redemtech.com/extaudit/"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(85, 95);
dhtmlMenu.addItem(new NavBarMenuItem("About ELS", "http://www.elearningspace.org/html/about_els.htm"));
myNavBar1.addMenu(dhtmlMenu);

//set menu colors
myNavBar1.setColors("#ffffff", "#ffffff", "#5A79BF", "#B4C8F7", "#5A79BF", "#ffffff", "#5A79BF", "#B4C8F7", "#5A79BF")
//border, headerfg, headerbg, headerhighlightfg, headerhilightbg, itmFgColor, itmBgColor, itmHiFgColor, itmHiBgColor
//uncomment below line to center the menu (valid values are "left", "center", and "right"
//myNavBar1.setAlign("right")

var fullWidth;

function init() {

  // will get the width of window, need to account for scrollbar width in Netscape.

  fullWidth = getWindowWidth() 
    - (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);

  myNavBar1.resize(512);
  myNavBar1.create();
  myNavBar1.setzIndex(2);
myNavBar1.moveBy(260,92);
}
