var parameters;
var param_apartado;

presentacion_ = "<a href=presentacion.htm?apartado=presentacion onmouseover=window.document.presentacion.src='img/presentacion_hover.gif' onmouseout=window.document.presentacion.src='img/presentacion_liso.gif'><img name=presentacion src=img/presentacion_liso.gif width=107 height=22 border=0></a>";
gmedica_ = "<a href=gmedica.htm?apartado=gmedica onmouseover=window.document.gmedica.src='img/gmedica_hover.gif' onmouseout=window.document.gmedica.src='img/gmedica_liso.gif'><img name=gmedica src=img/gmedica_liso.gif width=107 height=22 border=0></a>";
productos_ = "<a href=productos.htm?apartado=productos onmouseover=window.document.productos.src='img/productos_hover.gif' onmouseout=window.document.productos.src='img/productos_liso.gif'><img name=productos src=img/productos_liso.gif width=107 height=22 border=0></a>";
mediadores_ = "<a href=mediadores.htm?apartado=mediadores onmouseover=window.document.mediadores.src='img/mediadores_hover.gif' onmouseout=window.document.mediadores.src='img/mediadores_liso.gif'><img name=mediadores src=img/mediadores_liso.gif width=107 height=22 border=0></a>";
aviso_= "<a href=aviso.htm?apartado=aviso onmouseover=window.document.aviso.src='img/aviso_hover.gif' onmouseout=window.document.aviso.src='img/aviso_liso.gif'><img name=aviso src=img/aviso_liso.gif width=107 height=22 border=0></a>";

if (document.location.search.length == 0) {
  parameters = 0;
}
else {
  matriz = document.location.search.slice(1).split("&");
  parameters = matriz.length;
  for (n = 0; n < matriz.length; n++) {
    nom = unescape(matriz[n].substring(0,matriz[n].indexOf("=")));
    valor = unescape(matriz[n].substring(matriz[n].indexOf("=")+1));
    eval ('param_' + nom + ' = ' + 'valor');
  }
}

if (parameters != 0) {
  eval(param_apartado + '_ = \"<img name=' + param_apartado + ' src=img/' + param_apartado + '_pulsado.gif width=107 height=22 border=0>\";');
}

function destino() {
  url = document.getElementById('eleccion').options[document.getElementById('eleccion').selectedIndex].value
  window.location = url;
}