//20070919 KUV
function XElement(id) {
   if (document.getElementById) {
      this.el = document.getElementById(id);
      this.css = this.el.style;
   }
   else if (document.all) {
      this.el = document.all[id];
      this.css = this.el.style;
   }
   else if (document.layers) {
      this.el = document.layers[id];
      this.css = this.el;
   }
   this.x = parseInt(this.css.left);
   this.y = parseInt(this.css.top);
   this.zIndex = this.css.zIndex;
   this.sichtbar = true;
   if (document.layers) {
      this.breite = this.el.document.width;
      this.hoehe = this.el.document.height;
   }
   else {
      this.breite = this.el.offsetWidth;
      this.hoehe = this.el.offsetHeight;
   }
   this.moveTo = moveTo;
   this.toggleV = toggleV;
   this.clipTo = clipTo;
}
function moveTo(x,y) {
   this.css.left = x + "px"; this.css.top = y + "px";
   this.x = x; this.y = y;
}
function toggleV() {
   this.css.visibility = this.sichtbar ? "hidden":"visible";
   this.sichtbar = !this.sichtbar;
}
function clipTo(oben, rechts, unten, links) {
   if (document.layers) {
     this.css.clip.top=oben;this.css.clip.rechts=rechts;
     this.css.clip.unten=unten;this.css.clip.links=links;
   } else {
     this.css.clip = "rect("+oben+"px "+rechts+"px "+unten+"px "+links+"px)";
   }
}