/*
    oCss: An associative array that applies css classes to the tabs. Keys to the array are:
          standard, pressed, and hover
*/
function Button(oDiv, oCss)
{
    var oThis = this;
    
    this.button = Util.Get(oDiv);
    
    Util.DisableSelection(this.button);
    
    this.button.style.cursor = 'pointer';
    
    if (oCss.hover) Util.AddEvent(this.button, 'mouseover', function() { oThis.button.className = oCss.hover; } );
    if (oCss.pressed) Util.AddEvent(this.button, 'mousedown', function() { oThis.button.className = oCss.pressed; } );
    if (oCss.pressed) Util.AddEvent(document, 'mouseup', function() { oThis.button.className = oCss.standard; } );
};