!function(s){OUShowMoreLess={containerClass:".oxy-ou-show-more-less",moreLinkClass:".show-more-link",closeLinkClass:".show-less-link",init:function(){s(this.containerClass+" .oushml-links").css("height",s(this.containerClass+" .oushml-links").height()+"px"),s(this.containerClass+" .oushml-links").on("click",s.proxy(this._buttonClick,this)),s(this.containerClass+" .oushml-links").on("keypress",s.proxy(this._buttonClick,this))},_buttonClick:function(n){var i=s(n.target).closest(this.containerClass),t=i.find(".ou-more-less-content"),o=i.find(".ou-more-less-content").attr("data-speed"),e=i.find(".ou-more-less-content").attr("data-height"),l=t[0].scrollHeight,h=i.find(".ou-more-less-content").attr("data-fadeeffect");if(this._validClick(n))if(n.preventDefault(),i.find(this.moreLinkClass).is(":hidden")){s(t).animate({height:e},parseInt(o),function(){"no"==h&&s(t).toggleClass("oushml-show-shadow"),i.find(".show-more-link").fadeIn(parseInt(o)+170)}),i.find(".show-less-link").fadeOut(parseInt(o)-50);var a=s(window);i.offset().top<a.scrollTop()+70&&s("html, body").animate({scrollTop:i.offset().top-70},parseInt(o),"swing")}else(i.find(this.closeLinkClass).is(":hidden")||0==i.find(this.closeLinkClass).length)&&("no"==h&&s(t).toggleClass("oushml-show-shadow"),s(t).animate({height:l},parseInt(o),function(){s(t).css("height","auto"),i.find(".show-less-link").fadeIn(parseInt(o)+170)}),i.find(".show-more-link").fadeOut(parseInt(o)-50))},_validClick:function(s){return 1==s.which||13==s.which||32==s.which||null==s.which}},s(function(){OUShowMoreLess.init()})}(jQuery);