// MENUS.JS
// Funciones para mostrar la barra superior y los menús de la izquierda de una sección
// Con tipo indicamos la opción que se debe expandir.
// Sino se expande ninguna, posiblemente sea porque el tipo no coincide con ninguno de los tipos definidos. 

//raiz="./";
raiz="/en/servicios/servicio.prevencion/";

   // Definición de imágenes
   image1  = new Image; image1.src=raiz+"imagenes/menu/image1.gif"; 		image1a  = new Image; image1a.src=raiz+"imagenes/menu/image1a.gif";	
   image2  = new Image; image2.src=raiz+"imagenes/menu/image2.gif"; 		image2a  = new Image; image2a.src=raiz+"imagenes/menu/image2a.gif";	
   image3  = new Image; image3.src=raiz+"imagenes/menu/image3.gif"; 		image3a  = new Image; image3a.src=raiz+"imagenes/menu/image3a.gif";	
   image4  = new Image; image4.src=raiz+"imagenes/menu/image4.gif"; 		image4a  = new Image; image4a.src=raiz+"imagenes/menu/image4a.gif";	
   image5  = new Image; image5.src=raiz+"imagenes/menu/image5.gif"; 		image5a  = new Image; image5a.src=raiz+"imagenes/menu/image5a.gif";	
   image6  = new Image; image6.src=raiz+"imagenes/menu/image6.gif"; 		image6a  = new Image; image6a.src=raiz+"imagenes/menu/image6a.gif";	
   image7  = new Image; image7.src=raiz+"imagenes/menu/image7.gif"; 		image7a  = new Image; image7a.src=raiz+"imagenes/menu/image7a.gif";	
   image8  = new Image; image8.src=raiz+"imagenes/menu/image8.gif"; 		image8a  = new Image; image8a.src=raiz+"imagenes/menu/image8a.gif";	


    function activa(img1,img2) {
       document[img1].src = eval(img2 + ".src");
    }


function Cabecera() {
  document.write("<center><table BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=682 BGCOLOR=#FFFFFF summary=\"Cabecera de la página\">");
  document.write("  <tr>");
  document.write("    <td><center><map name=\"Map\"><area shape=\"rect\" coords=\"0,0,165,36\" href=\"/en/index.html\" alt=\"Universidad de Alicante\"><area shape=\"poly\" coords=\"164,1,164,35,1,35,1,98,680,98,680,1\" href=\""+raiz+"index.html\" alt=\"Preventive Medicine Service\"></map></center></td>");
  document.write("    <td ALIGN=LEFT VALIGN=BOTTOM><img SRC=\""+raiz+"imagenes/menu/cabecera.gif\" NOSAVE BORDER=0 usemap=\"#Map\" height=100 width=682></td>");
  document.write("  </tr>");
  document.write("</table></center>");
}

function MostrarBarra() {
document.write("<center><table BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=\"682\" BGCOLOR=\"#FFFFFF\" summary=\"\">");
document.write("<tr BGCOLOR=\"#FFFFFF\">");

document.write("<td ALIGN=\"LEFT\" VALIGN=\"CENTER\">");
document.write("&nbsp;");
document.write("</td>");

document.write("</tr>");
document.write("</table></center>");
}

function MostrarMenus(tipo) {
  document.write("<table BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=\"100%\" summary=\"Menús\">");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><a href=\""+raiz+"presentacion/index.html\" onMouseover=\"activa('image1','image1a')\" onMouseout=\"activa('image1','image1')\"><img src=\""+raiz+"imagenes/menu/image1.gif\" name=\"image1\" alt=\"Presentation\" nosave=\"\" border=\"0\" height=\"19\" width=\"161\"></a></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><img src=\""+raiz+"imagenes/menu/raya.gif\" border=\"0\" width=\"161\" height=\"1\"></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><a href=\""+raiz+"administracion/index.html\" onMouseover=\"activa('image2','image2a')\" onMouseout=\"activa('image2','image2')\"><img src=\""+raiz+"imagenes/menu/image2.gif\" name=\"image2\" alt=\"Duties\" nosave=\"\" border=\"0\" height=\"19\" width=\"161\"></a></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><img src=\""+raiz+"imagenes/menu/raya.gif\" border=\"0\" width=\"161\" height=\"1\"></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><a href=\""+raiz+"especialidades/index.html\" onMouseover=\"activa('image3','image3a')\" onMouseout=\"activa('image3','image3')\"><img src=\""+raiz+"imagenes/menu/image3.gif\" name=\"image3\" alt=\"Units\" nosave=\"\" border=\"0\" height=\"19\" width=\"161\"></a></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><img src=\""+raiz+"imagenes/menu/raya.gif\" border=\"0\" width=\"161\" height=\"1\"></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><a href=\""+raiz+"horario/index.html\" onMouseover=\"activa('image4','image4a')\" onMouseout=\"activa('image4','image4')\"><img src=\""+raiz+"imagenes/menu/image4.gif\" name=\"image4\" alt=\"public Hours\" nosave=\"\" border=\"0\" height=\"19\" width=\"161\"></a></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><img src=\""+raiz+"imagenes/menu/raya.gif\" border=\"0\" width=\"161\" height=\"1\"></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><a href=\""+raiz+"enlaces/index.html\" onMouseover=\"activa('image5','image5a')\" onMouseout=\"activa('image5','image5')\"><img src=\""+raiz+"imagenes/menu/image5.gif\" name=\"image5\" alt=\"Interesting Links\" nosave=\"\" border=\"0\" height=\"19\" width=\"161\"></a></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><img src=\""+raiz+"imagenes/menu/raya.gif\" border=\"0\" width=\"161\" height=\"1\"></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><a href=\""+raiz+"formacion/index.html\" onMouseover=\"activa('image6','image6a')\" onMouseout=\"activa('image6','image6')\"><img src=\""+raiz+"imagenes/menu/image6.gif\" name=\"image6\" alt=\"Training\" nosave=\"\" border=\"0\" height=\"19\" width=\"161\"></a></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><img src=\""+raiz+"imagenes/menu/raya.gif\" border=\"0\" width=\"161\" height=\"1\"></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><a href=\""+raiz+"documentos/index.html\" onMouseover=\"activa('image7','image7a')\" onMouseout=\"activa('image7','image7')\"><img src=\""+raiz+"imagenes/menu/image7.gif\" name=\"image7\" alt=\"Interesting data\" nosave=\"\" border=\"0\" height=\"19\" width=\"161\"></a></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><img src=\""+raiz+"imagenes/menu/raya.gif\" border=\"0\" width=\"161\" height=\"1\"></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><a href=\""+raiz+"clinica/index.html\" onMouseover=\"activa('image8','image8a')\" onMouseout=\"activa('image8','image8')\"><img src=\""+raiz+"imagenes/menu/image8.gif\" name=\"image8\" alt=\"Optometric Centre\" nosave=\"\" border=\"0\" height=\"19\" width=\"161\"></a></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><img src=\""+raiz+"imagenes/menu/raya.gif\" border=\"0\" width=\"161\" height=\"1\"></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\">&nbsp;</td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"center\" VALIGN=\"top\"><a href=\"/en/univirtual/index.html\"><img src=\"/en/imagenes/portada/campusvirtual.gif\" alt=\"Campus Virtual\" nosave=\"\" border=\"0\" height=\"58\" width=\"140\"></a></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\">&nbsp;</td>");
  document.write("</tr>");

  document.write("</table>");
}

function Pie() {
  document.write("<table BORDER=0 CELLSPACING=10 CELLPADDING=0 WIDTH=\"100%\" BGCOLOR=\"#FFFFFF\" summary=\"Pie de página\">");
  document.write("  <tr>");
  document.write("    <td ALIGN=LEFT VALIGN=CENTER COLSPAN=\"2\" BACKGROUND=\""+raiz+"imagenes/menu/fondocolh.gif\" NOSAVE><img SRC=\""+raiz+"imagenes/menu/punto.gif\" ALT=\"\" NOSAVE height=1 width=1></td>");
  document.write("  </tr>");
  document.write("  <tr>");
  document.write("    <td ALIGN=LEFT VALIGN=CENTER><font face=\"Tahoma, Helvetica, Arial\"><font color=\"#003366\"><font size=-2> 	Page maintained by the Preventive Medicine Service</font></font></font></td>");
  document.write("    <td ALIGN=RIGHT VALIGN=CENTER><a href=\"/en/index.html\"><img SRC=\"/imagenes/casa.gif\" ALT=\"home\" HSPACE=4 VSPACE=2 NOSAVE BORDER=0 height=19 width=23></a><a href=\"mailto:Servicio.Prevencion@ua.es\"><img SRC=\"/imagenes/correo.gif\" ALT=\"e-mail\" VSPACE=2 NOSAVE BORDER=0 height=15 width=21></a></td>");
  document.write("  </tr>");
  document.write("</table>");
}


