function getInnerWidth() {
  var w = 800;
  if (self.innerWidth) // all except Explorer
  {
	w = self.innerWidth;
  }
  else if (document.documentElement && document.documentElement.clientWidth)
	// Explorer 6 Strict Mode
  {
	w = document.documentElement.clientWidth;
  }
  else if (document.body) // other Explorers
  {
	w = document.body.clientWidth;
  }
  return w;
}

function getInnerHeight() {
  var h = 600;
  if (self.innerHeight) // all except Explorer
  {
	h = self.innerHeight;
  }
  else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
  {
	h = document.documentElement.clientHeight;
  }
  else if (document.body) // other Explorers
  {
	h = document.body.clientHeight;
  }
  return h;
}

function fadeOut(t)
{
  // document.getElementById("debug").style.filter =
  "alpha(opacity=" + --t + ");"
  if (t>0) window.setTimeout("fadeOut("+t+")",10);
}
