// JavaScript Document

      function fadingObject(id) {
        this.id = id;
        this.getOpacity = function() {
          if (document.all) {
            return document.all[this.id].filters['alpha'].opacity;
          }
          else if (document.getElementById) {
            return document.getElementById(this.id).style.MozOpacity*100;
          }
        }
        this.setOpacity = function(percent) {
          if (document.all) {
            document.all[this.id].filters['alpha'].opacity = percent;
          }
          else if (document.getElementById) {
            document.getElementById(this.id).style.MozOpacity = percent/100;
          }
        }
        this.fadeTo = function(newOpacity, deltaPercent) {
          window.clearTimeout(this.timeout);
          currentOpacity = this.getOpacity();
          if (newOpacity > currentOpacity) {
            if (currentOpacity < newOpacity - deltaPercent) {
              this.setOpacity(currentOpacity + deltaPercent);
              this.timeout = window.setTimeout('obj_'+this.id+'.fadeTo('+newOpacity+', '+deltaPercent+')', 50);
            }
            else {
              this.setOpacity(newOpacity);
            }
          }
          else if (newOpacity < currentOpacity) {
            if (currentOpacity > newOpacity + deltaPercent) {
              this.setOpacity(currentOpacity - deltaPercent);
              this.timeout = window.setTimeout('obj_'+this.id+'.fadeTo('+newOpacity+', '+deltaPercent+')', 50);
            }
            else {
              this.setOpacity(newOpacity);
            }
          }
        }
      }

