/* AUTHOR: elbusK */
/* CREATION DATE: 15/10/2001 */
/*
Top Navigational Bar II (By Mike Hall @ Brainjar.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(120, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Clínica Médica", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Avances", "http://www.intermedicina.com/Clinica.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Revistas", "http://www.intermedicina.com/Rev_cur/medicina_rev.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Guias Practicas", "http://www.intermedicina.com/Guias_practicas/Guias_practicas_cli.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Libros y Atlas", "http://www.intermedicina.com/Libros/Librosyatlas_cli.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Cursos y Congresos", "http://www.intermedicina.com/Rev_cur/curso_y_congreso_cli.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Biositios", "http://www.intermedicina.com/Biositegen/BioSiteGen_cli.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(120, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Cirugía", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Avances", "http://www.intermedicina.com/Cirugia.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Revistas", "http://www.intermedicina.com/Rev_cur/cirugia_rev.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Guias Practicas", "http://www.intermedicina.com/Guias_practicas/Guias_practicas_cir.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Libros y Atlas", "http://www.intermedicina.com/Libros/Librosyatlas_cir.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Cursos y Congresos", "http://www.intermedicina.com/Rev_cur/curso_y_congreso_cir.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Biositios", "http://www.intermedicina.com/Biositegen/BioSiteGen_cir.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(120, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Pediatria", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Avances", "http://www.intermedicina.com/Pediatria.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Revistas", "http://www.intermedicina.com/Rev_cur/pediatria_rev.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Guias Practicas", "http://www.intermedicina.com/Guias_practicas/Guias_practicas_ped.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Libros y Atlas", "http://www.intermedicina.com/Libros/Librosyatlas_ped.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Cursos y Congresos", "http://www.intermedicina.com/Rev_cur/curso_y_congreso_ped.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Biositios", "http://www.intermedicina.com/Biositegen/BioSiteGen_ped.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(120, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Gineco-Obstetricia", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Avances", "http://www.intermedicina.com/Ginecologia.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Revistas", "http://www.intermedicina.com/Rev_cur/gineco_rev.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Guias Practicas", "http://www.intermedicina.com/Guias_practicas/Guias_practicas_ginyobs.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Libros y Atlas", "http://www.intermedicina.com/Libros/Librosyatlas_ginyobs.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Cursos y Congresos", "http://www.intermedicina.com/Rev_cur/curso_y_congreso_gin.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Biositios", "http://www.intermedicina.com/Biositegen/BioSiteGen_ginyobs.htm"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(130, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Otras Especialidades", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Avances", "http://www.intermedicina.com/InteresGeneral.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Revistas", "http://www.intermedicina.com/Opcionrevis.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Guias Practicas", "http://www.intermedicina.com/Guias_practicas/Guias_practicas.htm"));
dhtmlMenu.addItem(new NavBarMenuItem("Libros y Atlas", "http://www.intermedicina.com/Libros/Librosyatlas.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Cursos y Congresos", "http://www.intermedicina.com/opcion_cursos_y_congresos.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Biositios", "http://www.intermedicina.com/Biositegen/BioSiteGen.htm"));
myNavBar1.addMenu(dhtmlMenu);


//set menu colors
myNavBar1.setColors("#ffffff","#ffffff","#299C39","#ffffff","#6B6B6B","#000000","#C0C0C0","#FF0000","#C6EFF7")
myNavBar1.setFonts("Arial","plain","bold","11px","Arial","plain","bold","11px");

//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);
}
