function displayObject(id)
{
  o1 = document.getElementById("nt" + id).style;
  o2 = document.getElementById("nh" + id).style;

  if (o1.display == "none")
  {
    o1.display = "";
    o2.display = "none";
  }
  else
  {
    o1.display = "none";
    o2.display = "";
  }
}

function Fensterweite () 
{
  if (window.innerWidth) 
  {
    return window.innerWidth;
  } 
  else if (document.body && document.body.offsetWidth) 
  {
    return document.body.offsetWidth;
  } 
  else 
  {
    return 0;
  }
}

function Fensterhoehe () 
{
  if (window.innerHeight) 
  {
    return window.innerHeight;
  } 
  else if (document.body && document.body.offsetHeight) 
  {
    return document.body.offsetHeight;
  } 
  else 
  {
    return 0;
  }
}

function neuAufbau () 
{
  if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
  {
    if (document.all)
    {
      window.history.go(0);
    }
    else
    {
      location.href = location.href;
    }
  }
}

if (!window.Weite && window.innerWidth) 
{
  window.onresize = neuAufbau;
  Weite = Fensterweite();
  Hoehe = Fensterhoehe();
}

function ResetImage() 
{
  document.ChangedImage.src = document.ChangedImage.old;
}

function PreloadImages() 
{
  document.BodyImages = new Array();
    
  for(var i = 0; i < PreloadImages.arguments.length; i++)
  { 
    document.BodyImages[i]     = new Image; 
    document.BodyImages[i].src = PreloadImages.arguments[i];
  }

}

function ChangeImage(id, path) 
{
  document.ChangedImage = new Image; 
  document.ChangedImage = document.getElementById(id); 

  document.getElementById(id).old = document.getElementById(id).src; 
  document.getElementById(id).src = path;
}