function centra(a) {
  with (document) {
    if (getElementById('schermo').clientWidth-getElementById('capo').clientWidth >= 0)
      getElementById('capo').style.left = (getElementById('schermo').clientWidth-getElementById('capo').clientWidth)/2+"px";
    else
      getElementById('capo').style.left = "0px";
  }
  if (a == "n") {
    with (document) {
      if (getElementById('testo_scroll').clientHeight > 190) {
        alt = 0-getElementById("testo_scroll").clientHeight;
        txtlim = getElementById("testo_scroll").clientHeight-190;
        getElementById('freccia_dw').style.display = "block";
        getElementById('testo_scroll').style.height = 190+"px";
      }
    }
  }
  document.getElementById('schermo').style.visibility = "visible";
}
function sottomenu(a,n) {
  with (document) {
    if (a == 1)
      getElementById('sm_'+n).className = "sottomenu_on";
    else
      getElementById('sm_'+n).className = "sottomenu_off";
  }
}
function zoom(a,n) {
  with (document) {
    if (a == 1) {
      images["zoom"].src = "../img/common/spazio.gif";
      images["zoom"].src = ""+n;
      getElementById('sfondo_zoom').style.display = "block";
      getElementById('foto_zoom').style.display = "block";
      getElementById('chiudi_zoom').style.display = "block";
    } else {
      images["zoom"].src = "../img/common/spazio.gif";
      getElementById('sfondo_zoom').style.display = "none";
      getElementById('foto_zoom').style.display = "none";
      getElementById('chiudi_zoom').style.display = "none";
    }
  }
}
function zoom_cartina(a) {
  with (document) {
    if (a == 1) {
      getElementById('sfondo_zoom').style.display = "block";
      getElementById('foto_zoom').style.display = "block";
      getElementById('chiudi_zoom').style.display = "block";
    } else {
      getElementById('sfondo_zoom').style.display = "none";
      getElementById('foto_zoom').style.display = "none";
      getElementById('chiudi_zoom').style.display = "none";
    }
  }
}
function zoom_admin() {
  with (document) {
      getElementById('sfondo_zoom').style.display = "block";
      getElementById('foto_zoom').style.display = "block";
      getElementById('chiudi_zoom').style.display = "block";
  }
}
function apri_rassegna()
{
	window.open('./rassegna_stampa.htm','stapa','width=790,height=360,scrollbars=yes,resizable=no');
}

