jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),hb?-.5*h*Math.pow(2,10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g)+c:h*Math.pow(2,-10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?7.5625*d*b*b+c:2/2.75>b?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:2.5/2.75>b?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return e/2>b?.5*jQuery.easing.easeInBounce(a,2*b,0,d,e)+c:.5*jQuery.easing.easeOutBounce(a,2*b-e,0,d,e)+.5*d+c}});var jQueryevent=jQuery.event,resizeTimeout;jQueryevent.special.smartresize={setup:function(){jQuery(this).bind("resize",jQueryevent.special.smartresize.handler)},teardown:function(){jQuery(this).unbind("resize",jQueryevent.special.smartresize.handler)},handler:function(a,b){var c=this,d=arguments;a.type="smartresize",resizeTimeout&&clearTimeout(resizeTimeout),resizeTimeout=setTimeout(function(){jQuery.event.handle.apply(c,d)},"execAsap"===b?0:100)}},jQuery.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},jQuery.Accordion=function(a,b){this.jQueryel=jQuery(b),this.jQueryitems=this.jQueryel.children("ul").children("li"),this.itemsCount=this.jQueryitems.length,this._init(a)},jQuery.Accordion.defaults={open:-1,oneOpenedItem:!1,speed:600,easing:"easeInOutExpo",scrollSpeed:900,scrollEasing:"easeInOutExpo"},jQuery.Accordion.prototype={_init:function(a){this.options=jQuery.extend(!0,{},jQuery.Accordion.defaults,a),this._validate(),this.current=this.options.open,this.jQueryitems.find("div.acc-content").hide(),this._saveDimValues(),-1!=this.current&&this._toggleItem(this.jQueryitems.eq(this.current)),this._initEvents()},_saveDimValues:function(){this.jQueryitems.each(function(){var a=jQuery(this);a.data({originalHeight:a.find("a:first").height(),offsetTop:a.offset().top})})},_validate:function(){(this.options.open<-1||this.options.open>this.itemsCount-1)&&(this.options.open=-1)},_initEvents:function(){var a=this;this.jQueryitems.find("a:first").bind("click.accordion",function(){var b=jQuery(this).parent();return a.options.oneOpenedItem&&a._isOpened()&&a.current!==b.index()&&a._toggleItem(a.jQueryitems.eq(a.current)),a._toggleItem(b),!1}),jQuery(window).bind("smartresize.accordion",function(){a._saveDimValues(),a.jQueryel.find("li.acc-open").each(function(){var a=jQuery(this);a.css("height",a.data("originalHeight")+a.find("div.acc-content").outerHeight(!0))}),a._isOpened()&&a._scroll()})},_isOpened:function(){return this.jQueryel.find("li.acc-open").length>0},_toggleItem:function(a){var b=a.find("div.acc-content");a.hasClass("acc-open")?(this.current=-1,b.stop(!0,!0).fadeOut(this.options.speed),a.removeClass("acc-open").stop().animate({height:a.data("originalHeight")},this.options.speed,this.options.easing)):(this.current=a.index(),b.stop(!0,!0).fadeIn(this.options.speed),a.addClass("acc-open").stop().animate({height:a.data("originalHeight")+b.outerHeight(!0)},this.options.speed,this.options.easing),this._scroll(this))},_scroll:function(a){var b,a=a||this;b=-1!==a.current?a.current:a.jQueryel.find("li.acc-open:last").index()}};var logError=function(a){this.console&&console.error(a)};jQuery.fn.accordion=function(a){if("string"==typeof a){var b=Array.prototype.slice.call(arguments,1);this.each(function(){var c=jQuery.data(this,"accordion");return c?jQuery.isFunction(c[a])&&"_"!==a.charAt(0)?void c[a].apply(c,b):void logError("no such method '"+a+"' for accordion instance"):void logError("cannot call methods on accordion prior to initialization; attempted to call method '"+a+"'")})}else this.each(function(){var b=jQuery.data(this,"accordion");b||jQuery.data(this,"accordion",new jQuery.Accordion(a,this))});return this};