(function(){tinymce.create("tinymce.plugins.AutoResizePlugin",{init:function(c,a){var b=this;if(c.getParam("fullscreen_is_enabled")){return}function d(){var j=c.getDoc(),g=j.body,f=j.documentElement,i=tinymce.DOM,e=b.autoresize_min_height,h;h=tinymce.isIE?g.scrollHeight:f.offsetHeight;if(h>b.autoresize_min_height){e=h}i.setStyle(i.get(c.id+"_ifr"),"height",e+"px");if(b.throbbing){c.setProgressState(false);c.setProgressState(true)}}b.editor=c;b.autoresize_min_height=c.getElement().offsetHeight;c.onChange.add(d);c.onSetContent.add(d);c.onPaste.add(d);c.onKeyUp.add(d);c.onPostRender.add(d);if(c.getParam("autoresize_on_init",true)){c.onInit.add(function(f,e){f.setProgressState(true);b.throbbing=true;f.getBody().style.overflowY="hidden"});c.onLoadContent.add(function(f,e){d();setTimeout(function(){d();f.setProgressState(false);b.throbbing=false},1250)})}c.addCommand("mceAutoResize",d)},getInfo:function(){return{longname:"Auto Resize",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autoresize",tinymce.plugins.AutoResizePlugin)})();