public/javascripts/yui/slider/slider.js
function Slider(sElementId, sGroup, oThumb, sType) {

    Slider.ANIM_AVAIL = (!YAHOO.lang.isUndefined(YAHOO.util.Anim));

    if (sElementId) {
        this.init(sElementId, sGroup, true);
        this.initSlider(sType);
        this.initThumb(oThumb);
    }
}
function Slider(sElementId, sGroup, oThumb, sType) {

    Slider.ANIM_AVAIL = (!YAHOO.lang.isUndefined(YAHOO.util.Anim));

    if (sElementId) {
        this.init(sElementId, sGroup, true);
        this.initSlider(sType);
        this.initThumb(oThumb);
    }
}
function Slider ( sElementId , sGroup , oThumb , sType ) { Slider . ANIM_AVAIL = ( ! YAHOO . lang . isUndefined ( YAHOO . util . Anim ) ) ; if ( sElementId ) { this . init ( sElementId , sGroup , true ) ; this . initSlider ( sType ) ; this . initThumb ( oThumb ) ; } }
A DragDrop implementation that can be used as a background for a
slider.  It takes a reference to the thumb instance
so it can delegate some of the events to it.  The goal is to make the
thumb jump to the location on the background when the background is
clicked.

@class Slider
@extends YAHOO.util.DragDrop
@uses YAHOO.util.EventProvider
@constructor
@param {String}      id     The id of the element linked to this instance
@param {String}      sGroup The group of related DragDrop items
@param {SliderThumb} oThumb The thumb for this slider
@param {String}      sType  The type of slider (horiz, vert, region)
A DragDrop implementation that can be used as a background for a slider . It takes a reference to the thumb instance so it can delegate some of the events to it . The goal is to make the thumb jump to the location on the background when the background is clicked .