// Erstellt von Marion Schölzel (info@marion-schoelzel.de)
// allgemeine Definitionen für www.weihnachten-im-web.de

var dom = 0, ie = 0, ns = 0;
var gecko = 0, explorer = 0;
var fb = 0, fh = 0;
var so = "visible", ho = "hidden";

function browser()
{
   if (navigator.appName == "Netscape") {
      gecko = 1;
      fb = window.innerWidth; fh = window.innerHeight;
   }
   else {
      explorer = 1;
      if (document.body.scrollWidth > document.body.clientWidth) {fb = document.body.scrollWidth;}
      else {fb = document.body.clientWidth;}
      if (document.body.scrollHeight > document.body.clientHeight) {fh = document.body.scrollHeight;}
      else {fh = document.body.clientHeight;}            
   }
   if (document.getElementById) {
      dom = 1;
      return;
   }
   if (document.all) {
      ie = 1;
      return;
   }
   if (document.layers) {
      ns = 1; so = "show"; ho = "hide";
      return;
   }
}

function getPos(pos)
{
   if (document.getElementById) {
      return (pos + "px");
   }
   else {
      return pos;
   }
}