/*

 AutoResize v1.1.0
 A jQuery Plugin that matches a textarea to the height of its text content
 http://azoffdesign.com/autoresize

 Intended for use with the latest jQuery
 http://code.jquery.com/jquery-latest.js

 Copyright 2011, Jonathan Azoff
 Dual licensed under the MIT or GPL Version 2 licenses.
 http://jquery.org/license

 For API documentation, see the README file
 https://github.com/azoff/AutoResize/blob/master/README.md

 Date: Tuesday, August 24th 2011
*/
window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var b=[].slice.call(arguments);typeof console.log==="object"?log.apply.call(console.log,console,b):console.log.apply(console,b)}};
(function(b){function g(){}for(var f="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),c;c=f.pop();)b[c]=b[c]||g})(function(){try{return console.log(),window.console}catch(b){return window.console={}}}());
(function(b,g){function f(){var a=b(this),c=a.height(),d=a.data("scrollOffset"),e=a.data("minHeight"),d=a.height(e).prop("scrollHeight")-d;a.height(d);c!==d&&a.trigger("autoresize:resize",d)}function c(){var a=b(this),c=a.val(),d=a.val("").height(),e=this.scrollHeight,e=e>d?e-d:0;a.data("minHeight",d);a.data("scrollOffset",e);a.val(c).bind(h,f);f.call(this)}var h="keyup change paste input";g.autoResize=function(){return this.filter("textarea").each(c)}})(jQuery,jQuery.fn);
(function(a){a(function(){a("textarea").autoResize()})})(jQuery);

