var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
!function(t){function e(e,i){return parseInt(t.css(e[0],i))||0}function i(t){return t[0].offsetWidth+e(t,"marginLeft")+e(t,"marginRight")}function n(t){return t[0].offsetHeight+e(t,"marginTop")+e(t,"marginBottom")}t.fn.wpnbCarousel=function(e){return e=t.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:!1,auto:null,hoverPause:!1,speed:200,easing:null,vertical:!1,circular:!0,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},e||{}),this.each(function(){function a(){o(),$=setInterval(function(){r(b+e.scroll)},e.auto+e.speed)}function o(){clearInterval($)}function s(){return g.slice(b).slice(0,m)}function r(i){if(!c){if(e.beforeStart&&e.beforeStart.call(this,s()),e.circular)0>i?(u.css(l,-((b+p)*y)+"px"),b=i+p):i>v-m?(u.css(l,-((b-p)*y)+"px"),b=i-p):b=i;else{if(0>i||i>v-m)return;b=i}c=!0,u.animate("left"==l?{left:-(b*y)}:{top:-(b*y)},e.speed,e.easing,function(){e.afterEnd&&e.afterEnd.call(this,s()),c=!1}),e.circular||(t(e.btnPrev+","+e.btnNext).removeClass("disabled"),t(b-e.scroll<0&&e.btnPrev||b+e.scroll>v-m&&e.btnNext||[]).addClass("disabled"))}return!1}var c=!1,l=e.vertical?"top":"left",h=e.vertical?"height":"width",d=t(this),u=t("ul",d),f=t("li",u),p=f.size(),m=e.visible;e.circular&&(u.prepend(f.slice(p-m+1).clone()).append(f.slice(0,e.scroll).clone()),e.start+=m-1);var g=t("li",u),v=g.size(),b=e.start;d.css("visibility","visible"),g.css({overflow:"hidden","float":e.vertical?"none":"left"}),u.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"}),d.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var y=e.vertical?n(g):i(g),w=y*v,x=y*m;g.css({width:g.width(),height:g.height()}),u.css(h,w+"px").css(l,-(b*y)),d.css(h,x+"px"),e.btnPrev&&(t(e.btnPrev).click(function(){return r(b-e.scroll)}),e.hoverPause&&t(e.btnPrev).hover(function(){o()},function(){a()})),e.btnNext&&(t(e.btnNext).click(function(){return r(b+e.scroll)}),e.hoverPause&&t(e.btnNext).hover(function(){o()},function(){a()})),e.btnGo&&t.each(e.btnGo,function(i,n){t(n).click(function(){return r(e.circular?e.visible+i:i)})}),e.mouseWheel&&d.mousewheel&&d.mousewheel(function(t,i){return i>0?r(b-e.scroll):r(b+e.scroll)});var $;e.auto&&(e.hoverPause&&d.hover(function(){o()},function(){a()}),a())})}}(jQuery);
}