!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.settings=null,this.options=a.extend({},e.defaults,c),this.itemdata=a.extend({},l),this.dom=a.extend({},m),this.width=a.extend({},n),this.num=a.extend({},o),this.drag=a.extend({},q),this.state=a.extend({},r),this.e=a.extend({},s),this.plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=null,this.dom.el=b,this.dom.$el=a(b);for(var d in e.plugins)this.plugins[d[0].tolowercase()+d.slice(1)]=new e.plugins[d](this);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 i(){return f(["perspective","webkitperspective","mozperspective","operspective","msperspective"])[0]}function j(){return"ontouchstart"in b||!!navigator.msmaxtouchpoints}function k(){return b.navigator.mspointerenabled}var l,m,n,o,p,q,r,s;l={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},m={el:null,$el:null,stage:null,$stage:null,ostage:null,$ostage:null,$items:null,$oitems:null,$citems:null,$content:null},n={el:0,stage:0,item:0,prevwindow:0,clonelast:0},o={items:0,oitems:0,citems:0,active:0,merged:[]},q={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},r={istouch:!1,isscrolling:!1,isswiping:!1,direction:!1,inmotion:!1},s={_ondragstart:null,_ondragmove:null,_ondragend:null,_transitionend:null,_resizer:null,_responsivecall:null,_gotoloop:null,_checkvisibile:null},e.defaults={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,smartspeed:250,fluidspeed:!1,dragendspeed:!1,responsive:{},responsiverefreshrate:200,responsivebaseelement:b,responsiveclass:!1,fallbackeasing:"swing",info:!1,nesteditemselector:!1,itemelement:"div",stageelement:"div",themeclass:"owl-theme",baseclass:"owl-carousel",itemclass:"owl-item",centerclass:"center",activeclass:"active"},e.plugins={},e.prototype.init=function(){if(this.setresponsiveoptions(),this.trigger("initialize"),this.dom.$el.hasclass(this.settings.baseclass)||this.dom.$el.addclass(this.settings.baseclass),this.dom.$el.hasclass(this.settings.themeclass)||this.dom.$el.addclass(this.settings.themeclass),this.settings.rtl&&this.dom.$el.addclass("owl-rtl"),this.browsersupport(),this.settings.autowidth&&this.state.imagesloaded!==!0){var a,b,c;if(a=this.dom.$el.find("img"),b=this.settings.nesteditemselector?"."+this.settings.nesteditemselector:d,c=this.dom.$el.children(b).width(),a.length&&0>=c)return this.preloadautowidthimages(a),!1}this.width.prevwindow=this.viewport(),this.createstage(),this.fetchcontent(),this.eventscall(),this.internalevents(),this.dom.$el.addclass("owl-loading"),this.refresh(!0),this.dom.$el.removeclass("owl-loading").addclass("owl-loaded"),this.trigger("initialized"),this.addtriggerableevents()},e.prototype.setresponsiveoptions=function(){if(this.options.responsive){var b=this.viewport(),c=this.options.responsive,d=-1;a.each(c,function(a){b>=a&&a>d&&(d=number(a))}),this.settings=a.extend({},this.options,c[d]),delete this.settings.responsive,this.settings.responsiveclass&&this.dom.$el.attr("class",function(a,b){return b.replace(/\b owl-responsive-\s+/g,"")}).addclass("owl-responsive-"+d)}else this.settings=a.extend({},this.options)},e.prototype.optionslogic=function(){this.dom.$el.toggleclass("owl-center",this.settings.center),this.settings.loop&&this.num.oitemsb;b++)c=this.createitemcontainer(),this.createitemcontainerdata(c),this.dom.$stage.append(c)},e.prototype.initializeitemcontainer=function(a,b){this.trigger("change",{property:{name:"item",value:a}}),this.createitemcontainerdata(a),a.append(b),this.trigger("changed",{property:{name:"item",value:a}})},e.prototype.createitemcontainerdata=function(b,c){var d=a.extend({},this.itemdata);c&&a.extend(d,c.data("owl-item")),b.data("owl-item",d)},e.prototype.cloneitemcontainer=function(a){var b=a.clone(!0,!0).addclass("cloned");return this.createitemcontainerdata(b,b),b.data("owl-item").clone=!0,b},e.prototype.updatelocalcontent=function(){var b,c;for(this.dom.$oitems=this.dom.$stage.find("."+this.settings.itemclass).filter(function(){return a(this).data("owl-item").clone===!1}),this.num.oitems=this.dom.$oitems.length,b=0;bd;d++)b=this.cloneitemcontainer(this.dom.$oitems.eq(d)),c=this.cloneitemcontainer(this.dom.$oitems.eq(f-d)),this.dom.$stage.append(b),this.dom.$stage.prepend(c);this.dom.$citems=this.dom.$stage.find("."+this.settings.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.settings.loop&&this.loopclone()},e.prototype.calculate=function(){var a,b,c,d,e,f,g,h=0,i=0;for(this.width.el=this.dom.$el.width()-2*this.settings.stagepadding,this.width.view=this.dom.$el.width(),c=this.width.el-this.settings.margin*(1===this.settings.items?0:this.settings.items-1),this.width.el=this.width.el+this.settings.margin,this.width.item=(c/this.settings.items+this.settings.margin).tofixed(3),this.dom.$items=this.dom.$stage.find(".owl-item"),this.num.items=this.dom.$items.length,this.settings.autowidth&&this.dom.$items.css("width",""),this._coordinates=[],this.num.merged=[],d=this.settings.rtl?this.settings.center?-(this.width.el/2):0:this.settings.center?this.width.el/2:0,this.width.mergestage=0,a=0;athis.settings.items&&(g=this.settings.items),this.num.merged.push(parseint(g)),this.width.mergestage+=this.width.item*this.num.merged[a]):this.num.merged.push(1),f=this.width.item*this.num.merged[a],this.settings.autowidth&&(f=this.dom.$items.eq(a).width()+this.settings.margin,this.settings.rtl?this.dom.$items[a].style.marginleft=this.settings.margin+"px":this.dom.$items[a].style.marginright=this.settings.margin+"px"),this._coordinates.push(d),this.dom.$items.eq(a).data("owl-item").posleft=h,this.dom.$items.eq(a).data("owl-item").width=f,this.settings.rtl?(d+=f,h+=f):(d-=f,h-=f),i-=math.abs(f),this.settings.center&&(this._coordinates[a]=this.settings.rtl?this._coordinates[a]+f/2:this._coordinates[a]-f/2);for(this.width.stage=math.abs(this.settings.autowidth?this.settings.center?i:d:i),e=this.num.oitems+this.num.citems,b=0;e>b;b++)this.dom.$items.eq(b).data("owl-item").indexabs=b;this.setsizes()},e.prototype.setsizes=function(){this.settings.stagepadding!==!1&&(this.dom.ostage.style.paddingleft=this.settings.stagepadding+"px",this.dom.ostage.style.paddingright=this.settings.stagepadding+"px"),this.settings.rtl?b.settimeout(a.proxy(function(){this.dom.stage.style.width=this.width.stage+"px"},this),0):this.dom.stage.style.width=this.width.stage+"px";for(var c=0;c",stagex+view)||this.op(f,"<",stagex)&&this.op(f,">",stagex+view))&&(this.num.active++,c.data("owl-item").active=!0,c.data("owl-item").current=!0,c.addclass(this.settings.activeclass),this.settings.lazyload||(c.data("owl-item").loaded=!0),this.settings.loop&&this.updatecloneditemsstate(c.data("owl-item").index));this.settings.center&&(this.dom.$items.eq(this.current()).addclass(this.settings.centerclass).data("owl-item").center=!0),this.trigger("changed",{property:{name:"items",value:this.dom.$items}})},e.prototype.updatecloneditemsstate=function(a){var b,c,d;for(this.settings.center&&(b=this.dom.$items.eq(this.current()).data("owl-item").index),d=0;d0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentx,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentx-=(this.settings.center&&this.coordinates(0))-this.coordinates(this.num.oitems):this.op(this.drag.currentx,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentx+=(this.settings.center&&this.coordinates(0))-this.coordinates(this.num.oitems)):(h=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),i=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),j=this.settings.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.animate(this.drag.updatedx)))},e.prototype.ondragend=function(){var a,b,d;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(),a=this.drag.endtime-this.drag.starttime,b=math.abs(this.drag.distance),(b>3||a>300)&&this.removeclick(this.drag.targetel),d=this.closest(this.drag.updatedx),this.speed(this.settings.dragendspeed||this.settings.smartspeed),this.current(d),this.settings.pulldrag||this.drag.updatedx!==this.coordinates(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,c;return a=b.getcomputedstyle(this.dom.stage,null).getpropertyvalue(this.vendorname+"transform"),a=a.replace(/matrix(3d)?\(|\)/g,"").split(","),c=16===a.length,c!==!0?a[4]:a[12]},e.prototype.closest=function(b){var c=0,d=30;return this.settings.freedrag||a.each(this.coordinates(),a.proxy(function(a,e){b>e-d&&e+d>b?c=a:this.op(b,"<",e)&&this.op(b,">",this.coordinates(a+1)||e-this.width.el)&&(c="left"===this.state.direction?a+1:a)},this)),this.settings.loop||(this.op(b,">",this.coordinates(this.minimum()))?c=b=this.minimum():this.op(b,"<",this.coordinates(this.maximum()))&&(c=b=this.maximum())),c},e.prototype.animate=function(b){this.trigger("translate"),this.state.inmotion=this.speed()>0,this.support3d?this.dom.$stage.css({transform:"translate3d("+b+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.istouch?this.dom.$stage.css({left:b+"px"}):this.dom.$stage.animate({left:b},this.speed()/1e3,this.settings.fallbackeasing,a.proxy(function(){this.state.inmotion&&this.transitionend()},this))},e.prototype.current=function(a){if(a===d)return this._current;if(0===this.num.oitems)return d;if(a=this.normalize(a),this._current===a)this.animate(this.coordinates(this._current));else{var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.animate(this.coordinates(this._current)),this.updateactiveitems(),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.reset=function(a){this.suppress(["change","changed"]),this.speed(0),this.current(a),this.release(["change","changed"])},e.prototype.normalize=function(a,b){if(a===d||!this.dom.$items)return d;if(this.settings.loop){var c=this.dom.$items.length;a=(a%c+c)%c}else a=math.max(this.minimum(),math.min(this.maximum(),a));return b?this.dom.$items.eq(a).data("owl-item").index:a},e.prototype.maximum=function(){var b,c,d=this.settings;if(!d.loop&&d.center)b=this.num.oitems-1;else if(d.loop||d.center)if(d.loop||d.center)b=this.num.oitems+d.items;else{if(!d.autowidth&&!d.merge)throw"can not detect maximum absolute position.";revert=d.rtl?1:-1,c=this.dom.$stage.width()-this.$el.width(),a.each(this.coordinates(),function(a,d){return d*revert>=c?!1:void(b=a+1)})}else b=this.num.oitems-d.items;return b},e.prototype.minimum=function(){return this.dom.$oitems.eq(0).data("owl-item").indexabs},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(a){return a!==d?this._coordinates[a]:this._coordinates},e.prototype.duration=function(a,b,c){return math.min(math.max(math.abs(b-a),1),6)*math.abs(c||this.settings.smartspeed)},e.prototype.to=function(c,d){if(this.settings.loop){var e=c-this.normalize(this.current(),!0),f=this.current(),g=this.current(),h=this.current()+e,i=0>g-h?!0:!1;h=this.num.items-this.settings.items&&i===!0&&(f=g-this.num.oitems,this.reset(f)),b.cleartimeout(this.e._gotoloop),this.e._gotoloop=b.settimeout(a.proxy(function(){this.speed(this.duration(this.current(),f+e,d)),this.current(f+e)},this),30)}else this.speed(this.duration(this.current(),c,d)),this.current(c)},e.prototype.next=function(a){a=a||!1,this.to(this.normalize(this.current(),!0)+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.normalize(this.current(),!0)-1,a)},e.prototype.transitionend=function(a){if(a!==d){a.stoppropagation();var b=a.target||a.srcelement||a.originaltarget;if(b!==this.dom.stage)return!1}this.state.inmotion=!1,this.trigger("translated")},e.prototype.iselwidthchanged=function(){var a=this.dom.$el.width()-this.settings.stagepadding,b=this.width.el+this.settings.margin;return a!==b},e.prototype.viewport=function(){var d;if(this.options.responsivebaseelement!==b)d=a(this.options.responsivebaseelement).width();else if(b.innerwidth)d=b.innerwidth;else{if(!c.documentelement||!c.documentelement.clientwidth)throw"can not detect viewport width.";d=c.documentelement.clientwidth}return d},e.prototype.insertcontent=function(a){this.dom.$stage.empty(),this.fetchcontent(a),this.refresh()},e.prototype.additem=function(a,b){var c=this.createitemcontainer();b=b||0,this.initializeitemcontainer(c,a),0===this.dom.$oitems.length?this.dom.$stage.append(c):-1!==p?this.dom.$oitems.eq(b).before(c):this.dom.$oitems.eq(b).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(a){a.relatedtarget!==this&&(this.suppress([c]),b.apply(this,[].slice.call(arguments,1)),this.release([c]))},this)},this);a.each({next:this.next,prev:this.prev,to:this.to,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 c(a){return a.offsetwidth>0&&a.offsetheight>0}function d(){c(this.dom.el)&&(this.dom.$el.removeclass("owl-hidden"),this.refresh(),b.clearinterval(this.e._checkvisibile))}c(this.dom.el)||(this.dom.$el.addclass("owl-hidden"),b.clearinterval(this.e._checkvisibile),this.e._checkvisibile=b.setinterval(a.proxy(d,this),500))},e.prototype.preloadautowidthimages=function(b){var c,d,e,f;c=0,d=this,b.each(function(g,h){e=a(h),f=new image,f.onload=function(){c++,e.attr("src",f.src),e.css("opacity",1),c>=b.length&&(d.state.imagesloaded=!0,d.init())},f.src=e.attr("src")||e.attr("data-src")||e.attr("data-src-retina")})},e.prototype.destroy=function(){this.dom.$el.hasclass(this.settings.themeclass)&&this.dom.$el.removeclass(this.settings.themeclass),this.settings.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.settings.mousedrag||this.settings.touchdrag)&&(this.off(this.dom.stage,this.dragtype[0],this.e._ondragstart),this.settings.mousedrag&&this.off(c,this.dragtype[3],this.e._ondragstart),this.settings.mousedrag&&(this.dom.$stage.off("dragstart",function(){return!1}),this.dom.stage.onselectstart=function(){})),this.dom.$el.off(".owl"),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.settings.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={item:{count:this.num.oitems,index:this.current()}},f=a.camelcase(a.grep(["on",b,d],function(a){return a}).join("-").tolowercase()),g=a.event([b,"owl",d||"carousel"].join(".").tolowercase(),a.extend({relatedtarget:this},e,c));return this._supress[g.type]||(a.each(this.plugins,function(a,b){b.ontrigger&&b.ontrigger(g)}),this.dom.$el.trigger(g),"function"==typeof this.settings[f]&&this.settings[f].apply(this,g)),g},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.browsersupport=function(){if(this.support3d=i(),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(a,b){lazyload=function(b){this.owl=b,this.owl.options=a.extend({},lazyload.defaults,this.owl.options),this.handlers={"changed.owl.carousel":a.proxy(function(a){"items"==a.property.name&&a.property.value&&!a.property.value.is(":empty")&&this.check()},this)},this.owl.dom.$el.on(this.handlers)},lazyload.defaults={lazyload:!1},lazyload.prototype.check=function(){var a,c,d,e,f=b.devicepixelratio>1?"data-src-retina":"data-src";for(d=0;d1?"data-src-retina":"data-src"),g=g||e.attr("data-src"),f.onload=a.proxy(function(){d.data("owl-item").loaded=!0,e.is("img")?e.attr("src",f.src):e.css("background-image","url("+f.src+")"),e.css("opacity",1),this.owl.trigger("loaded",null,"lazy")},this),f.src=g},this))},lazyload.prototype.destroy=function(){var a,b;for(a in this.handlers)this.owl.dom.$el.off(a,this.handlers[a]);for(b in object.getownpropertynames(this))"function"!=typeof this[b]&&(this[b]=null)},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.handlers={"changed.owl.carousel":a.proxy(function(a){"position"==a.property.name&&this.owl.settings.autoheight&&this.setheight()},this)},this.owl.dom.$el.on(this.handlers)},autoheight.defaults={autoheight:!1,autoheightclass:"owl-height"},autoheight.prototype.setheight=function(){var a,c=this.owl.dom.$items.eq(this.owl.current()),d=this.owl.dom.$ostage,e=0;this.owl.dom.$ostage.hasclass(this.owl.settings.autoheightclass)||this.owl.dom.$ostage.addclass(this.owl.settings.autoheightclass),a=b.setinterval(function(){e+=1,c.data("owl-item").loaded?(d.height(c.height()+"px"),clearinterval(a)):500===e&&clearinterval(a)},100)},autoheight.prototype.destroy=function(){var a,b;for(a in this.handlers)this.owl.dom.$el.off(a,this.handlers[a]);for(b in object.getownpropertynames(this))"function"!=typeof this[b]&&(this[b]=null)},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.handlers={"resize.owl.carousel":a.proxy(function(a){this.owl.settings.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 refreshed.owl.carousel":a.proxy(function(a){return this.owl.settings.video?void(this.refreshing="refresh"==a.type):!1},this),"changed.owl.carousel":a.proxy(function(a){this.refreshing&&"items"==a.property.name&&a.property.value&&!a.property.value.is(":empty")&&this.checkvideolinks()},this)},this.owl.dom.$el.on(this.handlers),this.owl.dom.$el.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.playvideo(a)},this))},video.defaults={video:!1,videoheight:!1,videowidth:!1},video.prototype.checkvideolinks=function(){var a,b,c;for(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=i,b.data("owl-item").videoheight=j,c={type:d,id:e},f=i&&j?'style="width:'+i+"px;height:"+j+'px;"':"",a.wrap('
"),this.createvideotn(a,c)},video.prototype.createvideotn=function(b,c){function d(a){f='
',e=k.settings.lazyload?'
':'
',b.after(e),b.after(f)}var e,f,g,h=b.find("img"),i="src",j="",k=this.owl;return this.owl.settings.lazyload&&(i="data-src",j="owl-lazy"),h.length?(d(h.attr(i)),h.remove(),!1):void("youtube"===c.type?(g="http://img.youtube.com/vi/"+c.id+"/hqdefault.jpg",d(g)):"vimeo"===c.type&&a.ajax({type:"get",url:"http://vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",datatype:"jsonp",success:function(a){g=a[0].thumbnail_large,d(g),k.settings.loop&&k.updateactiveitems()}}))},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,f=a(b.target||b.srcelement),g=f.closest("."+this.owl.settings.itemclass);e=g.data("owl-item").videotype,id=g.data("owl-item").videoid,width=g.data("owl-item").videowidth||math.floor(g.data("owl-item").width-this.owl.settings.margin),height=g.data("owl-item").videoheight||this.owl.dom.$stage.height(),"youtube"===e?c='':"vimeo"===e&&(c=''),g.addclass("owl-video-playing"),this.owl.state.videoplay=!0,this.owl.state.videoplayindex=g.data("owl-item").indexabs,d=a('
'+c+"
"),f.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.speed(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(){var a,b;this.owl.dom.$el.off("click.owl.video");for(a in this.handlers)this.owl.dom.$el.off(a,this.handlers[a]);for(b in object.getownpropertynames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlcarousel.constructor.plugins.video=video}(window.zepto||window.jquery,window,document),function(a,b,c,d){animate=function(b){this.core=b,this.core.options=a.extend({},animate.defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){this.swapping="translated"==a.type},this),"translate.owl.carousel":a.proxy(function(){this.swapping&&(this.core.options.animateout||this.core.options.animatein)&&this.swap()},this)},this.core.dom.$el.on(this.handlers)},animate.defaults={animateout:!1,animatein:!1},animate.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.dom.$items.eq(this.previous),e=this.core.dom.$items.eq(this.next),f=this.core.settings.animatein,g=this.core.settings.animateout;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.css({left:b+"px"}).addclass("animated owl-animated-out").addclass(g).one("webkitanimationend mozanimationend msanimationend oanimationend animationend",c)),f&&e.addclass("animated owl-animated-in").addclass(f).one("webkitanimationend mozanimationend msanimationend oanimationend animationend",c))}},animate.prototype.clear=function(b){a(b.target).css({left:""}).removeclass("animated owl-animated-out owl-animated-in").removeclass(this.core.settings.animatein).removeclass(this.core.settings.animateout),this.core.transitionend()},animate.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.dom.$el.off(a,this.handlers[a]);for(b in object.getownpropertynames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlcarousel.constructor.plugins.animate=animate}(window.zepto||window.jquery,window,document),function(a,b,c){autoplay=function(b){this.core=b,this.core.options=a.extend({},autoplay.defaults,this.core.options),this.handlers={"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),"mouseover.owl.autoplay":a.proxy(function(){this.core.settings.autoplayhoverpause&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this.core.settings.autoplayhoverpause&&this.autoplay()},this)},this.core.dom.$el.on(this.handlers)},autoplay.defaults={autoplay:!1,autoplaytimeout:5e3,autoplayhoverpause:!1,autoplayspeed:!1},autoplay.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoplay?(b.clearinterval(this.interval),this.interval=b.setinterval(a.proxy(function(){this.play()},this),this.core.settings.autoplaytimeout)):b.clearinterval(this.interval)},autoplay.prototype.play=function(){return c.hidden===!0||this.core.state.istouch||this.core.state.isscrolling||this.core.state.isswiping||this.core.state.inmotion?void 0:this.core.settings.autoplay===!1?void b.clearinterval(this.interval):void this.core.next(this.core.settings.autoplayspeed)},autoplay.prototype.stop=function(){b.clearinterval(this.interval)},autoplay.prototype.pause=function(){b.clearinterval(this.interval)},autoplay.prototype.destroy=function(){var a,c;b.clearinterval(this.interval);for(a in this.handlers)this.core.dom.$el.off(a,this.handlers[a]);for(c in object.getownpropertynames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlcarousel.constructor.plugins.autoplay=autoplay}(window.zepto||window.jquery,window,document),function(a){"use strict";var b=function(c){this.core=c,this.initialized=!1,this.pages=[],this.controls={},this.template=null,this.$element=this.core.dom.$el,this.overrides={next:this.core.next,prev:this.core.prev,to:this.core.to},this.handlers={"changed.owl.carousel":a.proxy(function(b){"items"==b.property.name&&(this.initialized||(this.initialize(),this.initialized=!0),this.update(),this.draw()),this.filling&&(b.property.value.data("owl-item").dot=a(":first-child",b.property.value).find("[data-dot]").andself().data("dot"))},this),"change.owl.carousel":a.proxy(function(a){if("position"==a.property.name&&!this.core.state.revert&&!this.core.settings.loop&&this.core.settings.navrewind){var b=this.core.current(),c=this.core.maximum(),d=this.core.minimum();a.data=a.property.value>c?b>=c?d:c:a.property.value").addclass(d.dotclass).append(a("")).prop("outerhtml")),d.navcontainer&&d.dotscontainer||(this.controls.$container=a("
").addclass(d.controlsclass).appendto(this.$element)),this.controls.$indicators=d.dotscontainer?a(d.dotscontainer):a("
").hide().addclass(d.dotsclass).appendto(this.controls.$container),this.controls.$indicators.on(this.core.dragtype[2],"div",a.proxy(function(b){var c=a(b.target).parent().is(this.controls.$indicators)?a(b.target).index():a(b.target).parent().index();b.preventdefault(),this.to(c,d.dotsspeed)},this)),b=d.navcontainer?a(d.navcontainer):a("
").addclass(d.navcontainerclass).prependto(this.controls.$container),this.controls.$next=a("<"+d.navelement+">"),this.controls.$previous=this.controls.$next.clone(),this.controls.$previous.addclass(d.navclass[0]).html(d.navtext[0]).hide().prependto(b).on(this.core.dragtype[2],a.proxy(function(){this.prev()},this)),this.controls.$next.addclass(d.navclass[1]).html(d.navtext[1]).hide().appendto(b).on(this.core.dragtype[2],a.proxy(function(){this.next()},this));for(c in this.overrides)this.core[c]=a.proxy(this[c],this)},b.prototype.destroy=function(){var a,b,c,d;for(a in this.handlers)this.$element.off(a,this.handlers[a]);for(b in this.controls)this.controls[b].remove();for(d in this.overides)this.core[d]=this.overrides[d];for(c in object.getownpropertynames(this))"function"!=typeof this[c]&&(this[c]=null)},b.prototype.update=function(){var a,b,c,d=this.core.settings,e=this.core.num.citems/2,f=this.core.num.items-e,g=d.center||d.autowidth||d.dotdata?1:d.dotseach||d.items;if("page"!==d.slideby&&(d.slideby=math.min(d.slideby,d.items)),d.dots)for(this.pages=[],a=e,b=0,c=0;f>a;a++)(b>=g||0===b)&&(this.pages.push({start:a-e,end:a-e+g-1}),b=0,++c),b+=this.core.num.merged[a]},b.prototype.draw=function(){var b,c,d="",e=this.core.settings,f=this.core.dom.$oitems,g=this.core.normalize(this.core.current(),!0);if(!e.nav||e.loop||e.navrewind||(this.controls.$previous.toggleclass("disabled",0>=g),this.controls.$next.toggleclass("disabled",g>=this.core.maximum())),this.controls.$previous.toggle(e.nav),this.controls.$next.toggle(e.nav),e.dots){if(b=this.pages.length-this.controls.$indicators.children().length,b>0){for(c=0;cb&&this.controls.$indicators.children().slice(b).remove();this.controls.$indicators.find(".active").removeclass("active"),this.controls.$indicators.children().eq(a.inarray(this.current(),this.pages)).addclass("active")}this.controls.$indicators.toggle(e.dots)},b.prototype.ontrigger=function(b){var c=this.core.settings;b.page={index:a.inarray(this.current(),this.pages),count:this.pages.length,size:c.center||c.autowidth||c.dotdata?1:c.dotseach||c.items}},b.prototype.current=function(){var b=this.core.normalize(this.core.current(),!0);return a.grep(this.pages,function(a){return a.start<=b&&a.end>=b}).pop()},b.prototype.getposition=function(b){var c,d,e=this.core.settings;return"page"==e.slideby?(c=a.inarray(this.current(),this.pages),d=this.pages.length,b?++c:--c,c=this.pages[(c%d+d)%d].start):(c=this.core.normalize(this.core.current(),!0),d=this.core.num.oitems,b?c+=e.slideby:c-=e.slideby),c},b.prototype.next=function(b){a.proxy(this.overrides.to,this.core)(this.getposition(!0),b)},b.prototype.prev=function(b){a.proxy(this.overrides.to,this.core)(this.getposition(!1),b)},b.prototype.to=function(b,c,d){var e;d?a.proxy(this.overrides.to,this.core)(b,c):(e=this.pages.length,a.proxy(this.overrides.to,this.core)(this.pages[(b%e+e)%e].start,c))},a.fn.owlcarousel.constructor.plugins.navigation=b}(window.zepto||window.jquery,window,document),function(a,b,c,d){"use strict";var e=function(c){this.core=c,this.hashes={},this.$element=this.core.dom.$el,this.handlers={"initialized.owl.carousel":a.proxy(function(){b.location.hash.substring(1)&&a(b).trigger("hashchange.owl.navigation")},this),"changed.owl.carousel":a.proxy(function(b){this.filling&&(b.property.value.data("owl-item").hash=a(":first-child",b.property.value).find("[data-hash]").andself().data("hash"),this.hashes[b.property.value.data("owl-item").hash]=b.property.value)},this),"change.owl.carousel":a.proxy(function(a){"position"==a.property.name&&this.core.current()===d&&"urlhash"==this.core.settings.startposition&&(a.data=this.hashes[b.location.hash.substring(1)]),this.filling="item"==a.property.name&&a.property.value&&a.property.value.is(":empty")},this)},this.core.options=a.extend({},e.defaults,this.core.options),this.$element.on(this.handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(){var a=b.location.hash.substring(1),c=this.core.dom.$oitems,d=this.hashes[a]&&c.index(this.hashes[a])||0;return a?(this.core.dom.ostage.scrollleft=0,void this.core.to(d,!1,!0)):!1},this))};e.defaults={urlhashlistener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this.handlers)this.owl.dom.$el.off(c,this.handlers[c]);for(d in object.getownpropertynames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlcarousel.constructor.plugins.hash=e}(window.zepto||window.jquery,window,document);