/*** Gestione pannello comandi */
aPCtime = "";
function apriPannelloComandi (e, tf) {
  if (!e) e = window.event;

  obj = document.all("panelComandi");
  xMax = winSize()+parseInt(document.body.scrollLeft)-350;
  sxPC = parseInt(obj.offsetLeft);
  if (tf) {if (sxPC<900) aPCtime = setTimeout("obj.style.left=900;aPCtime=''",500);}
  else if (aPCtime!="") clearTimeout(aPCtime);
  else if (sxPC>xMax) obj.style.left=xMax;
}

function scrollaPannelloComandi() {
  //document.all("panelComandi").style.top = document.body.scrollTop;
}

function iPannelloComandi() {
  apriPannelloComandi(false, false);
  apriPannelloComandi(false, true);
}

onLoad += "iPannelloComandi();window.onscroll = scrollaPannelloComandi;document.oncontextmenu=new Function('return false');";

/*** panelComandi open/close fieldset */
function showInfo(fieldsedContent)
{
  fieldset = fieldsedContent.parentNode.parentNode;
  if (fieldset != null)
  {
    n = fieldset.children;
    n[1].style.display = (n[1].style.display == "none")? "block": "none";
    saveCookie(fieldset.id, n[1].style.display, 0);
  }
}