!function(a,b,c,d){function e(b,c){b.owlCarousel={name:"Owl Carousel",author:"Bartosz Wojciechowski",version:"2.0.0-beta.2.1"},this.options=a.extend({},m,c),this._options=a.extend({},m,this.options),this.itemData=a.extend({},n),this.dom=a.extend({},o),this.width=a.extend({},p),this.num=a.extend({},q),this.pos=a.extend({},r),this.drag=a.extend({},s),this.speed=a.extend({},t),this.state=a.extend({},u),this.e=a.extend({},v),this.dom.el=b,this.dom.$el=a(b),this.plugins={};for(var d in e.Plugins)this.plugins[d]=new e.Plugins[d](this);this.suppressedEvents={},this.init()}function f(a){var b,d,e=c.createElement("div"),f=a;for(b in f)if(d=f[b],"undefined"!=typeof e.style[d])return e=null,[d,b];return[!1]}function g(){return f(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function h(){return f(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function j(){return f(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function k(){return"ontouchstart"in b||!!navigator.msMaxTouchPoints}function l(){return b.navigator.msPointerEnabled}var m={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,URLhashListener:!1,nav:!1,navRewind:!0,navText:["prev","next"],slideBy:1,dots:!0,dotsEach:!1,dotData:!1,smartSpeed:250,fluidSpeed:!1,navSpeed:!1,dotsSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",navElement:"div",navContainer:!1,dotsContainer:!1,themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active",navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],controlsClass:"owl-controls",dotClass:"owl-dot",dotsClass:"owl-dots"},n={index:!1,indexAbs:!1,posLeft:!1,clone:!1,active:!1,loaded:!1,lazyLoad:!1,current:!1,width:!1,center:!1,page:!1,hasVideo:!1,playVideo:!1},o={el:null,$el:null,stage:null,$stage:null,oStage:null,$oStage:null,$items:null,$oItems:null,$cItems:null,$cc:null,$navPrev:null,$navNext:null,$page:null,$nav:null,$content:null},p={el:0,stage:0,item:0,prevWindow:0,cloneLast:0},q={items:0,oItems:0,cItems:0,active:0,merged:[],nav:[],allPages:0},r={start:0,max:0,maxValue:0,prev:0,current:0,currentAbs:0,currentPage:0,stage:0,items:[],lsCurrent:0},s={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},t={onDragEnd:300,nav:300,css2speed:0},u={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},v={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null};e.Plugins={},e.prototype.init=function(){if(this.trigger("initialize"),this.dom.$el.hasClass(this.options.baseClass)||this.dom.$el.addClass(this.options.baseClass),this.dom.$el.hasClass(this.options.themeClass)||this.dom.$el.addClass(this.options.themeClass),this.options.rtl&&this.dom.$el.addClass("owl-rtl"),this.browserSupport(),this.sortOptions(),this.setResponsiveOptions(),this.options.autoWidth&&this.state.imagesLoaded!==!0){var a=this.dom.$el.find("img"),b=this.options.nestedItemSelector?"."+this.options.nestedItemSelector:d,c=this.dom.$el.children(b).width();if(a.length&&0>=c)return this.preloadAutoWidthImages(a),!1}this.width.prevWindow=this.windowWidth(),this.createStage(),this.fetchContent(),this.eventsCall(),this.addTriggerableEvents(),this.internalEvents(),this.dom.$el.addClass("owl-loading"),this.refresh(!0),this.dom.$el.removeClass("owl-loading").addClass("owl-loaded"),this.trigger("initialized")},e.prototype.sortOptions=function(){var a=this.options.responsive;this.responsiveSorted={};var b,c,d,e=[];for(b in a)e.push(b);for(e=e.sort(function(a,b){return a-b}),c=0;c=a){d=a;for(b in this.responsiveSorted[d])this.options[b]=this.responsiveSorted[d][b]}this.num.breakpoint=d,this.options.responsiveClass&&this.dom.$el.attr("class",function(a,b){return b.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+d)},e.prototype.optionsLogic=function(){this.dom.$el.toggleClass("owl-center",this.options.center),this.options.slideBy&&"page"===this.options.slideBy?this.options.slideBy=this.options.items:this.options.slideBy>this.options.items&&(this.options.slideBy=this.options.items),this.options.loop&&this.num.oItemsc;c++){var d=this.createItem(),e=a(d);this.setData(e,!1),this.dom.$stage.append(e)}},e.prototype.fillItem=function(b,c){var d=this.createItem(),e=b[c]||b,f=this.traversContent(e);return this.setData(d,!1,f),a(d).append(e)},e.prototype.traversContent=function(b){var c,d,e=a(b);return this.options.dotData&&(c=e.find("[data-dot]").andSelf().data("dot")),this.options.URLhashListener&&(d=e.find("[data-hash]").andSelf().data("hash")),{dot:c||!1,hash:d||!1}},e.prototype.setData=function(b,c,d){var e=this.itemData;if(d){var f={dot:d.dot,hash:d.hash};e=a.extend({},e,f)}c&&(e=a.extend({},e,c.data("owl-item"))),a(b).data("owl-item",e)},e.prototype.updateLocalContent=function(){this.dom.$oItems=this.dom.$stage.find("."+this.options.itemClass).filter(function(){return a(this).data("owl-item").clone===!1}),this.num.oItems=this.dom.$oItems.length;for(var b=0;bd;d++){var g=this.dom.$oItems.eq(d).clone(!0,!0),h=this.dom.$oItems.eq(f-d).clone(!0,!0);b=a(g[0]).addClass("cloned"),c=a(h[0]).addClass("cloned"),this.setData(b[0],g),this.setData(c[0],h),b.data("owl-item").clone=!0,c.data("owl-item").clone=!0,this.dom.$stage.append(b),this.dom.$stage.prepend(c),b=c=null}this.dom.$cItems=this.dom.$stage.find("."+this.options.itemClass).filter(function(){return a(this).data("owl-item").clone===!0})},e.prototype.reClone=function(){null!==this.dom.$cItems&&(this.dom.$cItems.remove(),this.dom.$cItems=null,this.num.cItems=0),this.options.loop&&this.loopClone()},e.prototype.calculate=function(){var a,b,c,d=0,e=0;this.width.el=this.dom.$el.width()-2*this.options.stagePadding,this.width.view=this.dom.$el.width();var f=this.width.el-this.options.margin*(1===this.options.items?0:this.options.items-1);for(this.width.el=this.width.el+this.options.margin,this.width.item=(f/this.options.items+this.options.margin).toFixed(3),this.dom.$items=this.dom.$stage.find(".owl-item"),this.num.items=this.dom.$items.length,this.options.autoWidth&&this.dom.$items.css("width",""),this.pos.items=[],this.num.merged=[],this.num.nav=[],c=this.options.rtl?this.options.center?-(this.width.el/2):0:this.options.center?this.width.el/2:0,this.width.mergeStage=0,a=0;athis.options.items&&(g=this.options.items),this.num.merged.push(parseInt(g)),this.width.mergeStage+=this.width.item*this.num.merged[a]}else this.num.merged.push(1);this.options.loop?a>=this.num.cItems/2&&ab;b++)this.dom.$items.eq(b).data("owl-item").indexAbs=b;this.setMinMax(),this.setSizes()},e.prototype.setMinMax=function(){var a=this.dom.$oItems.eq(0).data("owl-item").indexAbs;if(this.pos.min=0,this.pos.minValue=this.pos.items[a],this.options.loop||(this.pos.max=this.num.oItems-1),this.options.loop&&(this.pos.max=this.num.oItems+this.options.items),this.options.loop||this.options.center||(this.pos.max=this.num.oItems-this.options.items),this.options.loop&&this.options.center&&(this.pos.max=this.num.oItems+this.options.items),this.pos.maxValue=this.pos.items[this.pos.max],!this.options.loop&&!this.options.center&&this.options.autoWidth||this.options.merge&&!this.options.center){var b=this.options.rtl?1:-1;for(i=0;i",stageX+view)||this.op(f,"<",stageX)&&this.op(f,">",stageX+view))&&(this.num.active++,this.options.freeDrag&&!g&&(g=!0,this.pos.current=c.data("owl-item").index,this.pos.currentAbs=c.data("owl-item").indexAbs),c.data("owl-item").active=!0,c.data("owl-item").current=!0,c.addClass(this.options.activeClass),this.options.lazyLoad||(c.data("owl-item").loaded=!0),this.options.loop&&this.updateClonedItemsState(c.data("owl-item").index))},e.prototype.updateClonedItemsState=function(a){var b,c,d;for(this.options.center&&(b=this.dom.$items.eq(this.pos.currentAbs).data("owl-item").index),d=0;d0&&(this.state.direction=this.options.rtl?"left":"right"),this.options.loop)this.op(this.drag.currentX,">",this.pos.minValue)&&"right"===this.state.direction?this.drag.currentX-=this.pos.loop:this.op(this.drag.currentX,"<",this.pos.maxValue)&&"left"===this.state.direction&&(this.drag.currentX+=this.pos.loop);else{var h=this.options.rtl?this.pos.maxValue:this.pos.minValue,i=this.options.rtl?this.pos.minValue:this.pos.maxValue,j=this.options.pullDrag?this.drag.distance/5:0;this.drag.currentX=Math.max(Math.min(this.drag.currentX,h+j),i+j)}(this.drag.distance>8||this.drag.distance<-8)&&(c.preventDefault!==d?c.preventDefault():c.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===!1&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animStage(this.drag.updatedX)}},e.prototype.onDragEnd=function(){if(this.state.isTouch){if("mousedown"===this.dragType[0]&&this.dom.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&this.state.inMotion!==!0)return this.state.inMotion=!1,!1;this.drag.endTime=(new Date).getTime();var a=this.drag.endTime-this.drag.startTime,b=Math.abs(this.drag.distance);(b>3||a>300)&&this.removeClick(this.drag.targetEl);var d=this.closest(this.drag.updatedX);this.setSpeed(this.options.dragEndSpeed,!1,!0),this.animStage(this.pos.items[d]),this.options.pullDrag||this.drag.updatedX!==this.pos.items[d]||this.transitionEnd(),this.drag.distance=0,this.off(c,this.dragType[1],this.e._onDragMove),this.off(c,this.dragType[2],this.e._onDragEnd)}},e.prototype.removeClick=function(c){this.drag.targetEl=c,a(c).on("click.preventClick",this.e._preventClick),b.setTimeout(function(){a(c).off("click.preventClick")},300)},e.prototype.preventClick=function(b){b.preventDefault?b.preventDefault():b.returnValue=!1,b.stopPropagation&&b.stopPropagation(),a(b.target).off("click.preventClick")},e.prototype.getTransformProperty=function(){var a=b.getComputedStyle(this.dom.stage,null).getPropertyValue(this.vendorName+"transform");a=a.replace(/matrix(3d)?\(|\)/g,"").split(",");var c=16===a.length;return c!==!0?a[4]:a[12]},e.prototype.closest=function(a){var b=0,c=30;if(!this.options.freeDrag)for(var d=0;dthis.pos.items[d]-c&&a",this.pos.items[d+1||this.pos.items[d]-this.width.el])&&(b="left"===this.state.direction?d+1:d);return this.options.loop||(this.op(a,">",this.pos.minValue)?b=a=this.pos.min:this.op(a,"<",this.pos.maxValue)&&(b=a=this.pos.max)),this.options.freeDrag?(this.updateItemState(),a):(this.pos.currentAbs=b,this.pos.current=this.dom.$items.eq(b).data("owl-item").index,b)},e.prototype.animStage=function(a){0!==this.speed.current&&this.pos.currentAbs!==this.pos.min&&(this.trigger("translate"),this.state.inMotion=!0);var b=this.pos.stage=a,c=this.dom.stage.style;this.support3d?(translate="translate3d("+b+"px,0px, 0px)",c[this.transformVendor]=translate):this.state.isTouch?c.left=b+"px":this.dom.$stage.animate({left:b},this.speed.css2speed,this.options.fallbackEasing,function(){this.state.inMotion&&this.transitionEnd()}.bind(this)),this.onChange()},e.prototype.updatePosition=function(a){if(0===this.num.oItems)return!1;if(a===d)return!1;var b=a;return this.pos.prev=this.pos.currentAbs,this.state.revert?(this.pos.current=this.dom.$items.eq(b).data("owl-item").index,void(this.pos.currentAbs=b)):(b=this.options.loop?b>=this.num.oItems?this.num.oItems-1:b:this.options.navRewind?this.pos.current>=this.pos.max?b>this.pos.max?this.pos.min:0>b?this.pos.max:b:b>this.pos.max?this.pos.max:0>b?this.pos.max:b:b>this.pos.max?this.pos.max:0>=b?0:b,this.pos.current=this.dom.$oItems.eq(b).data("owl-item").index,void(this.pos.currentAbs=this.dom.$oItems.eq(b).data("owl-item").indexAbs))},e.prototype.setSpeed=function(a,b,c){var e=a,f=b;if(e===!1&&0!==e&&c!==!0||e===d){var g=Math.abs(f-this.pos.prev);g=0===g?1:g,g>6&&(g=6),e=g*this.options.smartSpeed}if(e===!1&&c===!0&&(e=this.options.smartSpeed),0===e&&(e=0),this.support3d){var h=this.dom.stage.style;h.webkitTransitionDuration=h.MsTransitionDuration=h.msTransitionDuration=h.MozTransitionDuration=h.OTransitionDuration=h.transitionDuration=e/1e3+"s"}else this.speed.css2speed=e;return this.speed.current=e,e},e.prototype.jumpTo=function(a,b){this.updatePosition(a),this.setSpeed(0),this.animStage(this.pos.items[this.pos.currentAbs]),b!==!0&&this.updateItemState()},e.prototype.goTo=function(a,b){this.updatePosition(a),this.setSpeed(b,this.pos.currentAbs),this.trigger("animate"),this.animStage(this.pos.items[this.pos.currentAbs])},e.prototype.next=function(a){var b=a||this.options.navSpeed;this.options.loop?this.goToLoop(this.options.slideBy,b):this.goTo(this.pos.current+this.options.slideBy,b)},e.prototype.prev=function(a){var b=a||this.options.navSpeed;this.options.loop?this.goToLoop(-this.options.slideBy,b):this.goTo(this.pos.current-this.options.slideBy,b)},e.prototype.goToLoop=function(a,c){var d=this.pos.currentAbs,e=this.pos.currentAbs,f=this.pos.currentAbs+a,g=0>e-f?!0:!1;this.state.revert=!0,f=this.num.items-this.options.items&&g===!0&&(this.state.bypass=!0,d=e-this.num.oItems,this.jumpTo(d,!0)),b.clearTimeout(this.e._goToLoop),this.e._goToLoop=b.setTimeout(function(){this.state.bypass=!1,this.goTo(d+a,c),this.state.revert=!1}.bind(this),30)},e.prototype.initPosition=function(a){if(!this.dom.$oItems||!a)return!1;var b=this.options.startPosition;"URLHash"===this.options.startPosition?b=this.options.startPosition=this.hashPosition():typeof this.options.startPosition===Number||this.options.center||(this.options.startPosition=0),this.dom.oStage.scrollLeft=0,this.jumpTo(b,!0)},e.prototype.goToHash=function(){var a=this.hashPosition();a===!1&&(a=0),this.dom.oStage.scrollLeft=0,this.goTo(a,this.options.navSpeed)},e.prototype.hashPosition=function(){var a,c=b.location.hash.substring(1);if(""===c)return!1;for(var d=0;d=b||0===g){d=c.createElement("div"),d.className=this.options.dotClass,e=c.createElement("span"),d.appendChild(e);var k=a(d);this.options.dotData&&k.html(this.dom.$oItems.eq(f).data("owl-item").dot),k.data("page",i),k.data("goToPage",j),this.dom.$page.append(d),g=0,j++}this.dom.$oItems.eq(f).data("owl-item").page=j-1,g+=this.num.nav[f],i++}if(!this.options.loop&&!this.options.center)for(var l=this.num.nav.length-1;l>=0&&(h+=this.num.nav[l],this.dom.$oItems.eq(l).data("owl-item").page=j-1,!(h>=b));l--);this.num.allPages=j-1},e.prototype.updateDots=function(){for(var a=this.dom.$page.children(),b=this.dom.$oItems.eq(this.pos.current).data("owl-item").page,c=0;c=this.pos.max&&this.dom.$navNext.addClass("disabled"))},e.prototype.insertContent=function(a){this.dom.$stage.empty(),this.fetchContent(a),this.refresh()},e.prototype.addItem=function(a,b){b=b||0;var c=this.fillItem(a);if(0===this.dom.$oItems.length)this.dom.$stage.append(c);else{var d=this.dom.$oItems.eq(b);-1!==b?d.before(c):d.after(c)}this.refresh()},e.prototype.removeItem=function(a){this.dom.$oItems.eq(a).remove(),this.refresh()},e.prototype.addTriggerableEvents=function(){var b=a.proxy(function(b,c){return a.proxy(function(){this.suppressedEvents[c]=!0,b.apply(this,[].slice.call(arguments,1)),delete this.suppressedEvents[c]},this)},this);a.each({next:this.next,prev:this.prev,to:this.goTo,destroy:this.destroy,refresh:this.refresh,replace:this.insertContent,add:this.addItem,remove:this.removeItem},a.proxy(function(a,c){this.dom.$el.on(a+".owl.carousel",b(c,a+".owl.carousel"))},this))},e.prototype.watchVisibility=function(){function a(a){return a.offsetWidth>0&&a.offsetHeight>0}function c(){a(this.dom.el)&&(this.dom.$el.removeClass("owl-hidden"),this.refresh(),b.clearInterval(this.e._checkVisibile))}a(this.dom.el)||(this.dom.$el.addClass("owl-hidden"),b.clearInterval(this.e._checkVisibile),this.e._checkVisibile=b.setInterval(c.bind(this),500))},e.prototype.onChange=function(){this.state.isTouch||this.state.bypass||this.state.responsive||(this.options.nav||this.options.dots)&&this.updateControls(),this.state.isTouch||this.state.bypass||(this.updateActiveItems(),this.storeInfo(),this.trigger("changed"))},e.prototype.storeInfo=function(){this.info={items:this.options.items,allItems:this.num.oItems,currentPosition:this.pos.current,currentPage:this.pos.currentPage,allPages:this.num.allPages,windowWidth:this.width.window,elWidth:this.width.el,breakpoint:this.num.breakpoint},"function"==typeof this.options.info&&this.options.info.apply(this,[this.info,this.dom.el])},e.prototype.preloadAutoWidthImages=function(b){var c=0,d=this;b.each(function(e,f){var g=a(f),h=new Image;h.onload=function(){c++,g.attr("src",h.src),g.css("opacity",1),c>=b.length&&(d.state.imagesLoaded=!0,d.init())},h.src=g.attr("src")||g.attr("data-src")||g.attr("data-src-retina")})},e.prototype.destroy=function(){this.dom.$el.hasClass(this.options.themeClass)&&this.dom.$el.removeClass(this.options.themeClass),this.options.responsive!==!1&&this.off(b,"resize",this.e._resizer),this.transitionEndVendor&&this.off(this.dom.stage,this.transitionEndVendor,this.e._transitionEnd);for(var a in this.plugins)this.plugins[a].destroy();(this.options.mouseDrag||this.options.touchDrag)&&(this.off(this.dom.stage,this.dragType[0],this.e._onDragStart),this.options.mouseDrag&&this.off(c,this.dragType[3],this.e._onDragStart),this.options.mouseDrag&&(this.dom.$stage.off("dragstart",function(){return!1}),this.dom.stage.onselectstart=function(){})),this.options.URLhashListener&&this.off(b,"hashchange",this.e._goToHash),this.dom.$el.off(".owl"),null!==this.dom.$cc&&this.dom.$cc.remove(),null!==this.dom.$cItems&&this.dom.$cItems.remove(),this.e=null,this.dom.$el.data("owlCarousel",null),delete this.dom.el.owlCarousel,this.dom.$stage.unwrap(),this.dom.$items.unwrap(),this.dom.$items.contents().unwrap(),this.dom=null},e.prototype.op=function(a,b,c){var d=this.options.rtl;switch(b){case"<":return d?a>c:c>a;case">":return d?c>a:a>c;case">=":return d?c>=a:a>=c;case"<=":return d?a>=c:c>=a}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d){var e=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),f=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),c);return f.data=a.extend(this.info,c),this.suppressedEvents[f.type]||this.dom.$el.trigger(f),"function"==typeof this.options[e]&&this.options[e].apply(this,f),f},e.prototype.browserSupport=function(){if(this.support3d=j(),this.support3d){this.transformVendor=h(); var a=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"];this.transitionEndVendor=a[g()],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=b.orientation},a.fn.owlCarousel=function(b){return this.each(function(){a(this).data("owlCarousel")||a(this).data("owlCarousel",new e(this,b))})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),Function.prototype.bind||(Function.prototype.bind=function(a){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var b=Array.prototype.slice.call(arguments,1),c=this,d=function(){},e=function(){return c.apply(this instanceof d&&a?this:a,b.concat(Array.prototype.slice.call(arguments)))};return d.prototype=this.prototype,e.prototype=new d,e}),function(a,b){LazyLoad=function(b){this.owl=b,this.owl.options=a.extend({},LazyLoad.Defaults,this.owl.options),this.owl.dom.$el.on({"updated.owl.carousel":a.proxy(function(){this.owl.options.lazyLoad&&this.check()},this)})},LazyLoad.Defaults={lazyLoad:!1},LazyLoad.prototype.check=function(){var a,c,d,e=b.devicePixelRatio>1?"data-src-retina":"data-src";for(d=0;d1?"data-src-retina":"data-src");h=h||f.attr("data-src"),g.onload=a.proxy(function(){d.data("owl-item").loaded=!0,f.is("img")?f.attr("src",g.src):f.css("background-image","url("+g.src+")"),f.css("opacity",1),this.owl.trigger("loaded",null,"lazy")},this),g.src=h},this))},LazyLoad.prototype.destroy=function(){this.owl.dom.$el.off(".owl")},a.fn.owlCarousel.Constructor.Plugins.lazyLoad=LazyLoad}(window.Zepto||window.jQuery,window,document),function(a,b){AutoHeight=function(b){this.owl=b,this.owl.options=a.extend({},AutoHeight.Defaults,this.owl.options),this.owl.dom.$el.on({"refreshed.owl.carousel changed.owl.carousel":a.proxy(function(){this.owl.options.autoHeight&&this.setHeight()},this)})},AutoHeight.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},AutoHeight.prototype.setHeight=function(a){if(this.owl.options.autoHeight!==!0&&a!==!0)return!1;this.owl.dom.$oStage.hasClass(this.owl.options.autoHeightClass)||this.owl.dom.$oStage.addClass(this.owl.options.autoHeightClass);var c=this.owl.dom.$items.eq(this.owl.pos.currentAbs),d=this.owl.dom.$oStage,e=0,f=b.setInterval(function(){e+=1,c.data("owl-item").loaded?(d.height(c.height()+"px"),clearInterval(f)):500===e&&clearInterval(f)},100)},AutoHeight.prototype.destroy=function(){this.owl.dom.$el.off(".owl")},a.fn.owlCarousel.Constructor.Plugins.autoHeight=AutoHeight}(window.Zepto||window.jQuery,window,document),function(a,b,c){Video=function(b){this.owl=b,this.owl.options=a.extend({},Video.Defaults,this.owl.options),this.owl.dom.$el.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.playVideo(a)},this)),this.owl.dom.$el.on({"resize.owl.carousel":a.proxy(function(a){this.owl.options.video&&!this.isInFullScreen()&&a.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":a.proxy(function(){this.owl.state.videoPlay&&this.stopVideo()},this),"refresh.owl.carousel":a.proxy(function(){return this.owl.options.video?void this.owl.dom.$el.one("updated.owl.carousel",a.proxy(this.checkVideoLinks,this)):!1},this)})},Video.Defaults={video:!1,videoHeight:!1,videoWidth:!1},Video.prototype.checkVideoLinks=function(){for(var a,b,c=0;c-1?d="youtube":e[3].indexOf("vimeo")>-1&&(d="vimeo"),e=e[6]}b.data("owl-item").videoType=d,b.data("owl-item").videoId=e,b.data("owl-item").videoWidth=h,b.data("owl-item").videoHeight=i,c={type:d,id:e};var k=h&&i?'style="width:'+h+"px;height:"+i+'px;"':"";a.wrap('
"),this.createVideoTn(a,c)},Video.prototype.createVideoTn=function(b,c){function d(a){f='
',e=j.options.lazyLoad?'
':'
',b.after(e),b.after(f)}var e,f,g=b.find("img"),h="src",i="",j=this.owl;if(this.owl.options.lazyLoad&&(h="data-src",i="owl-lazy"),g.length)return d(g.attr(h)),g.remove(),!1;if("youtube"===c.type){var k="http://img.youtube.com/vi/"+c.id+"/hqdefault.jpg";d(k)}else"vimeo"===c.type&&a.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){var b=a[0].thumbnail_large;d(b),j.options.loop&&j.updateItemState()}})},Video.prototype.stopVideo=function(){this.owl.trigger("stop",null,"video");var a=this.owl.dom.$items.eq(this.owl.state.videoPlayIndex);a.find(".owl-video-frame").remove(),a.removeClass("owl-video-playing"),this.owl.state.videoPlay=!1},Video.prototype.playVideo=function(b){this.owl.trigger("play",null,"video"),this.owl.state.videoPlay&&this.stopVideo();var c,d,e=a(b.target||b.srcElement),f=e.closest("."+this.owl.options.itemClass),g=f.data("owl-item").videoType,h=f.data("owl-item").videoId,i=f.data("owl-item").videoWidth||Math.floor(f.data("owl-item").width-this.owl.options.margin),j=f.data("owl-item").videoHeight||this.owl.dom.$stage.height();"youtube"===g?c='':"vimeo"===g&&(c=''),f.addClass("owl-video-playing"),this.owl.state.videoPlay=!0,this.owl.state.videoPlayIndex=f.data("owl-item").indexAbs,d=a('
'+c+"
"),e.after(d)},Video.prototype.isInFullScreen=function(){var d=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return d&&a(d.parentNode).hasClass("owl-video-frame")&&(this.owl.setSpeed(0),this.owl.state.isFullScreen=!0),d&&this.owl.state.isFullScreen&&this.owl.state.videoPlay?!1:this.owl.state.isFullScreen?(this.owl.state.isFullScreen=!1,!1):this.owl.state.videoPlay&&this.owl.state.orientation!==b.orientation?(this.owl.state.orientation=b.orientation,!1):!0},Video.prototype.destroy=function(){this.owl.dom.$el.off(".owl"),this.owl.dom.$el.off(".owl.video")},a.fn.owlCarousel.Constructor.Plugins.video=Video}(window.Zepto||window.jQuery,window,document),function(a){Animate=function(b){this.owl=b,this.owl.options=a.extend({},Animate.Defaults,this.owl.options),this.owl.dom.$el.on({"animate.owl.carousel":a.proxy(function(){(this.owl.options.animateIn||this.owl.options.animateOut)&&this.swap()},this)})},Animate.Defaults={animateOut:!1,animateIn:!1},Animate.prototype.swap=function(){this.owl.setSpeed(0),this.owl.state.animate=1===this.owl.options.items&&this.owl.support3d?!0:!1;var b=this.owl.dom.$items.eq(this.owl.pos.prev),c=Math.abs(b.data("owl-item").width)*this.owl.pos.prev,d=this.owl.dom.$items.eq(this.owl.pos.currentAbs),e=Math.abs(d.data("owl-item").width)*this.owl.pos.currentAbs;if(this.owl.pos.currentAbs===this.owl.pos.prev)return!1;var f=e-c,g=this.owl.options.animateIn,h=this.owl.options.animateOut,i=this.owl;removeStyles=function(){a(this).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(g).removeClass(h),i.transitionEnd()},h&&b.css({left:f+"px"}).addClass("animated owl-animated-out "+h).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",removeStyles),g&&d.addClass("animated owl-animated-in "+g).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",removeStyles)},Animate.prototype.destroy=function(){this.owl.dom.$el.off(".owl")},a.fn.owlCarousel.Constructor.Plugins.animate=Animate}(window.Zepto||window.jQuery,window,document),function(a,b,c){Autoplay=function(b){this.owl=b,this.owl.options=a.extend({},Autoplay.Defaults,this.owl.options),this.owl.dom.$el.on({"translated.owl.carousel refreshed.owl.carousel":a.proxy(function(){this.autoplay()},this),"play.owl.autoplay":a.proxy(function(a,b,c){this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(){this.stop()},this)}),this.owl.options.autoplayHoverPause&&(this.owl.dom.$el.on("mouseover.ap.owl",".owl-stage",a.proxy(function(){this.pause()},this)),this.owl.dom.$el.on("mouseleave.ap.owl",".owl-stage",a.proxy(function(){this.autoplay()},this)))},Autoplay.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},Autoplay.prototype.autoplay=function(){this.owl.options.autoplay&&!this.owl.state.videoPlay?(b.clearInterval(this.apInterval),this.apInterval=b.setInterval(function(){this.play()}.bind(this),this.owl.options.autoplayTimeout)):(b.clearInterval(this.apInterval),this.autoplayState=!1)},Autoplay.prototype.play=function(a,d){return c.hidden===!0?!1:(this.owl.options.autoplay||(this.owl._options.autoplay=this.owl.options.autoplay=!0,this.owl._options.autoplayTimeout=this.owl.options.autoplayTimeout=a||this.owl.options.autoplayTimeout||4e3,this.owl._options.autoplaySpeed=d||this.owl.options.autoplaySpeed),this.owl.options.autoplay===!1||this.owl.state.isTouch||this.owl.state.isScrolling||this.owl.state.isSwiping||this.owl.state.inMotion?(b.clearInterval(this.apInterval),!1):(!this.owl.options.loop&&this.owl.pos.current>=this.owl.pos.max?(b.clearInterval(this.e._autoplay),this.owl.goTo(0)):this.owl.next(this.owl.options.autoplaySpeed),void(this.autoplayState=!0)))},Autoplay.prototype.stop=function(){this.owl._options.autoplay=this.owl.options.autoplay=!1,this.autoplayState=!1,b.clearInterval(this.apInterval)},Autoplay.prototype.pause=function(){b.clearInterval(this.apInterval)},Autoplay.prototype.destroy=function(){b.clearInterval(this.apInterval),this.owl.dom.$el.off(".owl")},a.fn.owlCarousel.Constructor.Plugins.autoplay=Autoplay}(window.Zepto||window.jQuery,window,document);