//(c) 2011 E-TECH.NET.PL
//simple 'page loading' screen

(function()
{
  if (window.addEventListener)
  {
    window.addEventListener("load", hide_loading_screen, false);
  }
  else
  {
    window.attachEvent("onload", hide_loading_screen);
  }
})();

function display_loading_screen()
{
  document.getElementById("loadingdiv").style.display = 'block';
  document.getElementById("loadingdivtext").style.display = 'block';
  document.getElementById("loadingdiv").style.visibility = 'visible';
  document.getElementById("loadingdivtext").style.visibility = 'visible';
}

function hide_loading_screen()
{
  document.getElementById("loadingdiv").style.display = 'none';
  document.getElementById("loadingdivtext").style.display = 'none';
  document.getElementById("loadingdiv").style.visibility = 'hidden';
  document.getElementById("loadingdivtext").style.visibility = 'hidden';
}

