$.fn.puffmsg = function(arg){
    var that = jQuery(this), theheight = that.height(), msgpop, popfrom, popto, thebg;
    that.wrapInner('<div></div>');
    msgpop = that.children();
    var obj = {
        'popto': '0px',
        'popfrom': '0px',
        'poptime': '300',
        'bg': '',
        'opac': '1'
    };
    obj = jQuery.extend(obj, arg);
    popfrom = (Math.floor(theheight - obj.popfrom));
    popto = (Math.floor(theheight - obj.popto));
    that.css({
        'overflow': 'hidden',
        'position': 'relative'
    });
    msgpop.css({
        'position': 'absolute',
        'top': popfrom,
        'left': '0',
        'background': obj.bg,
        'opacity': obj.opac
    });
    
    that.hover(function(){
        msgpop.stop();
        msgpop.animate({
            'top': popto
        }, obj.poptime);
    }, function(){
        msgpop.stop();
        msgpop.animate({
            'top': popfrom
        }, obj.poptime);
    });
};
