code: function setGradient(element, startColor, endColor) {
      var start = startColor.toCSS(),
        end   = endColor.toCSS(),
        styles = window.getComputedStyle(document.documentElement, ''), 
        prefix = (Array.prototype.slice.call(styles).join('').match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o']))[1];
        
      element.css('background-image', '-'+prefix+'-linear-gradient(left, '+start+' 0%, '+end+' 100%)');
    }
docs: Set a horizontal gradient background image on an element.
  Uses the now-deprecated $.browser
  @param $ element
  @param $.colorpicker.Color startColor
  @param $.colorpicker.Color endColor
  @returns {undefined}