function errorBodyLoad () {
  $("#error").slideDown("slow");
  setTimeout(function () {
    $("#error_text").fadeIn("slow");
  }, 2000);
}
function reloadAfterLogin () {
  location.href="";
}
function hideLogger () {
  document.getElementById("logger").style.display = 'none';
}
function doLogin () {
  $("#logger").fadeOut("slow");
  setTimeout(function () {
    document.login.submit();
  },500);
}
function logout (url) {
  $("#navigator").fadeOut("slow");
  setTimeout(function () {
    $("#content").fadeOut("slow");
  },500);
  setTimeout(function () {
    $("#header").slideUp("slow");
  },1000);
  setTimeout(function () {
    location.href=url;
  },2000);
}
function openDownloads () {
  $("#header").fadeOut("slow");
  $("#navigator").fadeOut("slow");
  setTimeout(function () {
    $("#header").fadeIn("slow");
  },500);
  $("#content").fadeOut("slow");
  $("#downloads").slideDown("slow");
  setTimeout(function () {
    $("#header").fadeOut("slow");
  },1000);
  setTimeout(function () {
    $("#downloads_text").fadeIn("slow");
  },1000);
  setTimeout(function () {
    $("#header").fadeIn("slow");
  },1500);
}
function closeDownloads () {
  $("#header").fadeIn("slow");
  $("#downloads_text").fadeOut("slow");
  setTimeout(function () {
    $("#header").fadeOut("slow");
  },500);
  setTimeout(function () {
    $("#downloads").slideUp("slow");
  },1000);
  setTimeout(function () {
    $("#navigator").fadeIn("slow");
    $("#content").fadeIn("slow");
  },1500);
  setTimeout(function () {
    $("#header").fadeIn("slow");
  },2000);
}
function firstSplashEffect () {
  document.getElementById("header").style.display = 'none';
  document.getElementById("navigator").style.display = 'none';
  document.getElementById("content").style.display = 'none';
  $("#header").fadeIn("slow");
  setTimeout(function () {
    $("#header").fadeOut("slow");
  },500);
  setTimeout(function () {
    $("#header").fadeIn("slow");
  },1000);
  setTimeout(function () {
    $("#header").fadeOut("slow");
  },1500);
  setTimeout(function () {
    $("#header").slideDown("slow");
    $("#navigator").fadeIn("slow");
    $("#content").fadeIn("slow");
  },2000);
}
function openRegistrati () {
  $("#header").fadeOut("slow");
  $("#navigator").fadeOut("slow");
  $("#content").fadeOut("slow");
  $("#registrati").slideDown("slow");
  setTimeout(function () {
    $("#registrati_text").fadeIn("slow");
  },1000);
}
function closeRegistrati () {
  $("#registrati_text").fadeOut("slow");
  setTimeout(function () {
    $("#registrati").slideUp("slow");
  },1000);
  setTimeout(function () {
    $("#navigator").fadeIn("slow");
    $("#content").fadeIn("slow");
  },1500);
  setTimeout(function () {
    $("#header").fadeIn("slow");
  },2000);
}
function openRecuperaPsw () {
  $("#header").fadeOut("slow");
  $("#navigator").fadeOut("slow");
  $("#content").fadeOut("slow");
  $("#recuperapsw").slideDown("slow");
  setTimeout(function () {
    $("#recuperapsw_text").fadeIn("slow");
  },1000);
}
function closeRecuperaPsw () {
  $("#recuperapsw_text").fadeOut("slow");
  setTimeout(function () {
    $("#recuperapsw").slideUp("slow");
  },1000);
  setTimeout(function () {
    $("#navigator").fadeIn("slow");
    $("#content").fadeIn("slow");
  },1500);
  setTimeout(function () {
    $("#header").fadeIn("slow");
  },2000);
}
function regSubmit () {
  closeRegistrati();
  setTimeout(function () {
    document.registratiform.submit();
  },2500);
}
function recuSubmit () {
  closeRecuperaPsw();
  setTimeout(function () {
    document.recuperapswform.submit();
  },2500);
}
function openAlert (id) {
  var pagina = "dialog.php?IdAlert=" + id;
  window.open(pagina, '', 'width=1200, height=600, left=100, top=100, fullscreen=no, menubar=no, toolbar=no, location=no, scrollbars=no, status=no');
}
function wrapCommand (url) {
  $("#navigator").fadeOut("slow");
  setTimeout(function () {
    $("#content").fadeOut("slow");
  },500);
  setTimeout(function () {
    $("#header").slideUp("slow");
  },1000);
  setTimeout(function () {
    $("#wrapper").fadeIn("slow");
  },1500);
  setTimeout(function () {
    $("#wrapper").fadeOut("slow");
  },2000);
  setTimeout(function () {
    $("#wrapper").fadeIn("slow");
  },2500);
  setTimeout(function () {
    $("#wrapper").fadeOut("slow");
  },3000);
  setTimeout(function () {
    $("#wrapper").fadeIn("slow");
  },3500);
  setTimeout(function () {
    $("#wrapper").fadeOut("slow");
  },4000);
  setTimeout(function () {
    location.href=url;
  },5000);
}