// 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="http://desarrollo.campus.ua.es/ua/web/tra_int/";
raiz="/en/dpto/trad.int/";

   // 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";	
   image9  = new Image; image9.src=raiz+"imagenes/menu/image9.gif"; 		image9a  = new Image; image9a.src=raiz+"imagenes/menu/image9a.gif";	
   image10  = new Image; image10.src=raiz+"imagenes/menu/image10.gif"; 		image10a  = new Image; image10a.src=raiz+"imagenes/menu/image10a.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=\"University of Alicante\"><area shape=\"poly\" coords=\"164,1,164,35,1,35,1,98,680,98,680,1\" href=\""+raiz+"index.html\" alt=\"Department of Translation & Interpreting\"></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+"direccion/index.html\" onMouseover=\"activa('image6','image6a')\" onMouseout=\"activa('image6','image6')\"><img src=\""+raiz+"imagenes/menu/image6.gif\" name=\"image6\" alt=\"Managing team\" 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=\"/imagenes/menus/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+"quienes/index.html\" onMouseover=\"activa('image7','image7a')\" onMouseout=\"activa('image7','image7')\"><img src=\""+raiz+"imagenes/menu/image7.gif\" name=\"image7\" alt=\"Who we are\" 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=\"/imagenes/menus/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+"tablon/index.html\" onMouseover=\"activa('image1','image1a')\" onMouseout=\"activa('image1','image1')\"><img src=\""+raiz+"imagenes/menu/image1.gif\" name=\"image1\" alt=\"Notice board\" 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=\"/imagenes/menus/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+"estudios/index.html\" onMouseover=\"activa('image2','image2a')\" onMouseout=\"activa('image2','image2')\"><img src=\""+raiz+"imagenes/menu/image2.gif\" name=\"image2\" alt=\"Interpreting & Translation Studies\" nosave=\"\" border=\"0\" height=\"32\" width=\"161\"></a></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><img src=\"/imagenes/menus/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+"publicaciones/index.html\" onMouseover=\"activa('image8','image8a')\" onMouseout=\"activa('image8','image8')\"><img src=\""+raiz+"imagenes/menu/image8.gif\" name=\"image8\" alt=\"Publications\" nosave=\"\" border=\"0\" height=\"32\" width=\"161\"></a></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><img src=\"/imagenes/menus/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+"base/index.html\" onMouseover=\"activa('image3','image3a')\" onMouseout=\"activa('image3','image3')\"><img src=\""+raiz+"imagenes/menu/image3.gif\" name=\"image3\" alt=\"BITRA: Bibliographical Databses\" nosave=\"\" border=\"0\" height=\"32\" width=\"161\"></a></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><img src=\"/imagenes/menus/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+"publicaciones_dpto/index.html\" onMouseover=\"activa('image9','image9a')\" onMouseout=\"activa('image9','image9')\"><img src=\""+raiz+"imagenes/menu/image9.gif\" name=\"image9\" alt=\"Publications of the Department\" nosave=\"\" border=\"0\" height=\"32\" width=\"161\"></a></td>");
  document.write("</tr>");

  document.write("<tr BGCOLOR=\"#FFFFFF\">");
  document.write("  <td ALIGN=\"left\" VALIGN=\"top\"><img src=\"/imagenes/menus/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+"normativa/index.html\" onMouseover=\"activa('image10','image10a')\" onMouseout=\"activa('image10','image10')\"><img src=\""+raiz+"imagenes/menu/image10.gif\" name=\"image10\" alt=\"Regulations\" 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=\"/imagenes/menus/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+"recursos/index.html\" onMouseover=\"activa('image4','image4a')\" onMouseout=\"activa('image4','image4')\"><img src=\""+raiz+"imagenes/menu/image4.gif\" name=\"image4\" alt=\"Resources\" 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=\"/imagenes/menus/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+"creditos/index.html\" onMouseover=\"activa('image5','image5a')\" onMouseout=\"activa('image5','image5')\"><img src=\""+raiz+"imagenes/menu/image5.gif\" name=\"image5\" alt=\"Credits\" 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=\"/imagenes/menus/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("</table>");
}

   // Devuelve la fecha de modificación
   function fechaModificacion() {
      // Para poner los meses en formato visual
	  var nommeses = new Array("", "Jan", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dec")
	  // Obtenemos la fecha de modificación del documento
	  var mydate = new Date(document.lastModified);						
	  // Separamos el día, mes y año
	  var anyo = mydate.getFullYear();
      if (anyo < 1990) anyo += 100;
	  var dia  = mydate.getDay();
	  var mes  = mydate.getMonth() + 1;
	  var diam = mydate.getDate();
	  return(diam + "-" + nommeses[mes] + "-" + anyo);
   }

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=\"/imagenes/menus/fondocolh.gif\" NOSAVE><img SRC=\"/imagenes/menus/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 Department of Translation & Interpreting<br>Last Update: " + fechaModificacion() + "</font></font></font></td>");
  document.write("    <td ALIGN=RIGHT VALIGN=CENTER><a href=\"/es/index.html\"><img SRC=\"/imagenes/casa.gif\" ALT=\"home\" HSPACE=4 VSPACE=2 NOSAVE BORDER=0 height=19 width=23></a><a href=\"mailto:Javier.Franco@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>");
}


