function ToggleArt()
{
  ids = ["header", "module", "contactinfo", "breadcrumbs", "footer", "menu"];
  for (i in ids)
    ToggleShowElement(ids[i]);
}

function CenterPage()
{
  obj = document.getElementById("document");

  width = 0;
  if (window.innerWidth != undefined)
    width = window.innerWidth;
  else if ((document.documentElement != undefined) && (document.documentElement.clientWidth != undefined))
    width = document.documentElement.clientWidth;
  else if ((document.body != undefined) && (document.body.clientWidth != undefined))
    width = document.body.clientWidth;

  height = 0;
  if (window.innerHeight != undefined)
    height = window.innerHeight;
  else if ((document.documentElement != undefined) && (document.documentElement.clientHeight != undefined))
    height = document.documentElement.clientHeight;
  else if ((document.body != undefined) && (document.body.clientHeight != undefined))
    height = document.body.clientHeight;

  sizes = { left: "0",
            top: "10px",
            marginLeft: "0",
            marginTop: "0" };

  if ((obj.offsetWidth - 10) <= width)
  {
    sizes.left = "50%";
    sizes.marginLeft = "-350px";
  }

  if (obj.offsetHeight <= height)
  {
    sizes.top = "50%";
    sizes.marginTop = "-320px";
  }

  obj.style.margin = sizes.marginTop + " 0 0 " + sizes.marginLeft;
  obj.style.left = sizes.left;
  obj.style.top = sizes.top;
}
