/*
##################################################
#  TechArts DHTML-Library 1.2 - www.techarts.de  #
#                                                #
#Copyright 2000 Oliver Schaarschmidt             #
#Alle Rechte vorbehalten                         #
##################################################
*/


var n4, ie, w3c;


function objDHTML(id)
  {
    n4=document.layers;
    ie=document.all;
    w3c=document.documentElement;
    if(n4)
      {
        this.me=document.layers[id];
      }
    else if(ie)
      {
        this.me=document.all[id];
      }
    else if(w3c)
      {
        this.me=document.getElementById(id);
      }
    this.properties=n4? this.me : this.me.style;
    var topValue=this.properties.top;
    this.top=n4? topValue : topValue.slice(0,topValue.length-2);
    var leftValue=this.properties.left;
    this.left=n4?  topValue : leftValue.slice(0,leftValue.length-2);
    this.changePosTo=changePosTo;
    this.hide=hide;
    this.show=show;
    this.changeContent=changeContent;
    this.changeZIndex=changeZIndex;
  }


function changePosTo(top,left)
  {
    if(! n4)
      {
        top+="px";
        left+="px";
      }
    this.properties.top=top;
    this.properties.left=left;
  }

function hide()
  {
    this.properties.visibility="hidden";
  }

function show()
  {
    this.properties.visibility="visible";
  }

function changeContent(text)
  {
    if(n4)
      {
        this.me.document.open();
        this.me.document.write(text);
        this.me.document.close();
      }
    else if(ie)
      {
        this.me.innerHTML=text;
      }
    else if(w3c)
      {
        this.me.firstChild.nodeValue=text;
      }
  }

function changeZIndex(nr)
  {
    this.properties.zIndex=nr;
  }