
/*
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(140, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Pagina principala", "index.html"));
myNavBar1.addMenu(dhtmlMenu);
*/

dhtmlMenu = new NavBarMenu(150, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Despre noi", "despre_noi.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Scurt istoric", "istoric.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Academia astazi", "academia_astazi.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Lista membrilor ASAS", "membrii.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Organigrama", "organigrama.html"));
//dhtmlMenu.addItem(new NavBarMenuItem("", ""));
//dhtmlMenu.addItem(new NavBarMenuItem("CV-uri", ""));
myNavBar1.addMenu(dhtmlMenu);

/*
dhtmlMenu = new NavBarMenu(100, 110);
dhtmlMenu.addItem(new NavBarMenuItem("Sectii", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Prezentare sectii", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Institute", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Statiuni", ""));
dhtmlMenu.addItem(new NavBarMenuItem("", ""));
dhtmlMenu.addItem(new NavBarMenuItem("CV-uri", ""));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 110);
dhtmlMenu.addItem(new NavBarMenuItem("Filiale", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Bucuresti", ""));
dhtmlMenu.addItem(new NavBarMenuItem("In tara", ""));
myNavBar1.addMenu(dhtmlMenu);
*/

dhtmlMenu = new NavBarMenu(150, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Relatii publice", "relatii_publice.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Anunturi", "anunturi.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Presa", "presa.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Informatii de interes public", "Informatii de interes public.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(150, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Link-uri", "links.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(150, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Contact", "contactus.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Sugestii si intrebari", "sugestii.html"));
//dhtmlMenu.addItem(new NavBarMenuItem("", ""));
//dhtmlMenu.addItem(new NavBarMenuItem("Contactati-ne", ""));
myNavBar1.addMenu(dhtmlMenu);

/*
dhtmlMenu = new NavBarMenu(100, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Limba", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Romana", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Engleza", ""));
myNavBar1.addMenu(dhtmlMenu);
*/

//set menu colors
myNavBar1.setColors("#708090", "#FAFCE8", "#216E33", "#216E33", "#FAFCE8", "#FAFCE8", "#216E33", "#216E33", "#FAFCE8")
myNavBar1.setFonts("Arial", "", "Bold", "12", "Arial", "", "Bold", "12")

//uncomment below line to center the menu (valid values are "left", "center", and "right"
//myNavBar1.setAlign("center")
myNavBar1.setAlign("center")
myNavBar1.setSizes(2, 3, 0)
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);
  //UNCOMMENT BELOW LINE TO MOVE MENU DOWN 50 pixels
  myNavBar1.moveTo(0, 43);
  //myNavBar1.moveBy(120, 0);
}
