ProgressBar = function ProgressBar(element, tween) {
    var assign;

    this.element = selector(element);
    this.element.tween = tween;
    this.element.tween.toolbar = this.element;
    this.element.toolbar = this;
    (assign = this.element.parentNode.getElementsByTagName('OUTPUT'), this.element.output = assign[0]);

    // invalidate
    if (!(this.element instanceof HTMLInputElement)) { throw TypeError('Target element is not [HTMLInputElement]'); }
    if (this.element.type !== 'range') { throw TypeError('Target element is not a range input'); }
    if (!(tween instanceof connect.tween)) { throw TypeError(("tween parameter is not [" + (connect.tween) + "]")); }

    this.element.setAttribute('value', 0);
    this.element.setAttribute('min', 0);
    this.element.setAttribute('max', 1);
    this.element.setAttribute('step', 0.0001);

    this.element.tween._onUpdate = this.updateBar;

    this.element.addEventListener('mousedown', this.downAction, false);
  }
ProgressBar

@class
A progress bar utility for KUTE.js that will connect
a target `<input type="slider">`. with a Tween instance
allowing it to control the progress of the Tween.