;(function($,window,document,undefined){function Owl(element,options){settings=null;options=$.extend({},defaults,options);this.$element=$(element);this._handlers={};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._widths=[];this._invalidated={};this._pipe=[];this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null};this._states={current:{},tags:{'initializing':['busy'],'animating':['busy'],'dragging':['interacting']}};$.each(['onResize','onThrottledResize'],$.proxy(function(i,handler){this._handlers[handler]=$.proxy(this[handler],this);},this));$.each(plugins,$.proxy(function(key,plugin){this._plugins[charat(0).toLowerCase()+slice(1)]=new plugin(this);},this));$.each(workers,$.proxy(function(priority,worker){push({'filter':filter,'run':$.proxy(run,this)});},this));setup();initialize();}
defaults={items:3,loop:false,center:false,rewind:false,mouseDrag:true,touchDrag:true,pullDrag:true,freeDrag:false,margin:0,stagePadding:0,merge:false,mergeFit:true,autoWidth:false,startPosition:0,rtl:false,smartSpeed:250,fluidSpeed:false,dragEndSpeed:false,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:window,fallbackEasing:'swing',info:false,nestedItemSelector:false,itemElement:'div',stageElement:'div',refreshClass:'owl-refresh',loadedClass:'owl-loaded',loadingClass:'owl-loading',rtlClass:'owl-rtl',responsiveClass:'owl-responsive',dragClass:'owl-drag',itemClass:'owl-item',stageClass:'owl-stage',stageOuterClass:'owl-stage-outer',grabClass:'owl-grab'};width={Default:'default',Inner:'inner',Outer:'outer'};type={Event:'event',State:'state'};plugins={};workers=[{filter:['width','settings'],run:function(){this._width=this.$width();}},{filter:['width','items','settings'],run:function(cache){current=this._items&&this._items[relative(this._current)];}},{filter:['items','settings'],run:function(){this.$children('.cloned').remove();}},{filter:['width','items','settings'],run:function(cache){var margin=margin||'',grid=!autowidth,rtl=rtl,css={'width':'auto','margin-left':rtl?margin:'','margin-right':rtl?'':margin};!grid&&this.$children().css(css);css=css;}},{filter:['width','items','settings'],run:function(cache){var width=(width()/items).toFixed(3)margin,merge=null,iterator=length,grid=!autowidth,widths=[];items={merge:false,width:width};while(iterator--){merge=this._mergers[iterator];merge=mergefit&&min(merge,items)||merge;merge=merge>1||merge;widths[iterator]=!grid?this._items[iterator].width():width*merge;}
this._widths=widths;}},{filter:['items','settings'],run:function(){var clones=[],items=this._items,settings=settings,view=max(items*2,4),size=ceil(length/2)*2,repeat=loop&&length?rewind?view:max(view,size):0,append='',prepend='';repeat/=2;while(repeat--){push(normalize(length/2,true));append=append+items[clones[length-1]][0].outerHTML;push(normalize(length-1-(length-1)/2,true));prepend=items[clones[length-1]][0].outerHTML+prepend;}
this._clones=clones;$(append).addClass('cloned').appendTo(this.$stage);$(prepend).addClass('cloned').prependTo(this.$stage);}},{filter:['width','items','settings'],run:function(){var rtl=rtl?1:-1,size=length+length,iterator=-1,previous=0,current=0,coordinates=[];while(++iterator',end)))||(op(outer,'<',begin)&&op(outer,'>',end))){push(i);}}
this.$children('.active').removeClass('active');this.$children(':eq('+join('), :eq(')+')').addClass('active');if(center){this.$children('.center').removeClass('center');this.$children().eq(current()).addClass('center');}}}];initialize=function(){enter('initializing');trigger('initialize');this.$toggleclass(rtlclass,rtl);if(autowidth&&!is('pre-loading')){var imgs,nestedSelector,width;imgs=this.$find('img');nestedSelector=nesteditemselector?'.'+nesteditemselector:undefined;width=this.$children(nestedSelector).width();if(length&&width<=0){preloadautowidthimages(imgs);}}
this.$addclass(loadingclass);this.$stage=$('<'+stageelement+' class="'+stageclass+'"/>').wrap('');this.$append(this.$parent());replace(this.$children().not(this.$parent()));if(this.$is(':visible')){refresh();}else{invalidate('width');}
this.$removeclass(loadingclass).addClass(loadedclass);registereventhandlers();leave('initializing');trigger('initialized');};setup=function(){var viewport=viewport(),overwrites=responsive,match=-1,settings=null;if(!overwrites){settings=$.extend({},options);}else{$.each(overwrites,function(breakpoint){if(breakpoint<=viewport&&breakpoint>match){match=Number(breakpoint);}});settings=$.extend({},options,overwrites[match]);if(typeof stagepadding==='function'){stagepadding=stagepadding();}
delete responsive;if(responsiveclass){this.$attr('class',this.$attr('class').replace(new RegExp('('+responsiveclass+'-)\\S+\\s','g'),'$1'+match));}}
trigger('change',{property:{name:'settings',value:settings}});this._breakpoint=match;settings=settings;invalidate('settings');trigger('changed',{property:{name:'settings',value:settings}});};optionslogic=function(){if(autowidth){stagepadding=false;merge=false;}};prepare=function(item){var event=trigger('prepare',{content:item});if(!data){data=$('<'+itemelement+'/>').addClass(itemclass).append(item)}
trigger('prepared',{content:data});return data;};update=function(){var i=0,n=length,filter=$.proxy(function(p){return this[p]},this._invalidated),cache={};while(i0){this._pipe[i].run(cache);}
i++;}
this._invalidated={};!is('valid')&&enter('valid');};width=function(dimension){dimension=dimension||default;switch(dimension){case inner:case outer:return this._width;default:return stagepadding*2+margin;}};refresh=function(){enter('refreshing');trigger('refresh');setup();optionslogic();this.$addclass(refreshclass);update();this.$removeclass(refreshclass);leave('refreshing');trigger('refreshed');};onthrottledresize=function(){cleartimeout(resizetimer);resizetimer=settimeout(onresize,responsiverefreshrate);};onresize=function(){if(!length){return false;}
if(this._width===this.$width()){return false;}
if(!this.$is(':visible')){return false;}
enter('resizing');if(trigger('resize').isDefaultPrevented()){leave('resizing');return false;}
invalidate('width');refresh();leave('resizing');trigger('resized');};registereventhandlers=function(){if($transition){this.$on($end+'core',$.proxy(ontransitionend,this));}
if(responsive!==false){on(window,'resize',onthrottledresize);}
if(mousedrag){this.$addclass(dragclass);this.$on('core',$.proxy(ondragstart,this));this.$on('core core',function(){return false});}
if(touchdrag){this.$on('core',$.proxy(ondragstart,this));this.$on('core',$.proxy(ondragend,this));}};ondragstart=function(event){var stage=null;if(which===3){return;}
if($transform){stage=this.$css('transform').replace(/.*\(|\)| /g,'').split(',');stage={x:stage[length===16?12:4],y:stage[length===16?13:5]};}else{stage=this.$position();stage={x:rtl?left+this.$width()width()+margin:left,y:top};}
if(is('animating')){$transform?animate(stage.x):this.$stop()
invalidate('position');}
this.$toggleclass(grabclass,type==='mousedown');speed(0);time=new Date().getTime();target=$(target);start=stage;current=stage;pointer=pointer(event);$(document).on('core core',$.proxy(ondragend,this));$(document).one('core core',$.proxy(function(event){var delta=difference(pointer,pointer(event));$(document).on('core core',$.proxy(ondragmove,this));if(abs(delta.x)0^rtl?'left':'right';$(document).off('core');this.$removeclass(grabclass);if(delta.x!==0&&is('dragging')||!is('valid')){speed(dragendspeed||smartspeed);current(closest(stage.x,delta.x!==0?direction:direction));invalidate('position');update();direction=direction;if(abs(delta.x)>3||new Date().getTime()time>300){one('core',function(){return false;});}}
if(!is('dragging')){return;}
leave('dragging');trigger('dragged');};closest=function(coordinate,direction){var position=-1,pull=30,width=width(),coordinates=coordinates();if(!freedrag){$.each(coordinates,$.proxy(function(index,value){if(direction==='left'&&coordinate>value-pull&&coordinatevalue-width-pull&&coordinate',coordinates[index+1]||value-width)){position=direction==='left'?index+1:index;}
return position===-1;},this));}
if(!loop){if(op(coordinate,'>',coordinates[minimum()])){position=coordinate=minimum();}else if(op(coordinate,'<',coordinates[maximum()])){position=coordinate=maximum();}}
return position;};animate=function(coordinate){var animate=speed()>0;is('animating')&&ontransitionend();if(animate){enter('animating');trigger('translate');}
if($transform3d&&$transition){this.$css({transform:'translate3d('+coordinate+'px,0px,0px)',transition:(speed()/1000)+'s'});}else if(animate){this.$animate({left:coordinate+'px'},speed(),fallbackeasing,$.proxy(ontransitionend,this));}else{this.$css({left:coordinate+'px'});}};is=function(state){return current[state]&¤t[state]>0;};current=function(position){if(position===undefined){return this._current;}
if(length===0){return undefined;}
position=normalize(position);if(this._current!==position){var event=trigger('change',{property:{name:'position',value:position}});if(data!==undefined){position=normalize(data);}
this._current=position;invalidate('position');trigger('changed',{property:{name:'position',value:this._current}});}
return this._current;};invalidate=function(part){if($.type(part)==='string'){this._invalidated[part]=true;is('valid')&&leave('valid');}
return $.map(this._invalidated,function(v,i){return i});};reset=function(position){position=normalize(position);if(position===undefined){return;}
this._speed=0;this._current=position;suppress(['translate','translated']);animate(coordinates(position));release(['translate','translated']);};normalize=function(position,relative){var n=length,m=relative?0:length;if(!isnumeric(position)||n<1){position=undefined;}else if(position<0||position>=n+m){position=((position-m/2)%n+n)%n+m/2;}
return position;};relative=function(position){position-=length/2;return normalize(position,true);};maximum=function(relative){var settings=settings,maximum=length,iterator,reciprocalItemsWidth,elementWidth;if(loop){maximum=length/2+length-1;}else if(autowidth||merge){iterator=length;reciprocalItemsWidth=this._items[--iterator].width();elementWidth=this.$width();while(iterator--){reciprocalItemsWidth+=this._items[iterator].width()+margin;if(reciprocalItemsWidth>elementWidth){break;}}
maximum=iterator+1;}else if(center){maximum=length-1;}else{maximum=items;}
if(relative){maximum-=length/2;}
return max(maximum,0);};minimum=function(relative){return relative?0:length/2;};items=function(position){if(position===undefined){return slice();}
position=normalize(position,true);return this._items[position];};mergers=function(position){if(position===undefined){return slice();}
position=normalize(position,true);return this._mergers[position];};clones=function(position){var odd=length/2,even=odd+length,map=function(index){return index%2===0?even+index/2:odd-(index+1)/2};if(position===undefined){return $.map(this._clones,function(v,i){return map(i)});}
return $.map(this._clones,function(v,i){return v===position?map(i):null});};speed=function(speed){if(speed!==undefined){this._speed=speed;}
return this._speed;};coordinates=function(position){var multiplier=1,newPosition=position-1,coordinate;if(position===undefined){return $.map(this._coordinates,$.proxy(function(coordinate,index){return coordinates(index);},this));}
if(center){if(rtl){multiplier=-1;newPosition=position+1;}
coordinate=this._coordinates[position];coordinate+=(width()-coordinate+(this._coordinates[newPosition]||0))/2*multiplier;}else{coordinate=this._coordinates[newPosition]||0;}
coordinate=ceil(coordinate);return coordinate;};duration=function(from,to,factor){if(factor===0){return 0;}
return min(max(abs(to-from),1),6)*abs((factor||smartspeed));};to=function(position,speed){var current=current(),revert=null,distance=relative(current),direction=(distance>0)-(distance<0),items=length,minimum=minimum(),maximum=maximum();if(loop){if(!rewind&&abs(distance)>items/2){distance+=direction*-1*items;}
position=current+distance;revert=((position-minimum)%items+items)%items+minimum;if(revert!==position&&revert-distance<=maximum&&revert-distance>0){current=revert-distance;position=revert;reset(current);}}else if(rewind){maximum+=1;position=(position%maximum+maximum)%maximum;}else{position=max(minimum,min(maximum,position));}
speed(duration(current,position,speed));current(position);if(this.$is(':visible')){update();}};next=function(speed){speed=speed||false;to(relative(current())+1,speed);};prev=function(speed){speed=speed||false;to(relative(current())-1,speed);};ontransitionend=function(event){if(event!==undefined){stoppropagation();if((target||srcelement||originaltarget)!==this.$get(0)){return false;}}
leave('animating');trigger('translated');};viewport=function(){var width;if(responsivebaseelement!==window){width=$(responsivebaseelement).width();}else if(innerwidth){width=innerwidth;}else if(documentelement&&clientwidth){width=clientwidth;}else{warn('Can not detect viewport width.');}
return width;};replace=function(content){this.$empty();this._items=[];if(content){content=(content instanceof jQuery)?content:$(content);}
if(nesteditemselector){content=find('.'+nesteditemselector);}
filter(function(){return nodetype===1;}).each($.proxy(function(index,item){item=prepare(item);this.$append(item);push(item);push(find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1);},this));reset(isnumeric(startposition)?startposition:0);invalidate('items');};add=function(content,position){var current=relative(this._current);position=position===undefined?length:normalize(position,true);content=content instanceof jQuery?content:$(content);trigger('add',{content:content,position:position});content=prepare(content);if(length===0||position===length){length===0&&this.$append(content);length!==0&&this._items[position-1].after(content);push(content);push(find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1);}else{this._items[position].before(content);splice(position,0,content);splice(position,0,find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1);}
this._items[current]&&reset(this._items[current].index());invalidate('items');trigger('added',{content:content,position:position});};remove=function(position){position=normalize(position,true);if(position===undefined){return;}
trigger('remove',{content:this._items[position],position:position});this._items[position].remove();splice(position,1);splice(position,1);invalidate('items');trigger('removed',{content:null,position:position});};preloadautowidthimages=function(images){each($.proxy(function(i,element){enter('pre-loading');element=$(element);$(new Image()).one('load',$.proxy(function(e){attr('src',src);css('opacity',1);leave('pre-loading');!is('pre-loading')&&!is('initializing')&&refresh();},this)).attr('src',attr('src')||attr('data-src')||attr('data-src-retina'));},this));};destroy=function(){this.$off('core');this.$off('core');$(document).off('core');if(responsive!==false){cleartimeout(resizetimer);off(window,'resize',onthrottledresize);}
for(var i in this._plugins){this._plugins[i].destroy();}
this.$children('.cloned').remove();this.$unwrap();this.$children().contents().unwrap();this.$children().unwrap();this.$removeclass(refreshclass).removeClass(loadingclass).removeClass(loadedclass).removeClass(rtlclass).removeClass(dragclass).removeClass(grabclass).attr('class',this.$attr('class').replace(new RegExp(responsiveclass+'-\\S+\\s','g'),'')).removeData('carousel');};op=function(a,o,b){var rtl=rtl;switch(o){case'<':return rtl?a>b:a':return rtl?ab;case'>=':return rtl?a<=b:a>=b;case'<=':return rtl?a>=b:a<=b;default:break;}};on=function(element,event,listener,capture){if(addeventlistener){addeventlistener(event,listener,capture);}else if(attachevent){attachevent('on'+event,listener);}};off=function(element,event,listener,capture){if(removeeventlistener){removeeventlistener(event,listener,capture);}else if(detachevent){detachevent('on'+event,listener);}};trigger=function(name,data,namespace,state,enter){var status={item:{count:length,index: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));if(!this._supress[name]){$.each(this._plugins,function(name,plugin){if(ontrigger){ontrigger(event);}});register({type:event,name:name});this.$trigger(event);if(settings&&typeof settings[handler]==='function'){settings[handler].call(this,event);}}
return event;};enter=function(name){$.each([name].concat(tags[name]||[]),$.proxy(function(i,name){if(current[name]===undefined){current[name]=0;}
current[name]++;},this));};leave=function(name){$.each([name].concat(tags[name]||[]),$.proxy(function(i,name){current[name]--;},this));};register=function(object){if(type===event){if(!$special[name]){$special[name]={};}
if(!$special[name].owl){var _default=$special[name]._default;$special[name]._default=function(e){if(_default&&apply&&(!namespace||indexof('owl')===-1)){return apply(this,arguments);}
return namespace&&indexof('owl')>-1;};$special[name].owl=true;}}else if(type===state){if(!tags[name]){tags[name]=tags;}else{tags[name]=tags[name].concat(tags);}
tags[name]=$.grep(tags[name],$.proxy(function(tag,i){return $.inArray(tag,tags[name])===i;},this));}};suppress=function(events){$.each(events,$.proxy(function(index,event){this._supress[event]=true;},this));};release=function(events){$.each(events,$.proxy(function(index,event){delete this._supress[event];},this));};pointer=function(event){var result={x:null,y:null};event=originalevent||event||event;event=touches&&length?touches[0]:changedtouches&&length?changedtouches[0]:event;if(pagex){result.x=pagex;result.y=pagey;}else{result.x=clientx;result.y=clienty;}
return result;};isnumeric=function(number){return!isNaN(parseFloat(number));};difference=function(first,second){return{x:first.x-second.x,y:first.y-second.y};};$owlcarousel=function(option){var args=call(arguments,1);return each(function(){var $this=$(this),data=$data('carousel');if(!data){data=new Owl(this,typeof option=='object'&&option);$data('carousel',data);$.each(['next','prev','to','destroy','refresh','replace','add','remove'],function(i,event){register({type:event,name:event});data.$on(event+'core',$.proxy(function(e){if(namespace&&relatedtarget!==this){suppress([event]);data[event].apply(this,[]call(arguments,1));release([event]);}},data));});}
if(typeof option=='string'&&charat(0)!=='_'){data[option].apply(data,args);}});};$constructor=Owl;})(zepto||jquery,window,document);;(function($,window,document,undefined){var AutoRefresh=function(carousel){this._core=carousel;this._interval=null;this._visible=null;this._handlers={'carousel':$.proxy(function(e){if(namespace&&autorefresh){watch();}},this)};options=$.extend({},defaults,options);this._core.$on(this._handlers);};defaults={autoRefresh:true,autoRefreshInterval:500};watch=function(){if(this._interval){return;}
this._visible=this._core.$is(':visible');this._interval=setinterval($.proxy(refresh,this),autorefreshinterval);};refresh=function(){if(this._core.$is(':visible')===this._visible){return;}
this._visible=!this._visible;this._core.$toggleclass('owl-hidden',!this._visible);this._visible&&(invalidate('width')&&refresh());};destroy=function(){var handler,property;clearinterval(this._interval);for(handler in this._handlers){this._core.$off(handler,this._handlers[handler]);}
for(property in getownpropertynames(this)){typeof this[property]!='function'&&(this[property]=null);}};$autorefresh=AutoRefresh;})(zepto||jquery,window,document);;(function($,window,document,undefined){var Lazy=function(carousel){this._core=carousel;this._loaded=[];this._handlers={'carousel carousel carousel':$.proxy(function(e){if(!namespace){return;}
if(!settings||!lazyload){return;}
if((property&&name=='position')||type=='initialized'){var settings=settings,n=(center&&ceil(items/2)||items),i=((center&&n*-1)||0),position=(property&&value!==undefined?value:current())+i,clones=clones().length,load=$.proxy(function(i,v){load(v)},this);while(i++-1){return;}
$each($.proxy(function(index,element){var $element=$(element),image,url=(devicepixelratio>1&&$attr('data-src-retina'))||$attr('data-src');trigger('load',{element:$element,url:url},'lazy');if($is('img')){$one('lazy',$.proxy(function(){$css('opacity',1);trigger('loaded',{element:$element,url:url},'lazy');},this)).attr('src',url);}else{image=new Image();onload=$.proxy(function(){$css({'background-image':'url("'+url+'")','opacity':'1'});trigger('loaded',{element:$element,url:url},'lazy');},this);src=url;}},this));push($get(0));};destroy=function(){var handler,property;for(handler in handlers){this._core.$off(handler,handlers[handler]);}
for(property in getownpropertynames(this)){typeof this[property]!='function'&&(this[property]=null);}};$lazy=Lazy;})(zepto||jquery,window,document);;(function($,window,document,undefined){var AutoHeight=function(carousel){this._core=carousel;this._handlers={'carousel carousel':$.proxy(function(e){if(namespace&&autoheight){update();}},this),'carousel':$.proxy(function(e){if(namespace&&autoheight&&name=='position'){update();}},this),'lazy':$.proxy(function(e){if(namespace&&autoheight&&closest('.'+itemclass).index()===current()){update();}},this)};options=$.extend({},defaults,options);this._core.$on(this._handlers);};defaults={autoHeight:false,autoHeightClass:'owl-height'};update=function(){var start=this._core._current,end=start+items,visible=this._core.$children().toArray().slice(start,end),heights=[],maxheight=0;$.each(visible,function(index,item){push($(item).height());});maxheight=apply(null,heights);this._core.$parent().height(maxheight).addClass(autoheightclass);};destroy=function(){var handler,property;for(handler in this._handlers){this._core.$off(handler,this._handlers[handler]);}
for(property in getownpropertynames(this)){typeof this[property]!='function'&&(this[property]=null);}};$autoheight=AutoHeight;})(zepto||jquery,window,document);;(function($,window,document,undefined){var Video=function(carousel){this._core=carousel;this._videos={};this._playing=null;this._handlers={'carousel':$.proxy(function(e){if(namespace){register({type:'state',name:'playing',tags:['interacting']});}},this),'carousel':$.proxy(function(e){if(namespace&&video&&isinfullscreen()){preventdefault();}},this),'carousel':$.proxy(function(e){if(namespace&&is('resizing')){this._core.$find('.cloned .owl-video-frame').remove();}},this),'carousel':$.proxy(function(e){if(namespace&&name==='position'&&this._playing){stop();}},this),'carousel':$.proxy(function(e){if(!namespace){return;}
var $element=$(content).find('.owl-video');if($length){$css('display','none');fetch($element,$(content));}},this)};options=$.extend({},defaults,options);this._core.$on(this._handlers);this._core.$on('video','.owl-video-play-icon',$.proxy(function(e){play(e);},this));};defaults={video:false,videoHeight:false,videoWidth:false};fetch=function(target,item){var type=(function(){if(attr('data-vimeo-id')){return'vimeo';}else if(attr('data-vzaar-id')){return'vzaar'}else{return'youtube';}})(),id=attr('data-vimeo-id')||attr('data-youtube-id')||attr('data-vzaar-id'),width=attr('data-width')||videowidth,height=attr('data-height')||videoheight,url=attr('href');if(url){id=match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);if(id[3].indexOf('youtu')>-1){type='youtube';}else if(id[3].indexOf('vimeo')>-1){type='vimeo';}else if(id[3].indexOf('vzaar')>-1){type='vzaar';}else{throw new Error('Video URL not supported.');}
id=id[6];}else{throw new Error('Missing video URL.');}
this._videos[url]={type:type,id:id,width:width,height:height};attr('data-video',url);thumbnail(target,this._videos[url]);};thumbnail=function(target,video){var tnLink,icon,path,dimensions=width&&height?'style="width:'+width+'px;height:'+height+'px;"':'',customTn=find('img'),srcType='src',lazyClass='',settings=settings,create=function(path){icon='';if(lazyload){tnLink='';}else{tnLink='';}
after(tnLink);after(icon);};wrap('');if(lazyload){srcType='data-src';lazyClass='owl-lazy';}
if(length){create(attr(srcType));remove();return false;}
if(type==='youtube'){path="//youtube/vi/"+id+"/jpg";create(path);}else if(type==='vimeo'){$.ajax({type:'GET',url:'//vimeo/api/v2/video/'+id+'.json',jsonp:'callback',dataType:'jsonp',success:function(data){path=data[0].thumbnail_large;create(path);}});}else if(type==='vzaar'){$.ajax({type:'GET',url:'//vzaar/api/videos/'+id+'.json',jsonp:'callback',dataType:'jsonp',success:function(data){path=framegrab_url;create(path);}});}};stop=function(){trigger('stop',null,'video');find('.owl-video-frame').remove();removeclass('owl-video-playing');this._playing=null;leave('playing');trigger('stopped',null,'video');};play=function(event){var target=$(target),item=closest('.'+itemclass),video=this._videos[attr('data-video')],width=width||'100%',height=height||this._core.$height(),html;if(this._playing){return;}
enter('playing');trigger('play',null,'video');item=items(relative(index()));reset(index());if(type==='youtube'){html='';}else if(type==='vimeo'){html='';}else if(type==='vzaar'){html='';}
$(''+html+'
').insertAfter(find('.owl-video'));this._playing=addclass('owl-video-playing');};isinfullscreen=function(){var element=fullscreenelement||mozfullscreenelement||webkitfullscreenelement;return element&&$(element).parent().hasClass('owl-video-frame');};destroy=function(){var handler,property;this._core.$off('video');for(handler in this._handlers){this._core.$off(handler,this._handlers[handler]);}
for(property in getownpropertynames(this)){typeof this[property]!='function'&&(this[property]=null);}};$video=Video;})(zepto||jquery,window,document);;(function($,window,document,undefined){var Animate=function(scope){core=scope;options=$.extend({},defaults,options);swapping=true;previous=undefined;next=undefined;handlers={'carousel':$.proxy(function(e){if(namespace&&name=='position'){previous=current();next=value;}},this),'carousel carousel carousel':$.proxy(function(e){if(namespace){swapping=type=='translated';}},this),'carousel':$.proxy(function(e){if(namespace&&swapping&&(animateout||animatein)){swap();}},this)};core.$on(handlers);};defaults={animateOut:false,animateIn:false};swap=function(){if(items!==1){return;}
if(!$animation||!$transition){return;}
speed(0);var left,clear=$.proxy(clear,this),previous=core.$children().eq(previous),next=core.$children().eq(next),incoming=animatein,outgoing=animateout;if(current()===previous){return;}
if(outgoing){left=coordinates(previous)coordinates(next);one($end,clear).css({'left':left+'px'}).addClass('animated owl-animated-out').addClass(outgoing);}
if(incoming){one($end,clear).addClass('animated owl-animated-in').addClass(incoming);}};clear=function(e){$(target).css({'left':''}).removeClass('animated owl-animated-out owl-animated-in').removeClass(animatein).removeClass(animateout);ontransitionend();};destroy=function(){var handler,property;for(handler in handlers){core.$off(handler,handlers[handler]);}
for(property in getownpropertynames(this)){typeof this[property]!='function'&&(this[property]=null);}};$animate=Animate;})(zepto||jquery,window,document);;(function($,window,document,undefined){var Autoplay=function(carousel){this._core=carousel;this._timeout=null;this._paused=false;this._handlers={'carousel':$.proxy(function(e){if(namespace&&name==='settings'){if(autoplay){play();}else{stop();}}else if(namespace&&name==='position'){if(autoplay){this._setAutoPlayInterval();}}},this),'carousel':$.proxy(function(e){if(namespace&&autoplay){play();}},this),'autoplay':$.proxy(function(e,t,s){if(namespace){play(t,s);}},this),'autoplay':$.proxy(function(e){if(namespace){stop();}},this),'autoplay':$.proxy(function(){if(autoplayhoverpause&&is('rotating')){pause();}},this),'autoplay':$.proxy(function(){if(autoplayhoverpause&&is('rotating')){play();}},this),'core':$.proxy(function(){if(autoplayhoverpause&&is('rotating')){pause();}},this),'core':$.proxy(function(){if(autoplayhoverpause){play();}},this)};this._core.$on(this._handlers);options=$.extend({},defaults,options);};defaults={autoplay:false,autoplayTimeout:5000,autoplayHoverPause:false,autoplaySpeed:false};play=function(timeout,speed){this._paused=false;if(is('rotating')){return;}
enter('rotating');this._setAutoPlayInterval();};prototype._getNextTimeout=function(timeout,speed){if(this._timeout){cleartimeout(this._timeout);}
return settimeout($.proxy(function(){if(this._paused||is('busy')||is('interacting')||hidden){return;}
next(speed||autoplayspeed);},this),timeout||autoplaytimeout);};prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout();};stop=function(){if(!is('rotating')){return;}
cleartimeout(this._timeout);leave('rotating');};pause=function(){if(!is('rotating')){return;}
this._paused=true;};destroy=function(){var handler,property;stop();for(handler in this._handlers){this._core.$off(handler,this._handlers[handler]);}
for(property in getownpropertynames(this)){typeof this[property]!='function'&&(this[property]=null);}};$autoplay=Autoplay;})(zepto||jquery,window,document);;(function($,window,document,undefined){'use strict';var Navigation=function(carousel){this._core=carousel;this._initialized=false;this._pages=[];this._controls={};this._templates=[];this.$element=this._core.$element;this._overrides={next:next,prev:prev,to:to};this._handlers={'carousel':$.proxy(function(e){if(namespace&&dotsdata){push(''+
$(content).find('[data-dot]').addBack('[data-dot]').attr('data-dot')+'
');}},this),'carousel':$.proxy(function(e){if(namespace&&dotsdata){splice(position,0,pop());}},this),'carousel':$.proxy(function(e){if(namespace&&dotsdata){splice(position,1);}},this),'carousel':$.proxy(function(e){if(namespace&&name=='position'){draw();}},this),'carousel':$.proxy(function(e){if(namespace&&!this._initialized){trigger('initialize',null,'navigation');initialize();update();draw();this._initialized=true;trigger('initialized',null,'navigation');}},this),'carousel':$.proxy(function(e){if(namespace&&this._initialized){trigger('refresh',null,'navigation');update();draw();trigger('refreshed',null,'navigation');}},this)};options=$.extend({},defaults,options);this.$on(this._handlers);};defaults={nav:false,navText:['prev','next'],navSpeed:false,navElement:'div',navContainer:false,navContainerClass:'owl-nav',navClass:['owl-prev','owl-next'],slideBy:1,dotClass:'owl-dot',dotsClass:'owl-dots',dots:true,dotsEach:false,dotsData:false,dotsSpeed:false,dotsContainer:false};initialize=function(){var override,settings=settings;this._controls.$relative=(navcontainer?$(navcontainer):$('').addClass(navcontainerclass).appendTo(this.$element)).addClass('disabled');this._controls.$previous=$('<'+navelement+'>').addClass(navclass[0]).html(navtext[0]).prependTo(this._controls.$relative).on('click',$.proxy(function(e){prev(navspeed);},this));this._controls.$next=$('<'+navelement+'>').addClass(navclass[1]).html(navtext[1]).appendTo(this._controls.$relative).on('click',$.proxy(function(e){next(navspeed);},this));if(!dotsdata){this._templates=[$('
').addClass(dotclass).append($('
')).prop('outerHTML')];}
this._controls.$absolute=(dotscontainer?$(dotscontainer):$('').addClass(dotsclass).appendTo(this.$element)).addClass('disabled');this._controls.$on('click','div',$.proxy(function(e){var index=$(target).parent().is(this._controls.$absolute)?$(target).index():$(target).parent().index();preventdefault();to(index,dotsspeed);},this));for(override in this._overrides){this._core[override]=$.proxy(this[override],this);}};destroy=function(){var handler,control,property,override;for(handler in this._handlers){this.$off(handler,this._handlers[handler]);}
for(control in this._controls){this._controls[control].remove();}
for(override in overides){this._core[override]=this._overrides[override];}
for(property in getownpropertynames(this)){typeof this[property]!='function'&&(this[property]=null);}};update=function(){var i,j,k,lower=clones().length/2,upper=lower+items().length,maximum=maximum(true),settings=settings,size=center||autowidth||dotsdata?1:dotseach||items;if(slideby!=='page'){slideby=min(slideby,items);}
if(dots||slideby=='page'){this._pages=[];for(i=lower,j=0,k=0;i=size||j===0){push({start:min(maximum,i-lower),end:i-lower+size-1});if(min(maximum,i-lower)===maximum){break;}
j=0,++k;}
j+=mergers(relative(i));}}};draw=function(){var difference,settings=settings,disabled=items().length<=items,index=relative(current()),loop=loop||rewind;this._controls.$toggleclass('disabled',!nav||disabled);if(nav){this._controls.$toggleclass('disabled',!loop&&index<=minimum(true));this._controls.$toggleclass('disabled',!loop&&index>=maximum(true));}
this._controls.$toggleclass('disabled',!dots||disabled);if(dots){difference=length-this._controls.$children().length;if(dotsdata&&difference!==0){this._controls.$html(join(''));}else if(difference>0){this._controls.$append(new Array(difference+1).join(this._templates[0]));}else if(difference<0){this._controls.$children().slice(difference).remove();}
this._controls.$find('.active').removeClass('active');this._controls.$children().eq($.inArray(current(),this._pages)).addClass('active');}};ontrigger=function(event){var settings=settings;page={index:$.inArray(current(),this._pages),count:length,size:settings&&(center||autowidth||dotsdata?1:dotseach||items)};};current=function(){var current=relative(current());return $.grep(this._pages,$.proxy(function(page,index){return start<=current&&end>=current;},this)).pop();};getposition=function(successor){var position,length,settings=settings;if(slideby=='page'){position=$.inArray(current(),this._pages);length=length;successor?++position:--position;position=this._pages[((position%length)+length)%length].start;}else{position=relative(current());length=items().length;successor?position+=slideby:position-=slideby;}
return position;};next=function(speed){$.proxy(to,this._core)(getposition(true),speed);};prev=function(speed){$.proxy(to,this._core)(getposition(false),speed);};to=function(position,speed,standard){var length;if(!standard&&length){length=length;$.proxy(to,this._core)(this._pages[((position%length)+length)%length].start,speed);}else{$.proxy(to,this._core)(position,speed);}};$navigation=Navigation;})(zepto||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={'carousel':$.proxy(function(e){if(namespace&&startposition==='URLHash'){$(window).trigger('navigation');}},this),'carousel':$.proxy(function(e){if(namespace){var hash=$(content).find('[data-hash]').addBack('[data-hash]').attr('data-hash');if(!hash){return;}
this._hashes[hash]=content;}},this),'carousel':$.proxy(function(e){if(namespace&&name==='position'){var current=items(relative(current())),hash=$.map(this._hashes,function(item,hash){return item===current?hash:null;}).join();if(!hash||slice(1)===hash){return;}
hash=hash;}},this)};options=$.extend({},defaults,options);this.$on(this._handlers);$(window).on('navigation',$.proxy(function(e){var hash=substring(1),items=this._core.$children(),position=this._hashes[hash]&&index(this._hashes[hash]);if(position===undefined||position===current()){return;}
to(relative(position),false,true);},this));};defaults={URLhashListener:false};destroy=function(){var handler,property;$(window).off('navigation');for(handler in this._handlers){this._core.$off(handler,this._handlers[handler]);}
for(property in getownpropertynames(this)){typeof this[property]!='function'&&(this[property]=null);}};$hash=Hash;})(zepto||jquery,window,document);;(function($,window,document,undefined){var style=$('').get(0).style,prefixes='Webkit Moz O ms'.split(' '),events={transition:{end:{WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd',transition:'transitionend'}},animation:{end:{WebkitAnimation:'webkitAnimationEnd',MozAnimation:'animationend',OAnimation:'oAnimationEnd',animation:'animationend'}}},tests={csstransforms:function(){return!!test('transform');},csstransforms3d:function(){return!!test('perspective');},csstransitions:function(){return!!test('transition');},cssanimations:function(){return!!test('animation');}};function test(property,prefixed){var result=false,upper=charat(0).toUpperCase()+slice(1);$.each((property+' '+join(upper+' ')+upper).split(' '),function(i,property){if(style[property]!==undefined){result=prefixed?property:true;return false;}});return result;}
function prefixed(property){return test(property,true);}
if(csstransitions()){$transition=new String(prefixed('transition'))
$end=end[$transition];}
if(cssanimations()){$animation=new String(prefixed('animation'))
$end=end[$animation];}
if(csstransforms()){$transform=new String(prefixed('transform'));$transform3d=csstransforms3d();}})(zepto||jquery,window,document);