(function($) {
    jQuery.fn.extend(
    {
        roundedcorner: function(options) {
            this.corners();
        },


        trimbehavior: function() {
            this.each(function(index, elem) {
                var self = $(elem);
                self.change(function() {
                    self.val($.trim(self.val()));
                });
            });
        }
    });

    jQuery.extend(
    {
        stopPropagation: function(e) {
            e.preventDefault();
            e.stopPropagation();
        },

        min: function(a, b) { return a < b ? a : b; },
        max: function(a, b) { return a > b ? a : b; }
    });

})(jQuery);

