<!--

// Ubicado en /bucm/nzjs. 

//	PAra cambiar los índices principales y sus enlaces.

//	CUIDADO CON LOS ERRORES

function DetectorNavegador() {

  this.ver=navigator.appVersion

  this.agent=navigator.userAgent

  this.DOM = document.getElementById?1:0;

  this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0

  this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.DOM && !this.opera5)?1:0;

  this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.DOM && !this.opera5)?1:0;

  this.IE4=(document.all && !this.DOM && !this.opera5)?1:0;

  this.IE=this.IE4||this.ie5||this.ie6

  this.mac=this.agent.indexOf("Mac")>-1

  this.NS6=(this.DOM && parseInt(this.ver) >= 5) ?1:0;

  this.NS4=(document.layers && !this.DOM)?1:0;

  this.DHTML = this.NS4 || this.IE || this.DOM || this.opera5;

}

var soporta = new DetectorNavegador();

var tienemenu = false;

var miurl = window.location.pathname;

var part_miurl = miurl.split('/');

var OpcionesPrincipales = new Array("","La Biblioteca","Buscar","Servicios","Atención 24 h.");
//var bannermensual = '<a target="_blank" href="http://www.ucm.es/bucm/202003.htm"><img border="0" src=http://www.ucm.es/bucm/nimages/reservasAlum.gif alt="Reservas y renovaciones para los alumnos"></a><img src=http://www.ucm.es/bucm/nimages/libroAni.gif alt="Reservas y renovaciones para los alumnos"><a target="_blank" href="http://www.ucm.es/bucm/202003.htm">';
//var bannermensual = '<a target="_blank" href="http://www.biomedcentral.com/"><img border="0" src=http://www.ucm.es/bucm/nimages/BioMedCentral.gif alt="BioMed Central"></a><img border="0" src=http://www.ucm.es/bucm/nimages/logoBioMedAnimado.gif><a target="_blank" href="http://www.ucm.es/BUCM/boletin/03/biomed.htm"><img img border="0" src=http://www.ucm.es/bucm/nimages/TextoBioMed.gif alt="Los investigadores de la UCM pueden publicar gratis en las revistas de BioMed Central"></a>';
//var bannermensual = '<a target="_blank" href="http://www.ucm.es/BUCM/eab/bibliografias/index.php"><img border="0" src=http://www.ucm.es/bucm/nimages/bibliografia.jpg alt="Bibliografía recomendada"></a>';
//var bannermensual = '<a target="_blank" href="http://www.ucm.es/BUCM/guias/semana_bienvenida_2005.htm"><img border="0" src=http://www.ucm.es/bucm/nimages/banner_semana.jpg alt="SEMANA DE BIENVENIDA DE LA BIBLIOTECA. Del 17 al 20 de octubre"></a>';
//var bannermensual = '<a target="_blank" href="http://www.ucm.es/info/ucmp/pags.php?COOKIE_SET=1&tp=Convocatoria%20nº%201/2006%20Biblioteca&a=servicios/becas&d=0004332.php"><img border="0" src=http://www.ucm.es/bucm/nimages/bannerBecas.jpg alt="CONVOCATORIA DE BECAS-COLABORACIÓN PARA LA BIBLIOTECA 2006. Plazo de solicitud es hasta el día 25 de octubre."></a>';
//var bannermensual = '<a target="_blank" href="http://www.ucm.es/BUCM/foa/exposiciones/17Alquimia/alquimia_castellano/index.htm"><img border="0" src=http://www.ucm.es/bucm/nimages/bannerAlquimia.jpg alt="Exposición y Seminario: ALQUIMIA. Ciencia y pensamiento a través de los libros. Biblioteca Marques de Valdecilla."></a>';
//var bannermensual = '<a target="_blank" href="http://www.ucm.es/bucm/Web-200603.ppt"><img border="0" src=http://www.ucm.es/bucm/nimages/banner_nuevaweb.jpg alt="Próximamente cambiaremos la Web para mejorar nuestros servicios"></a>';
var bannermensual = '';
var OpcionesPrincipalesURL = new Array("","http://www.ucm.es/BUCM/biblios.htm","http://www.ucm.es/BUCM/catalogos.htm","http://www.ucm.es/BUCM/servicios.htm","http://www.ucm.es/BUCM/atencion.htm");

if( window.location.hostname == 'alfama.sim.ucm.es') {

} else if (window.location.hostname == 'cisne.sim.ucm.es') {
//   OpcionesPrincipales[OpcionesPrincipales.length] = "Otros";
//   OpcionesPrincipalesURL[OpcionesPrincipalesURL.length] = "http://cisne.sim.ucm.es";
//   Opciones_5 = new Array();
//   Opciones_url_5 = new Array();
//   Opciones_5[0] = "no tiene";
//   Opciones_url_5[0] = "";
} else {

   if (part_miurl[2] != '') { 

       var subdir = part_miurl[2];

       if(! (subdir.indexOf(".") > -1))

          document.write('<script language=JavaScript src=http://www.ucm.es/bucm/' + part_miurl[2] + '/Menu.js></s' + 'cript>');

//   document.write('<script language=JavaScript src=http://www.ucm.es/bucm/pruebaweb2003/web2003/' + part_miurl[4] + '/Menu.js></s' + 'cript>');

   }

}

//var OpcionesPrincipales = new Array("","La Biblioteca","Buscar","Servicios","Atención 24 h.");

//var OpcionesPrincipalesURL = new Array("","http://www.ucm.es/BUCM/biblios.htm","http://www.ucm.es/BUCM/catalogos.htm","http://www.ucm.es/BUCM/servicios.htm","http://www.ucm.es/BUCM/atencion.htm");

var OpcionesPrincipalesY;

if(soporta.NS4) {

    var OpcionesPrincipalesX = new Array("",81,167,216,280,370);

} else {

    var OpcionesPrincipalesX = new Array("",82,189,258,342,463);

}



function SacarCoordenadas() {

   if(soporta.NS4) {

      OpcionesPrincipalesY = PPrincipal ? 137 : 93;

   } else {

      OpcionesPrincipalesY = PPrincipal ? 136 : 92;

   }

   return OpcionesPrincipalesY;

}

var Opciones_0 = new Array();

var Opciones_url_0 = new Array();

Opciones_0[0] = "no tiene";

Opciones_url_0[0] = "";



var Opciones_1 = new Array();

var Opciones_url_1 = new Array();

Opciones_1[0] = "Bibliotecas y centros de documentación";

Opciones_1[1] = "Horarios";

Opciones_1[2] = "Reglamento y normativa";

Opciones_1[3] = "Plan estratégico 2005/2006";

Opciones_1[4] = "Evaluación y estadísticas";

Opciones_1[5] = "Documentos e información sobre la BUC";	

Opciones_1[6] = "Directorio del personal de la BUC";

Opciones_1[7] = "Jornadas organizadas por la BUC";

Opciones_1[8] = "Intranet";



Opciones_url_1[0] = "http://www.ucm.es/BUCM/centros.htm";

Opciones_url_1[1] = "http://cisne.sim.ucm.es/screens/libinfo_02_spi.html";

Opciones_url_1[2] = "http://www.ucm.es/BUCM/reglamentos.htm";

Opciones_url_1[3] = "http://www.ucm.es/BUCM/plan_estrategico_2005_2006.pdf";

Opciones_url_1[4] = "http://www.ucm.es/BUCM/evaluacion/";

Opciones_url_1[5] = "http://www.ucm.es/BUCM/informacion.htm";

Opciones_url_1[6] = "http://alfama.sim.ucm.es/personalbuc/personalnew.asp";

Opciones_url_1[7] = "http://www.ucm.es/BUCM/jornadas/index.htm";

Opciones_url_1[8] = "http://alfama.sim.ucm.es/buc/";


var Opciones_2 = new Array();

var Opciones_url_2 = new Array();

Opciones_2[0] = "Metabuscador: Buscador general en todos los recursos (En pruebas)";

Opciones_2[1] = "Cisne:&nbsp;catálogo&nbsp;general<img src=/bucm/nimages/p_trans.gif width=30 height=1 border=0>";

Opciones_2[2] = "Revistas";

Opciones_2[3] = "Compludoc. Referencias de artículos de revistas";

Opciones_2[4] = "Libros electrónicos";

Opciones_2[5] = "Bases de datos";

Opciones_2[6] = "Tesis";

Opciones_2[7] = "Archivo institucional E-prints Complutense";

Opciones_2[8] = "Otros archivos e-prints y documentos de trabajo";

Opciones_2[9] = "CompluRed. Recursos web de interés académico";

Opciones_2[10] = "Fondo antiguo";

Opciones_2[11] = "Ediciones electrónicas publicadas por la UCM";

Opciones_2[12] = "Boletines de novedades y materiales especiales";

Opciones_2[13] = "Biblioteca de software científico";

Opciones_2[14] = "Catálogos de otras bibliotecas";


Opciones_url_2[0] = "http://0-metafind.iii.com.cisne.sim.ucm.es/muse/servlet/MusePeer?action=logon&userID=compl&userPwd=compl";

Opciones_url_2[1] = "http://cisne.sim.ucm.es/screens/mainmenu.html";

Opciones_url_2[2] = "http://alfama.sim.ucm.es/revistas/revistas.asp";

Opciones_url_2[3] = "http://www.ucm.es/BUCM/compludoc";

Opciones_url_2[4] = "http://www.ucm.es/BUCM/200403.htm";

Opciones_url_2[5] = "http://alfama.sim.ucm.es/bdatos/bdatos.asp";

Opciones_url_2[6] = "http://www.ucm.es/BUCM/2006.htm";

Opciones_url_2[7] = "http://www.ucm.es/eprints";

Opciones_url_2[8] = "http://www.ucm.es/BUCM/2004.htm";

Opciones_url_2[9] = "http://alfama.sim.ucm.es/complured";

Opciones_url_2[10] = "http://www.ucm.es/BUCM/2005.htm";

Opciones_url_2[11] = "http://www.ucm.es/BUCM/ediciones.htm";

Opciones_url_2[12] = "http://cisne.sim.ucm.es/screens/libinfo_04_spi.html";

Opciones_url_2[13] = "http://www.sisoft.ucm.es/";

Opciones_url_2[14] = "http://www.ucm.es/BUCM/otrasbiblios.htm";





var Opciones_3 = new Array();

var Opciones_url_3 = new Array();

Opciones_3[0] = "Información, sugerencias y orientación";

Opciones_3[1] = "Préstamos, renovaciones y reservas";

Opciones_3[2] = "Pasaporte Madroño";

Opciones_3[3] = "Formación de usuarios";

Opciones_3[4] = "Bibliografías y materiales de apoyo para las asignaturas";

Opciones_3[5] = "Préstamo interbibliotecario e intercentros";

Opciones_3[6] = "Solicitud de adquisiciones y canje de publicaciones";

Opciones_3[7] = "Edición electrónica de publicaciones académicas";

Opciones_3[8] = "Servicio de alerta de sumarios";

Opciones_3[9] = "Préstamo de ordenadores portátiles";

Opciones_3[10] = "Reproducción de documentos";

Opciones_3[11] = "Exposiciones";

Opciones_3[12] = "Servicios para personas con discapacidad";

Opciones_3[13] = "Salas de lectura y mediatecas";

Opciones_3[14] = "Consulta de tesis doctorales";

Opciones_3[15] = "Servicio de Biblioteca Digital";





Opciones_url_3[0] = "http://www.ucm.es/BUCM/201000.htm";

Opciones_url_3[1] = "http://www.ucm.es/BUCM/202003.htm";

Opciones_url_3[2] = "http://www.ucm.es/BUCM/Pasaporte-Madrono.htm";

Opciones_url_3[3] = "http://www.ucm.es/BUCM/204000.htm";

Opciones_url_3[4] = "http://www.ucm.es/BUCM/201004.htm";

Opciones_url_3[5] = "http://www.ucm.es/BUCM/202004.htm";

Opciones_url_3[6] = "http://www.ucm.es/BUCM/202005.htm";

Opciones_url_3[7] = "http://www.ucm.es/BUCM/202007.htm";

Opciones_url_3[8] = "http://www.ucm.es/BUCM/202006.htm";

Opciones_url_3[9] = "http://www.ucm.es/BUCM/202009.htm";

Opciones_url_3[10] = "http://www.ucm.es/BUCM/202010.htm";

Opciones_url_3[11] = "http://www.ucm.es/BUCM/exposiciones/index.htm";

Opciones_url_3[12] = "http://www.ucm.es/BUCM/202008.htm";

Opciones_url_3[13] = "http://www.ucm.es/BUCM/203000.htm";

Opciones_url_3[14] = "http://www.ucm.es/BUCM/infotesis.htm";

Opciones_url_3[15] = "http://www.ucm.es/BUCM/202011.htm";







var Opciones_4 = new Array();

var Opciones_url_4 = new Array();

Opciones_4[0] = "Consulte al bibliotecario";

Opciones_4[1] = "Formularios de solicitud de servicios";

Opciones_4[2] = "Guías y tutoriales";

Opciones_4[3] = "Colecciones accesibles desde casa: Biblioteca Digital";

Opciones_4[4] = "Preguntas más frecuentes (FAQs)";

Opciones_4[5] = "La Biblioteca en 5 minutos para los alumnos";

Opciones_4[6] = "La Biblioteca en 5 minutos para los profesores e investigadores";

Opciones_4[7] = "Cómo localizar información en 5 minutos";

Opciones_4[8] = "Cómo consultar una base de datos en 5 minutos";

Opciones_4[9] = "Guías de uso de nuestros recursos electrónicos";

Opciones_4[10] = "La Biblioteca Informa";

Opciones_4[11] = "Buzón de sugerencias";


Opciones_url_4[0] = "http://www.ucm.es/BUCM/201001.htm";

Opciones_url_4[1] = "http://www.ucm.es/BUCM/2102.htm";

Opciones_url_4[2] = "http://www.ucm.es/BUCM/2103.htm";

Opciones_url_4[3] = "http://www.ucm.es/BUCM/202011.htm";

Opciones_url_4[4] = "http://www.ucm.es/BUCM/201002.htm";

Opciones_url_4[5] = "http://www.ucm.es/BUCM/guias/guiaalumnos.pps";

Opciones_url_4[6] = "http://www.ucm.es/BUCM/guias/guiaprofesores.pps";

Opciones_url_4[7] = "http://www.ucm.es/BUCM/guias/buscarinfo.pps";

Opciones_url_4[8] = "http://www.ucm.es/BUCM/guias/consultar.pps";

Opciones_url_4[9] = "http://www.ucm.es/BUCM/2104.htm";

Opciones_url_4[10] = "http://www.ucm.es/BUCM/boletin/";

Opciones_url_4[11] = "https://cisne.sim.ucm.es/suggest*spi~S6";



var ITablaIzq = '<table border="0" cellpadding="0" cellspacing="0" marginheight=0 marginwidth=0 topmargin=0 leftmargin=0 bgcolor=#ffffff>'

+ '<tr>' +

'   <td colspan=2 class=CeldaMenuInicio><img src=http://www.ucm.es/bucm/nimages/p_trans.gif width=1 height=1></td>' +

'</tr>'

;

var ITablaIzqNS4 = '<table border="0" cellpadding="0" cellspacing="0" marginheight=0 marginwidth=0 topmargin=0 leftmargin=0 bgcolor=#ffffff>' + '<tr>' +

'   <td bgcolor=#ffffff><img src=http://www.ucm.es/bucm/nimages/p_trans.gif width=1 height=1></td>' +

'   <td bgcolor=#ffffff><img src=http://www.ucm.es/bucm/nimages/p_trans.gif width=1 height=1></td>' +

'   <td bgcolor=#ffffff><img src=http://www.ucm.es/bucm/nimages/p_trans.gif width=1 height=1></td>' +

'   <td bgcolor=#ffffff><img src=http://www.ucm.es/bucm/nimages/p_trans.gif width=1 height=1></td>' +

'   <td bgcolor=#ffffff><img src=http://www.ucm.es/bucm/nimages/p_trans.gif width=4 height=1></td>' +

'   <td bgcolor=#ffffff><img src=http://www.ucm.es/bucm/nimages/p_trans.gif width=2 height=1></td>' +

'</tr>' +

'<tr>' +

'   <td colspan=6 bgcolor=#bd0000><img src=http://www.ucm.es/bucm/nimages/p_trans.gif width=1 height=1></td>' +

'</tr>'

;

var FTabla = "</table>\n";



function MenusCabecera () {

wref = window;

var nmenus = tienemenu ? OpcionesPrincipales.length : OpcionesPrincipales.length -1;

for (var j = 0; j <= nmenus; j++) {

   if(tienemenu && nmenus == j) {

      var opttxt = "Opciones_centro";

      var urltxt = "Opciones_url_centro";   

   } else {

      var opttxt = "Opciones_" + j;

      var urltxt = "Opciones_url_" + j;

   }

   var opt = eval(opttxt);

   wref.document.write('<DIV ID=menu' + j + ' CLASS=menu>'); 

   if (opt[0] == 'no tiene') {

      wref.document.write('</DIV>');

      continue;

   }

   var url = eval(urltxt);

   if (url[0] == 'menu') {

      var menu = eval("Opciones_menu_" + j);

      men = men[0];

   } else {

      men = -1;

   }

   var nivel = 1;

   if (soporta.NS4) {

      wref.document.write(ITablaIzqNS4);

      for (var i = 0; i < opt.length-1; i++) {

         wref.document.write( '' + 

'<tr>' +

'<td bgcolor=#bd0000><img src=http://www.ucm.es/bucm/nimages/p_trans.gif></td>'+

'<td><img src=http://www.ucm.es/bucm/nimages/p_trans.gif></td>'+

'   <td valign=top class=CeldaMenuI><img name=c'+ j + i + ' src=http://www.ucm.es/bucm/nimages/flecha_trans.gif></td>' +

'   <td class=CeldaMenuD nowrap><a href="' + url[i] + '" onMouseOver="FinalizarTiempo();c' + j + i + '.src=\'http://www.ucm.es/bucm/nimages/flecha_granate.gif\';" onMouseOut="ComenzarTiempo();c' + j + i + '.src=\'http://www.ucm.es/bucm/nimages/flecha_trans.gif\';">' + opt[i] + '</a></td>' +

'<td><img src=http://www.ucm.es/bucm/nimages/p_trans.gif></td>'+

'<td bgcolor=#bd0000><img src=http://www.ucm.es/bucm/nimages/p_trans.gif></td>'+

'</tr>');

      }

      i = opt.length-1;

      wref.document.write( '' + 

'<tr>' +

'<td bgcolor=#bd0000><img src=http://www.ucm.es/bucm/nimages/p_trans.gif></td>'+

'<td><img src=http://www.ucm.es/bucm/nimages/p_trans.gif></td>'+

'   <td valign=top class=CeldaMenuFI><img name=c'+ j + i + ' src=http://www.ucm.es/bucm/nimages/flecha_trans.gif></td>' +

'   <td class=CeldaMenuFD nowrap><a href="' + url[i] + '" onMouseOver="FinalizarTiempo();c' + j + i + '.src=\'http://www.ucm.es/bucm/nimages/flecha_granate.gif\';" onMouseOut="ComenzarTiempo();c' + j + i + '.src=\'http://www.ucm.es/bucm/nimages/flecha_trans.gif\';">' + opt[i] + '</a></td>' +

'<td><img src=http://www.ucm.es/bucm/nimages/p_trans.gif></td>'+

'<td bgcolor=#bd0000><img src=http://www.ucm.es/bucm/nimages/p_trans.gif></td>'+

'</tr>'+

'<tr>' +

'<td bgcolor=#bd0000><img src=http://www.ucm.es/bucm/nimages/p_trans.gif width=1 height=3></td>' +

'   <td colspan=4><img src=http://www.ucm.es/bucm/nimages/p_trans.gif width=1 height=3></td>' +

'<td bgcolor=#bd0000><img src=http://www.ucm.es/bucm/nimages/p_trans.gif width=1 height=3></td>' +

'</tr>'+

'<tr>' +

'   <td colspan=6 bgcolor=#bd0000><img src=http://www.ucm.es/bucm/nimages/p_trans.gif width=1 height=2></td>' +

'</tr>'

);



   } else {

      wref.document.write(ITablaIzq);

      for (var i = 0; i < opt.length-1; i++) {

         wref.document.write( '' + 

'<tr>' +

'   <td valign=top class=CeldaMenuI><img name=c'+ j + i + ' src=http://www.ucm.es/bucm/nimages/flecha_trans.gif></td>' +

'   <td class=CeldaMenuD nowrap><a href="' + url[i] + '" onMouseOver="FinalizarTiempo();c' + j + i + '.src=\'http://www.ucm.es/bucm/nimages/flecha_granate.gif\';" onMouseOut="ComenzarTiempo();c' + j + i + '.src=\'http://www.ucm.es/bucm/nimages/flecha_trans.gif\';">' + opt[i] + '</a></td>' +

'</tr>');

      }

      i = opt.length-1;

      wref.document.write( '' + 

'<tr>' +

'   <td valign=top class=CeldaMenuFI><img name=c'+ j + i + ' src=http://www.ucm.es/bucm/nimages/flecha_trans.gif></td>' +

'   <td class=CeldaMenuFD nowrap><a href="' + url[i] + '" onMouseOver="FinalizarTiempo();c' + j + i + '.src=\'http://www.ucm.es/bucm/nimages/flecha_granate.gif\';" onMouseOut="ComenzarTiempo();c' + j + i + '.src=\'http://www.ucm.es/bucm/nimages/flecha_trans.gif\';">' + opt[i] + '</a></td>' +

'</tr>'

);

   }

wref.document.write('</table>' +

'</DIV>');

}

}



function PintarLinea(alt,back) {

    var background = "";

    if (back) 

       background = " background=\"" + back + "\"";



    var linea = '<tr>' + 

'   <td colspan=9' + background + '><img src=http://www.ucm.es/bucm/nimages/p_trans.gif width=1 height=' + alt + '></td>' +

'</tr>';

    return linea;

}



function PintarLinea1(alt,back) {

    var background = "";

    if (back) 

       background = " background=\"" + back + "\"";



    var linea = '<tr>' +

'   <td colspan=2><img src=http://www.ucm.es/bucm/nimages/p_claro.gif width=1 height=' + alt + '></td>' +

'   <td colspan=7' + background + '><img src=http://www.ucm.es/bucm/nimages/p_trans.gif width=1 height=' + alt + '></td>' +

'</tr>';

    return linea;

}

// -->



