// JavaScript Document
//einige browserübergreifende Funktionen

var B_Type=new CrossBrowserType();

//Konstruktorfunktion
function CrossBrowserType()
{
  this.IE=false;
  this.NS4=false;
  this.NS6=false;
  this.id="";
  if(document.all)
  {
    this.IE=true;
    this.id="IE";
  }
  else if(document.getElementById)
  {
    this.NS6=true;
    this.id="NS6";
  }
  else if(document.layers)
  {
    this.NS4=true;
    this.id="NS4";
  }
}

//getobject browserspezifisch
function crossGetObject(id)
{
  var obj=null;
  if(B_Type.IE)
    obj=document.all[id];
  else if(B_Type.NS6)
    obj=document.getElementById(id);
  else if(B_Type.NS4)
    obj=document.layers[id];
  return obj;
}

//Beispiel: Objekt ausblenden
function crossHideObject(obj)
{
  if(B_Type.IE || B_Type.NS6)
    obj.style.visibility="hidden";
  else if(B_Type.NS4)
    obj.visibility="hide";
}

//Beispiel: Objekt einblenden
function crossShowObject(obj)
{
  if(B_Type.IE || B_Type.NS6)
    obj.style.visibility="visible";
  else if(B_Type.NS4)
    obj.visibility="show";
}
