(function(n){function i(i,f){if(this.element=i,this.options=n.extend({},r,f),n(this.element).data("max-height",this.options.maxHeight),n(this.element).data("height-margin",this.options.heightMargin),delete this.options.maxHeight,this.options.embedCSS&&!u){var o=".readmore-js-toggle, .readmore-js-section { "+this.options.sectionCSS+" } .readmore-js-section { overflow: hidden; }",e=document.createElement("style");e.type="text/css";e.styleSheet?e.styleSheet.cssText=o:e.appendChild(document.createTextNode(o));document.getElementsByTagName("head")[0].appendChild(e);u=!0}this._defaults=r;this._name=t;this.init()}var t="readmore",r={speed:100,maxHeight:200,heightMargin:16,moreLink:'Read More<\/a>',lessLink:'Close<\/a>',embedCSS:!0,sectionCSS:"display: block; width: 100%;",startOpen:!1,expandedClass:"readmore-js-expanded",collapsedClass:"readmore-js-collapsed",beforeToggle:function(){},afterToggle:function(){}},u=!1;i.prototype={init:function(){var t=this;n(this.element).each(function(){var i=n(this),r=i.css("max-height").replace(/[^-\d\.]/g,"")>i.data("max-height")?i.css("max-height").replace(/[^-\d\.]/g,""):i.data("max-height"),u=i.data("height-margin");if("none"!=i.css("max-height")&&i.css("max-height","none"),t.setBoxHeight(i),i.outerHeight(!0)<=r+u)return!0;i.addClass("readmore-js-section "+t.options.collapsedClass).data("collapsedHeight",r);i.after(n(t.options.startOpen?t.options.lessLink:t.options.moreLink).on("click",function(n){t.toggleSlider(this,i,n)}).addClass("readmore-js-toggle"));t.options.startOpen||i.css({height:r})});n(window).on("resize",function(){t.resizeBoxes()})},toggleSlider:function(t,i,r){var u,f;r.preventDefault();u=this;r=newLink=sectionClass="";f=!1;r=n(i).data("collapsedHeight");n(i).height()<=r?(r=n(i).data("expandedHeight")+"px",newLink="lessLink",f=!0,sectionClass=u.options.expandedClass):(newLink="moreLink",sectionClass=u.options.collapsedClass);u.options.beforeToggle(t,i,f);n(i).animate({height:r},{duration:u.options.speed,complete:function(){u.options.afterToggle(t,i,f);n(t).replaceWith(n(u.options[newLink]).on("click",function(n){u.toggleSlider(this,i,n)}).addClass("readmore-js-toggle"));n(this).removeClass(u.options.collapsedClass+" "+u.options.expandedClass).addClass(sectionClass)}})},setBoxHeight:function(n){var t=n.clone().css({height:"auto",width:n.width(),overflow:"hidden"}).insertAfter(n),i=t.outerHeight(!0);t.remove();n.data("expandedHeight",i)},resizeBoxes:function(){var t=this;n(".readmore-js-section").each(function(){var i=n(this);t.setBoxHeight(i);(i.height()>i.data("expandedHeight")||i.hasClass(t.options.expandedClass)&&i.height()