summaryrefslogtreecommitdiff
path: root/miniany/doc/Můžeme věřit překladačům_ Projekty řešící schéma „důvěřivé důvěry“ - Root.cz_files/jsloader-642e6e20f6dc.js
diff options
context:
space:
mode:
Diffstat (limited to 'miniany/doc/Můžeme věřit překladačům_ Projekty řešící schéma „důvěřivé důvěry“ - Root.cz_files/jsloader-642e6e20f6dc.js')
-rw-r--r--miniany/doc/Můžeme věřit překladačům_ Projekty řešící schéma „důvěřivé důvěry“ - Root.cz_files/jsloader-642e6e20f6dc.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/miniany/doc/Můžeme věřit překladačům_ Projekty řešící schéma „důvěřivé důvěry“ - Root.cz_files/jsloader-642e6e20f6dc.js b/miniany/doc/Můžeme věřit překladačům_ Projekty řešící schéma „důvěřivé důvěry“ - Root.cz_files/jsloader-642e6e20f6dc.js
new file mode 100644
index 0000000..fd7c7b8
--- /dev/null
+++ b/miniany/doc/Můžeme věřit překladačům_ Projekty řešící schéma „důvěřivé důvěry“ - Root.cz_files/jsloader-642e6e20f6dc.js
@@ -0,0 +1,12 @@
+/**
+ * Owl carousel
+ * @version 2.0.0
+ * @author Bartosz Wojciechowski
+ * @license The MIT License (MIT)
+ * @todo Lazy Load Icon
+ * @todo prevent animationend bubling
+ * @todo itemsScaleUp
+ * @todo Test Zepto
+ * @todo stagePadding calculate wrong active classes
+ */
+!function($,window,document,undefined){var drag,state,e;function Owl(element,options){this.settings=null,this.options=$.extend({},Owl.Defaults,options),this.$element=$(element),this.drag=$.extend({},drag),this.state=$.extend({},state),this.e=$.extend({},e),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],$.each(Owl.Plugins,$.proxy(function(key,plugin){this._plugins[key[0].toLowerCase()+key.slice(1)]=new plugin(this)},this)),$.each(Owl.Pipe,$.proxy(function(priority,worker){this._pipe.push({filter:worker.filter,run:$.proxy(worker.run,this)})},this)),this.setup(),this.initialize()}function getTouches(event){if(void 0!==event.touches)return{x:event.touches[0].pageX,y:event.touches[0].pageY};if(void 0===event.touches){if(void 0!==event.pageX)return{x:event.pageX,y:event.pageY};if(void 0===event.pageX)return{x:event.clientX,y:event.clientY}}}function isStyleSupported(array){var p,s,fake=document.createElement("div"),list=array;for(p in list)if(s=list[p],void 0!==fake.style[s])return fake=null,[s,p];return[!1]}Owl.Defaults={items:3,loop:!(e={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null}),center:!(state={isTouch:!(drag={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}),isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1}),mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:window,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"},Owl.Width={Default:"default",Inner:"inner",Outer:"outer"},Owl.Plugins={},Owl.Pipe=[{filter:["width","items","settings"],run:function(cache){cache.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var cached=this._clones;(this.$stage.children(".cloned").length!==cached.length||!this.settings.loop&&0<cached.length)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){var i,n,clones=this._clones,items=this._items,delta=this.settings.loop?clones.length-Math.max(2*this.settings.items,4):0;for(i=0,n=Math.abs(delta/2);i<n;i++)0<delta?(this.$stage.children().eq(items.length+clones.length-1).remove(),clones.pop(),this.$stage.children().eq(0).remove(),clones.pop()):(clones.push(clones.length/2),this.$stage.append(items[clones[clones.length-1]].clone().addClass("cloned")),clones.push(items.length-1-(clones.length-1)/2),this.$stage.prepend(items[clones[clones.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var merge,i,n,rtl=this.settings.rtl?1:-1,width=(this.width()/this.settings.items).toFixed(3),coordinate=0;for(this._coordinates=[],i=0,n=this._clones.length+this._items.length;i<n;i++)merge=this._mergers[this.relative(i)],merge=this.settings.mergeFit&&Math.min(merge,this.settings.items)||merge,coordinate+=(this.settings.autoWidth?this._items[this.relative(i)].width()+this.settings.margin:width*merge)*rtl,this._coordinates.push(coordinate)}},{filter:["width","items","settings"],run:function(){var i,n,width=(this.width()/this.settings.items).toFixed(3),css={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(css),(css={width:this.settings.autoWidth?"auto":width-this.settings.margin})[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&0<$.grep(this._mergers,function(v){return 1<v}).length)for(i=0,n=this._coordinates.length;i<n;i++)css.width=Math.abs(this._coordinates[i])-Math.abs(this._coordinates[i-1]||0)-this.settings.margin,this.$stage.children().eq(i).css(css);else this.$stage.children().css(css)}},{filter:["width","items","settings"],run:function(cache){cache.current&&this.reset(this.$stage.children().index(cache.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var inner,outer,i,n,rtl=this.settings.rtl?1:-1,padding=2*this.settings.stagePadding,begin=this.coordinates(this.current())+padding,end=begin+this.width()*rtl,matches=[];for(i=0,n=this._coordinates.length;i<n;i++)inner=this._coordinates[i-1]||0,outer=Math.abs(this._coordinates[i])+padding*rtl,(this.op(inner,"<=",begin)&&this.op(inner,">",end)||this.op(outer,"<",begin)&&this.op(outer,">",end))&&matches.push(i);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+matches.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],Owl.prototype.initialize=function(){var imgs,nestedSelector,width;if((this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&!0!==this.state.imagesLoaded)&&(imgs=this.$element.find("img"),nestedSelector=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:void 0,width=this.$element.children(nestedSelector).width(),imgs.length&&width<=0))return this.preloadAutoWidthImages(imgs),!1;this.$element.addClass("owl-loading"),this.$stage=$("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},Owl.prototype.setup=function(){var viewport=this.viewport(),overwrites=this.options.responsive,match=-1,settings=null;overwrites?($.each(overwrites,function(breakpoint){breakpoint<=viewport&&match<breakpoint&&(match=Number(breakpoint))}),delete(settings=$.extend({},this.options,overwrites[match])).responsive,settings.responsiveClass&&this.$element.attr("class",function(i,c){return c.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+match)):settings=$.extend({},this.options),null!==this.settings&&this._breakpoint===match||(this.trigger("change",{property:{name:"settings",value:settings}}),this._breakpoint=match,this.settings=settings,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},Owl.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},Owl.prototype.prepare=function(item){var event=this.trigger("prepare",{content:item});return event.data||(event.data=$("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(item)),this.trigger("prepared",{content:event.data}),event.data},Owl.prototype.update=function(){for(var i=0,n=this._pipe.length,filter=$.proxy(function(p){return this[p]},this._invalidated),cache={};i<n;)(this._invalidated.all||0<$.grep(this._pipe[i].filter,filter).length)&&this._pipe[i].run(cache),i++;this._invalidated={}},Owl.prototype.width=function(dimension){switch(dimension=dimension||Owl.Width.Default){case Owl.Width.Inner:case Owl.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},Owl.prototype.refresh=function(){if(0===this._items.length)return!1;(new Date).getTime();this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=window.orientation,this.watchVisibility(),this.trigger("refreshed")},Owl.prototype.eventsCall=function(){this.e._onDragStart=$.proxy(function(e){this.onDragStart(e)},this),this.e._onDragMove=$.proxy(function(e){this.onDragMove(e)},this),this.e._onDragEnd=$.proxy(function(e){this.onDragEnd(e)},this),this.e._onResize=$.proxy(function(e){this.onResize(e)},this),this.e._transitionEnd=$.proxy(function(e){this.transitionEnd(e)},this),this.e._preventClick=$.proxy(function(e){this.preventClick(e)},this)},Owl.prototype.onThrottledResize=function(){window.clearTimeout(this.resizeTimer),this.resizeTimer=window.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},Owl.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!this.trigger("resize").isDefaultPrevented()&&(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized"))))},Owl.prototype.eventsRouter=function(event){var type=event.type;"mousedown"===type||"touchstart"===type?this.onDragStart(event):"mousemove"===type||"touchmove"===type?this.onDragMove(event):"mouseup"===type||"touchend"===type?this.onDragEnd(event):"touchcancel"===type&&this.onDragEnd(event)},Owl.prototype.internalEvents=function(){"ontouchstart"in window||navigator.msMaxTouchPoints;var isTouchIE=window.navigator.msPointerEnabled;this.settings.mouseDrag?(this.$stage.on("mousedown",$.proxy(function(event){this.eventsRouter(event)},this)),this.$stage.on("dragstart",function(){return!1}),this.$stage.get(0).onselectstart=function(){return!1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!isTouchIE&&this.$stage.on("touchstart touchcancel",$.proxy(function(event){this.eventsRouter(event)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),!1!==this.settings.responsive&&this.on(window,"resize",$.proxy(this.onThrottledResize,this))},Owl.prototype.onDragStart=function(event){var ev,pageX,pageY,animatedPos;if(3===(ev=event.originalEvent||event||window.event).which||this.state.isTouch)return!1;if("mousedown"===ev.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,pageX=getTouches(ev).x,pageY=getTouches(ev).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)animatedPos=this.getTransformProperty(),this.drag.offsetX=animatedPos,this.animate(animatedPos),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1;this.drag.startX=pageX-this.drag.offsetX,this.drag.startY=pageY-this.drag.offsetY,this.drag.start=pageX-this.drag.startX,this.drag.targetEl=ev.target||ev.srcElement,this.drag.updatedX=this.drag.start,"IMG"!==this.drag.targetEl.tagName&&"A"!==this.drag.targetEl.tagName||(this.drag.targetEl.draggable=!1),$(document).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",$.proxy(function(event){this.eventsRouter(event)},this))},Owl.prototype.onDragMove=function(event){var ev,pageX,pageY,minValue,maxValue,pull;this.state.isTouch&&(this.state.isScrolling||(pageX=getTouches(ev=event.originalEvent||event||window.event).x,pageY=getTouches(ev).y,this.drag.currentX=pageX-this.drag.startX,this.drag.currentY=pageY-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":0<this.drag.distance&&(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._items.length):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._items.length)):(minValue=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),maxValue=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),pull=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,minValue+pull),maxValue+pull)),(8<this.drag.distance||this.drag.distance<-8)&&(void 0!==ev.preventDefault?ev.preventDefault():ev.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(16<this.drag.currentY||this.drag.currentY<-16)&&!1===this.state.isSwiping&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},Owl.prototype.onDragEnd=function(event){var compareTimes,closest;if(this.state.isTouch){if("mouseup"===event.type&&this.$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&&!0!==this.state.inMotion)return this.state.inMotion=!1;this.drag.endTime=(new Date).getTime(),compareTimes=this.drag.endTime-this.drag.startTime,(3<Math.abs(this.drag.distance)||300<compareTimes)&&this.removeClick(this.drag.targetEl),closest=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(closest),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(closest)||this.transitionEnd(),this.drag.distance=0,$(document).off(".owl.dragEvents")}},Owl.prototype.removeClick=function(target){this.drag.targetEl=target,$(target).on("click.preventClick",this.e._preventClick),window.setTimeout(function(){$(target).off("click.preventClick")},300)},Owl.prototype.preventClick=function(ev){ev.preventDefault?ev.preventDefault():ev.returnValue=!1,ev.stopPropagation&&ev.stopPropagation(),$(ev.target).off("click.preventClick")},Owl.prototype.getTransformProperty=function(){var transform;return!0!==(16===(transform=(transform=window.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform")).replace(/matrix(3d)?\(|\)/g,"").split(",")).length)?transform[4]:transform[12]},Owl.prototype.closest=function(coordinate){var position=-1,width=this.width(),coordinates=this.coordinates();return this.settings.freeDrag||$.each(coordinates,$.proxy(function(index,value){return value-30<coordinate&&coordinate<value+30?position=index:this.op(coordinate,"<",value)&&this.op(coordinate,">",coordinates[index+1]||value-width)&&(position="left"===this.state.direction?index+1:index),-1===position},this)),this.settings.loop||(this.op(coordinate,">",coordinates[this.minimum()])?position=coordinate=this.minimum():this.op(coordinate,"<",coordinates[this.maximum()])&&(position=coordinate=this.maximum())),position},Owl.prototype.animate=function(coordinate){this.trigger("translate"),this.state.inMotion=0<this.speed(),this.support3d?this.$stage.css({transform:"translate3d("+coordinate+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:coordinate+"px"}):this.$stage.animate({left:coordinate},this.speed()/1e3,this.settings.fallbackEasing,$.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},Owl.prototype.current=function(position){if(void 0===position)return this._current;if(0!==this._items.length){if(position=this.normalize(position),this._current!==position){var event=this.trigger("change",{property:{name:"position",value:position}});void 0!==event.data&&(position=this.normalize(event.data)),this._current=position,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current}},Owl.prototype.invalidate=function(part){this._invalidated[part]=!0},Owl.prototype.reset=function(position){void 0!==(position=this.normalize(position))&&(this._speed=0,this._current=position,this.suppress(["translate","translated"]),this.animate(this.coordinates(position)),this.release(["translate","translated"]))},Owl.prototype.normalize=function(position,relative){var n=relative?this._items.length:this._items.length+this._clones.length;if($.isNumeric(position)&&!(n<1))return position=this._clones.length?(position%n+n)%n:Math.max(this.minimum(relative),Math.min(this.maximum(relative),position))},Owl.prototype.relative=function(position){return position=this.normalize(position),position-=this._clones.length/2,this.normalize(position,!0)},Owl.prototype.maximum=function(relative){var maximum,width,coordinate,i=0,settings=this.settings;if(relative)return this._items.length-1;if(!settings.loop&&settings.center)maximum=this._items.length-1;else if(settings.loop||settings.center)if(settings.loop||settings.center)maximum=this._items.length+settings.items;else{if(!settings.autoWidth&&!settings.merge)throw"Can not detect maximum absolute position.";for(revert=settings.rtl?1:-1,width=this.$stage.width()-this.$element.width();(coordinate=this.coordinates(i))&&!(coordinate*revert>=width);)maximum=++i}else maximum=this._items.length-settings.items;return maximum},Owl.prototype.minimum=function(relative){return relative?0:this._clones.length/2},Owl.prototype.items=function(position){return void 0===position?this._items.slice():(position=this.normalize(position,!0),this._items[position])},Owl.prototype.mergers=function(position){return void 0===position?this._mergers.slice():(position=this.normalize(position,!0),this._mergers[position])},Owl.prototype.clones=function(position){var odd=this._clones.length/2,even=odd+this._items.length,map=function(index){return index%2==0?even+index/2:odd-(index+1)/2};return void 0===position?$.map(this._clones,function(v,i){return map(i)}):$.map(this._clones,function(v,i){return v===position?map(i):null})},Owl.prototype.speed=function(speed){return void 0!==speed&&(this._speed=speed),this._speed},Owl.prototype.coordinates=function(position){var coordinate=null;return void 0===position?$.map(this._coordinates,$.proxy(function(coordinate,index){return this.coordinates(index)},this)):(this.settings.center?(coordinate=this._coordinates[position],coordinate+=(this.width()-coordinate+(this._coordinates[position-1]||0))/2*(this.settings.rtl?-1:1)):coordinate=this._coordinates[position-1]||0,coordinate)},Owl.prototype.duration=function(from,to,factor){return Math.min(Math.max(Math.abs(to-from),1),6)*Math.abs(factor||this.settings.smartSpeed)},Owl.prototype.to=function(position,speed){if(this.settings.loop){var distance=position-this.relative(this.current()),revert=this.current(),before=this.current(),after=this.current()+distance,direction=before-after<0,items=this._clones.length+this._items.length;after<this.settings.items&&!1===direction?(revert=before+this._items.length,this.reset(revert)):after>=items-this.settings.items&&!0===direction&&(revert=before-this._items.length,this.reset(revert)),window.clearTimeout(this.e._goToLoop),this.e._goToLoop=window.setTimeout($.proxy(function(){this.speed(this.duration(this.current(),revert+distance,speed)),this.current(revert+distance),this.update()},this),30)}else this.speed(this.duration(this.current(),position,speed)),this.current(position),this.update()},Owl.prototype.next=function(speed){speed=speed||!1,this.to(this.relative(this.current())+1,speed)},Owl.prototype.prev=function(speed){speed=speed||!1,this.to(this.relative(this.current())-1,speed)},Owl.prototype.transitionEnd=function(event){if(void 0!==event&&(event.stopPropagation(),(event.target||event.srcElement||event.originalTarget)!==this.$stage.get(0)))return!1;this.state.inMotion=!1,this.trigger("translated")},Owl.prototype.viewport=function(){var width;if(this.options.responsiveBaseElement!==window)width=$(this.options.responsiveBaseElement).width();else if(window.innerWidth)width=window.innerWidth;else{if(!document.documentElement||!document.documentElement.clientWidth)throw"Can not detect viewport width.";width=document.documentElement.clientWidth}return width},Owl.prototype.replace=function(content){this.$stage.empty(),this._items=[],content&&(content=content instanceof jQuery?content:$(content)),this.settings.nestedItemSelector&&(content=content.find("."+this.settings.nestedItemSelector)),content.filter(function(){return 1===this.nodeType}).each($.proxy(function(index,item){item=this.prepare(item),this.$stage.append(item),this._items.push(item),this._mergers.push(1*item.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset($.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},Owl.prototype.add=function(content,position){position=void 0===position?this._items.length:this.normalize(position,!0),this.trigger("add",{content:content,position:position}),0===this._items.length||position===this._items.length?(this.$stage.append(content),this._items.push(content),this._mergers.push(1*content.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[position].before(content),this._items.splice(position,0,content),this._mergers.splice(position,0,1*content.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:content,position:position})},Owl.prototype.remove=function(position){void 0!==(position=this.normalize(position,!0))&&(this.trigger("remove",{content:this._items[position],position:position}),this._items[position].remove(),this._items.splice(position,1),this._mergers.splice(position,1),this.invalidate("items"),this.trigger("removed",{content:null,position:position}))},Owl.prototype.addTriggerableEvents=function(){var handler=$.proxy(function(callback,event){return $.proxy(function(e){e.relatedTarget!==this&&(this.suppress([event]),callback.apply(this,[].slice.call(arguments,1)),this.release([event]))},this)},this);$.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},$.proxy(function(event,callback){this.$element.on(event+".owl.carousel",handler(callback,event+".owl.carousel"))},this))},Owl.prototype.watchVisibility=function(){function isElVisible(el){return 0<el.offsetWidth&&0<el.offsetHeight}isElVisible(this.$element.get(0))||(this.$element.addClass("owl-hidden"),window.clearInterval(this.e._checkVisibile),this.e._checkVisibile=window.setInterval($.proxy(function(){isElVisible(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),window.clearInterval(this.e._checkVisibile))},this),500))},Owl.prototype.preloadAutoWidthImages=function(imgs){var loaded,that,$el,img;loaded=0,that=this,imgs.each(function(i,el){$el=$(el),(img=new Image).onload=function(){loaded++,$el.attr("src",img.src),$el.css("opacity",1),loaded>=imgs.length&&(that.state.imagesLoaded=!0,that.initialize())},img.src=$el.attr("src")||$el.attr("data-src")||$el.attr("data-src-retina")})},Owl.prototype.destroy=function(){for(var i in this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),!1!==this.settings.responsive&&$(window).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd),this._plugins)this._plugins[i].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),$(document).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},Owl.prototype.op=function(a,o,b){var rtl=this.settings.rtl;switch(o){case"<":return rtl?b<a:a<b;case">":return rtl?a<b:b<a;case">=":return rtl?a<=b:b<=a;case"<=":return rtl?b<=a:a<=b}},Owl.prototype.on=function(element,event,listener,capture){element.addEventListener?element.addEventListener(event,listener,capture):element.attachEvent&&element.attachEvent("on"+event,listener)},Owl.prototype.off=function(element,event,listener,capture){element.removeEventListener?element.removeEventListener(event,listener,capture):element.detachEvent&&element.detachEvent("on"+event,listener)},Owl.prototype.trigger=function(name,data,namespace){var status={item:{count:this._items.length,index:this.current()}},handler=$.camelCase($.grep(["on",name,namespace],function(v){return v}).join("-").toLowerCase()),event=$.Event([name,"owl",namespace||"carousel"].join(".").toLowerCase(),$.extend({relatedTarget:this},status,data));return this._supress[name]||($.each(this._plugins,function(name,plugin){plugin.onTrigger&&plugin.onTrigger(event)}),this.$element.trigger(event),this.settings&&"function"==typeof this.settings[handler]&&this.settings[handler].apply(this,event)),event},Owl.prototype.suppress=function(events){$.each(events,$.proxy(function(index,event){this._supress[event]=!0},this))},Owl.prototype.release=function(events){$.each(events,$.proxy(function(index,event){delete this._supress[event]},this))},Owl.prototype.browserSupport=function(){if(this.support3d=isStyleSupported(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0],this.support3d){this.transformVendor=isStyleSupported(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0];this.transitionEndVendor=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"][isStyleSupported(["transition","WebkitTransition","MozTransition","OTransition"])[1]],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=window.orientation},$.fn.owlCarousel=function(options){return this.each(function(){$(this).data("owlCarousel")||$(this).data("owlCarousel",new Owl(this,options))})},$.fn.owlCarousel.Constructor=Owl}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Lazy=function(carousel){this._core=carousel,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":$.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type))for(var settings=this._core.settings,n=settings.center&&Math.ceil(settings.items/2)||settings.items,i=settings.center&&-1*n||0,position=(e.property&&e.property.value||this._core.current())+i,clones=this._core.clones().length,load=$.proxy(function(i,v){this.load(v)},this);i++<n;)this.load(clones/2+this._core.relative(position)),clones&&$.each(this._core.clones(this._core.relative(position++)),load)},this)},this._core.options=$.extend({},Lazy.Defaults,this._core.options),this._core.$element.on(this._handlers)};Lazy.Defaults={lazyLoad:!1},Lazy.prototype.load=function(position){var $item=this._core.$stage.children().eq(position),$elements=$item&&$item.find(".owl-lazy");!$elements||-1<$.inArray($item.get(0),this._loaded)||($elements.each($.proxy(function(index,element){var image,$element=$(element),url=1<window.devicePixelRatio&&$element.attr("data-src-retina")||$element.attr("data-src");this._core.trigger("load",{element:$element,url:url},"lazy"),$element.is("img")?$element.one("load.owl.lazy",$.proxy(function(){$element.css("opacity",1),this._core.trigger("loaded",{element:$element,url:url},"lazy")},this)).attr("src",url):((image=new Image).onload=$.proxy(function(){$element.css({"background-image":"url("+url+")",opacity:"1"}),this._core.trigger("loaded",{element:$element,url:url},"lazy")},this),image.src=url)},this)),this._loaded.push($item.get(0)))},Lazy.prototype.destroy=function(){var handler,property;for(handler in this.handlers)this._core.$element.off(handler,this.handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Lazy=Lazy}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var AutoHeight=function(carousel){this._core=carousel,this._handlers={"initialized.owl.carousel":$.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":$.proxy(function(e){this._core.settings.autoHeight&&"position"==e.property.name&&this.update()},this),"loaded.owl.lazy":$.proxy(function(e){this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=$.extend({},AutoHeight.Defaults,this._core.options),this._core.$element.on(this._handlers)};AutoHeight.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},AutoHeight.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},AutoHeight.prototype.destroy=function(){var handler,property;for(handler in this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.AutoHeight=AutoHeight}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Video=function(carousel){this._core=carousel,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":$.proxy(function(e){this._core.settings.video&&!this.isInFullScreen()&&e.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":$.proxy(function(e){this._playing&&this.stop()},this),"prepared.owl.carousel":$.proxy(function(e){var $element=$(e.content).find(".owl-video");$element.length&&($element.css("display","none"),this.fetch($element,$(e.content)))},this)},this._core.options=$.extend({},Video.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",$.proxy(function(e){this.play(e)},this))};Video.Defaults={video:!1,videoHeight:!1,videoWidth:!1},Video.prototype.fetch=function(target,item){var type=target.attr("data-vimeo-id")?"vimeo":"youtube",id=target.attr("data-vimeo-id")||target.attr("data-youtube-id"),width=target.attr("data-width")||this._core.settings.videoWidth,height=target.attr("data-height")||this._core.settings.videoHeight,url=target.attr("href");if(!url)throw new Error("Missing video URL.");if(-1<(id=url.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))type="youtube";else{if(!(-1<id[3].indexOf("vimeo")))throw new Error("Video URL not supported.");type="vimeo"}id=id[6],this._videos[url]={type:type,id:id,width:width,height:height},item.attr("data-video",url),this.thumbnail(target,this._videos[url])},Video.prototype.thumbnail=function(target,video){var tnLink,path,dimensions=video.width&&video.height?'style="width:'+video.width+"px;height:"+video.height+'px;"':"",customTn=target.find("img"),srcType="src",lazyClass="",settings=this._core.settings,create=function(path){'<div class="owl-video-play-icon"></div>',tnLink=settings.lazyLoad?'<div class="owl-video-tn '+lazyClass+'" '+srcType+'="'+path+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+path+')"></div>',target.after(tnLink),target.after('<div class="owl-video-play-icon"></div>')};if(target.wrap('<div class="owl-video-wrapper"'+dimensions+"></div>"),this._core.settings.lazyLoad&&(srcType="data-src",lazyClass="owl-lazy"),customTn.length)return create(customTn.attr(srcType)),customTn.remove(),!1;"youtube"===video.type?(path="http://img.youtube.com/vi/"+video.id+"/hqdefault.jpg",create(path)):"vimeo"===video.type&&$.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+video.id+".json",jsonp:"callback",dataType:"jsonp",success:function(data){path=data[0].thumbnail_large,create(path)}})},Video.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},Video.prototype.play=function(ev){this._core.trigger("play",null,"video"),this._playing&&this.stop();var html,wrap,target=$(ev.target||ev.srcElement),item=target.closest("."+this._core.settings.itemClass),video=this._videos[item.attr("data-video")],width=video.width||"100%",height=video.height||this._core.$stage.height();"youtube"===video.type?html='<iframe width="'+width+'" height="'+height+'" src="http://www.youtube.com/embed/'+video.id+"?autoplay=1&v="+video.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===video.type&&(html='<iframe src="http://player.vimeo.com/video/'+video.id+'?autoplay=1" width="'+width+'" height="'+height+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),item.addClass("owl-video-playing"),this._playing=item,wrap=$('<div style="height:'+height+"px; width:"+width+'px" class="owl-video-frame">'+html+"</div>"),target.after(wrap)},Video.prototype.isInFullScreen=function(){var element=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;return element&&$(element).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),!(element&&this._fullscreen&&this._playing)&&(this._fullscreen?this._fullscreen=!1:!this._playing||this._core.state.orientation===window.orientation||(this._core.state.orientation=window.orientation,!1))},Video.prototype.destroy=function(){var handler,property;for(handler in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Video=Video}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Animate=function(scope){this.core=scope,this.core.options=$.extend({},Animate.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":$.proxy(function(e){"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":$.proxy(function(e){this.swapping="translated"==e.type},this),"translate.owl.carousel":$.proxy(function(e){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.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 left,clear=$.proxy(this.clear,this),previous=this.core.$stage.children().eq(this.previous),next=this.core.$stage.children().eq(this.next),incoming=this.core.settings.animateIn,outgoing=this.core.settings.animateOut;this.core.current()!==this.previous&&(outgoing&&(left=this.core.coordinates(this.previous)-this.core.coordinates(this.next),previous.css({left:left+"px"}).addClass("animated owl-animated-out").addClass(outgoing).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",clear)),incoming&&next.addClass("animated owl-animated-in").addClass(incoming).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",clear))}},Animate.prototype.clear=function(e){$(e.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 handler,property;for(handler in this.handlers)this.core.$element.off(handler,this.handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Animate=Animate}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Autoplay=function(scope){this.core=scope,this.core.options=$.extend({},Autoplay.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":$.proxy(function(){this.autoplay()},this),"play.owl.autoplay":$.proxy(function(e,t,s){this.play(t,s)},this),"stop.owl.autoplay":$.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":$.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":$.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.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?(window.clearInterval(this.interval),this.interval=window.setInterval($.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):window.clearInterval(this.interval)},Autoplay.prototype.play=function(timeout,speed){!0!==document.hidden&&(this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion||(!1!==this.core.settings.autoplay?this.core.next(this.core.settings.autoplaySpeed):window.clearInterval(this.interval)))},Autoplay.prototype.stop=function(){window.clearInterval(this.interval)},Autoplay.prototype.pause=function(){window.clearInterval(this.interval)},Autoplay.prototype.destroy=function(){var handler,property;for(handler in window.clearInterval(this.interval),this.handlers)this.core.$element.off(handler,this.handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.autoplay=Autoplay}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){"use strict";var Navigation=function(carousel){this._core=carousel,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":$.proxy(function(e){this._core.settings.dotsData&&this._templates.push($(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":$.proxy(function(e){this._core.settings.dotsData&&this._templates.splice(e.position,0,$(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":$.proxy(function(e){this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"change.owl.carousel":$.proxy(function(e){if("position"==e.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var current=this._core.current(),maximum=this._core.maximum(),minimum=this._core.minimum();e.data=e.property.value>maximum?maximum<=current?minimum:maximum:e.property.value<minimum?maximum:e.property.value}},this),"changed.owl.carousel":$.proxy(function(e){"position"==e.property.name&&this.draw()},this),"refreshed.owl.carousel":$.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=$.extend({},Navigation.Defaults,this._core.options),this.$element.on(this._handlers)};Navigation.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-controls"},Navigation.prototype.initialize=function(){var $container,override,options=this._core.settings;for(override in options.dotsData||(this._templates=[$("<div>").addClass(options.dotClass).append($("<span>")).prop("outerHTML")]),options.navContainer&&options.dotsContainer||(this._controls.$container=$("<div>").addClass(options.controlsClass).appendTo(this.$element)),this._controls.$indicators=options.dotsContainer?$(options.dotsContainer):$("<div>").hide().addClass(options.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",$.proxy(function(e){var index=$(e.target).parent().is(this._controls.$indicators)?$(e.target).index():$(e.target).parent().index();e.preventDefault(),this.to(index,options.dotsSpeed)},this)),$container=options.navContainer?$(options.navContainer):$("<div>").addClass(options.navContainerClass).prependTo(this._controls.$container),this._controls.$next=$("<"+options.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(options.navClass[0]).html(options.navText[0]).hide().prependTo($container).on("click",$.proxy(function(e){this.prev(options.navSpeed)},this)),this._controls.$next.addClass(options.navClass[1]).html(options.navText[1]).hide().appendTo($container).on("click",$.proxy(function(e){this.next(options.navSpeed)},this)),this._overrides)this._core[override]=$.proxy(this[override],this)},Navigation.prototype.destroy=function(){var handler,control,property,override;for(handler in this._handlers)this.$element.off(handler,this._handlers[handler]);for(control in this._controls)this._controls[control].remove();for(override in this.overides)this._core[override]=this._overrides[override];for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},Navigation.prototype.update=function(){var i,j,options=this._core.settings,lower=this._core.clones().length/2,upper=lower+this._core.items().length,size=options.center||options.autoWidth||options.dotData?1:options.dotsEach||options.items;if("page"!==options.slideBy&&(options.slideBy=Math.min(options.slideBy,options.items)),options.dots||"page"==options.slideBy)for(this._pages=[],i=lower,j=0;i<upper;i++)(size<=j||0===j)&&(this._pages.push({start:i-lower,end:i-lower+size-1}),j=0,0),j+=this._core.mergers(this._core.relative(i))},Navigation.prototype.draw=function(){var difference,i,html="",options=this._core.settings,index=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!options.nav||options.loop||options.navRewind||(this._controls.$previous.toggleClass("disabled",index<=0),this._controls.$next.toggleClass("disabled",index>=this._core.maximum())),this._controls.$previous.toggle(options.nav),this._controls.$next.toggle(options.nav),options.dots){if(difference=this._pages.length-this._controls.$indicators.children().length,options.dotData&&0!==difference){for(i=0;i<this._controls.$indicators.children().length;i++)html+=this._templates[this._core.relative(i)];this._controls.$indicators.html(html)}else 0<difference?(html=new Array(difference+1).join(this._templates[0]),this._controls.$indicators.append(html)):difference<0&&this._controls.$indicators.children().slice(difference).remove();this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq($.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(options.dots)},Navigation.prototype.onTrigger=function(event){var settings=this._core.settings;event.page={index:$.inArray(this.current(),this._pages),count:this._pages.length,size:settings&&(settings.center||settings.autoWidth||settings.dotData?1:settings.dotsEach||settings.items)}},Navigation.prototype.current=function(){var index=this._core.relative(this._core.current());return $.grep(this._pages,function(o){return o.start<=index&&o.end>=index}).pop()},Navigation.prototype.getPosition=function(successor){var position,length,options=this._core.settings;return"page"==options.slideBy?(position=$.inArray(this.current(),this._pages),length=this._pages.length,successor?++position:--position,position=this._pages[(position%length+length)%length].start):(position=this._core.relative(this._core.current()),length=this._core.items().length,successor?position+=options.slideBy:position-=options.slideBy),position},Navigation.prototype.next=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!0),speed)},Navigation.prototype.prev=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!1),speed)},Navigation.prototype.to=function(position,speed,standard){var length;standard?$.proxy(this._overrides.to,this._core)(position,speed):(length=this._pages.length,$.proxy(this._overrides.to,this._core)(this._pages[(position%length+length)%length].start,speed))},$.fn.owlCarousel.Constructor.Plugins.Navigation=Navigation}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){"use strict";var Hash=function(carousel){this._core=carousel,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":$.proxy(function(){"URLHash"==this._core.settings.startPosition&&$(window).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":$.proxy(function(e){var hash=$(e.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[hash]=e.content},this)},this._core.options=$.extend({},Hash.Defaults,this._core.options),this.$element.on(this._handlers),$(window).on("hashchange.owl.navigation",$.proxy(function(){var hash=window.location.hash.substring(1),items=this._core.$stage.children(),position=this._hashes[hash]&&items.index(this._hashes[hash])||0;if(!hash)return!1;this._core.to(position,!1,!0)},this))};Hash.Defaults={URLhashListener:!1},Hash.prototype.destroy=function(){var handler,property;for(handler in $(window).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Hash=Hash}(window.Zepto||window.jQuery,window,document);!function($){window.iinfo=window.iinfo||{},iinfo.promo=iinfo.promo||{},iinfo.promo.PromoItem=function(promoId,phase){this.promoId=promoId,this.phase=phase,this.displayed=!1},iinfo.promo.PromoItem.prototype.getDisplayed=function(){return this.displayed},iinfo.promo.PromoItem.prototype.setDisplayed=function(displayed){this.displayed=displayed},iinfo.promo.PromoItem.PHASE_PREFERRED="preferred",iinfo.promo.PromoItem.PHASE_NEW="new",iinfo.promo.PromoItem.PHASE_CTR="ctr",iinfo.promo.PromoItem.getPhaseByKey=function(key){switch(key){case iinfo.promo.PromoItem.PHASE_PREFERRED:return iinfo.promo.PromoItem.PHASE_PREFERRED;case iinfo.promo.PromoItem.PHASE_NEW:return iinfo.promo.PromoItem.PHASE_NEW;case iinfo.promo.PromoItem.PHASE_CTR:return iinfo.promo.PromoItem.PHASE_CTR}throw new Error("Invalid Promo Phase key: "+key)},iinfo.promo.PromoItem.prototype.getPhaseWeight=function(){switch(this.phase){case iinfo.promo.PromoItem.PHASE_PREFERRED:return 2;case iinfo.promo.PromoItem.PHASE_NEW:return 1;case iinfo.promo.PromoItem.PHASE_CTR:return 0}throw new Error("Invalid Promo Phase key: "+key)},iinfo.promo.PromoApiFooter=function(urlIncrementDisplay){this.urlIncrementDisplay=urlIncrementDisplay},iinfo.promo.PromoApiFooter.prototype.display=function(items){var that=this,itemsNotInProgress=items.filter(function(item){return!that.isDisplayInProgress(item)});if(0<itemsNotInProgress.length){this.setAllDisplayInProgress(itemsNotInProgress,!0);var xhr=new XMLHttpRequest;xhr.addEventListener("load",function(){200===this.status?itemsNotInProgress.forEach(function(item){item.setDisplayed(!0)}):console.error("Promo display error",this),that.setAllDisplayInProgress(itemsNotInProgress,!1)}),xhr.open("POST",this.urlIncrementDisplay,!0),xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),xhr.send(itemsNotInProgress.map(function(item){return"id[]="+item.promoId}).join("&"))}},iinfo.promo.PromoApiFooter.prototype.isDisplayInProgress=function(item){return item._isDisplayInProgress&&!0===item._isDisplayInProgress},iinfo.promo.PromoApiFooter.prototype.setDisplayInProgress=function(item,isInProgress){item._isDisplayInProgress=isInProgress},iinfo.promo.PromoApiFooter.prototype.setAllDisplayInProgress=function(items,isInProgress){var that=this;items.forEach(function(item){that.setDisplayInProgress(item,isInProgress)})},iinfo.promo.PromoCarousel=function(selectorWrapper,selectorOwlCarouselElement,visibleItemsCount,linksEnabled,promoApi){this.selectorWrapper=selectorWrapper,this.selectorOwlCarouselElement=selectorOwlCarouselElement,this.visibleItemsCount=visibleItemsCount,this.linksEnabled=linksEnabled,this.promoApi=promoApi,this.$wrapper=null,this.$owlCarouselElement=null,this.scrollCheckingEnable=!1,this.items=[]},iinfo.promo.PromoCarousel.wrapperResponsiveXxsClass="js-server-promo--responsive-xxs",iinfo.promo.PromoCarousel.prototype.pushPromoItem=function(promoItem){this.items.push(promoItem)},iinfo.promo.PromoCarousel.prototype.getPromoItem=function(index){return this.items[index]},iinfo.promo.PromoCarousel.prototype.initialize=function(){var that=this;this.$wrapper=$(this.selectorWrapper),this.$owlCarouselElement=$(this.selectorOwlCarouselElement),$(".owl-lazy").removeClass("js-element-hidden"),this.linksEnabled&&$("a[data-url]",this.$owlCarouselElement).mousedown(function(){var $this=$(this);$this.attr("href",$this.attr("data-url"))}),this.$owlCarouselElement.on("initialize.owl.carousel",function(carouselEvent){if(that.visibleItemsCount!==carouselEvent.page.size){for(var promoElements=that.$owlCarouselElement.children(),promos=[],i=0;i<promoElements.length;i++)promos.push({el:promoElements[i],obj:that.getPromoItem(i)});promos.sort(function(promoA,promoB){return promoB.obj.getPhaseWeight()-promoA.obj.getPhaseWeight()});var visibleItems=promos.slice(0,carouselEvent.page.size),nonVisibleItems=promos.slice(carouselEvent.page.size);visibleItems.sort(function(){return.5-Math.random()}),nonVisibleItems.sort(function(){return.5-Math.random()}),promoElements.detach(),that.items=[],visibleItems.concat(nonVisibleItems).forEach(function(promo){that.$owlCarouselElement.append(promo.el),that.pushPromoItem(promo.obj)}),that.visibleItemsCount=carouselEvent.page.size}}),this.$owlCarouselElement.on("resized.owl.carousel",function(carouselEvent){that.visibleItemsCount=carouselEvent.page.size,that.isVisible()?that.incrementDisplayCountOfVisibleItems():that.startScrollChecking()}),this.$owlCarouselElement.owlCarousel({callbacks:!0,loop:!0,items:this.visibleItemsCount,dots:!1,nav:!0,navRewind:!1,lazyLoad:!0,navText:["<i class='zurueck'><</i>","<i class='vorn'>></i>"],responsiveBaseElement:".js-server-promo",onLoadedLazy:function(){that.setFullWidth(!1)},onResized:function(){that.setFullWidth(!1)},onChanged:function(){that.setFullWidth(!1)},responsive:{0:{items:1,onLoadedLazy:function(){that.setFullWidth(!0)},onResized:function(){that.setFullWidth(!0)},onChanged:function(){that.setFullWidth(!0)}},368:{items:2},552:{items:3},736:{items:4},920:{items:5},1104:{items:6},1288:{items:7}}}),this.$owlCarouselElement.on("translated.owl.carousel",function(){that.isVisible()&&that.incrementDisplayCountOfVisibleItems()}),$(".owl-prev",this.$owlCarouselElement).bind("click",function(){that.$owlCarouselElement.trigger("prev.owl.carousel")}),$(".owl-next",this.$owlCarouselElement).bind("click",function(){that.$owlCarouselElement.trigger("next.owl.carousel")}),that.isVisible()?that.incrementDisplayCountOfVisibleItems():that.startScrollChecking()},iinfo.promo.PromoCarousel.prototype.setFullWidth=function(isTurnedOn){isTurnedOn?this.$wrapper.addClass(iinfo.promo.PromoCarousel.wrapperResponsiveXxsClass):this.$wrapper.removeClass(iinfo.promo.PromoCarousel.wrapperResponsiveXxsClass)},iinfo.promo.PromoCarousel.prototype.isVisible=function(){return this.$owlCarouselElement.offset().top-$(window).height()+10<$(window).scrollTop()},iinfo.promo.PromoCarousel.prototype.startScrollChecking=function(){if(!this.scrollCheckingEnable){this.scrollCheckingEnable=!0;var that=this;$(window).on("scroll",function(scrollEvent){that.isVisible()&&(that.incrementDisplayCountOfVisibleItems(),$(this).off(scrollEvent),that.scrollCheckingEnable=!1)})}},iinfo.promo.PromoCarousel.prototype.getVisibleIndexes=function(){for(var event=this.$owlCarouselElement.data("owlCarousel").trigger(""),visibleIndexes=[],index=event.item.index-event.page.size,i=0;i<event.page.size;i++)index===event.item.count&&(index=0),visibleIndexes.push(index++);return visibleIndexes},iinfo.promo.PromoCarousel.prototype.incrementDisplayCountOfVisibleItems=function(){if(this.isVisible()){var itemsForDisplaying=[],that=this;this.getVisibleIndexes().forEach(function(index){var item=that.getPromoItem(index);item instanceof iinfo.promo.PromoItem&&!item.getDisplayed()&&itemsForDisplaying.push(item)}),this.promoApi.display(itemsForDisplaying)}}}($jquery1_11); \ No newline at end of file