/*! jquery.cjAccarousel - v1.0.1 - 2015-06-14 * https://github.com/cssjunction/Accarousel * Copyright (c) 2015 ; Licensed */ !function(a){a.fn.cjAccarousel=function(b){var c={stand:".stand",panel:".detail-panel",pagerClass:"pager",x:".detail-panel",groupOf:5,scrollSpeed:1e3,ease:"swing",flyOutGap:3,nextPrev:!0};return b=a.extend(c,b),this.each(function(){function c(c){e.find(b.stand).show(),a(c).hide(),g.addClass("disabled"),a(c).parent().removeClass("disabled"),a(c).parent().is(".first-item")||f.animate({"margin-left":"-"+i+"px"},300),g.hide(),a(c).parent().prev().fadeIn(1e3),a(c).parent().next().fadeIn(1e3),a(c).parent().addClass("active-panel").width(j).show(100),a(c).siblings(b.panel).animate({width:j+"px","margin-left":"-"+j/2+"px"},300,function(){a(".inner-mask").addClass("expanded")}),f.width(j+2*i+b.flyOutGap),b.pagerEnable=!1,$pager.addClass("disabled")}function d(c){a(".inner-mask").removeClass("expanded"),a(b.stand).show(),a(b.panel).animate({width:"0","margin-left":"0"},300),g.show().removeClass("disabled"),f.animate({"margin-left":"-"+l},300),a(c).parent().removeClass("active-panel").css("width",i-b.flyOutGap),f.width(k),b.pagerEnable=!0,$pager.removeClass("disabled")}var e=a(this),f=e.children("ul"),g=f.children("li"),h=g.length,i=g.outerWidth(),j=b.groupOf*i,k=h*i,l=0;f.width(k),f.wrap('
'),e.width(j),b.pagerEnable=!0,g.each(function(){a(this).is(":first-child")&&a(this).addClass("first-item"),a(this).is(":last-child")&&a(this).addClass("last-item")}),g.children(b.stand).click(function(){return a(this).parent().is(".disabled")?!1:(c(this),!1)}),g.children(b.x).click(function(){return d(this),!1}),a(document).keyup(function(a){27==a.keyCode&&d(g.children(b.x))}),this.animate=function(c){if(b.pagerEnable){var d=a(c.target),e=d.attr("href").split("-")[1];if(d.is(".active"))return!1;if(d.is(".pager-last")?(a(".pager-prev").removeClass("disabled"),a(".pager-next").addClass("disabled")):d.is(".pager-first")?(a(".pager-prev").addClass("disabled"),a(".pager-next").removeClass("disabled")):a(".pager-prev, .pager-next").removeClass("disabled"),l=b.groupOf*i*e,d.is(".pager-last")){var g=h-b.groupOf*e;if(g