  function displayBigImg(id, path, didascalia)
  {
    div = document.getElementById("bigImg_"+id);
    did = document.getElementById("didascalia_"+id);
    if (didascalia != "")
      did.innerHTML = ": " + didascalia;
    else
      did.innerHTML = "";
    div.innerHTML = '<img src="' + path + '" border="0" />';
  }
  
  function skipThumb(code, direction)
  {
    eval ("indice = indice_" + code);
    eval ("arr = galleria_" + code);
    n_immagini = arr.length;
    
    indice = indice + (direction*4);

    doAction = true;
    document.getElementById("next_"+code).style.visibility =
    document.getElementById("prev_"+code).style.visibility = "visible";
    if (indice >= n_immagini || indice < 0)
      doAction = false;
      
    if (n_immagini <= (indice+4)) 
      document.getElementById("next_"+code).style.visibility = "hidden";

    if (indice <= 0)
      document.getElementById("prev_"+code).style.visibility = "hidden";

    if (doAction)
    {
      for(i=0; i< arr.length; i++)
      {
        document.getElementById(arr[i]).style.display="none";
        if (i >= indice && i < indice+4)
          document.getElementById(arr[i]).style.display="";
      }
      eval ("indice_" + code + " = indice");
    }  //alert('yeah');
  }
