!function(t){function e(t){var e={"<":"<",">":">","&":"&",'"':""","'":"'","/":"/"};return(t+"").replace(/[<>&"'\/]/g,function(t){return e[t]})}t.fn.extend({expandable:function(i){var n=t.extend({duration:"normal",interval:750,within:1,by:2,init:!1},i);return this.filter("textarea").each(function(){function i(){var t,i,o,s,f,l=r.val();p.html(e(l).replace(/\n/g,"
")),i=r[0].offsetHeight-d,o=p[0].offsetHeight-d,s=Math.floor(o/h),f=Math.floor(i/h-s),f<=n.within?(t=h*(s+Math.max(f,0)+n.by),r.stop().animate({height:t},n.duration)):f>n.by+n.within&&(t=Math.max(i-h*(f-(n.by+n.within)),a),r.stop().animate({height:t},n.duration))}var o,r=t(this).css({display:"block",overflow:"hidden"}),a=r.height(),d=this.offsetHeight-a,h=parseInt(r.css("lineHeight"),10)||parseInt(r.css("fontSize"),10),p=t('