(function ($) {
    $.fn.bubbleup = function (options) {
        
        var opt = $.extend({}, $.fn.bubbleup.defaults, options);

        return this.each(function () {
            var w = $(this).width();
            var h = $(this).height();
            $(this).mouseover(function () {
                $(this).stop().css({ 'z-index': 500, 'width': w }).animate({
                    width: w * opt.scale,
                    height: h * opt.scale
                }, opt.inSpeed);
            }).mouseout(function () {
                $(this).stop().css({ 'z-index': 200 }).animate({ width: w, height: h }, opt.outSpeed);
            })
        })
    }
    $.fn.bubbleup.defaults = {
        scale: 1.5,
        inSpeed: 'medium',
        outSpeed: 'medium'
    }
})(jQuery);
