code: function() {
          OpenLayers.Control.prototype.draw.apply(this, arguments);
          if (!this.eTop) {
              // stick in the top bar
              this.eTop = document.createElement("div");
              this.eTop.className = this.displayClass + "Top";
              var theLen = this.topInUnits.length;
              this.div.appendChild(this.eTop);
              if((this.topOutUnits == "") || (this.topInUnits == "")) {
                  this.eTop.style.visibility = "hidden";
              } else {
                  this.eTop.style.visibility = "visible";
              }
  
              // and the bottom bar
              this.eBottom = document.createElement("div");
              this.eBottom.className = this.displayClass + "Bottom";
              this.div.appendChild(this.eBottom);
              if((this.bottomOutUnits == "") || (this.bottomInUnits == "")) {
                  this.eBottom.style.visibility = "hidden";
              } else {
                  this.eBottom.style.visibility = "visible";
              }
          }
          this.map.events.register('moveend', this, this.update);
          this.update();
          return this.div;
      }
docs: Constructor: OpenLayers.Control.ScaleLine
  Create a new scale line control.
  
  Parameters:
  options - {Object} An optional object whose properties will be used
  to extend the control.
   
  Method: draw
  
  Returns:
  {DOMElement}