PageSourceSearch

https://www.kerrygoldusa.com/_static/??-eJydkE0OAiEMhS8kEKMZ3RgP4C…/VY4eP1I2vrNfLVeztfNolnZG4wD22A=

js kerrygoldusa.com collected 2026-09-25 21:05:08 UTC 148,148 bytes, 1,709 lines download raw bytes

1!function(){var e,a,t;(e=document.getElementById("site-navigation"))&&void 0!==(a=e.getElementsByTagName("button")[0])&&(void 0!==(t=e.getElementsByTagName("ul")[0])?(t.setAttribute("aria-expanded","false"),-1===t.className.indexOf("nav-menu")&&(t.className+=" nav-menu"),a.onclick=function(){-1!==e.className.indexOf("toggled")?(e.className=e.className.replace(" toggled",""),a.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded","false")):(e.className+=" toggled",a.setAttribute("aria-expanded","true"),t.setAttribute("aria-expanded","true"))}):a.style.display="none")}();;
2( function() {
3	var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
4	    is_opera  = navigator.userAgent.toLowerCase().indexOf( 'opera' )  > -1,
5	    is_ie     = navigator.userAgent.toLowerCase().indexOf( 'msie' )   > -1;
6
7	if ( ( is_webkit || is_opera || is_ie ) && document.getElementById && window.addEventListener ) {
8		window.addEventListener( 'hashchange', function() {
9			var id = location.hash.substring( 1 ),
10				element;
11
12			if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
13				return;
14			}
15
16			element = document.getElementById( id );
17
18			if ( element ) {
19				if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
20					element.tabIndex = -1;
21				}
22
23				element.focus();
24			}
25		}, false );
26	}
27})();
28;
29/**
30 * Owl Carousel v2.2.1
31 * Copyright 2013-2017 David Deutsch
vendor: 32,028 bytes, lines 31-34
31
32 * Licensed under  ()
33 */
34!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),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"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!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:b,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,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"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g--;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:["width","items","settings"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,"padding-left":a||"","padding-right":a||""};this.$stage.css(c)}},{filter:["width","items","settings"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;c<d;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var b,c,e;b=this.$element.find("img"),c=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,e=this.$element.children(c).width(),b.length&&e<=0&&this.preloadAutoWidthImages(b)}this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b<c;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),this.settings.responsive!==!1&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is("valid")||(b.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is("dragging")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var d=-1,e=30,f=this.width(),g=this.coordinates();return this.settings.freeDrag||a.each(g,a.proxy(function(a,h){return"left"===c&&b>h-e&&b<h+e?d=a:"right"===c&&b>h-f-e&&b<h-f+e?d=a+1:this.op(b,"<",h)&&this.op(b,">",g[a+1]||h-f)&&(d="left"===c?a+1:a),d===-1},this)),this.settings.loop||(this.op(b,">",g[this.minimum()])?d=b=this.minimum():this.op(b,"<",g[this.maximum()])&&(d=b=this.maximum())),d},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){a=this.normalize(a),a!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){for(b=this._items.length,c=this._items[--b].width(),d=this.$element.width();b--&&(c+=this._items[b].width()+this.settings.margin,!(c>d)););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2===0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=f*-1*g),a=c+e,d=((a-h)%g+g)%g+h,d!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.$element.is(":visible")&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){a=this.normalize(a,!0),a!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),this.settings.responsive!==!1&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a<c;case">":return d?a<c:a>c;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},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,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&a.namespace.indexOf("owl")!==-1?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},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.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type))for(var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&e*-1||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);f++<e;)this.load(h/2+this._core.relative(g)),h&&a.each(this._core.clones(this._core.relative(g)),i),g++},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1},e.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"==a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.$stage.children().toArray().slice(b,c),e=[],f=0;a.each(d,function(b,c){e.push(a(c).height())}),f=Math.max.apply(null,e),this._core.$stage.parent().height(f).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.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+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?'style="width:'+c.width+"px;height:"+c.height+'px;"':"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(a){e='<div class="owl-video-play-icon"></div>',d=k.lazyLoad?'<div class="owl-video-tn '+j+'" '+i+'="'+a+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+a+')"></div>',b.after(d),b.after(e)};if(b.wrap('<div class="owl-video-wrapper"'+g+"></div>"),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.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,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),"youtube"===f.type?c='<iframe width="'+g+'" height="'+h+'" src="//www.youtube.com/embed/'+f.id+"?autoplay=1&rel=0&v="+f.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===f.type?c='<iframe src="//player.vimeo.com/video/'+f.id+'?autoplay=1" width="'+g+'" height="'+h+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===f.type&&(c='<iframe frameborder="0"height="'+h+'"width="'+g+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+f.id+'/player?autoplay=true"></iframe>'),a('<div class="owl-video-frame">'+c+"</div>").insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"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){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().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.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.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.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},
35    
vendor: 10,675 bytes, line 35
35a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype.play=function(a,b){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},e.prototype._getNextTimeout=function(d,e){return this._timeout&&b.clearTimeout(this._timeout),b.setTimeout(a.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||c.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},this),d||this._core.settings.autoplayTimeout)},e.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},e.prototype.stop=function(){this._core.is("rotating")&&(b.clearTimeout(this._timeout),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,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":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,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,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a("<div>").addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.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)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a<e;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.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.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(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.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},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(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.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),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("<support>").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document);
35;
36!function(){if(!window.CustomEvent&&document.createEventObject)return void(window.CustomEvent=function(e,t){if(!arguments.length)throw new Error("Not enough arguments");var s={type:e,bubbles:!1,cancelable:!1,detail:null},i=document.createEventObject();for(var n in s)i[n]=s[n];for(var n in t)i[n]=t[n];return i});try{new CustomEvent("test")}catch(e){var t=function(e,t){if(!arguments.length)throw new Error("Not enough arguments");var s={bubbles:!1,cancelable:!1,detail:null};for(var i in t)s[i]=t[i];var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,s.bubbles,s.cancelable,s.detail),n};t.prototype=(window.CustomEvent||window.Event).prototype,window.CustomEvent=t}}(),function(){if(!document.addEventListener&&window.Element&&window.Event){var e="__events",t="__immediateStopped";Event.prototype.NONE=Event.NONE=0,Event.prototype.CAPTURING_PHASE=Event.CAPTURING_PHASE=1,Event.prototype.AT_TARGET=Event.AT_TARGET=2,Event.prototype.BUBBLING_PHASE=Event.BUBBLING_PHASE=3,Event.prototype.preventDefault=function(){this.cancelable!==!1&&(this.returnValue=!1)},Event.prototype.stopPropagation=function(){this.cancelBubble=!0},Event.prototype.stopImmediatePropagation=function(){this[t]=this.cancelBubble=!0};for(var s=function(e,t){return e.timeStamp=+new Date,e.target||(e.target=e.srcElement||t),e.pageX=e.clientX+document.documentElement.scrollLeft,e.pageY=e.clientY+document.documentElement.scrollTop,"mouseover"==e.type?e.relatedTarget=e.fromElement:"mouseout"==e.type?e.relatedTarget=e.toElement:e.relatedTarget=null,e},i=function(e,t,s){for(var i=0;i<e.length;i++){var n=e[i];if(n.useCapture==s&&n.listener==t)return i}return-1},n=function(e,t,s){e.currentTarget=s,"function"==typeof t?t.call(s,e):t.handleEvent(e)},a=function(e){for(var t=[];e.parentNode;)t.unshift(e.parentNode),e=e.parentNode;return t},o=function(s,i,a){s.eventPhase=a;for(var o=0;o<i.length;o++){for(var r=i[o],l=[],d=(r[e]||{})[s.type]||[],h=0;h<d.length;h++){var c=d[h];c.useCapture&&a==Event.BUBBLING_PHASE||(c.useCapture||a!=Event.CAPTURING_PHASE)&&l.push(c.listener)}for(h=0;h<l.length;)try{for(;h<l.length;){var u=l[h++];if(n(s,u,r),s[t])return!0}}catch(p){setTimeout(function(){throw p},0)}if(s.cancelBubble)return!0}return!1},r=function(e){s(e,this);var t=a(e.target);return t.length&&o(e,t,Event.CAPTURING_PHASE)?e.returnValue:o(e,[e.target],Event.AT_TARGET)?e.returnValue:t.length&&e.bubbles!==!1&&(t.reverse(),o(e,t,Event.BUBBLING_PHASE))?e.returnValue:(e.stopPropagation(),e.returnValue)},l=({addEventListener:function(t,s,n){var a=this,o=(this[e]||{})[t]||[],l=o.length;if(!(i(o,s,n)>-1)){if(e in this)var d=this[e];else{var d={_handler:function(){r.apply(a,arguments)}};this[e]=d}t in d||(d[t]=[]),d[t].push({listener:s,useCapture:n}),l||this.attachEvent("on"+t,d._handler)}},removeEventListener:function(t,s,n){var a=(this[e]||{})[t]||[],o=i(a,s,n);-1!=o&&(a.splice(o,1),a.length||this.detachEvent("on"+t,this[e]._handler))},dispatchEvent:function(e){return e.returnValue=!0,r.call(this,e)}}),d=[Element,window.constructor,document.constructor];d.length;){var h=d.pop();for(var c in l)h.prototype[c]=l[c]}}}(),Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var s,i;if(null==this)throw new TypeError(" this is null or not defined");var n=Object(this),a=n.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(s=t),i=0;a>i;){var o;i in n&&(o=n[i],e.call(s,o,i,n)),i++}}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var s;if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),n=i.length>>>0;if(0===n)return-1;var a=+t||0;if(Math.abs(a)===1/0&&(a=0),a>=n)return-1;for(s=Math.max(a>=0?a:n-Math.abs(a),0);n>s;){if(s in i&&i[s]===e)return s;s++}return-1}),function(e){var t;if("object"==typeof exports){try{t=require("jquery")}catch(s){}module.exports=e(window,document,t)}else"function"==typeof define&&define.amd?define([],function(){return e(window,document,window.jQuery)}):window.Dropkick=e(window,document,window.jQuery)}(function(e,t,s,i){var n,a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),o=e.parent!==e.self,r=-1!==navigator.appVersion.indexOf("MSIE"),l=function(s,i){var n,a;if(this===e)return new l(s,i);for("string"==typeof s&&"#"===s[0]&&(s=t.getElementById(s.substr(1))),n=0;n<l.uid;
36n++)if(a=l.cache[n],a instanceof l&&a.data.select===s)return c.extend(a.data.settings,i),a;return s?s.length<1?(console.error("You must have options inside your <select>: ",s),!1):"SELECT"===s.nodeName?this.init(s,i):void 0:(console.error("You must pass a select to DropKick"),!1)},d=function(){},h={initialize:d,mobile:!1,change:d,open:d,close:d,search:"strict",bubble:!0},c={hasClass:function(e,t){var s=new RegExp("(^|\\s+)"+t+"(\\s+|$)");return e&&s.test(e.className)},addClass:function(e,t){e&&!c.hasClass(e,t)&&(e.className+=" "+t)},removeClass:function(e,t){var s=new RegExp("(^|\\s+)"+t+"(\\s+|$)");e&&(e.className=e.className.replace(s," "))},toggleClass:function(e,t){var s=c.hasClass(e,t)?"remove":"add";c[s+"Class"](e,t)},extend:function(e){return Array.prototype.slice.call(arguments,1
36).forEach(function(t){if(t)for(var s in t)e[s]=t[s]}),e},offset:function(s){var i=s.getBoundingClientRect()||{top:0,left:0},n=t.documentElement,a=r?n.scrollTop:e.pageYOffset,o=r?n.scrollLeft:e.pageXOffset;return{top:i.top+a-n.clientTop,left:i.left+o-n.clientLeft}},position:function(e,t){for(var s={top:0,left:0};e&&e!==t;)s.top+=e.offsetTop,s.left+=e.offsetLeft,e=e.parentNode;return s},closest:function(e,t){for(;e;){if(e===t)return e;e=e.parentNode}return!1},create:function(e,s){var i,n=t.createElement(e);s||(s={});for(i in s)s.hasOwnProperty(i)&&("innerHTML"===i?n.innerHTML=s[i]:n.setAttribute(i,s[i]));return n},deferred:function(t){return function(){var s=arguments,i=this;e.setTimeout(function(){t.apply(i,s)},1)}}};return l.cache={},l.uid=0,l.prototype={add:function(e,s){var i,n,a;"string"==typeof e&&(i=e,e=t.createElement("option"),e.text=i),"OPTION"===e.nodeName&&(n=c.create("li",{"class":"dk-option","data-value":e.value,text:e.text,innerHTML:e.innerHTML,role:"option","aria-selected":"false",id:"dk"+this.data.cacheID+"-"+(e.id||e.value.replace(" ","-"))}),c.addClass(n,e.className),this.length+=1,e.disabled&&(c.addClass(n,"dk-option-disabled"),n.setAttribute("aria-disabled","true")),e.hidden&&(c.addClass(n,"dk-option-hidden"),n.setAttribute("aria-hidden","true")),this.data.select.add(e,s),"number"==typeof s&&(s=this.item(s)),a=this.options.indexOf(s),a>-1?(s.parentNode.insertBefore(n,s),this.options.splice(a,0,n)):(this.data.elem.lastChild.appendChild(n),this.options.push(n)),n.addEventListener("mouseover",this),e.selected&&this.select(a))},item:function(e){return e=0>e?this.options.length+e:e,this.options[e]||null},remove:function(e){var t=this.item(e);t.parentNode.removeChild(t),this.options.splice(e,1),this.data.select.remove(e),this.select(this.data.select.selectedIndex),this.length-=1},init:function(e,s){var i,r=l.build(e,"dk"+l.uid);if(this.data={},this.data.select=e,this.data.elem=r.elem,this.data.settings=c.extend({},h,s),this.disabled=e.disabled,this.form=e.form,this.length=e.length,this.multiple=e.multiple,this.options=r.options.slice(0),this.selectedIndex=e.selectedIndex,this.selectedOptions=r.selected.slice(0),this.value=e.value,this.data.cacheID=l.uid,l.cache[this.data.cacheID]=this,this.data.settings.initialize.call(this),l.uid+=1,this._changeListener||(e.addEventListener("change",this),this._changeListener=!0),!a||this.data.settings.mobile){if(e.parentNode.insertBefore(this.data.elem,e),e.setAttribute("data-dkCacheId",this.data.cacheID),this.data.elem.addEventListener("click",this),this.data.elem.addEventListener("keydown",this),this.data.elem.addEventListener("keypress",this),this.form&&this.form.addEventListener("reset",this),!this.multiple)for(i=0;i<this.options.length;i++)this.options[i].addEventListener("mouseover",this);n||(t.addEventListener("click",l.onDocClick),o&&parent.document.addEventListener("click",l.onDocClick),n=!0)}return this},close:function(){var e,t=this.data.elem;if(!this.isOpen||this.multiple)return!1;for(e=0;e<this.options.length;e++)c.removeClass(this.options[e],"dk-option-highlight");t.lastChild.setAttribute("aria-expanded","false"),c.removeClass(t.lastChild,"dk-select-options-highlight"),c.removeClass(t,"dk-select-open-(up|down)"),this.isOpen=!1,this.data.settings.close.call(this)},open:c.deferred(function(){var s,n,a,o,r,l,d=this.data.elem,h=d.lastChild,u=e.pageXOffset!==i,p="CSS1Compat"===(t.compatMode||""),f=u?e.pageYOffset:p?t.documentElement.scrollTop:t.body.scrollTop;return r=c.offset(d).top-f,l=e.innerHeight-(r+d.offsetHeight),this.isOpen||this.multiple?!1:(h.style.display="block",s=h.offsetHeight,h.style.display="",n=r>s,a=l>s,o=n&&!a?"-up":"-down",this.isOpen=!0,c.addClass(d,"dk-select-open"+o),h.setAttribute("aria-expanded","true"),this._scrollTo(this.options.length-1),this._scrollTo(this.selectedIndex),void this.data.settings.open.call(this))}),disable:function(e,t){var s="dk-option-disabled";0!==arguments.length&&"boolean"!=typeof e||(t=e===i,e=this.data.elem,s="dk-select-disabled",this.disabled=t),t===i&&(t=!0),"number"==typeof e&&(e=this.item(e)),t?(e.setAttribute("aria-disabled",!0),c.addClass(e,s)):(e.setAttribute("aria-disabled",!1),c.removeClass(e,s))},hide:function(e,t){var s="dk-option-hidden";t===i&&(t=!0),e=this.item(e),t?(e.setAttribute("aria-hidden",!0),c.addClass(e,s)):(e.setAttribute("aria-hidden",!1),c.removeClass(e,s))},select:function(e,t){var s,i,n,a,o=this.data.select;if("number"==typeof e&&(e=this.item(e)),"string"==typeof e)for(s=0;s<this.length;s++)this.options[s].getAttribute("data-value")===e&&(e=this.options[s]);return!e||"string"==typeof e||!t&&c.hasClass(e,"dk-option-disabled")?!1:c.hasClass(e,"dk-option")?(i=this.options.indexOf(e),n=o.options[i],this.multiple?(c.toggleClass(e,"dk-option-selected"),n.selected=!n.selected,c.hasClass(e,"dk-option-selected")?(e.setAttribute("aria-selected","true"),this.selectedOptions.push(e)):(e.setAttribute("aria-selected","false"),i=this.selectedOptions.indexOf(e),this.selectedOptions.splice(i,1))):(a=this.data.elem.firstChild,this.selectedOptions.length&&(c.removeClass(this.selectedOptions[0],"dk-option-selected"),this.selectedOptions[0].setAttribute("aria-selected","false")),c.addClass(e,"dk-option-selected"),e.setAttribute("aria-selected","true"),a.setAttribute("aria-activedescendant",e.id),a.className="dk-selected "+n.className,a.innerHTML=n.innerHTML,this.selectedOptions[0]=e,n.selected=!0),this.selectedIndex=o.selectedIndex,this.value=o.value,t||this.data.select.dispatchEvent(new CustomEvent("change",{bubbles:this.data.settings.bubble})),e):void 0},selectOne:function(e,t){return this.reset(!0),this._scrollTo(e),this.select(e,t)},search:function(e,t){var s,i,n,a,o,r,l,d,h=this.data.select.options,c=[];if(!e)return this.options;for(t=t?t.toLowerCase():"strict",t="fuzzy"===t?2:"partial"===t?1:0,d=new RegExp((t?"":"^")+e,"i"),s=0;s<h.length;s++)if(n=h[s].text.toLowerCase(),2==t){for(i=e.toLowerCase().split(""),a=o=r=l=0;o<n.length;)n[o]===i[a]?(r+=1+r,a++):r=0,l+=r,o++;a===i.length&&c.push({e:this.options[s],s:l,i:s})}else d.test(n)&&c.push(this.options[s]);return 2===t&&(c=c.sort(function(e,t){return t.s-e.s||e.i-t.i}).reduce(function(e,t){return e[e.length]=t.e,e},[])),c},focus:function(){this.disabled||(this.multiple?this.data.elem:this.data.elem.children[0]).focus()},reset:function(e){var t,s=this.data.select;for(this.selectedOptions.length=0,t=0;t<s.options.length;t++)s.options[t].selected=!1,c.removeClass(this.options[t],"dk-option-selected"),this.options[t].setAttribute("aria-selected","false"),!e&&s.options[t].defaultSelected&&this.select(t,!0);this.selectedOptions.length||this.multiple||this.select(0,!0)},refresh:function(){Object.keys(this).length>0&&(!a||this.data.settings.mobile)&&this.dispose().init(this.data.select,this.data.settings)},dispose:function(){return Object.keys(this).length>0&&(!a||this.data.settings.mobile)&&(delete l.cache[this.data.cacheID],this.data.elem.parentNode.removeChild(this.data.elem),this.data.select.removeAttribute("data-dkCacheId")),this},handleEvent:function(e){if(!this.disabled)switch(e.type){case"click":this._delegate(e);break;case"keydown":this._keyHandler(e);break;case"keypress":this._searchOptions(e);break;case"mouseover":this._highlight(e);break;case"reset":this.reset();break;case"change":this.data.settings.change.call(this)}},_delegate:function(t){var s,i,n,a,o=t.target;if(c.hasClass(o,"dk-option-disabled"))return!1;if(this.multiple){if(c.hasClass(o,"dk-option"))if(s=e.getSelection(),"Range"===s.type&&s.collapseToStart(),t.shiftKey)if(n=this.options.indexOf(this.selectedOptions[0]),a=this.options.indexOf(this.selectedOptions[this.selectedOptions.length-1]),i=this.options.indexOf(o),i>n&&a>i&&(i=n),i>a&&a>n&&(a=n),this.reset(!0),a>i)for(;a+1>i;)this.select(i++);else for(;i>a-1;)this.select(i--);else t.ctrlKey||t.metaKey?this.select(o):(this.reset(!0),this.select(o))}
36else this[this.isOpen?"close":"open"](),c.hasClass(o,"dk-option")&&this.select(o)},_highlight:function(e){var t,s=e.target;if(!this.multiple){for(t=0;t<this.options.length;t++)c.removeClass(this.options[t],"dk-option-highlight");c.addClass(this.data.elem.lastChild,"dk-select-options-highlight"),c.addClass(s,"dk-option-highlight")}},_keyHandler:function(e){var t,s,i=this.selectedOptions,n=this.options,a=1,o={tab:9,enter:13,esc:27,space:32,up:38,down:40};switch(e.keyCode){case o.up:a=-1;case o.down:if(e.preventDefault(),t=i[i.length-1],c.hasClass(this.data.elem.lastChild,"dk-select-options-highlight"))for(c.removeClass(this.data.elem.lastChild,"dk-select-options-highlight"),s=0;s<n.length;s++)c.hasClass(n[s],"dk-option-highlight")&&(c.removeClass(n[s],"dk-option-highlight"),t=n[s]);a=n.indexOf(t)+a,a>n.length-1?a=n.length-1:0>a&&(a=0),this.data.select.options[a].disabled||(this.reset(!0),this.select(a),this._scrollTo(a));break;case o.space:if(!this.isOpen){e.preventDefault(),this.open();break}case o.tab:case o.enter:for(a=0;a<n.length;a++)c.hasClass(n[a],"dk-option-highlight")&&this.select(a);case o.esc:this.isOpen&&(e.preventDefault(),this.close())}},_searchOptions:function(e){var t,s=this,n=String.fromCharCode(e.keyCode||e.which),a=function(){s.data.searchTimeout&&clearTimeout(s.data.searchTimeout),s.data.searchTimeout=setTimeout(function(){s.data.searchString=""},1e3)};this.data.searchString===i&&(this.data.searchString=""),a(),this.data.searchString+=n,t=this.search(this.data.searchString,this.data.settings.search),t.length&&(c.hasClass(t[0],"dk-option-disabled")||this.selectOne(t[0]))},_scrollTo:function(e){var t,s,i,n=this.data.elem.lastChild;return-1===e||"number"!=typeof e&&!e||!this.isOpen&&!this.multiple?!1:("number"==typeof e&&(e=this.item(e)),t=c.position(e,n).top,s=t-n.scrollTop,i=s+e.offsetHeight,void(i>n.offsetHeight?(t+=e.offsetHeight,n.scrollTop=t-n.offsetHeight):0>s&&(n.scrollTop=t)))}},l.build=function(e,t){var s,i,n,a=[],o={elem:null,options:[],selected:[]},r=function(e){var s,i,n,a,l=[];switch(e.nodeName){case"OPTION":s=c.create("li",{"class":"dk-option ","data-value":e.value,text:e.text,innerHTML:e.innerHTML,role:"option","aria-selected":"false",id:t+"-"+(e.id||e.value.replace(" ","-"))}),c.addClass(s,e.className),e.disabled&&(c.addClass(s,"dk-option-disabled"),s.setAttribute("aria-disabled","true")),e.hidden&&(c.addClass(s,"dk-option-hidden"),s.setAttribute("aria-hidden","true")),e.selected&&(c.addClass(s,"dk-option-selected"),s.setAttribute("aria-selected","true"),o.selected.push(s)),o.options.push(this.appendChild(s));break;case"OPTGROUP":for(i=c.create("li",{"class":"dk-optgroup"}),e.label&&i.appendChild(c.create("div",{"class":"dk-optgroup-label",innerHTML:e.label})),n=c.create("ul",{"class":"dk-optgroup-options"}),a=e.children.length;a--;l.unshift(e.children[a]));l.forEach(r,n),this.appendChild(i).appendChild(n)}};for(o.elem=c.create("div",{"class":"dk-select"+(e.multiple?"-multi":"")}),i=c.create("ul",{"class":"dk-select-options",id:t+"-listbox",role:"listbox"}),e.disabled&&(c.addClass(o.elem,"dk-select-disabled"),o.elem.setAttribute("aria-disabled",!0)),o.elem.id=t+(e.id?"-"+e.id:""),c.addClass(o.elem,e.className),e.multiple?(o.elem.setAttribute("tabindex",e.getAttribute("tabindex")||"0"),i.setAttribute("aria-multiselectable","true")):(s=e.options[e.selectedIndex],o.elem.appendChild(c.create("div",{"class":"dk-selected "+s.className,tabindex:e.tabindex||0,innerHTML:s?s.text:"&nbsp;",id:t+"-combobox","aria-live":"assertive","aria-owns":i.id,role:"combobox"})),i.setAttribute("aria-expanded","false")),n=e.children.length;n--;a.unshift(e.children[n]));return a.forEach(r,o.elem.appendChild(i)),o},l.onDocClick=function(e){var t,s;if(1!==e.target.nodeType)return!1;null!==(t=e.target.getAttribute("data-dkcacheid"))&&l.cache[t].focus();for(s in l.cache)c.closest(e.target,l.cache[s].data.elem)||s===t||l.cache[s].disabled||l.cache[s].close()},s!==i&&(s.fn.dropkick=function(){var e=Array.prototype.slice.call(arguments);return s(this).each(function(){e[0]&&"object"!=typeof e[0]?"string"==typeof e[0]&&l.prototype[e[0]].apply(new l(this),e.slice(1)):new l(this,e[0]||{})})}),l});;
37!function(e){"function"==typeof define&&define.amd?define([],e):"undefined"!=typeof module&&null!==module&&module.exports?module.exports=e:e()}(function(){function e(e){return new CustomEvent(e,N)}function t(e){return e[z]||(e[z]={})}function n(e,n,i,o,a){function c(e){i(e,o)}n=n.split(D);for(var u,r=t(e),d=n.length;d--;)(r[u=n[d]]||(r[u]=[])).push([i,c]),e.addEventListener(u,c)}function i(e,n,i,o){n=n.split(D);var a,c,u,r=t(e),d=n.length;if(r)for(;d--;)if(a=n[d],c=r[a])for(u=c.length;u--;)c[u][0]===i&&(e.removeEventListener(a,c[u][1]),c.splice(u,1))}function o(t,n,i){var o=e(n);
37i&&F(o,i),t.dispatchEvent(o)}function a(e){function t(e){i?(n(),x(t),o=!0,i=!1):o=!1}var n=e,i=!1,o=!1;this.kick=function(e){i=!0,o||t()},this.end=function(e){var t=n;e&&(o?(n=i?function(){t(),e()}:e,i=!0):e())}}function c(){}function u(e){e.preventDefault()}function r(e){return!!L[e.target.tagName.toLowerCase()]}function d(e){return 1===e.which&&!e.ctrlKey&&!e.altKey}function m(e,t){var n,i;if(e.identifiedTouch)return e.identifiedTouch(t);for(n=-1,i=e.length;++n<i;)if(e[n].identifier===t)return e[n]}function f(e,t){var n=m(e.changedTouches,t.identifier);if(n&&(n.pageX!==t.pageX||n.pageY!==t.pageY))return n}function v(e,t){X(e,t,e,l)}function s(e,t){l()}function l(){i(document,R.move,v),i(document,R.cancel,s)}function g(e,t){var n=f(e,t);n&&X(e,t,n,h)}function p(e,t){m(e.changedTouches,t.identifier)&&h(t)}function h(e){i(document,C.move,e.touchmove),i(document,C.cancel,e.touchend)}function X(e,t,n,i){var o=n.pageX-t.pageX,a=n.pageY-t.pageY;o*o+a*a<M*M||Y(e,t,n,o,a,i)}function Y(e,t,n,i,a,u){var r=e.targetTouches,d=e.timeStamp-t.timeStamp,m={altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,startX:t.pageX,startY:t.pageY,distX:i,distY:a,deltaX:i,deltaY:a,pageX:n.pageX,pageY:n.pageY,velocityX:i/d,velocityY:a/d,identifier:t.identifier,targetTouches:r,finger:r?r.length:1,enableMove:function(){this.moveEnabled=!0,this.enableMove=c,e.preventDefault()}};o(t.target,"movestart",m),u(t)}function y(e,t){var n=t.timer;t.touch=e,t.timeStamp=e.timeStamp,n.kick()}function w(e,t){var n=t.target,o=t.event,a=t.timer;T(),j(n,o,a,function(){setTimeout(function(){i(n,"click",u)},0)})}function T(){i(document,R.move,y),i(document,R.end,w)}function b(e,t){var n=t.event,i=t.timer,o=f(e,n);o&&(e.preventDefault(),n.targetTouches=e.targetTouches,t.touch=o,t.timeStamp=e.timeStamp,i.kick())}function S(e,t){var n=t.target,i=t.event,o=t.timer;m(e.changedTouches,i.identifier)&&(k(t),j(n,i,o))}function k(e){i(document,C.move,e.activeTouchmove),i(document,C.end,e.activeTouchend)}function K(e,t,n){var i=n-e.timeStamp;e.distX=t.pageX-e.startX,e.distY=t.pageY-e.startY,e.deltaX=t.pageX-e.pageX,e.deltaY=t.pageY-e.pageY,e.velocityX=.3*e.velocityX+.7*e.deltaX/i,e.velocityY=.3*e.velocityY+.7*e.deltaY/i,e.pageX=t.pageX,e.pageY=t.pageY}function j(e,t,n,i){n.end(function(){return o(e,"moveend",t),i&&i()})}function E(e){e.enableMove()}function Q(e){e.enableMove()}function q(e){e.enableMove()}function A(e){var t=e.handler;e.handler=function(e){for(var n,i=O.length;i--;)e[n=O[i]]=e.originalEvent[n];t.apply(this,arguments)}}var F=Object.assign||window.jQuery&&jQuery.extend,M=8,x=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){return window.setTimeout(function(){e()},25)},L={textarea:!0,input:!0,select:!0,button:!0},R={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},C={move:"touchmove",cancel:"touchend",end:"touchend"},D=/\s+/,N={bubbles:!0,cancelable:!0},z=Symbol("events");if(n(document,"mousedown",function(e){d(e)&&(r(e)||(n(document,R.move,v,e),n(document,R.cancel,s,e)))}),n(document,"touchstart",function(e){if(!L[e.target.tagName.toLowerCase()]){var t=e.changedTouches[0],i={target:t.target,pageX:t.pageX,pageY:t.pageY,identifier:t.identifier,touchmove:function(e,t){g(e,t)},touchend:function(e,t){p(e,t)}};n(document,C.move,i.touchmove,i),n(document,C.cancel,i.touchend,i)}}),n(document,"movestart",function(e){if(!e.defaultPrevented&&e.moveEnabled){var t={startX:e.startX,startY:e.startY,pageX:e.pageX,pageY:e.pageY,distX:e.distX,distY:e.distY,deltaX:e.deltaX,deltaY:e.deltaY,velocityX:e.velocityX,velocityY:e.velocityY,identifier:e.identifier,targetTouches:e.targetTouches,finger:e.finger},i={target:e.target,event:t,timer:new a(function(e){K(t,i.touch,i.timeStamp),o(i.target,"move",t)}),touch:void 0,timeStamp:e.timeStamp};void 0===e.identifier?(n(e.target,"click",u),n(document,R.move,y,i),n(document,R.end,w,i)):(i.activeTouchmove=function(e,t){b(e,t)},i.activeTouchend=function(e,t){S(e,t)},n(document,C.move,i.activeTouchmove,i),n(document,C.end,i.activeTouchend,i))}}),window.jQuery){var O="startX startY pageX pageY distX distY deltaX deltaY velocityX velocityY".split(" ");jQuery.event.special.movestart={setup:function(){return n(this,"movestart",E),!1},teardown:function(){return i(this,"movestart",E),!1},add:A},jQuery.event.special.move={setup:function(){return n(this,"movestart",Q),!1},teardown:function(){return i(this,"movestart",Q),!1},add:A},jQuery.event.special.moveend={setup:function(){return n(this,"movestart",q),!1},teardown:function(){return i(this,"movestart",q),!1},add:A}}});;
38!function(t){t.fn.twentytwenty=function(e){var e=t.extend({default_offset_pct:.5,orientation:"horizontal",before_label:"Before",after_label:"After",no_overlay:!1},e);return this.each(function(){var n=e.default_offset_pct,a=t(this),i=e.orientation,s="vertical"===i?"down":"left",r="vertical"===i?"up":"right";a.wrap("<div class='twentytwenty-wrapper twentytwenty-"+i+"'></div>"),e.no_overlay||a.append("<div class='twentytwenty-overlay'></div>");var c=a.find("img:first"),d=a.find("img:last");a.append("<div class='twentytwenty-handle'></div>");var o=a.find(".twentytwenty-handle");o.append("<span class='twentytwenty-"+s+"-arrow'></span>"),o.append("<span class='twentytwenty-"+r+"-arrow'></span>"),a.addClass("twentytwenty-container"),c.addClass("twentytwenty-before"),d.addClass("twentytwenty-after"),containerHeight=c.parent().height()+"px";var l=a.find(".twentytwenty-overlay");l.append("<div class='twentytwenty-before-label' data-content='"+e.before_label+"'></div>
38"),l.append("<div class='twentytwenty-after-label' data-content='"+e.after_label+"'></div>");var f=function(t){return w=c.width(),h=c.height(),{w:w+"px",h:h+"px",cw:t*w+"px",ch:t*h+"px"}},p=function(t){"vertical"===i?(c.css("clip","rect(0,"+t.w+","+t.ch+",0)"),d.css("clip","rect("+t.ch+","+t.w+","+t.h+",0)")):(c.css("clip","rect(0,"+t.cw+","+containerHeight+",0)"),d.css("clip","rect(0,"+t.w+","+containerHeight+","+t.cw+")")),a.css("height",t.h)},v=function(t){var e=f(t);o.css("vertical"===i?"top":"left","vertical"===i?e.ch:e.cw),o.parents(".fridge-container").attr("data-left",parseInt(e.cw)),p(e)};t(window).on("resize.twentytwenty",function(t){v(n)});var y=0,u=0,g=0,b=0;o.on("movestart",function(t){(t.distX>t.distY&&t.distX<-t.distY||t.distX<t.distY&&t.distX>-t.distY)&&"vertical"!==i?t.preventDefault():(t.distX<t.distY&&t.distX<-t.distY||t.distX>t.distY&&t.distX>-t.distY)&&"vertical"===i&&t.preventDefault(),a.addClass("active"),y=a.offset().left,u=a.offset().top,g=c.width(),b=c.height()}),o.on("moveend",function(t){a.removeClass("active")}),o.on("move",function(t){a.hasClass("active")&&((n="vertical"===i?(t.pageY-u)/b:(t.pageX-y)/g)<0&&(n=0),n>1&&(n=1),v(n))}),o.on("touchmove",function(t){t.preventDefault()}),a.find("img").on("mousedown",function(t){t.preventDefault()}),t(window).trigger("resize.twentytwenty")})}}(jQuery);;
39rotate = function(images){
40    $(function(){
41        $.each(images, function(i,v){
42            $('.rotatebox .images').append('<img src="' + v + '" data-nth="' + i + '" />');
43        });
44        $('.rotatebox .images img').css('z-index', '1');
45        $('.rotatebox .images img').first().css('z-index', '2');
46        $('.rotatebox .slider').slider({
47            min: 0,
48            max: (images.length * 2) - 1,
49            value: 0,
50            slide: function(evt, ui){
51                target = ui.value % images.length;
52                $('.rotatebox .images img').css('z-index', '1');
53                $('.rotatebox .images img[data-nth=' + target + ']').css('z-index', '2');
54            },
55        });
56    });
57};
58;
59/*!
60 * jScrollPane - v2.0.23 - 2016-01-28
61 * http://jscrollpane.kelvinluck.com/
62 *
63 * Copyright (c) 2014 Kelvin Luck
64 * Dual licensed under the MIT or GPL licenses.
65 */
66!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){a.fn.jScrollPane=function(b){function c(b,c){function d(c){var f,h,j,k,l,o,p=!1,q=!1;if(N=c,void 0===O)l=b.scrollTop(),o=b.scrollLeft(),b.css({overflow:"hidden",padding:0}),P=b.innerWidth()+rb,Q=b.innerHeight(),b.width(P),O=a('<div class="jspPane" />').css("padding",qb).append(b.children()),R=a('<div class="jspContainer" />').css({width:P+"px",height:Q+"px"}).append(O).appendTo(b);else{if(b.css("width",""),p=N.stickToBottom&&A(),q=N.stickToRight&&B(),k=b.innerWidth()+rb!=P||b.outerHeight()!=Q,k&&(P=b.innerWidth()+rb,Q=b.innerHeight(),R.css({width:P+"px",height:Q+"px"})),!k&&sb==S&&O.outerHeight()==T)return void b.width(P);sb=S,O.css("width",""),b.width(P),R.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}O.css("overflow","auto"),S=c.contentWidth?c.contentWidth:O[0].scrollWidth,T=O[0].scrollHeight,O.css("overflow",""),U=S/P,V=T/Q,W=V>1,X=U>1,X||W?(b.addClass("jspScrollable"),f=N.maintainPosition&&($||bb),f&&(h=y(),j=z()),e(),g(),i(),f&&(w(q?S-P:h,!1),v(p?T-Q:j,!1)),F(),C(),L(),N.enableKeyboardNavigation&&H(),N.clickOnTrack&&m(),J(),N.hijackInternalLinks&&K()):(b.removeClass("jspScrollable"),O.css({top:0,left:0,width:R.width()-rb}),D(),G(),I(),n()),N.autoReinitialise&&!pb?pb=setInterval(function(){d(N)},N.autoReinitialiseDelay):!N.autoReinitialise&&pb&&clearInterval(pb),l&&b.scrollTop(0)&&v(l,!1),o&&b.scrollLeft(0)&&w(o,!1),b.trigger("jsp-initialised",[X||W])}function e(){W&&(R.append(a('<div class="jspVerticalBar" />').append(a('<div class="jspCap jspCapTop" />'),a('<div class="jspTrack" />').append(a('<div class="jspDrag" />').append(a('<div class="jspDragTop" />'),a('<div class="jspDragBottom" />'))),a('<div class="jspCap jspCapBottom" />'))),cb=R.find(">.jspVerticalBar"),db=cb.find(">.jspTrack"),Y=db.find(">
66.jspDrag"),N.showArrows&&(hb=a('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",k(0,-1)).bind("click.jsp",E),ib=a('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",k(0,1)).bind("click.jsp",E),N.arrowScrollOnHover&&(hb.bind("mouseover.jsp",k(0,-1,hb)),ib.bind("mouseover.jsp",k(0,1,ib))),j(db,N.verticalArrowPositions,hb,ib)),fb=Q,R.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){fb-=a(this).outerHeight()}),Y.hover(function(){Y.addClass("jspHover")},function(){Y.removeClass("jspHover")}).bind("mousedown.jsp",function(b){a("html").bind("dragstart.jsp selectstart.jsp",E),Y.addClass("jspActive");var c=b.pageY-Y.position().top;return a("html").bind("mousemove.jsp",function(a){p(a.pageY-c,!1)}).bind("mouseup.jsp mouseleave.jsp",o),!1}),f())}function f(){db.height(fb+"px"),$=0,eb=N.verticalGutter+db.outerWidth(),O.width(P-eb-rb);try{0===cb.position().left&&O.css("margin-left",eb+"px")}catch(a){}}function g(){X&&(R.append(a('<div class="jspHorizontalBar" />').append(a('<div class="jspCap jspCapLeft" />'),a('<div class="jspTrack" />').append(a('<div class="jspDrag" />').append(a('<div class="jspDragLeft" />'),a('<div class="jspDragRight" />'))),a('<div class="jspCap jspCapRight" />'))),jb=R.find(">.jspHorizontalBar"),kb=jb.find(">.jspTrack"),_=kb.find(">.jspDrag"),N.showArrows&&(nb=a('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",k(-1,0)).bind("click.jsp",E),ob=a('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",k(1,0)).bind("click.jsp",E),N.arrowScrollOnHover&&(nb.bind("mouseover.jsp",k(-1,0,nb)),ob.bind("mouseover.jsp",k(1,0,ob))),j(kb,N.horizontalArrowPositions,nb,ob)),_.hover(function(){_.addClass("jspHover")},function(){_.removeClass("jspHover")}).bind("mousedown.jsp",function(b){a("html").bind("dragstart.jsp selectstart.jsp",E),_.addClass("jspActive");var c=b.pageX-_.position().left;return a("html").bind("mousemove.jsp",function(a){r(a.pageX-c,!1)}).bind("mouseup.jsp mouseleave.jsp",o),!1}),lb=R.innerWidth(),h())}function h(){R.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){lb-=a(this).outerWidth()}),kb.width(lb+"px"),bb=0}function i(){if(X&&W){var b=kb.outerHeight(),c=db.outerWidth();fb-=b,a(jb).find(">.jspCap:visible,>.jspArrow").each(function(){lb+=a(this).outerWidth()}),lb-=c,Q-=c,P-=b,kb.parent().append(a('<div class="jspCorner" />').css("width",b+"px")),f(),h()}X&&O.width(R.outerWidth()-rb+"px"),T=O.outerHeight(),V=T/Q,X&&(mb=Math.ceil(1/U*lb),mb>N.horizontalDragMaxWidth?mb=N.horizontalDragMaxWidth:mb<N.horizontalDragMinWidth&&(mb=N.horizontalDragMinWidth),_.width(mb+"px"),ab=lb-mb,s(bb)),W&&(gb=Math.ceil(1/V*fb),gb>N.verticalDragMaxHeight?gb=N.verticalDragMaxHeight:gb<N.verticalDragMinHeight&&(gb=N.verticalDragMinHeight),Y.height(gb+"px"),Z=fb-gb,q($))}function j(a,b,c,d){var e,f="before",g="after";"os"==b&&(b=/Mac/.test(navigator.platform)?"after":"split"),b==f?g=b:b==g&&(f=b,e=c,c=d,d=e),a[f](c)[g](d)}function k(a,b,c){return function(){return l(a,b,this,c),this.blur(),!1}}function l(b,c,d,e){d=a(d).addClass("jspActive");var f,g,h=!0,i=function(){0!==b&&tb.scrollByX(b*N.arrowButtonSpeed),0!==c&&tb.scrollByY(c*N.arrowButtonSpeed),g=setTimeout(i,h?N.initialDelay:N.arrowRepeatFreq),h=!1};i(),f=e?"mouseout.jsp":"mouseup.jsp",e=e||a("html"),e.bind(f,function(){d.removeClass("jspActive"),g&&clearTimeout(g),g=null,e.unbind(f)})}function m(){n(),W&&db.bind("mousedown.jsp",function(b){if(void 0===b.originalTarget||b.originalTarget==b.currentTarget){var c,d=a(this),e=d.offset(),f=b.pageY-e.top-$,g=!0,h=function(){var a=d.offset(),e=b.pageY-a.top-gb/2,j=Q*N.scrollPagePercent,k=Z*j/(T-Q);if(0>f)$-k>e?tb.scrollByY(-j):p(e);else{if(!(f>0))return void i();e>$+k?tb.scrollByY(j):p(e)}c=setTimeout(h,g?N.initialDelay:N.trackClickRepeatFreq),g=!1},i=function(){c&&clearTimeout(c),c=null,a(document).unbind("mouseup.jsp",i)};return h(),a(document).bind("mouseup.jsp",i),!1}}),X&&kb.bind("mousedown.jsp",function(b){if(void 0===b.originalTarget||b.originalTarget==b.currentTarget){var c,d=a(this),e=d.offset(),f=b.pageX-e.left-bb,g=!0,h=function(){var a=d.offset(),e=b.pageX-a.left-mb/2,
66j=P*N.scrollPagePercent,k=ab*j/(S-P);if(0>f)bb-k>e?tb.scrollByX(-j):r(e);else{if(!(f>0))return void i();e>bb+k?tb.scrollByX(j):r(e)}c=setTimeout(h,g?N.initialDelay:N.trackClickRepeatFreq),g=!1},i=function(){c&&clearTimeout(c),c=null,a(document).unbind("mouseup.jsp",i)};return h(),a(document).bind("mouseup.jsp",i),!1}})}function n(){kb&&kb.unbind("mousedown.jsp"),db&&db.unbind("mousedown.jsp")}function o(){a("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp"),Y&&Y.removeClass("jspActive"),_&&_.removeClass("jspActive")}function p(c,d){if(W){0>c?c=0:c>Z&&(c=Z);var e=new a.Event("jsp-will-scroll-y");if(b.trigger(e,[c]),!e.isDefaultPrevented()){var f=c||0,g=0===f,h=f==Z,i=c/Z,j=-i*(T-Q);void 0===d&&(d=N.animateScroll),d?tb.animate(Y,"top",c,q,function(){b.trigger("jsp-user-scroll-y",[-j,g,h])}):(Y.css("top",c),q(c),b.trigger("jsp-user-scroll-y",[-j,g,h]))}}}function q(a){void 0===a&&(a=Y.position().top),R.scrollTop(0),$=a||0;var c=0===$,d=$==Z,e=a/Z,f=-e*(T-Q);(ub!=c||wb!=d)&&(ub=c,wb=d,b.trigger("jsp-arrow-change",[ub,wb,vb,xb])),t(c,d),O.css("top",f),b.trigger("jsp-scroll-y",[-f,c,d]).trigger("scroll")}function r(c,d){if(X){0>c?c=0:c>ab&&(c=ab);var e=new a.Event("jsp-will-scroll-x");if(b.trigger(e,[c]),!e.isDefaultPrevented()){var f=c||0,g=0===f,h=f==ab,i=c/ab,j=-i*(S-P);void 0===d&&(d=N.animateScroll),d?tb.animate(_,"left",c,s,function(){b.trigger("jsp-user-scroll-x",[-j,g,h])}):(_.css("left",c),s(c),b.trigger("jsp-user-scroll-x",[-j,g,h]))}}}function s(a){void 0===a&&(a=_.position().left),R.scrollTop(0),bb=a||0;var c=0===bb,d=bb==ab,e=a/ab,f=-e*(S-P);(vb!=c||xb!=d)&&(vb=c,xb=d,b.trigger("jsp-arrow-change",[ub,wb,vb,xb])),u(c,d),O.css("left",f),b.trigger("jsp-scroll-x",[-f,c,d]).trigger("scroll")}function t(a,b){N.showArrows&&(hb[a?"addClass":"removeClass"]("jspDisabled"),ib[b?"addClass":"removeClass"]("jspDisabled"))}function u(a,b){N.showArrows&&(nb[a?"addClass":"removeClass"]("jspDisabled"),ob[b?"addClass":"removeClass"]("jspDisabled"))}function v(a,b){var c=a/(T-Q);p(c*Z,b)}function w(a,b){var c=a/(S-P);r(c*ab,b)}function x(b,c,d){var e,f,g,h,i,j,k,l,m,n=0,o=0;try{e=a(b)}catch(p){return}for(f=e.outerHeight(),g=e.outerWidth(),R.scrollTop(0),R.scrollLeft(0);!e.is(".jspPane");)if(n+=e.position().top,o+=e.position().left,e=e.offsetParent(),/^body|html$/i.test(e[0].nodeName))return;h=z(),j=h+Q,h>n||c?l=n-N.horizontalGutter:n+f>j&&(l=n-Q+f+N.horizontalGutter),isNaN(l)||v(l,d),i=y(),k=i+P,i>o||c?m=o-N.horizontalGutter:o+g>k&&(m=o-P+g+N.horizontalGutter),isNaN(m)||w(m,d)}function y(){return-O.position().left}function z(){return-O.position().top}function A(){var a=T-Q;return a>20&&a-z()<10}function B(){var a=S-P;return a>20&&a-y()<10}function C(){R.unbind(zb).bind(zb,function(a,b,c,d){bb||(bb=0),$||($=0);var e=bb,f=$,g=a.deltaFactor||N.mouseWheelSpeed;return tb.scrollBy(c*g,-d*g,!1),e==bb&&f==$})}function D(){R.unbind(zb)}function E(){return!1}function F(){O.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(a){x(a.target,!1)})}function G(){O.find(":input,a").unbind("focus.jsp")}function H(){function c(){var a=bb,b=$;switch(d){case 40:tb.scrollByY(N.keyboardSpeed,!1);break;case 38:tb.scrollByY(-N.keyboardSpeed,!1);break;case 34:case 32:tb.scrollByY(Q*N.scrollPagePercent,!1);break;case 33:tb.scrollByY(-Q*N.scrollPagePercent,!1);break;case 39:tb.scrollByX(N.keyboardSpeed,!1);break;case 37:tb.scrollByX(-N.keyboardSpeed,!1)}return e=a!=bb||b!=$}var d,e,f=[];X&&f.push(jb[0]),W&&f.push(cb[0]),O.bind("focus.jsp",function(){b.focus()}),b.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(b){if(b.target===this||f.length&&a(b.target).closest(f).length){var g=bb,h=$;switch(b.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:d=b.keyCode,c();break;case 35:v(T-Q),d=null;break;case 36:v(0),d=null}return e=b.keyCode==d&&g!=bb||h!=$,!e}}).bind("keypress.jsp",function(b){return b.keyCode==d&&c(),b.target===this||f.length&&a(b.target).closest(f).length?!e:void 0}),N.hideFocus?(b.css("outline","none"),"hideFocus"in R[0]&&b.attr("hideFocus",!0)):(b.css("outline",""),"hideFocus"in R[0]&&b.attr("hideFocus",!1))}function I(){b.attr("tabindex","-1").removeAttr("tabindex").unbind("
66keydown.jsp keypress.jsp"),O.unbind(".jsp")}function J(){if(location.hash&&location.hash.length>1){var b,c,d=escape(location.hash.substr(1));try{b=a("#"+d+', a[name="'+d+'"]')}catch(e){return}b.length&&O.find(d)&&(0===R.scrollTop()?c=setInterval(function(){R.scrollTop()>0&&(x(b,!0),a(document).scrollTop(R.position().top),clearInterval(c))},50):(x(b,!0),a(document).scrollTop(R.position().top)))}}function K(){a(document.body).data("jspHijack")||(a(document.body).data("jspHijack",!0),a(document.body).delegate('a[href*="#"]',"click",function(b){var c,d,e,f,g,h,i=this.href.substr(0,this.href.indexOf("#")),j=location.href;if(-1!==location.href.indexOf("#")&&(j=location.href.substr(0,location.href.indexOf("#"))),i===j){c=escape(this.href.substr(this.href.indexOf("#")+1));try{d=a("#"+c+', a[name="'+c+'"]')}catch(k){return}d.length&&(e=d.closest(".jspScrollable"),f=e.data("jsp"),f.scrollToElement(d,!0),e[0].scrollIntoView&&(g=a(window).scrollTop(),h=d.offset().top,(g>h||h>g+a(window).height())&&e[0].scrollIntoView()),b.preventDefault())}}))}function L(){var a,b,c,d,e,f=!1;R.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(g){var h=g.originalEvent.touches[0];a=y(),b=z(),c=h.pageX,d=h.pageY,e=!1,f=!0}).bind("touchmove.jsp",function(g){if(f){var h=g.originalEvent.touches[0],i=bb,j=$;return tb.scrollTo(a+c-h.pageX,b+d-h.pageY),e=e||Math.abs(c-h.pageX)>5||Math.abs(d-h.pageY)>5,i==bb&&j==$}}).bind("touchend.jsp",function(){f=!1}).bind("click.jsp-touchclick",function(){return e?(e=!1,!1):void 0})}function M(){var a=z(),c=y();b.removeClass("jspScrollable").unbind(".jsp"),O.unbind(".jsp"),b.replaceWith(yb.append(O.children())),yb.scrollTop(a),yb.scrollLeft(c),pb&&clearInterval(pb)}var N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb=this,ub=!0,vb=!0,wb=!1,xb=!1,yb=b.clone(!1,!1).empty(),zb=a.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";"border-box"===b.css("box-sizing")?(qb=0,rb=0):(qb=b.css("paddingTop")+" "+b.css("paddingRight")+" "+b.css("paddingBottom")+" "+b.css("paddingLeft"),rb=(parseInt(b.css("paddingLeft"),10)||0)+(parseInt(b.css("paddingRight"),10)||0)),a.extend(tb,{reinitialise:function(b){b=a.extend({},N,b),d(b)},scrollToElement:function(a,b,c){x(a,b,c)},scrollTo:function(a,b,c){w(a,c),v(b,c)},scrollToX:function(a,b){w(a,b)},scrollToY:function(a,b){v(a,b)},scrollToPercentX:function(a,b){w(a*(S-P),b)},scrollToPercentY:function(a,b){v(a*(T-Q),b)},scrollBy:function(a,b,c){tb.scrollByX(a,c),tb.scrollByY(b,c)},scrollByX:function(a,b){var c=y()+Math[0>a?"floor":"ceil"](a),d=c/(S-P);r(d*ab,b)},scrollByY:function(a,b){var c=z()+Math[0>a?"floor":"ceil"](a),d=c/(T-Q);p(d*Z,b)},positionDragX:function(a,b){r(a,b)},positionDragY:function(a,b){p(a,b)},animate:function(a,b,c,d,e){var f={};f[b]=c,a.animate(f,{duration:N.animateDuration,easing:N.animateEase,queue:!1,step:d,complete:e})},getContentPositionX:function(){return y()},getContentPositionY:function(){return z()},getContentWidth:function(){return S},getContentHeight:function(){return T},getPercentScrolledX:function(){return y()/(S-P)},getPercentScrolledY:function(){return z()/(T-Q)},getIsScrollableH:function(){return X},getIsScrollableV:function(){return W},getContentPane:function(){return O},scrollToBottom:function(a){p(Z,a)},hijackInternalLinks:a.noop,destroy:function(){M()}}),d(c)}return b=a.extend({},a.fn.jScrollPane.defaults,b),a.each(["arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){b[this]=b[this]||b.speed}),this.each(function(){var d=a(this),e=d.data("jsp");e?e.reinitialise(b):(a("script",d).filter('[type="text/javascript"],:not([type])').remove(),e=new c(d,b),d.data("jsp",e))})},a.fn.jScrollPane.defaults={showArrows:!1,maintainPosition:!0,stickToBottom:!1,stickToRight:!1,clickOnTrack:!0,autoReinitialise:!1,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:void 0,animateScroll:!1,animateDuration:300,animateEase:"linear",hijackInternalLinks:!1,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:3,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:!1,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:!0,hideFocus:!1,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:.8}});;
67!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var s=t||window.event,a=h.call(arguments,1
67),r=0,f=0,d=0,c=0,m=0,g=0;if(t=e.event.fix(s),t.type="mousewheel","detail"in s&&(d=-1*s.detail),"wheelDelta"in s&&(d=s.wheelDelta),"wheelDeltaY"in s&&(d=s.wheelDeltaY),"wheelDeltaX"in s&&(f=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(f=-1*d,d=0),r=0===d?f:d,"deltaY"in s&&(r=d=-1*s.deltaY),"deltaX"in s&&(f=s.deltaX,0===d&&(r=-1*f)),0!==d||0!==f){if(1===s.deltaMode){var w=e.data(this,"mousewheel-line-height");r*=w,d*=w,f*=w}else if(2===s.deltaMode){var v=e.data(this,"mousewheel-page-height");r*=v,d*=v,f*=v}if(c=Math.max(Math.abs(d),Math.abs(f)),(!l||c<l)&&(l=c,n(s,c)&&(l/=40)),n(s,c)&&(r/=40,f/=40,d/=40),r=Math[r>=1?"floor":"ceil"](r/l),f=Math[f>=1?"floor":"ceil"](f/l),d=Math[d>=1?"floor":"ceil"](d/l),u.settings.normalizeOffset&&this.getBoundingClientRect){var p=this.getBoundingClientRect();m=t.clientX-p.left,g=t.clientY-p.top}return t.deltaX=f,t.deltaY=d,t.deltaFactor=l,t.offsetX=m,t.offsetY=g,t.deltaMode=0,a.unshift(t,r,f,d),o&&clearTimeout(o),o=setTimeout(i,200),(e.event.dispatch||e.event.handle).apply(this,a)}}function i(){l=null}function n(e,t){return u.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var o,l,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],h=Array.prototype.slice;if(e.event.fixHooks)for(var r=s.length;r;)e.event.fixHooks[s[--r]]=e.event.mouseHooks;var u=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=a.length;i;)this.addEventListener(a[--i],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",u.getLineHeight(this)),e.data(this,"mousewheel-page-height",u.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=a.length;i;)this.removeEventListener(a[--i],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),n=i["offsetParent"in e.fn?"offsetParent":"parent"]();return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})});;
68!function () { var e, a, t; (e = document.getElementById("site-navigation")) && void 0 !== (a = e.getElementsByTagName("button")[0]) && (void 0 !== (t = e.getElementsByTagName("ul")[0]) ? (t.setAttribute("aria-expanded", "false"), -1 === t.className.indexOf("nav-menu") && (t.className += " nav-menu"), a.onclick = function () { -1 !== e.className.indexOf("toggled") ? (e.className = e.className.replace(" toggled", ""), a.setAttribute("aria-expanded", "false"), t.setAttribute("aria-expanded", "false")) : (e.className += " toggled", a.setAttribute("aria-expanded", "true"), t.setAttribute("aria-expanded", "true")) }) : a.style.display = "none") }();
69
70(function () {
71    var is_webkit = navigator.userAgent.toLowerCase().indexOf('webkit') > -1,
72        is_opera = navigator.userAgent.toLowerCase().indexOf('opera') > -1,
73        is_ie = navigator.userAgent.toLowerCase().indexOf('msie') > -1;
74
75    if ((is_webkit || is_opera || is_ie) && document.getElementById && window.addEventListener) {
76        window.addEventListener('hashchange', function () {
77            var id = location.hash.substring(1),
78                element;
79
80            if (!(/^[A-z0-9_-]+$/.test(id))) {
81                return;
82            }
83
84            element = document.getElementById(id);
85
86            if (element) {
87                if (!(/^(?:a|select|input|button|textarea)$/i.test(element.tagName))) {
88                    element.tabIndex = -1;
89                }
90
91                element.focus();
92            }
93        }, false);
94    }
95})();
96
97// IIFE jQuery begin
98(function ($) {
99
100    rotate = function (images) {
101        $(function () {
102            $.each(images, function (i, v) {
103                $('.rotatebox .images').append('<img src="' + v + '" data-nth="' + i + '" />');
104            });
105            $('.rotatebox .images img').css('z-index', '1');
106            $('.rotatebox .images img').first().css('z-index', '2');
107            $('.rotatebox .slider').slider({
108                min: 0,
109                max: (images.length * 2) - 1,
110                value: 0,
111                slide: function (evt, ui) {
112                    target = ui.value % images.length;
113                    $('.rotatebox .images img').css('z-index', '1');
114                    $('.rotatebox .images img[data-nth=' + target + ']').css('z-index', '2');
115                },
116            });
117        });
118    };
119
120    // $ = jQuery;
121    //function gfSubmitfix() {
122    //		//Gravity Forms on Contact Page template fix
123    //		if($('body').is('.page-template-tpl-contact')) {
124    //			$('#gform_1 .gform_footer').insertAfter('.berichtTextArea .ginput_container_textarea');
125    //		}
126    //}
127
128    jQuery(document).ready(function ($) {
129
130        //gfSubmitfix();
131
132        // if ($('.pageSlider').length) {
133        //     $('.pageSlider').owlCarousel({
134        //         loop: true,
135        //         autoplay: true,
136        //         autoplayTimeout: 5000,
137        //         margin: 0,
138        //         nav: false,
139        //         dots: true,
140        //         items: 1
141        //     });
142        // }
143
144        $('#climate-slider').owlCarousel({
145            loop: true,
146            autoplay: false,
147            autoplayTimeout: 5000,
148            margin: 0,
149            nav: true,
150            dots: false,
151            items: 1,
152            navText: ["<i class='icon-left'></i>", "<i class='icon-right'></i>"],
153        });
154
155
156        $('.page-template-tpl-campaign-landing .grazings-desktop').owlCarousel({
157            loop: true,
158            autoplay: false,
159            autoplayTimeout: 5000,
160            margin: 0,
161            nav: true,
162            dots: false,
163            items: 3,
164            slideBy: 1,
165            navText: ["<i class='icon-left'></i>", "<i class='icon-right'></i>"],
166        });
167        $('.page-template-tpl-campaign-landing .grazings-desktop .owl-item').each(function () {
168            $(this).height($(this).width());
169        });
170
171
172        $('.recipes:not("article")').owlCarousel({
173            loop: true,
174            autoplay: false,
175            autoplayTimeout: 5000,
176            margin: 1,
177            stagePadding: 130,
178            nav: true,
179            dots: false,
180            items: 1,
181            navText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"],
182            responsive: {
183                0: {
184                    stagePadding: 60,
185                    margin: 2,
186                },
187                767: {
188                    stagePadding: 130,
189                },
190            },
191            afterUpdate: function () {
192                updateSize();
193            },
194            afterInit: function () {
195                updateSize();
196            }
197        });
198        // $('.recipes .owl-item').click(function() {
199        //     owl.trigger('next.owl.carousel');
200        // });
201
202        function updateSize() {
203            if ($(window).width() < 1120) {
204                var minHeight = parseInt($('.owl-item').eq(0).css('height'));
205                $('.owl-item').each(function () {
206                    var thisWidth = parseInt($(this).css('width'));
207                    //console.log(thisWidth);
208                    //$(this).css('min-height', thisWidth);
209                    $(this).find('.post-photo').css('min-height', thisWidth);
210                });
211                $('.two-colums .span-6:last-child').find('img').prependTo('.two-colums .span-6:first-child');
212            }
213
214        }
215
216        updateSize();
217
218        $('.latest-grazings').owlCarousel({
219            loop: true,
220            autoplay: false,
221            autoplayTimeout: 5000,
222            margin: 1,
223            stagePadding: 300,
224            nav: true,
225            dots: false,
226            items: 1,
227            navText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"],
228            responsive: {
229                0: {
230                    stagePadding: 30,
231                    margin: 0,
232                },
233                767: {
234                    stagePadding: 130,
235                },
236
237                1130: {
238                    stagePadding: 300,
239                },
240            },
241        });
242
243        $('.button[data-popup="contact-popup"]').click(function () {
244            $('#' + $(this).attr('data-popup')).fadeIn();
245            $('body').addClass('popup-open');
246        });
247        $('#contact-popup .fa-close').click(function () {
248            $(this).parent().fadeOut();
249            $('body').removeClass('popup-open');
250        });
251        $(document).mouseup(function (e) {
252            var container = $("#contact-popup");
253
254            // if the target of the click isn't the container nor a descendant of the container
255            if (!container.is(e.target) && container.has(e.target).length === 0) {
256                container.fadeOut();
257                $('body').removeClass('popup-open');
258            }
259        });
260        var $owlButter = $('#butter .grid');
261        var $owlCheese = $('#cheese .grid');
262        var $owlNew = $('#new .grid');
263
264        $owlButter.children().each(function (index) {
265            $(this).attr('data-position', index); // NB: .attr() instead of .data()
266        });
267
268        $owlButter.owlCarousel({
269            center: true,
270            loop: true,
271            items: 3,
272            stagePadding: 270,
273            navText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"],
274            responsive: {
275                0: {
276                    items: 1,
277                    stagePadding: 80,
278                    margin: 0,
279                    nav: true,
280                },
281                767: {
282                    items: 1,
283                    stagePadding: 200,
284                    nav: false,
285                },
286                992: {
287                    margin: 100,
288                    stagePadding: 270,
289                    items: 3,
290                },
291                1020: {
292                    items: 1,
293                    stagePadding: 270,
294                },
295                1030: {
296                    items: 3,
297                }
298            },
299        });
300
301        $(document).on('click', '.owl-item>div', function () {
302            $owlButter.trigger('to.owl.carousel', $(this).data('position'));
303        });
304        $owlCheese.children().each(function (index) {
305            $(this).attr('data-position', index); // NB: .attr() instead of .data()
306        });
307
308        $owlNew.children().each(function (index) {
309            $(this).attr('data-position', index); // NB: .attr() instead of .data()
310        });
311
312
313        $(document).on('click', '.owl-item>div', function () {
314            $owlCheese.trigger('to.owl.carousel', $(this).data('position'));
315            $owlNew.trigger('to.owl.carousel', $(this).data('position'));
316        });
317
318        if ($owlCheese.length) {
319
320            $owlCheese.owlCarousel({
321                center: true,
322                loop: true,
323                items: 3,
324                stagePadding: 270,
325                navText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"],
326                responsive: {
327                    0: {
328                        items: 1,
329                        stagePadding: 70,
330                        margin: 0,
331                        nav: true,
332                    },
333                    767: {
334                        items: 1,
335                        stagePadding: 200,
336                        nav: false,
337                    },
338                    992: {
339                        margin: 100,
340                        stagePadding: 270,
341                        items: 3,
342                    },
343                    1020: {
344                        items: 1,
345                        stagePadding: 270,
346                    },
347                    1030: {
348                        items: 3,
349                    }
350                },
351            });
352
353            tabs_hide();
354        }
355
356        if ($owlNew.length) {
357
358            $owlNew.owlCarousel({
359                center: true,
360                loop: false,
361                items: 3,
362                stagePadding: 270,
363                navText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"],
364                responsive: {
365                    0: {
366                        items: 1,
367                        stagePadding: 70,
368                        margin: 0,
369                        nav: true,
370                    },
371                    767: {
372                        items: 1,
373                        stagePadding: 200,
374                        nav: false,
375                    },
376                    992: {
377                        margin: 100,
378                        stagePadding: 270,
379                        items: 3,
380                    },
381                    1020: {
382                        items: 1,
383                        stagePadding: 270,
384                    },
385                    1030: {
386                        items: 3,
387                    }
388                },
389            });
390
391            tabs_hide();
392        }
393
394        $('.events-list .nav').owlCarousel({
395            loop: true,
396            autoplay: false,
397            margin: 20,
398            stagePadding: 0,
399            nav: true,
400            dots: false,
401            items: 10,
402            lazyLoad: true,
403            navText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"],
404        });
405
406        $('.related-posts').owlCarousel({
407            loop: true,
408            autoplay: false,
409            margin: 1,
410            stagePadding: 0,
411            nav: false,
412            dots: false,
413            items: 3,
414            lazyLoad: true,
415            navText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"],
416            responsive: {
417                0: {
418                    items: 1,
419                    stagePadding: 70,
420                    margin: 2,
421                    nav: true,
422                },
423
424                992: {
425                    stagePadding: 270,
426                },
427                1120: {
428                    items: 3,
429                    stagePadding: 0,
430                    nav: false,
431                }
432            },
433        });
434
435        $('.farm-fridge .at-the-farm').owlCarousel({
436            loop: false,
437            autoplay: false,
438            margin: 0,
439            nav: false,
440            dots: true,
441            items: 1,
442            lazyLoad: true,
443        });
444
445
446        function climatePopupHide() {
447            $('.climate-popup').fadeOut();
448            $('body').removeClass('popup-opened');
449        }
450
451        climatePopupHide();
452
453        $('.climate-popup .close > div').click(function () {
454            climatePopupHide();
455        });
456
457        $('div[data-popup="climate-popup"]').on('click', function () {
458            $('body').addClass('popup-opened');
459            targetPopup = $(this).attr('data-popup');
460            $("." + targetPopup).fadeIn();
461            window.scrollTo(0, 0);
462        });
463
464        $('.creamery .span-4 button').on('click', function () {
465            targetPopup = $(this).attr('data-popup');
466            $("#" + targetPopup).fadeIn();
467        });
468
469        $('.popup i.icon-x').on('click', function () {
470            $(this).parents('.popup').fadeOut();
471        });
472
473        $('.transport-steps span').on('click', function () {
474            step = $(this).attr('data-step');
475            $(this).addClass('selected').siblings().removeClass('selected')
476            $(".step-" + step).fadeIn().siblings('.container').fadeOut();
477        });
478        $('.farm-filter .span-6').each(function () {
479            $(this).find('span').on('click', function () {
480                selectedFilter = $(this).attr('data-filter');
481                $(this).addClass('active').parent().siblings().find('span').removeClass('active');
482                $('#' + selectedFilter).addClass('selected').siblings().removeClass('selected');
483            })
484        });
485
486
487        //mobilemenu
488
489        $('.mobileLink').click(function () {
490            $('.mobile-menu').addClass('opened')
491        });
492        $('.close-menu').click(function () {
493            $('.mobile-menu').removeClass('opened')
494        });
495
496        var url = window.location.href;
497        $('.left-menu li, .right-menu li').each(function () {
498            menuLink = $(this).find('a');
499            if (url == menuLink.href) {
500                $(this).addClass('current');
501            }
502        });
503
504
505        $('.search-trigger').on('click', function () {
506            $(this).parents('.mainHeader').toggleClass('search-open');
507            $(this).parents('.mainContainer').toggleClass('search-open');
508        });
509
510        $('.search-close').click(function () {
511            $('.mainHeader').removeClass('search-open');
512            $('.mainContainer').removeClass('search-open');
513        });
514
515
516        if ($(window).width() > 1120) {
517            $('.search-trigger i').on('click', function () {
518                var iconClass = ($(this).attr('class') === 'icon-x')
519                    ? 'icon-mg'
520                    : 'icon-x';
521                $(this).attr('class', iconClass);
522
523            });
524        }
525
526        function nearestEventContainerHeight() {
527            var leftEventHeight = $('.nearest-event').outerHeight();
528            $('.events-calendar').height(leftEventHeight);
529        }
530
531        nearestEventContainerHeight();
532
533        $('.search-form .icon-mg').click(function () {
534            $('.search-form form').submit();
535        });
536
537        $(document).on('ajaxReady', function () {
538            nearestEventContainerHeight();
539        });
540        $('.open-details').click(function () {
541            $('.more-details').fadeToggle();
542            $(this).text(function (i, v) {
543                return v === '+ see details' ? '- close' : '+ see details'
544            });
545        });
546        $('.close-details').click(function () {
547            $('.more-details').fadeOut();
548            $('.open-details').text('+ see details');
549        });
550        $('.mainHeader .search-close').click(function () {
551            //$('.mainHeader .search-block').fadeOut();
552            //$('.mainHeader').removeClass('search-open');
553        });
554        rotate = function (images) {
555            $(function () {
556                $.each(images, function (i, v) {
557                    $('.rotatebox .images').append('<img src="' + v + '" data-nth="' + i + '" />');
558                });
559                $('.rotatebox .images img').css('z-index', '1');
560                $('.rotatebox .images img').first().css('z-index', '2');
561                $('.rotatebox .slider').slider({
562                    min: 0,
563                    max: (images.length * 2) - 1,
564                    value: 0,
565                    slide: function (evt, ui) {
566                        target = ui.value % images.length;
567                        $('.rotatebox .images img').css('z-index', '1');
568                        $('.rotatebox .images img[data-nth=' + target + ']').css('z-index', '2');
569                    },
570                });
571            });
572        };
573
574        $('.row[data-target="climate"]').find('li[data-scroll="climate"]').addClass('active');
575        $('.scrolling-items li').on('click', function () {
576            var targetRow = $(this).attr('data-scroll');
577            $('.row').find('li').removeClass('active');
578            $('html, body').animate({
579                scrollTop: $(".row[data-target='" + targetRow + "']").offset().top - 100
580            }, 500);
581            $(".row[data-target='" + targetRow + "']").find("[data-scroll='" + targetRow + "']").addClass('active');
582        });
583
584        $('.steps > li').on('click', function () {
585            var scrollingTarget = $(this).attr('data-scroll');
586            $('html, body').animate({
587                scrollTop: $("#" + scrollingTarget).offset().top
588            }, 500);
589        });
590        $('button.continue').on('click', function () {
591            $('html, body').animate({
592                scrollTop: $(".serve").offset().top
593            }, 500);
594        });
595        $('button.find-product').on('click', function () {
596            $('html, body').animate({
597                scrollTop: $("#results-container").offset().top
598            }, 500);
599        });
600        $('.decision button').on('click', function () {
601            $('html, body').animate({
602                scrollTop: $(".taste").offset().top
603            }, 500);
604        });
605
606        // beautify selects
607        $('select').not('.wrp-mobile-submenu select').not('.kg-form select').dropkick({
608            mobile: true
609        });
610
611        $('.vAlign').each(function () {
612            $(this).css('margin-top', ($(this).height() / -2) + "px");
613        });
614
615        //   TABS
616        $('.nav-tabs.owl-carousel .owl-item').click(function () {
617            var tab_id = $(this).find('li').attr('data-tab');
618            $('.nav-tabs .owl-item').removeClass('current');
619            $('.nav-tabs .owl-item li').removeClass('current');
620            $('.tab-pane').removeClass('current');
621            $(this).addClass('current test');
622            $("#" + tab_id).addClass('current');
623        });
624
625
626        function tabs_hide() {
627
628            var $nav_tabs = $('.products .nav-tabs');
629
630            if ($nav_tabs.length) {
631
632                for (var i = 0; i < $nav_tabs.length; i++) {
633
634                    var $this_tab_nav = $nav_tabs.eq(i),
635                        $this_tab = $this_tab_nav.parent().find('.tab-pane:not(.current)');
636
637                    $this_tab.css({ 'display': 'block' });
638                }
639            }
640        }
641
642        $('.nav-tabs > li').click(function (e) {
643            //e.preventDefault();
644            var tab_id = $(this).attr('data-tab');
645            $('.nav-tabs > li').removeClass('current');
646            $(this).addClass('current');
647            $("#" + tab_id).addClass('current').siblings().removeClass('current');
648
649
650            squareDimentions();
651
652            // $('.grazings .tab-content').each(function () {
653            //     $(this).find('.tab-pane.current').each(function () {
654            //         $(this).css({position: "static", visibility: "visible"});
655            //     });
656            // });
657            // $('.products .tab-content').each(function () {
658            //     $(this).find('.tab-pane.current').each(function () {
659            //         $(this).css({ position: "relative", visibility: "visible" });
660            //     });
661            // });
662
663            var $owl = $('#cheese .owl-carousel');
664            //$owl.trigger('refresh');
665            // $owl.html($owl.find('.owl-stage-outer').html()).removeClass('owl-loaded');
666            // $owl.owlCarousel({
667            //     // your initial option here, again.
668            //     loop: true,
669            //     autoplay: false,
670            //     autoplayTimeout: 5000,
671            //     margin: 100,
672            //     stagePadding: 270,
673            //     nav: true,
674            //     dots: false,
675            //     items: 6,
676            //     lazyLoad: true,
677            //     mouseDrag: false,
678            //     responsive: {
679            //         0: {
680            //             items: 1,
681            //             stagePadding: 70,
682            //             margin: 0,
683            //         },
684            //
685            //         992: {
686            //             margin: 100,
687            //             stagePadding: 270,
688            //             items: 3,
689            //         },
690            //     },
691            //     onInitialized: stageFixSecond,
692            //     onResized: stageFixSecond,
693            //     onTranslated: stageFixSecond,
694            //     navText: ["<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>"],
695            // });
696        });
697
698        function asideDivsHeight() {
699            var mapHeight = $('.map-container').height() / 2;
700
701            $('.aside-info > div').each(function () {
702                $(this).css('height', mapHeight)
703            })
704        }
705
706        asideDivsHeight();
707
708        function svgResize() {
709            windowWidth = $(window).width();
710            svgWidth = $('.headerImage svg').width();
711            farmSvg = $('.farm-life svg').width();
712            farmSvgWidthDifference = (farmSvg - windowWidth) / 2;
713
714            $('.home .two-blocks-section .span-6').each(function () {
715                homeFarmSvg = $(this).find('svg').width();
716                homeSvgWidthDifference = (homeFarmSvg - windowWidth) / 2;
717                $(this).find('path').css('transform', 'translateX(-' + homeSvgWidthDifference + 'px)')
718            });
719            widthDifference = (svgWidth - windowWidth) / 2;
720
721            $('.headerImage path').css('transform', 'translateX(-' + widthDifference + 'px)');
722            $('.farm-life path').css('transform', 'translateX(-' + farmSvgWidthDifference + 'px)');
723
724            $('.header-image path').css('transform', 'translateX(-' + widthDifference + 'px)');
725
726            $('.before-bottom-svg').width((windowWidth - 1920) / 2);
727            $('.after-bottom-svg').width((windowWidth - 1910) / 2);
728
729        }
730
731        svgResize();
732
733        function distanceCalc() {
734            if ($('.sidebar-container').length && $('.video-block').length) {
735                distance = $('.video-block').offset().top - $('.sidebar-container').offset().top;
736                placeholderHeight = distance - $('.sidebar-box').outerHeight();
737                $('#placeholder').css('height', placeholderHeight - 200);
738            } else if ($('.sidebar-container').length && $('.article-content.bottom').length) {
739                distance = $('.article-content.bottom').offset().top - $('.sidebar-container').offset().top;
740                placeholderHeight = distance - $('.sidebar-box').outerHeight();
741                $('#placeholder').css('height', placeholderHeight - 50);
742            }
743        }
744
745        distanceCalc();
746
747
748        function visibleElement() {
749            $('.farm-fridge > div').each(function () {
750                var elementId = $(this).attr('id');
751                if ($(this).hasClass('visible')) {
752                    $(this).find('.steps li[data-scroll="' + elementId + '"]').addClass('active');
753                }
754            });
755
756            $('.rows .row').each(function () {
757                var elementId = $(this).attr('data-target');
758                if ($(this).hasClass('visible')) {
759                    $(this).find('li[data-scroll="' + elementId + '"]').addClass('active');
760                }
761            });
762        }
763
764        visibleElement();
765
766        function reorderElements() {
767            // $('.post-type-archive-grazings .tab-pane').each(function () {
768            //     var wrapper = $(this).find('.wrapper');
769            //     wrapper.each(function () {
770            //         var blocksCount = $(this).find('.post-block').length;
771            //         var ctaBlock = $(this).find('.cta-block');
772            //         var ctaParent = ctaBlock.find().parent('.wrapper');
773            //
774            //         if (blocksCount % 2 !== 0) {
775            //             ctaBlock.each(function () {
776            //                 $(this).addClass('full-width').appendTo($(this).parent());
777            //             });
778            //         }
779            //     });
780            //
781            // });
782            if ($(window).width() < 1120) {
783                $('.recipes.owl-carousel .owl-item').each(function () {
784                    var recipeUrl = $(this).find('a').attr('href');
785                    $(this).on('click', function () {
786                        window.location = recipeUrl;
787                    });
788                });
789
790            }
791        }
792
793        reorderElements();
794
795        function squareGrazings() {
796            $('.grazings .tab-content').each(function () {
797                // $(this).find('.tab-pane:not(.current)').each(function () {
798                //     $(this).css({position: "absolute", visibility: "hidden", display: "block"});
799                // });
800                var firstRowDiv = $(this).find('.span-4:first-of-type');
801                var divWidth = firstRowDiv.outerWidth();
802                var fullWidthDiv = $(this).find('.full-width');
803                var fullWidthDivHeight = fullWidthDiv.outerWidth();
804                $(this).find('.span-4').css('height', divWidth + 'px');
805                $(this).find('.post-thumb').height($('.post-thumb').outerWidth());
806                fullWidthDiv.css('height', fullWidthDivHeight);
807            });
808        }
809
810        squareGrazings();
811
812        function squareDimentions() {
813            if ($(window).width() < 1120) {
814
815                $('.selected-product-recipes .post-block').each(function () {
816                    $(this).find('.post-thumb').height($('.post-thumb').width());
817                });
818                $('.bottom-socials .row').each(function () {
819                    var firstRowDiv = $(this).find('.span-3:first-of-type');
820                    var divWidth = firstRowDiv.width();
821                    firstRowDiv.height(divWidth);
822                    $('.bottom-socials .row .span-3').css('height', divWidth + 'px');
823                });
824
825                $('.recipes.owl-carousel .owl-item').each(function () {
826                    var postInfo = $(this).find('.post-info').outerHeight();
827                    $(this).height($(this).width() + postInfo);
828                });
829                $('.related-posts.owl-carousel .owl-item').each(function () {
830                    $(this).find('.post').height($(this).width());
831                });
832                $('.farm-fridge > div').each(function () {
833                    var steps = $(this).find('.steps');
834                    steps.find('li').each(function () {
835                        var parentId = $(this).attr('data-scroll');
836                        if ($(this).closest('div.direct-child').attr('id') == parentId) {
837                            $(this).addClass('active');
838                        }
839                    });
840                });
841
842            }
843        }
844
845        squareDimentions();
846
847
848        $(".fridge-container").on('move', '.twentytwenty-handle', function (e) {
849            var pageX = e.pageX;
850            $('.fridge-container').removeClass('initial-state');
851            if (e.pageX < 950) {
852                $('.overlay-text').addClass('in-fridge')
853            } else {
854                $('.overlay-text').removeClass('in-fridge')
855            }
856        });
857        if ($(window).width() < 1120) {
858            $(".fridge-container").on('move', '.twentytwenty-handle', function (e) {
859                var pageX = e.pageX;
860                $('.fridge-container').removeClass('initial-state');
861                if (e.pageX < 350) {
862                    $('.overlay-text').addClass('in-fridge')
863                } else {
864                    $('.overlay-text').removeClass('in-fridge')
865                }
866            });
867        }
868        if ($(window).width() < 700) {
869            $(".fridge-container").on('move', '.twentytwenty-handle', function (e) {
870                var pageX = e.pageX;
871                $('.fridge-container').removeClass('initial-state');
872                if (e.pageX < 200) {
873                    $('.overlay-text').addClass('in-fridge')
874                } else {
875                    $('.overlay-text').removeClass('in-fridge')
876                }
877            });
878        }
879
880
881        function iconsCarousel() {
882            if ($(window).width() < 1025) {
883                $('.taste .icons').addClass('owl-carousel');
884                $('.taste .icons').owlCarousel({
885                    loop: true,
886                    autoplay: false,
887                    margin: 0,
888                    stagePadding: 190,
889                    nav: false,
890                    dots: false,
891                    items: 1,
892                    lazyLoad: true,
893                    responsive: {
894                        0: {
895                            stagePadding: 70,
896                        },
897                        370: {
898                            stagePadding: 90,
899                        },
900                        767: {
901                            stagePadding: 190,
902                        },
903                    },
904                });
905            }
906
907        }
908
909        iconsCarousel();
910
911        function openVersoOverlay() {
912            if ($(window).width() < 1120) {
913
914                $('.post-block, .close').click(function (e) {
915                    if ($(this).is('.close') || $(this).parents().is('.close')) {
916                        $(this).closest('.verso-info').removeClass('opened');
917                    } else {
918                        $(this).find('.verso-info').addClass('opened');
919
920                        if ($('body').hasClass('post-type-archive-grazings')) {
921                            $('html, body').animate({
922                                scrollTop: $('.grazings-tabs').offset().top
923                            }, 100)
924                        }
925
926                        if ($('.verso-info').length) {
927                            $(this).find('.verso-info a').click(function () {
928                                location.href = $(this).attr('href');
929                                console.log('open');
930                            });
931                        } else {
932                            $(this).find('a').click(function () {
933                                location.href = $(this).attr('href');
934                            });
935                        }
936                    }
937                    if (!$(this).parent().hasClass('news')) {
938                        return false;
939                    }
940
941                });
942
943                // $('.article-content:not(.simple-article) .main-content p').each(function () {
944                //     $(this).find('img').prependTo('.main-content');
945                //     $(this).find('._ps2id').insertAfter('.main-content img:first-of-type');
946                // });
947
948            }
949        }
950
951        openVersoOverlay();
952
953
954        $(window).on('resize', function () {
955            asideDivsHeight();
956            svgResize();
957            distanceCalc();
958            squareDimentions();
959            //tabsCarousel();
960            iconsCarousel();
961            nearestEventContainerHeight();
962            reorderElements();
963            squareGrazings();
964        });
965
966        window.addEventListener("resize", function () {
967            // Get screen size (inner/outerWidth, inner/outerHeight)
968            squareGrazings();
969        }, false);
970        $(window).on('scroll', function () {
971            visibleElement();
972        });
973
974        $('input[name=product-type]').change(function (e) {
975            $('form').submit();
976            e.preventDefault();
977        });
978
979        // function stageFix(event) {
980        //
981        //     var $this = $('#butter .grid'),
982        //         container_position = $this.offset().left,
983        //         container_width = $this.width(),
984        //         $item = $this.find('.owl-item'),
985        //         item_length = $item.length;
986        //
987        //     $item.removeClass('active firstVisible leftHalfVisible rightHalfVisible lastVisible');
988        //
989        //     var countActive = -1,
990        //         firstActive = 0;
991        //
992        //     for (var i = 0; i < item_length; i++) {
993        //         var $this_item = $item.eq(i),
994        //             item_position = $this_item.offset().left,
995        //             item_width = $this_item.width();
996        //
997        //         if (item_position >= container_position && (item_position + item_width) < (container_position + container_width)) {
998        //             if (!$item.is('.active')) {
999        //                 $this_item.addClass('firstVisible').prev().addClass('leftHalfVisible');
1000        //                 firstActive = i;
1001        //             }
1002        //             $this_item.addClass('active');
1003        //             countActive++;
1004        //         }
1005        //
1006        //         if ((i + 1) == item_length) {
1007        //             countActive = firstActive + countActive;
1008        //             $item.eq(countActive).addClass('lastVisible').next().addClass('rightHalfVisible');
1009        //         }
1010        //     }
1011        // }
1012
1013        // function stageFixSecond(event) {
1014        //
1015        //     var $this = $('#cheese .grid'),
1016        //         container_position = $this.offset().left,
1017        //         container_width = $this.width(),
1018        //         $item = $this.find('.owl-item'),
1019        //         item_length = $item.length;
1020        //
1021        //     $item.removeClass('active firstVisible leftHalfVisible rightHalfVisible lastVisible');
1022        //
1023        //     var countActive = -1,
1024        //         firstActive = 0;
1025        //
1026        //     for (var i = 0; i < item_length; i++) {
1027        //         var $this_item = $item.eq(i),
1028        //             item_position = $this_item.offset().left,
1029        //             item_width = $this_item.width();
1030        //
1031        //         if (item_position >= container_position && (item_position + item_width) < (container_position + container_width)) {
1032        //             if (!$item.is('.active')) {
1033        //                 $this_item.addClass('firstVisible').prev().addClass('leftHalfVisible');
1034        //                 firstActive = i;
1035        //             }
1036        //             $this_item.addClass('active');
1037        //             countActive++;
1038        //         }
1039        //
1040        //         if ((i + 1) == item_length) {
1041        //             countActive = firstActive + countActive;
1042        //             $item.eq(countActive).addClass('lastVisible').next().addClass('rightHalfVisible');
1043        //         }
1044        //     }
1045        // }
1046
1047        // Add the event that closes the popup and sets the cookie that tells us to
1048        // not show it again until one day has passed.
1049
1050        // $('.newsletter-wrp i').click(function () {
1051        //     $('.newsletter-wrp').fadeOut();
1052        // });
1053        //$('.newsletter-wrp').delay(9000).fadeIn('slow');
1054
1055
1056        // If the 'hide cookie is not set we show the message
1057
1058
1059        // if (!readCookie('hide')) {
1060        //     $('.newsletter-wrp').delay(9000).show();
1061        // }
1062
1063        // Add the event that closes the popup and sets the cookie that tells us to
1064        // not show it again until one day has passed.
1065        // $('.newsletter-wrp .icon-x').click(function () {
1066        //     $('.newsletter-wrp').hide();
1067        //     createCookie('hide', true, 1)
1068        //     return false;
1069        // });
1070
1071        $('.es_shortcode_form #es_txt_name_pg').attr('placeholder', 'first name');
1072        $('.es_shortcode_form #es_txt_email_pg').attr('placeholder', 'email address');
1073        $('.es_shortcode_form #es_txt_button_pg').attr('value', 'subscribe today');
1074
1075        jQuery(document).on('ready ajaxComplete', function () {
1076            squareDimentions();
1077            openVersoOverlay();
1078            nearestEventContainerHeight();
1079        });
1080
1081    });
1082
1083
1084    // ---
1085    // And some generic cookie logic
1086    // ---
1087    function createCookie(name, value, days) {
1088        if (days) {
1089            var date = new Date();
1090            var minutes = 1440;
1091            date.setTime(date.getTime() + (minutes * 60 * 1000));
1092            var expires = "; expires=" + date.toGMTString();
1093        }
1094        else var expires = "";
1095        document.cookie = name + "=" + value + expires + "; path=/";
1096    }
1097
1098    function readCookie(name) {
1099        var nameEQ = name + "=";
1100        var ca = document.cookie.split(';');
1101        for (var i = 0; i < ca.length; i++) {
1102            var c = ca[i];
1103            while (c.charAt(0) == ' ') c = c.substring(1, c.length);
1104            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
1105        }
1106        return null;
1107    }
1108
1109    function eraseCookie(name) {
1110        createCookie(name, "", -1);
1111    }
1112
1113    jQuery(document).bind('ready ajaxComplete', function () {
1114        var $dataBackground = jQuery('[data-background]'),
1115            dataBackground_length = $dataBackground.length;
1116
1117        if (dataBackground_length) {
1118
1119            for (var i = 0; i < dataBackground_length; i++) {
1120
1121                var $this = $dataBackground.eq(i),
1122                    background = $this.data('background');
1123
1124                $this.css({
1125                    'background-image': 'url(' + background + ')'
1126                });
1127                $this.removeAttr('data-background');
1128            }
1129        }
1130
1131
1132        sameDayEvents = $('.event-wrp > div').length;
1133
1134        if (sameDayEvents > 1) {
1135            $('.event-wrp').addClass('multiple-events');
1136        } else {
1137            $('.event-wrp').removeClass('multiple-events');
1138        }
1139        $('.multiple-events > div').eq(0).addClass('current first');
1140        $('.multiple-events > div:last-child').addClass('last');
1141
1142        $('.nearest-event i.icon-right').click(function () {
1143            $('.current').removeClass('current').hide()
1144                .next().show().addClass('current');
1145            if ($('.current').hasClass('last')) {
1146                $('.nearest-event i.icon-right').attr('disabled', true);
1147            }
1148            $('.nearest-event i.icon-left').attr('disabled', null);
1149        });
1150
1151        $('.nearest-event i.icon-left').click(function () {
1152            $('.current').removeClass('current').hide()
1153                .prev().show().addClass('current');
1154            if ($('.current').hasClass('first')) {
1155                $('.nearest-event i.icon-left').attr('disabled', true);
1156            }
1157            $('.nearest-event i.icon-right').attr('disabled', null);
1158        });
1159
1160
1161    });
1162    jQuery(document).bind('gform_page_loaded', function (event, form_id, current_page) {
1163        //gfSubmitfix();
1164    });
1165
1166
1167    jQuery(document).bind('gform_page_loaded', function (event, form_id, current_page) {
1168        //gfSubmitfix();
1169        $('select').dropkick({
1170            mobile: true
1171        });
1172    });
1173
1174    jQuery(window).on('load', function () {
1175        $('.sk-three-bounce').addClass('displayNone');
1176    });
1177
1178    (function ($) {
1179        $.fn.viewportChecker = function (useroptions) {
1180            // Define options and extend with user
1181            var options = {
1182                classToAdd: 'visible',
1183                classToRemove: 'invisible',
1184                classToAddForFullView: 'full-visible',
1185                removeClassAfterAnimation: false,
1186                offset: 100,
1187                repeat: false,
1188                invertBottomOffset: true,
1189                callbackFunction: function (elem, action) {
1190                },
1191                scrollHorizontal: false,
1192                scrollBox: window
1193            };
1194            $.extend(options, useroptions);
1195
1196            // Cache the given element and height of the browser
1197            var $elem = this,
1198                boxSize = { height: $(options.scrollBox).height(), width: $(options.scrollBox).width() },
1199                scrollElem = ((navigator.userAgent.toLowerCase().indexOf('webkit') != -1 || navigator.userAgent.toLowerCase().indexOf('windows phone') != -1) ? 'body' : 'html');
1200
1201            /*
1202            * Main method that checks the elements and adds or removes the class(es)
1203            */
1204            this.checkElements = function () {
1205                var viewportStart, viewportEnd;
1206
1207                // Set some vars to check with
1208                if (!options.scrollHorizontal) {
1209                    viewportStart = $(scrollElem).scrollTop();
1210                    viewportEnd = (viewportStart + boxSize.height);
1211                }
1212                else {
1213                    viewportStart = $(scrollElem).scrollLeft();
1214                    viewportEnd = (viewportStart + boxSize.width);
1215                }
1216
1217                // Loop through all given dom elements
1218                $elem.each(function () {
1219                    var $obj = $(this),
1220                        objOptions = {},
1221                        attrOptions = {};
1222
1223                    //  Get any individual attribution data
1224                    if ($obj.data('vp-add-class'))
1225                        attrOptions.classToAdd = $obj.data('vp-add-class');
1226                    if ($obj.data('vp-remove-class'))
1227                        attrOptions.classToRemove = $obj.data('vp-remove-class');
1228                    if ($obj.data('vp-add-class-full-view'))
1229                        attrOptions.classToAddForFullView = $obj.data('vp-add-class-full-view');
1230                    if ($obj.data('vp-keep-add-class'))
1231                        attrOptions.removeClassAfterAnimation = $obj.data('vp-remove-after-animation');
1232                    if ($obj.data('vp-offset'))
1233                        attrOptions.offset = $obj.data('vp-offset');
1234                    if ($obj.data('vp-repeat'))
1235                        attrOptions.repeat = $obj.data('vp-repeat');
1236                    if ($obj.data('vp-scrollHorizontal'))
1237                        attrOptions.scrollHorizontal = $obj.data('vp-scrollHorizontal');
1238                    if ($obj.data('vp-invertBottomOffset'))
1239                        attrOptions.scrollHorizontal = $obj.data('vp-invertBottomOffset');
1240
1241                    // Extend objOptions with data attributes and default options
1242                    $.extend(objOptions, options);
1243                    $.extend(objOptions, attrOptions);
1244
1245                    // If class already exists; quit
1246                    if ($obj.data('vp-animated') && !objOptions.repeat) {
1247                        return;
1248                    }
1249
1250                    // Check if the offset is percentage based
1251                    if (String(objOptions.offset).indexOf("%") > 0)
1252                        objOptions.offset = (parseInt(objOptions.offset) / 100) * boxSize.height;
1253
1254                    // Get the raw start and end positions
1255                    var rawStart = (!objOptions.scrollHorizontal) ? $obj.offset().top : $obj.offset().left,
1256                        rawEnd = (!objOptions.scrollHorizontal) ? rawStart + $obj.height() : rawStart + $obj.width();
1257
1258                    // Add the defined offset
1259                    var elemStart = Math.round(rawStart) + objOptions.offset,
1260                        elemEnd = (!objOptions.scrollHorizontal) ? elemStart + $obj.height() : elemStart + $obj.width();
1261
1262                    if (objOptions.invertBottomOffset)
1263                        elemEnd -= (objOptions.offset * 2);
1264
1265                    // Add class if in viewport
1266                    if ((elemStart < viewportEnd) && (elemEnd > viewportStart)) {
1267
1268                        // Remove class
1269                        $obj.removeClass(objOptions.classToRemove);
1270                        $obj.addClass(objOptions.classToAdd);
1271
1272                        // Do the callback function. Callback wil send the jQuery object as parameter
1273                        objOptions.callbackFunction($obj, "add");
1274
1275                        // Check if full element is in view
1276                        if (rawEnd <= viewportEnd && rawStart >= viewportStart)
1277                            $obj.addClass(objOptions.classToAddForFullView);
1278                        else
1279                            $obj.removeClass(objOptions.classToAddForFullView);
1280
1281                        // Set element as already animated
1282                        $obj.data('vp-animated', true);
1283
1284                        if (objOptions.removeClassAfterAnimation) {
1285                            $obj.one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function () {
1286                                $obj.removeClass(objOptions.classToAdd);
1287                            });
1288                        }
1289
1290                        // Remove class if not in viewport and repeat is true
1291                    } else if ($obj.hasClass(objOptions.classToAdd) && (objOptions.repeat)) {
1292                        $obj.removeClass(objOptions.classToAdd + " " + objOptions.classToAddForFullView);
1293
1294                        // Do the callback function.
1295                        objOptions.callbackFunction($obj, "remove");
1296
1297                        // Remove already-animated-flag
1298                        $obj.data('vp-animated', false);
1299                    }
1300                });
1301
1302            };
1303
1304            /**
1305             * Binding the correct event listener is still a tricky thing.
1306             * People have expierenced sloppy scrolling when both scroll and touch
1307             * events are added, but to make sure devices with both scroll and touch
1308             * are handles too we always have to add the window.scroll event
1309             *
1310             * @see  https://github.com/dirkgroenen/jQuery-viewport-checker/issues/25
1311             * @see  https://github.com/dirkgroenen/jQuery-viewport-checker/issues/27
1312             */
1313
1314            // Select the correct events
1315            if ('ontouchstart' in window || 'onmsgesturechange' in window) {
1316                // Device with touchscreen
1317                $(document).bind("touchmove MSPointerMove pointermove", this.checkElements);
1318            }
1319
1320            // Always load on window load
1321            $(options.scrollBox).bind("load scroll", this.checkElements);
1322
1323            // On resize change the height var
1324            $(window).resize(function (e) {
1325                boxSize = { height: $(options.scrollBox).height(), width: $(options.scrollBox).width() };
1326                $elem.checkElements();
1327            });
1328
1329            // trigger inital check if elements already visible
1330            this.checkElements();
1331
1332            // Default jquery plugin behaviour
1333            return this;
1334        };
1335    })(jQuery);
1336    // ---
1337    // And some generic cookie logic
1338    // ---
1339    function createCookie(name, value, days) {
1340        if (days) {
1341            var date = new Date();
1342            date.setTime(date.getTime() + (days * 12 * 60 * 60 * 10));
1343            var expires = "; expires=" + date.toGMTString();
1344        }
1345        else var expires = "";
1346        document.cookie = name + "=" + value + expires + "; path=/";
1347    }
1348
1349    function readCookie(name) {
1350        var nameEQ = name + "=";
1351        var ca = document.cookie.split(';');
1352        for (var i = 0; i < ca.length; i++) {
1353            var c = ca[i];
1354            while (c.charAt(0) == ' ') c = c.substring(1, c.length);
1355            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
1356        }
1357        return null;
1358    }
1359
1360    function eraseCookie(name) {
1361        createCookie(name, "", -1);
1362    }
1363
1364    jQuery('.farm-fridge > div').viewportChecker({
1365        classToAdd: 'visible',
1366        repeat: true,
1367    });
1368
1369    jQuery('.rows > div').viewportChecker({
1370        classToAdd: 'visible',
1371        repeat: true,
1372    });
1373
1374
1375
1376    //POPUP HOME
1377
1378    $(window).on('load', function () {
1379        $('#popup').queue(function () {
1380            $(this).addClass('in')
1381        });
1382        $('#popupBanner').queue(function () {
1383            $(this).addClass('in')
1384            $('#popupBannerMask').addClass('in')
1385        });
1386    });
1387
1388
1389    if ($(window).width() > 800) {
1390        $('.mobile-scroll').remove()
1391    }
1392
1393    // popup banner
1394    $('#closePopupBanner').click(function () {
1395        $('#popupBanner').removeClass('in')
1396        $('#popupBanner').addClass('out');
1397        $('#popupBannerMask').removeClass('in')
1398        localStorage.setItem('popupBannerState', 'shown')
1399        setTimeout(function () {
1400            $('#popupBanner').css('display', 'none')
1401            $('#popupBannerMask').css('display', 'none')
1402        }, 1000)
1403    })
1404
1405    // popup routes
1406    $('#closePopup').click(function () {
1407        $('#popup').removeClass('in')
1408        $('#popup').addClass('out');
1409        localStorage.setItem('popState', 'shown')
1410        setTimeout(function () {
1411            $('#popup').css('display', 'none')
1412        }, 1000)
1413    })
1414
1415
1416
1417
1418    $(window).on('load', function () {
1419        // popup banner
1420        if (localStorage.getItem('popupBannerState') != 'shown') {
1421            $('#popupBanner').addClass('in');
1422            $('#popupBannerMask').addClass('in');
1423        } else {
1424            $('#popupBanner').removeClass('in')
1425            $('#popupBanner').addClass('out')
1426            $('#popupBannerMask').removeClass('in')
1427            setTimeout(function () {
1428                $('#popupBanner').css('display', 'none')
1429                $('#popupBannerMask').css('display', 'none')
1430            }, 1000)
1431        }
1432        // popup routes
1433        if (localStorage.getItem('popState') != 'shown') {
1434            $('#popup').addClass('in');
1435            $('#popup .recipe-routes .bottom .routes-image:first').addClass('in')
1436            setInterval(function () {
1437                var nextItem = $('#popup .recipe-routes .bottom .routes-image.in').removeClass('in').next('.routes-image');
1438                if (nextItem.length === 0) {
1439                    nextItem = $('.routes-image').first();
1440                }
1441                nextItem.addClass('in');
1442            }, 3000);
1443        } else {
1444            $('#popup').removeClass('in')
1445            $('#popup').addClass('out')
1446            setTimeout(function () {
1447                $('#popup').css('display', 'none')
1448            }, 1000)
1449        }
1450
1451    });
1452
1453    //animation
1454    popupContent = $('#popup .content')
1455    popupContent.height()
1456
1457    sec1 = $('.sec1').outerHeight()
1458    sec2 = $('.sec2').outerHeight()
1459    sec3 = $('.sec3').outerHeight()
1460    sec4 = $('.sec4').outerHeight()
1461
1462    $('#popup .content').scroll(function () {
1463        scrollPop = popupContent.scrollTop()
1464        //sec1
1465        sec1Products = $('.sec1 .products figure img')
1466        prod1 = $('.sec1 #prod1')
1467        prod2 = $('.sec1 #prod2')
1468        prod3 = $('.sec1 #prod3')
1469        prod4 = $('.sec1 #prod4')
1470
1471        if ($(this).scrollTop() > sec1 / 2) {
1472            prod1.css({ transform: 'translateY(-150px)' });
1473            setTimeout(function () {
1474                prod2.css({ transform: 'translateY(-150px)' });
1475                setTimeout(function () {
1476                    prod3.css({ transform: 'translateY(-150px)' });
1477                    setTimeout(function () {
1478                        prod4.css({ transform: 'translateY(-150px)' });
1479                    }, 50)
1480                }, 50)
1481            }, 50);
1482        } else {
1483            prod1.css({ transform: 'translateY(0)' });
1484            setTimeout(function () {
1485                prod2.css({ transform: 'translateY(0)' });
1486                setTimeout(function () {
1487                    prod3.css({ transform: 'translateY(0)' });
1488                    setTimeout(function () {
1489                        prod4.css({ transform: 'translateY(0)' });
1490                    }, 50)
1491                }, 50)
1492            }, 50);
1493        }
1494        //sec2
1495        sec2 = $('.sec2').outerHeight()
1496        txts = $('.sec2 hgroup')
1497        keepScl = $('.sec2 .keep-scrooling')
1498        if ($(this).scrollTop() > sec1 - 200) {
1499            txts.addClass('in')
1500            keepScl.addClass('in')
1501        } else {
1502            txts.removeClass('in')
1503            keepScl.removeClass('in')
1504        }
1505        //sec3
1506        sec3 = $('.sec3').outerHeight()
1507        title = $('.sec3 h1')
1508        cheeseLeft = $('.sec3 img.left')
1509        cheeseRight = $('.sec3 img')
1510
1511        if ($(window).width() > 600) {
1512            if (($(this).scrollTop() > (sec1 + sec3))) {
1513                title.addClass('in')
1514            } else {
1515                title.removeClass('in')
1516            }
1517        }
1518        if ($(window).width() < 600) {
1519            if ($(this).scrollTop() > (sec1 + sec2) - 200) {
1520                title.addClass('in')
1521            } else {
1522                title.removeClass('in')
1523            }
1524        }
1525        if (($(this).scrollTop() > (sec1 + sec3))) {
1526            cheeseLeft.addClass('in')
1527            cheeseRight.addClass('in')
1528            if (($(this).scrollTop() > (sec1 + sec2) + 100)) {
1529                cheeseLeft.addClass('out')
1530                cheeseRight.addClass('out')
1531            } else {
1532                cheeseLeft.removeClass('out')
1533                cheeseRight.removeClass('out')
1534            }
1535        } else {
1536            cheeseLeft.removeClass('in out')
1537            cheeseRight.removeClass('in out')
1538        }
1539        //sec4
1540        sec4 = $('.sec4').outerHeight()
1541        column1 = $('.sec4 .left')
1542        column2 = $('.sec4 .center')
1543        column3 = $('.sec4 .right')
1544        productsBottom = $('.sec4 .products-bottom')
1545
1546        if ($(this).scrollTop() > (sec1 + sec2) + 100) {
1547            column1.addClass('in')
1548            column2.addClass('in')
1549            column3.addClass('in')
1550            productsBottom.addClass('in')
1551        }
1552        if ($(this).scrollTop() < (sec1 + sec2) + 100) {
1553            column1.removeClass('in')
1554            column2.removeClass('in')
1555            column3.removeClass('in')
1556            productsBottom.removeClass('in')
1557        }
1558
1559    });
1560
1561    // Flip products image
1562    $('.flip .f').click(function (e) {
1563        e.preventDefault();
1564        $('.flip .b').removeClass('active')
1565        $(this).addClass('active')
1566        $('.front-back li.front').addClass('active')
1567        $('.front-back li.back').removeClass('active')
1568    });
1569    $('.flip .b').click(function (e) {
1570        e.preventDefault();
1571        $('.flip .f').removeClass('active')
1572        $(this).addClass('active')
1573        $('.front-back li.back').addClass('active')
1574        $('.front-back li.front').removeClass('active')
1575    });
1576
1577
1578    // Fix IE bug
1579    function isIE() {
1580        ua = navigator.userAgent;
1581        var is_ie = ua.indexOf("MSIE ") > -1 || ua.indexOf("Trident/") > -1;
1582        return is_ie;
1583    }
1584    if (isIE()) {
1585        $('.single-grazings .main-content ol').css('list-style-position', 'inside');
1586    }
1587
1588    window.onscroll = function () {
1589        if (scrollY > 50)
1590            document.querySelector('.mainHeader').classList.add('stick')
1591        else
1592            document.querySelector('.mainHeader').classList.remove('stick')
1593    }
1594
1595
1596    // Project Bo updates
1597
1598    $('.mobile-menu > ul .menu-item-has-children > a').click(function (e) {
1599        e.preventDefault();
1600        $(this).parent().find('ul').first().toggleClass('open')
1601        $(this).toggleClass('on')
1602    })
1603
1604    // Autoplay videos HomePage
1605    function autoPlayVideo(vID, spot, placeholderImg) {
1606        spot.html(
1607            '<iframe data-cookieconsent="ignore" class="yt-video" width="100%" height="315" ' +
1608            'src="https://www.youtube-nocookie.com/embed/' + vID + '?enablejsapi=1&version=3&autoplay=1&mute=1&rel=0&playsinline=1&showinfo=0&loop=1&playlist=' + vID + '" ' +
1609            'frameborder="0" allow="autoplay; encrypted-media" allowfullscreen ' +
1610            'referrerpolicy="strict-origin-when-cross-origin"></iframe>'
1611        );
1612        setTimeout(function () {
1613            placeholderImg.fadeOut();
1614        }, 2500);
1615    }
1616
1617    var os = "Unknown";
1618    if (navigator.appVersion.indexOf("Win") != -1) os = "Windows";
1619    if (navigator.appVersion.indexOf("Mac") != -1) os = "MacOS";
1620    if(os === 'Windows'){
1621        $('.video-wrap video').addClass('windows-color')
1622    }
1623
1624    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { }
1625    else {
1626        autoPlayVideo($('#heroHomeID').text(), $('#heroPlayer'), $('.placeholder-hero'));
1627        autoPlayVideo($('#trueTasteID').text(), $('#trueTasteVdo'), $('.placeholder-true-taste'));
1628    }
1629
1630
1631    // Embed VIDEOS grazings grid
1632    var embedVideo = $('body').hasClass('home') || $('body').hasClass('page-template-tpl-recipes');
1633    if (embedVideo) {
1634        var htmlVideo1 = "<div class='post-block span-4 video-embeded'><div class='vdo-wrap'><video autoplay loop muted class='embVdo' id='video1' width='103%' height='100%' webkit-playsinline playsinline ><source src='" + $('#embedVideo1 .videoPath').text() + "' type='video/mp4'></video></div><div class='overlay'><div class='verso-info'><span class='close hidden-lg'>Close <i class='icon-x'></i></span><div class='post-thumb hidden-lg' style='background-image: url(" + $('#embedVideo1 .videoPlaceholderImg').text() + "); height: 260px;'></div><h5>" + $('#embedVideo1 .copy').text() + "</h5><span class='post-category'>" + $('#embedVideo1 .copy2').text() + "</span><p>" + $('#embedVideo1 .copy3').text() + "</p><a href='" + $('#embedVideo1 .path').text() + "'>" + $('#embedVideo1 .cta').text() + "<i class='icon-right'></i></a></div></div></div>"
1635
1636        embedingVideo(2, 'video1', htmlVideo1);
1637    };
1638
1639    if (embedVideo) {
1640        var htmlVideo2 = "<div class='post-block span-4 video-embeded'><div class='vdo-wrap'><video autoplay loop muted class='embVdo' id='video2' width='103%' height='100%' webkit-playsinline playsinline><source src='" + $('#embedVideo2 .videoPath').text() + "' type='video/mp4'></video></div><div class='overlay'><div class='verso-info'><span class='close hidden-lg'>Close <i class='icon-x'></i></span><div class='post-thumb hidden-lg' style='background-image: url(" + $('#embedVideo2 .videoPlaceholderImg').text() + "); height: 260px;'></div><h5>" + $('#embedVideo2 .copy').text() + "</h5><span class='post-category'>" + $('#embedVideo2 .copy2').text() + "</span><p>" + $('#embedVideo2 .copy3').text() + "</p><a href='" + $('#embedVideo2 .path').text() + "'>" + $('#embedVideo2 .cta').text() + "<i class='icon-right'></i></a></div></div></div>"
1641
1642        embedingVideo(6, 'video2', htmlVideo2);
1643    };
1644
1645    function embedingVideo(spot, videoId, videoHtml) {
1646
1647        $('.tab-content .post-block').each(function (index) {
1648            if (index === spot) $(videoHtml).insertBefore($(this))
1649        });
1650
1651        var iterations = 0;
1652        if ($(videoId)) document.getElementById(videoId).addEventListener('ended', function () {
1653            if (iterations < 2) {
1654                this.currentTime = 0;
1655                this.play();
1656                iterations++;
1657            }
1658        }, false);
1659    }
1660
1661    // instagramBox()
1662
1663    // function instagramBox() {
1664    //     var instaEndpoint = 'https://www.instagram.com/kerrygoldusa/channel/?__a=1'
1665
1666    //     $.get(instaEndpoint, function (data, status) {
1667    //         var graphql = data.graphql;
1668    //         var user = graphql.user;
1669    //         var mediaPosts = user.edge_owner_to_timeline_media.edges;
1670    //         countMedias = 0;
1671
1672    //         mediaPosts.forEach(function (media) {
1673    //             if (countMedias < 8 && media.node.__typename === 'GraphImage') {
1674    //                 var mediaURL = 'https://www.instagram.com/p/' + media.node.shortcode;
1675    //                 var mediaPath = media.node.thumbnail_src;
1676    //                 var mediaDOM = '<a href="' + mediaURL + '" target="_blank"><img src="' + mediaPath + '"></a>'
1677    //                 $('.insta-' + countMedias).append(mediaDOM);
1678    //                 countMedias++;
1679    //             }
1680    //         });
1681    //     });
1682
1683    // }
1684
1685
1686    $('.baking-page .products').owlCarousel({
1687        loop: true,
1688        nav: true,
1689        dots: false,
1690        navText: [
1691          '<i class="fa fa-chevron-left owl-prev-arrow"></i>',
1692          '<i class="fa fa-chevron-right owl-next-arrow"></i>'
1693        ],
1694        responsive: {
1695          0: {
1696            items: 1,
1697            nav: true
1698          },
1699          768: {
1700            items: 2,
1701            nav: true
1702          }
1703        }
1704      });
1705
1706
1707
1708})(jQuery); // IIFE jQuery end
1709;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.