/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function mostrarCapa(id) {
  if (document.getElementById(id).style.display == 'none') {
    document.getElementById(id).style.display = '';
  }
  else
    document.getElementById(id).style.display = 'none';
}

function mostrarImagen(nombre, pie) {
  document.getElementById("imagenGrande").src = nombre;
  document.getElementById("pieFoto").innerHTML = pie;
}


function mostrarImagenSiguiente(juzgado, total) {
    posicion  = document.getElementById("imagenGrande").name;
    if ((parseInt(posicion) + 1) <= total ) {
      document.getElementById("imagenGrande").name = parseInt(posicion) + 1;
      document.getElementById("imagenGrande").src = "../../../imagenes/" + juzgado + "/" + (parseInt(posicion) + 1) + ".png";
  }
}

function mostrarImagenSiguienteLasPalmas(total) {
    posicion  = document.getElementById("imagenGrande").name;
    if ((parseInt(posicion) + 1) <= total ) {
      document.getElementById("imagenGrande").name = parseInt(posicion) + 1;
      document.getElementById("imagenGrande").src = "../../../imagenes/las_palmas/enero2010/" + (parseInt(posicion) + 1) + ".jpg";
  }
   
}

function mostrarImagenSiguienteLasPalmasNov(total) {
    posicion  = document.getElementById("imagenGrande").name;
    if ((parseInt(posicion) + 1) <= total ) {
      document.getElementById("imagenGrande").name = parseInt(posicion) + 1;
      document.getElementById("imagenGrande").src = "../../../imagenes/las_palmas/noviembre2010/" + (parseInt(posicion) + 1) + ".jpg";
  }

}

function mostrarImagenSiguienteLasPalmasJun(total) {
    posicion  = document.getElementById("imagenGrande").name;
    if ((parseInt(posicion) + 1) <= total ) {
      document.getElementById("imagenGrande").name = parseInt(posicion) + 1;
      document.getElementById("imagenGrande").src = "../../../imagenes/las_palmas/junio2011/" + (parseInt(posicion) + 1) + ".png";
  }

}

function mostrarImagenAnterior(juzgado, total) {
    posicion  = document.getElementById("imagenGrande").name;
    if ((parseInt(posicion) - 1) > 0) {
      document.getElementById("imagenGrande").name = parseInt(posicion) - 1;
      document.getElementById("imagenGrande").src = "../../../imagenes/" + juzgado + "/" + (parseInt(posicion) - 1) + ".png";
  }
}

function mostrarImagenAnteriorLasPalmas(total) {
    posicion  = document.getElementById("imagenGrande").name;
    if ((parseInt(posicion) - 1) > 0) {
      document.getElementById("imagenGrande").name = parseInt(posicion) - 1;
      document.getElementById("imagenGrande").src = "../../../imagenes/las_palmas/enero2010/" + (parseInt(posicion) - 1) + ".jpg";
  }
}

function mostrarImagenAnteriorLasPalmasNov(total) {
    posicion  = document.getElementById("imagenGrande").name;
    if ((parseInt(posicion) - 1) > 0) {
      document.getElementById("imagenGrande").name = parseInt(posicion) - 1;
      document.getElementById("imagenGrande").src = "../../../imagenes/las_palmas/noviembre2010/" + (parseInt(posicion) - 1) + ".jpg";
  }
}

function mostrarImagenAnteriorLasPalmasJun(total) {
    posicion  = document.getElementById("imagenGrande").name;
    if ((parseInt(posicion) - 1) > 0) {
      document.getElementById("imagenGrande").name = parseInt(posicion) - 1;
      document.getElementById("imagenGrande").src = "../../../imagenes/las_palmas/junio2011/" + (parseInt(posicion) - 1) + ".png";
  }
}

function mostrarImagenDirectorioSiguiente(juzgado, total) {
    posicion  = document.getElementById("imagenGrande").name;
    if ((parseInt(posicion) + 1) <= total ) {
      document.getElementById("imagenGrande").name = parseInt(posicion) + 1;
      document.getElementById("imagenGrande").src = "../../imagenes/" + juzgado + "/" + (parseInt(posicion) + 1) + ".png";
  }
}

function mostrarImagenDirectorioAnterior(juzgado, total) {
    posicion  = document.getElementById("imagenGrande").name;
    if ((parseInt(posicion) - 1) > 0) {
      document.getElementById("imagenGrande").name = parseInt(posicion) - 1;
      document.getElementById("imagenGrande").src = "../../imagenes/" + juzgado + "/" + (parseInt(posicion) - 1) + ".png";
  }
}
