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");
/*! lightslider - v1.1.2 - 2015-04-14
* {WPHOOT modified}
* https://github.com/sachinchoolur/lightslider
* Copyright (c) 2015 Sachin N; Licensed MIT */
!function(e,i){"use strict";var t={item:3,autoWidth:!1,slideMove:1,slideMargin:10,addClass:"",mode:"slide",useCSS:!0,cssEasing:"ease",easing:"linear",speed:400,auto:!1,loop:!1,slideEndAnimation:!0,pause:2e3,keyPress:!1,controls:!0,prevHtml:"",nextHtml:"",rtl:!1,adaptiveHeight:!1,vertical:!1,verticalHeight:500,vThumbWidth:100,thumbItem:10,pager:!0,gallery:!1,galleryMargin:5,thumbMargin:5,currentPagerPosition:"middle",enableTouch:!0,enableDrag:!0,freeMove:!0,swipeThreshold:40,responsive:[],onBeforeStart:function(e){},onSliderLoad:function(e){},onBeforeSlide:function(e,i){},onAfterSlide:function(e,i){},onBeforeNextSlide:function(e,i){},onBeforePrevSlide:function(e,i){}};e.fn.lightSlider=function(i){if(0===this.length)return this;if(this.length>1)return this.each(function(){e(this).lightSlider(i)}),this;var n={},l=e.extend(!0,{},t,i),a={},s=this;n.$el=this,"fade"===l.mode&&(l.vertical=!1);var o=s.children(),r=e(window).width(),d=null,c=null,f=0,h=0,u=!1,g=0,v="",p=0,m=l.vertical===!0?"height":"width",S=l.vertical===!0?"margin-bottom":"margin-right",M=0,b=0,C=0,T=0,x=null,w="ontouchstart"in document.documentElement,P={};return P.chbreakpoint=function(){if(r=e(window).width(),l.responsive.length){var i;if(l.autoWidth===!1&&(i=l.item),r<l.responsive[0].breakpoint)for(var t=0;t<l.responsive.length;t++)r<l.responsive[t].breakpoint&&(d=l.responsive[t].breakpoint,c=l.responsive[t]);if("undefined"!=typeof c&&null!==c)for(var n in c.settings)c.settings.hasOwnProperty(n)&&(("undefined"==typeof a[n]||null===a[n])&&(a[n]=l[n]),l[n]=c.settings[n]);if(!e.isEmptyObject(a)&&r>l.responsive[0].breakpoint)for(var s in a)a.hasOwnProperty(s)&&(l[s]=a[s]);l.autoWidth===!1&&M>0&&C>0&&i!==l.item&&(p=Math.round(M/((C+l.slideMargin)*l.slideMove)))}},P.calSW=function(){l.autoWidth===!1&&(C=(g-(l.item*l.slideMargin-l.slideMargin))/l.item)},P.calWidth=function(e){var i=e===!0?v.find(".lslide").length:o.length;if(l.autoWidth===!1)h=i*(C+l.slideMargin);else{h=0;for(var t=0;i>t;t++)h+=parseInt(o.eq(t).width())+l.slideMargin}return h},n={doCss:function(){var e=function(){for(var e=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],i=document.documentElement,t=0;t<e.length;t++)if(e[t]in i.style)return!0};return l.useCSS&&e()?!0:!1},keyPress:function(){l.keyPress&&e(document).on("keyup.lightslider",function(i){e(":focus").is("input, textarea")||(i.preventDefault?i.preventDefault():i.returnValue=!1,37===i.keyCode?(s.goToPrevSlide(),clearInterval(x)):39===i.keyCode&&(s.goToNextSlide(),clearInterval(x)))})},controls:function(){l.controls&&(s.after('<div class="lSAction"><a class="lSPrev">'+l.prevHtml+'</a><a class="lSNext">'+l.nextHtml+"</a></div>"),l.autoWidth?P.calWidth(!1)<g&&v.find(".lSAction").hide():f<=l.item&&v.find(".lSAction").hide(),v.find(".lSAction a").on("click",function(i){return i.preventDefault?i.preventDefault():i.returnValue=!1,"lSPrev"===e(this).attr("class")?s.goToPrevSlide():s.goToNextSlide(),clearInterval(x),!1}))},initialStyle:function(){var e=this;"fade"===l.mode&&(l.autoWidth=!1,l.slideEndAnimation=!1),l.auto&&(l.slideEndAnimation=!1),l.autoWidth&&(l.slideMove=1,l.item=1),l.loop&&(l.slideMove=1,l.freeMove=!1),l.onBeforeStart.call(this,s),P.chbreakpoint(),s.addClass("lightSlider").wrap('<div class="lSSlideOuter '+l.addClass+'"><div class="lSSlideWrapper"></div></div>'),v=s.parent(".lSSlideWrapper"),l.rtl===!0&&v.parent().addClass("lSrtl"),l.vertical?(v.parent().addClass("vertical"),g=l.verticalHeight,v.css("height",g+"px")):g=s.outerWidth(),o.addClass("lslide"),l.loop===!0&&"slide"===l.mode&&(P.calSW(),P.clone=function(){if(P.calWidth(!0)>g){for(var i=0,t=0,n=0;n<o.length&&(i+=parseInt(s.find(".lslide").eq(n).width())+l.slideMargin,t++,!(i>=g+l.slideMargin));n++);var a=l.autoWidth===!0?t:l.item;if(a<s.find(".clone.left").length)for(var r=0;r<s.find(".clone.left").length-a;r++)o.eq(r).remove();if(a<s.find(".clone.right").length)for(var d=o.length-1;d>o.length-1-s.find(".clone.right").length;d--)p--,o.eq(d).remove();for(var c=s.find(".clone.right").length;a>c;c++)s.find(".lslide").eq(c).clone().removeClass("lslide").addClass("clone right").appendTo(s),p++;for(var f=s.find(".lslide").length-s.find(".clone.left").length;f>s.find(".lslide").length-a;f--)s.find(".lslide").eq(f-1).clone().removeClass("lslide").addClass("clone left").prependTo(s);o=s.children()}else o.hasClass("clone")&&(s.find(".clone").remove(),e.move(s,0))},P.clone()),P.sSW=function(){f=o.length,l.rtl===!0&&l.vertical===!1&&(S="margin-left"),l.autoWidth===!1&&o.css(m,C+"px"),o.css(S,l.slideMargin+"px"),h=P.calWidth(!1),s.css(m,h+"px"),l.loop===!0&&"slide"===l.mode&&u===!1&&(p=s.find(".clone.left").length)},P.calL=function(){o=s.children(),f=o.length},this.doCss()&&v.addClass("usingCss"),P.calL(),"slide"===l.mode?(P.calSW(),P.sSW(),l.loop===!0&&(M=e.slideValue(),this.move(s,M)),l.vertical===!1&&this.setHeight(s,!1)):(this.setHeight(s,!0),s.addClass("lSFade"),this.doCss()||o.not(".active").css("display","none")),l.loop===!0&&"slide"===l.mode?o.eq(p).addClass("active"):o.first().addClass("active")},pager:function(){var e=this;if(P.createPager=function(){T=(g-(l.thumbItem*l.thumbMargin-l.thumbMargin))/l.thumbItem;var i=v.find(".lslide"),t=v.find(".lslide").length,n=0,a="",o=0;for(n=0;t>n;n++){"slide"===l.mode&&(l.autoWidth?o+=(parseInt(i.eq(n).width())+l.slideMargin)*l.slideMove:o=n*(C+l.slideMargin)*l.slideMove);var r=i.eq(n*l.slideMove).attr("data-thumb");if(a+=l.gallery===!0?'<li style="width:100%;'+m+":"+T+"px;"+S+":"+l.thumbMargin+'px"><a href="#"><img src="'+r+'" /></a></li>':'<li><a href="#"></a></li>',"slide"===l.mode&&o>=h-g-l.slideMargin){n+=1;var d=2;l.autoWidth&&(a+='<li><a href="#">'+(n+1)+"</a></li>",d=1),d>n?(a=null,v.parent().addClass("noPager")):v.parent().removeClass("noPager");break}}var c=v.parent();c.find(".lSPager").html(a),l.gallery===!0&&(l.vertical===!0&&c.find(".lSPager").css("width",l.vThumbWidth+"px"),b=n*(l.thumbMargin+T)+.5,c.find(".lSPager").css({property:b+"px","transition-duration":l.speed+"ms"}),l.vertical===!0&&v.parent().css("padding-right",l.vThumbWidth+l.galleryMargin+"px"),c.find(".lSPager").css(m,b+"px"));var f=c.find(".lSPager").find("li");f.first().addClass("active"),f.on("click",function(){return l.loop===!0&&"slide"===l.mode?p+=f.index(this)-c.find(".lSPager").find("li.active").index():p=f.index(this),s.mode(!1),l.gallery===!0&&e.slideThumb(),clearInterval(x),!1})},l.pager){var i="lSpg";l.gallery&&(i="lSGallery"),v.after('<ul class="lSPager '+i+'"></ul>');var t=l.vertical?"margin-left":"margin-top";v.parent().find(".lSPager").css(t,l.galleryMargin+"px"),P.createPager()}setTimeout(function(){P.init()},0)},setHeight:function(i,t){var n=null,a=this;n=l.loop?i.children(".lslide ").first():i.children().first();var s=function(){var e=n.outerHeight(),a=0,s=e;if(t&&(e=0,a=100*s/g),l.adaptiveHeight===!0&&l.vertical===!1){for(var r=0,d=0;d<l.item;d++)o.eq(p+d).outerHeight(!0)>r&&(r=o.eq(p+d).outerHeight(!0));e=r}i.css({height:e+"px","padding-bottom":a+"%"})};s(),n.find("img").length>0?n.find("img").one("load",function(){setTimeout(function(){s(),x||a.auto()},100)}).each(function(){this.complete&&e(this).load()}):x||a.auto()},active:function(e,i){this.doCss()&&"fade"===l.mode&&v.addClass("on");var t=0;if(p*l.slideMove<f){e.removeClass("active"),this.doCss()||"fade"!==l.mode||i!==!1||e.fadeOut(l.speed),t=i===!0?p:p*l.slideMove;var n,a;i===!0&&(n=e.length,a=n-1,t+1>=n&&(t=a)),l.loop===!0&&"slide"===l.mode&&(t=i===!0?p-s.find(".clone.left").length:p*l.slideMove,i===!0&&(n=e.length,a=n-1,t+1===n?t=a:t+1>n&&(t=0))),this.doCss()||"fade"!==l.mode||i!==!1||e.eq(t).fadeIn(l.speed),e.eq(t).addClass("active")}else e.removeClass("active"),e.eq(e.length-1).addClass("active"),this.doCss()||"fade"!==l.mode||i!==!1||(e.fadeOut(l.speed),e.eq(t).fadeIn(l.speed))},move:function(i,t){l.rtl===!0&&(t=-t),this.doCss()?l.vertical===!0?i.css({transform:"translate3d(0px, "+-t+"px, 0px)","-webkit-transform":"translate3d(0px, "+-t+"px, 0px)"}):i.css({transform:"translate3d("+-t+"px, 0px, 0px)","-webkit-transform":"translate3d("+-t+"px, 0px, 0px)"}):l.vertical===!0?i.css("position","relative").animate({top:-t+"px"},l.speed,l.easing):i.css("position","relative").animate({left:-t+"px"},l.speed,l.easing);var n=v.parent().find(".lSPager").find("li");this.active(n,!0);var a=1,s=setInterval(function(){e(window).trigger("hootSliderAnimated"),a++,5==a&&clearInterval(s)},100)},fade:function(){this.active(o,!1);var e=v.parent().find(".lSPager").find("li");this.active(e,!0)},slide:function(){var e=this;P.calSlide=function(){h>g&&(M=e.slideValue(),e.active(o,!1),M>h-g-l.slideMargin?M=h-g-l.slideMargin:0>M&&(M=0),e.move(s,M),l.loop===!0&&"slide"===l.mode&&(p>=f-s.find(".clone.left").length/l.slideMove&&e.resetSlide(s.find(".clone.left").length),0===p&&e.resetSlide(v.find(".lslide").length)))},P.calSlide()},resetSlide:function(e){var i=this;v.find(".lSAction a").addClass("disabled"),setTimeout(function(){p=e,v.css("transition-duration","0ms"),M=i.slideValue(),i.active(o,!1),n.move(s,M),setTimeout(function(){v.css("transition-duration",l.speed+"ms"),v.find(".lSAction a").removeClass("disabled")},50)},l.speed+100)},slideValue:function(){var e=0;if(l.autoWidth===!1)e=p*(C+l.slideMargin)*l.slideMove;else{e=0;for(var i=0;p>i;i++)e+=parseInt(o.eq(i).width())+l.slideMargin}return e},slideThumb:function(){var e;switch(l.currentPagerPosition){case"left":e=0;break;case"middle":e=g/2-T/2;break;case"right":e=g-T}var i=p-s.find(".clone.left").length,t=v.parent().find(".lSPager");"slide"===l.mode&&l.loop===!0&&(i>=t.children().length?i=0:0>i&&(i=t.children().length));var n=i*(T+l.thumbMargin)-e;n+g>b&&(n=b-g-l.thumbMargin),0>n&&(n=0),this.move(t,n)},auto:function(){l.auto&&(x=setInterval(function(){s.goToNextSlide()},l.pause))},touchMove:function(e,i){if(v.css("transition-duration","0ms"),"slide"===l.mode){var t=e-i,n=M-t;if(n>=h-g-l.slideMargin)if(l.freeMove===!1)n=h-g-l.slideMargin;else{var a=h-g-l.slideMargin;n=a+(n-a)/5}else 0>n&&(l.freeMove===!1?n=0:n/=5);this.move(s,n)}},touchEnd:function(e){if(v.css("transition-duration",l.speed+"ms"),clearInterval(x),"slide"===l.mode){var i=!1,t=!0;M-=e,M>h-g-l.slideMargin?(M=h-g-l.slideMargin,l.autoWidth===!1&&(i=!0)):0>M&&(M=0);var n=function(e){var t=0;if(i||e&&(t=1),l.autoWidth)for(var n=0,a=0;a<o.length&&(n+=parseInt(o.eq(a).width())+l.slideMargin,p=a+t,!(n>=M));a++);else{var s=M/((C+l.slideMargin)*l.slideMove);p=parseInt(s)+t,M>=h-g-l.slideMargin&&s%1!==0&&p++}};e>=l.swipeThreshold?(n(!1),t=!1):e<=-l.swipeThreshold&&(n(!0),t=!1),s.mode(t),this.slideThumb()}else e>=l.swipeThreshold?s.goToPrevSlide():e<=-l.swipeThreshold&&s.goToNextSlide()},enableDrag:function(){var i=this;if(!w){var t=0,n=0,a=!1;v.find(".lightSlider").addClass("lsGrab"),v.on("mousedown",function(i){return g>h&&0!==h?!1:void("lSPrev"!==e(i.target).attr("class")&&"lSNext"!==e(i.target).attr("class")&&(t=l.vertical===!0?i.pageY:i.pageX,a=!0,i.preventDefault?i.preventDefault():i.returnValue=!1,v.scrollLeft+=1,v.scrollLeft-=1,v.find(".lightSlider").removeClass("lsGrab").addClass("lsGrabbing"),clearInterval(x)))}),e(window).on("mousemove",function(e){a&&(n=l.vertical===!0?e.pageY:e.pageX,i.touchMove(n,t))}),e(window).on("mouseup",function(s){if(a){v.find(".lightSlider").removeClass("lsGrabbing").addClass("lsGrab"),a=!1,n=l.vertical===!0?s.pageY:s.pageX;var o=n-t;Math.abs(o)>=l.swipeThreshold&&e(window).on("click.ls",function(i){i.preventDefault?i.preventDefault():i.returnValue=!1,i.stopImmediatePropagation(),i.stopPropagation(),e(window).off("click.ls")}),i.touchEnd(o)}})}},enableTouch:function(){var e=this;if(w){var i={},t={};v.on("touchstart",function(e){t=e.originalEvent.targetTouches[0],i.pageX=e.originalEvent.targetTouches[0].pageX,i.pageY=e.originalEvent.targetTouches[0].pageY,clearInterval(x)}),v.on("touchmove",function(n){if(g>h&&0!==h)return!1;var a=n.originalEvent;t=a.targetTouches[0];var s=Math.abs(t.pageX-i.pageX),o=Math.abs(t.pageY-i.pageY);l.vertical===!0?(3*o>s&&n.preventDefault(),e.touchMove(t.pageY,i.pageY)):(3*s>o&&n.preventDefault(),e.touchMove(t.pageX,i.pageX))}),v.on("touchend",function(){if(g>h&&0!==h)return!1;var n;n=l.vertical===!0?t.pageY-i.pageY:t.pageX-i.pageX,e.touchEnd(n)})}},build:function(){var e=this;e.initialStyle(),this.doCss()&&(l.enableTouch===!0&&e.enableTouch(),l.enableDrag===!0&&e.enableDrag()),e.pager(),e.controls(),e.keyPress()}},n.build(),P.init=function(){if(P.chbreakpoint(),l.vertical===!0?(g=l.item>1?l.verticalHeight:o.outerHeight(),v.css("height",g+"px")):g=v.outerWidth(),l.loop===!0&&"slide"===l.mode&&f>1&&P.clone(),P.calL(),"slide"===l.mode&&s.removeClass("lSSlide"),"slide"===l.mode&&(P.calSW(),P.sSW()),setTimeout(function(){"slide"===l.mode&&s.addClass("lSSlide")},1e3),l.pager&&P.createPager(),l.adaptiveHeight===!0&&l.vertical===!1){for(var e=0,i=0;i<l.item;i++)o.eq(p+i).outerHeight(!0)>e&&(e=o.eq(p+i).outerHeight(!0));s.css("height",e)}l.adaptiveHeight===!1&&("slide"===l.mode?l.vertical===!1&&n.setHeight(s,!1):n.setHeight(s,!0)),l.gallery===!0&&n.slideThumb(),"slide"===l.mode&&n.slide(),l.autoWidth===!1?o.length<=l.item?v.find(".lSAction").hide():v.find(".lSAction").show():P.calWidth(!1)<g&&0!==h?v.find(".lSAction").hide():v.find(".lSAction").show()},s.goToPrevSlide=function(){if(p>0)l.onBeforePrevSlide.call(this,s,p),p--,s.mode(!1),l.gallery===!0&&n.slideThumb();else if(l.loop===!0){if(l.onBeforePrevSlide.call(this,s,p),"fade"===l.mode){var e=f-1;p=parseInt(e/l.slideMove)}s.mode(!1),l.gallery===!0&&n.slideThumb()}else l.slideEndAnimation===!0&&(s.addClass("leftEnd"),setTimeout(function(){s.removeClass("leftEnd")},400))},s.goToNextSlide=function(){var e=!0;if("slide"===l.mode){var i=n.slideValue();e=i<h-g-l.slideMargin}p*l.slideMove<f-l.slideMove&&e?(l.onBeforeNextSlide.call(this,s,p),p++,s.mode(!1),l.gallery===!0&&n.slideThumb()):l.loop===!0?(l.onBeforeNextSlide.call(this,s,p),p=0,s.mode(!1),l.gallery===!0&&n.slideThumb()):l.slideEndAnimation===!0&&(s.addClass("rightEnd"),setTimeout(function(){s.removeClass("rightEnd")},400))},s.mode=function(e){if(l.adaptiveHeight===!0&&l.vertical===!1){for(var i=0,t=0;t<l.item;t++)o.eq(p+t).outerHeight(!0)>i&&(i=o.eq(p+t).outerHeight(!0));s.css("height",i)}u===!1&&("slide"===l.mode?n.doCss()&&(s.addClass("lSSlide"),""!==l.speed&&v.css("transition-duration",l.speed+"ms"),""!==l.cssEasing&&v.css("transition-timing-function",l.cssEasing)):n.doCss()&&(""!==l.speed&&s.css("transition-duration",l.speed+"ms"),""!==l.cssEasing&&s.css("transition-timing-function",l.cssEasing))),e||l.onBeforeSlide.call(this,s,p),"slide"===l.mode?n.slide():n.fade(),setTimeout(function(){e||l.onAfterSlide.call(this,s,p)},l.speed),u=!0},s.play=function(){clearInterval(x),s.goToNextSlide(),x=setInterval(function(){s.goToNextSlide()},l.pause)},s.pause=function(){clearInterval(x)},s.refresh=function(){P.init()},s.getCurrentSlideCount=function(){var e=p;if(l.loop){var i=v.find(".lslide").length,t=s.find(".clone.left").length;e=t-1>=p?i+(p-t):p>=i+t?p-i-t:p-t}return e+1},s.getTotalSlideCount=function(){return v.find(".lslide").length},s.goToSlide=function(e){p=l.loop?e+s.find(".clone.left").length-1:e,s.mode(!1),l.gallery===!0&&n.slideThumb()},setTimeout(function(){l.onSliderLoad.call(this,s)},10),e(window).on("resize orientationchange",function(i){setTimeout(function(){i.preventDefault?i.preventDefault():i.returnValue=!1,P.init(),e(window).trigger("hootSliderAnimated")},200)}),this}}(jQuery);
}