/* Version */ $( function(){ "use strict"; var versionNumber = 'v.1.0.8'; $( '.version-number' ).each( function(){ var text = $( this ).text(); $( this ).text( text + ' ' + versionNumber ); }); }); /** * Swipe Plugin * Version: 1.0 */ !function(t){"use strict";t.fn.swipeIt=function(i){var e=t.extend({swipeThreshold:40,scrollThreshold:10,draggable:!1,preventTouchOn:"",onSwipeMove:null,onSwipeEnd:null},i),a=this,n=0,s=0,o=e.swipeThreshold,r="ontouchend"in document,d=r?"touchstart":"pointerdown",c=r?"touchmove":"pointermove",l=r?"touchend":"pointermove",u=function(t){t.stopPropagation(),n=t.originalEvent.touches?t.originalEvent.touches[0].pageX:t,a.on(c,h)},h=function(i){if(!t(i.target).closest(e.preventTouchOn).length||""===e.preventTouchOn){if(s=i.originalEvent.touches?i.originalEvent.touches[0].pageX:i,Math.abs(n-s)>e.scrollThreshold&&i.preventDefault(),e.draggable){var o;o=-(n-s),e.onSwipeMove(o)}if(s===n)return!1;a.on(l,p)}},p=function(){var t;Math.abs(s-n)>o&&(t=s>n?"left":"right",e.onSwipeEnd(t)),a.off(c,h),a.off(l,p)};return a.on(d,u),this}}(jQuery); /** * Timber * Version: 1.1.0 */ $(document).ready(function(){"use strict";var e,t=at?"touchstart":"click",i=".wrapper",a=".element-reveal-left",n=".element-reveal-right",s=".side-navigation-wrapper",o=".side-nav-show, a.side-nav-show",r=".side-nav-hide a",c=".no-scroll",l=".element-show-left",d=".element-show-right",u="easeInOutQuint",v={init:function(){if(!$(s).length)return!1;$("body").data("aux-nav",!1);var e=$(s).data("animation")?$(s).data("animation"):"no-transition",h=$(s).is("[data-no-scrollbar]")?"no-scrollbar":"scrollbar";"no-transition"===e&&$(i).addClass(e+"-reset"),$(i).addClass("reveal-side-navigation"),$(s).addClass(e+"-reset "+h);var f=$(s).hasClass("enter-right")?"right":"left";Z?m="left"===f?a:n:(m="left"===f?l:d,$(s).addClass("hide"));var m=m.split(".").join("");c=c.split(".").join(""),$(o).on(t,function(a){if(a.preventDefault(),$(s).hasClass("active"))v.closeNav(m,e);else{O.state(!0),k.state(!0),$("body").data("aux-nav",!0),$("html, body").addClass(c);var n=$(window).scrollTop();at||$(".header-inner").css({top:n+"px"}),Z?($(i).addClass(m+" inactive "+e).css({transitionTimingFunction:it[u]}),$(s).addClass("active "+e).css({transitionTimingFunction:it[u]})):($(i).addClass(m),$(s).removeClass("hide").addClass("active")),$(i).on(tt,function(i){return i.target!==$(this)[0]?!1:(i.stopPropagation(),$(this).off(tt),void $(".reveal-side-navigation").on(t,function(){$(".reveal-side-navigation").off(t),v.closeNav(m,e)}))})}}),$(r).on(t,function(i){i.preventDefault(),$(".reveal-side-navigation").off(t),v.closeNav(m,e)}),$(window).on("resize",function(){k.state($("body").data("aux-nav")?!0:!1)})},closeNav:function(e,t){Z?(O.state(!0),$(i).removeClass(e+" "+t),$(s).removeClass(t),"no-transition"===t&&($("html, body").removeClass(c),$(i).removeClass("inactive"),$(s).removeClass("active")),$(i).on(tt,function(e){return e.target!==$(this)[0]?!1:(e.stopPropagation(),k.state(!1),$(this).off(tt),$("html, body").removeClass(c),$(i).removeClass("inactive"),$(s).removeClass("active"),void(at||$(".header-inner").css({top:0})))})):($(i).removeClass(e+" "+t),$(s).addClass("hide").removeClass("active")),$("body").data("aux-nav",!1)}},h=".overlay-navigation-wrapper",f=".overlay-navigation-inner",m=".overlay-nav-show a, a.overlay-nav-show",b=".overlay-nav-hide a, .one-page-nav .overlay-navigation .scroll-link",g=".no-scroll",p="easeInOutQuint",C={init:function(){if(!$(h).length)return!1;var e=$(h).data("animation")?$(h).data("animation"):"no-transition",i=$(h).is("[data-no-scrollbar]")?"no-scrollbar":"scrollbar";$(h).addClass(e+"-reset "+i),g=g.split(".").join(""),$(m).on(t,function(t){t.preventDefault(),$(h).hasClass("active")?C.closeNav(e):($("body").data("aux-nav",!0),$("html, body").addClass(g),Z?$(h).addClass("active "+e).css({transitionTimingFunction:it[p]}):$(h).addClass("active"),$(h).on(tt,function(e){return e.target!==$(this)[0]?!1:(e.stopPropagation(),k.state(!0),void $(this).off(tt))}))}),$(f).on(t,function(t){t.target===this&&C.closeNav(e)}),$(b).on(t,function(t){t.preventDefault(),C.closeNav(e)}),$(window).on("resize",function(){k.state($("body").data("aux-nav")?!0:!1)})},closeNav:function(e){Z?($(h).removeClass(e),"no-transition"===e&&($("html, body").removeClass(g),$(h).removeClass("active")),$(h).on(tt,function(e){return e.target!==$(this)[0]?!1:(e.stopPropagation(),k.state(!1),$(this).off(tt),$("html, body").removeClass(g),void $(h).removeClass("active"))})):$(h).removeClass("active").css({top:"-100%"}),$("body").data("aux-nav",!1)}},y=".side-navigation-wrapper, .overlay-navigation-wrapper",w=".sub-menu",z=".contains-sub-menu",T={init:function(){$(y).find(z).each(function(){$(this).on(t,function(e){e.preventDefault(),$(this).parent().hasClass("current")?$(y).find("nav").children("ul").children().removeClass("current"):($(y).find("nav").children("ul").children().removeClass("current"),$(this).parent().addClass("current")),O.state(!0);var t=$(this).siblings(w).children(),i=0;t.each(function(){i+=$(this).outerHeight()}),$(this).siblings(w).hasClass("open")?$(this).closest(y).find(w).css({height:0}).removeClass("open"):($(this).closest(y).find(w).css({height:0}).removeClass("open"),$(this).siblings(w).css({height:i+"px"}),$(this).siblings(w).addClass("open"))})})}},k={state:function(e){at?e?$("body").addClass("aux-navigation-active"):$("body").removeClass("aux-navigation-active"):e?$("body").addClass("aux-navigation-active"):$("body").data("aux-nav")||$("body").removeClass("aux-navigation-active")}},x=".header, .header-inner, .logo, .logo a, .header .navigation",O={init:function(){at||$(window).on("scroll",function(){O.state(!0)}),$(window).on("resize",function(){O.state(!1)})},state:function(e){e?$(x).removeClass("no-transition"):$(x).addClass("no-transition")}},I=300,N=".scroll-to-top",E=600,D={init:function(){$(window).on("scroll",function(){return $(N).is("[data-no-hide]")?!1:void($(this).scrollTop()>I?$(N).fadeIn(E):$(N).fadeOut(E))}),$(N).on(t,function(e){e.preventDefault(),D.scrollUp()})},scrollUp:function(){$("html, body").animate({scrollTop:0},E)}},Q=".header",B=".tabs",P=".tab-trigger-click",A=".accordion",F="icon-plus",H="icon-minus",L=".accordion-content",M=".accordion-trigger-click",S=".box.dismissable",W=300,j="swing",R=".dropdown",U=".thumbnail",q=".overlay-info, img",G=".overlay-info",J=400,K="easeInOutQuint",V={init:function(){V.tabs(),V.accordions(),V.dismissable(),V.dropdown(),V.rollovers(),V.thumbnailRatio()},tabs:function(){$(B).each(function(){var e=$(this).find("li > a");$(this).find(".tab-panes .active").addClass("fade-in"),e.each(function(){$(this).on(t,function(){var e=$(this).attr("href"),t=$(this).closest(".tabs").find(e);$(this).closest(".tab-nav").find(".active").removeClass("active"),$(this).parent().addClass("active"),$(this).closest(".tabs").find(".tab-panes .active").removeClass("active fade-in"),t.addClass("active");var i=null;return clearTimeout(i),i=setTimeout(function(){t.addClass("fade-in")},50),!1}),$(this).parent().hasClass("active")&&$(this).closest(".tabs").find($(this).attr("href")).addClass("active")})}),$(P).each(function(){$(this).on("click",function(){var e=$(this).data("target-tab");return $(B).find(e).trigger("click"),!1})})},accordions:function(){$(A).each(function(){var e=$(this).find("li > a");e.each(function(){$(this).closest(A).is("[data-toggle-icon]")&&($(this).find("span").length||$(this).parent().hasClass("active")?!$(this).find("span").length&&$(this).parent().hasClass("active")&&$(this).prepend(''):$(this).prepend('')),$(this).on(t,function(){var e=$(this),t=e.attr("href"),i=e.closest(A).find(t),a=e.closest(A).find("li > div");e.closest(A).find("li.active > div").each(function(){var e=$(this).children().outerHeight();$(this).addClass("no-transition").css({height:e+"px"})});var n=null;return clearTimeout(n),n=e.parent().hasClass("active")?setTimeout(function(){e.closest(A).is("[data-toggle-multiple]")?e.siblings(i).removeClass("no-transition").css({height:0}):e.closest(A).find("li.active > div").removeClass("no-transition").css({height:0}),e.parent().removeClass("active")},50):setTimeout(function(){var t=e.siblings(i).find(L).outerHeight();e.closest(A).is("[data-toggle-multiple]")||(a.removeClass("no-transition").css({height:0}),e.closest(A).find("li").removeClass("active")),e.parent().addClass("active"),e.siblings(i).removeClass("no-transition").css({height:t+"px"})},50),e.find("."+H).length?e.find("."+H).removeClass(H).addClass(F):e.find("."+F).length&&(e.closest(A).is("[data-toggle-multiple]")||e.closest("ul").find("."+H).removeClass(H).addClass(F),e.find("."+F).removeClass(F).addClass(H)),!1})}),$(M).each(function(){$(this).on("click",function(){var e=$(this).data("target-accordion");return $(A).find(e).trigger("click"),!1})}),$(window).on("resize",function(){$(A).each(function(){$(this).find("li.active > div").addClass("no-transition").css({height:"auto"})})})})},dismissable:function(){$(S).each(function(){$(this).find(".close").length||$(this).prepend(''),$(this).find(".close").on(t,function(e){e.preventDefault(),Z?$(this).parent().css({transitionProperty:"opacity",opacity:0,transitionDuration:W+"ms",transitionTimingFunction:it[j]}).on(tt,function(e){return e.stopPropagation(),e.target!==$(this)[0]?!1:void $(this).remove()}):$(this).parent().animate({opacity:0},J,j,function(){$(this).remove()})})})},dropdown:function(){$(R).each(function(){$(this).children(".button, button").not().each(function(){$(this).on(t,function(t){t.preventDefault(),$(R).children(".button, button").removeClass("active");var i=$(this).parent().children(".dropdown-list");return $(this).parent().hasClass("disabled")?!1:($(".dropdown-list").not($(i)).removeClass("active"),$(i).hasClass("active")?($(i).removeClass("active"),$(this).removeClass("active")):($(i).addClass("active"),$(this).addClass("active")),void $(document).on("click.closeDropdown",function(t){$(t.target).closest(R).length||e()}))}),$(this).parent().children(".dropdown-list").find("li a").on(t,function(e){e.preventDefault(),$(".dropdown-list").removeClass("active"),$(this).removeClass("active")}),at||$(window).on("scroll",function(){e()}),$(Q).find(".navigation > ul > li > a").mouseenter(function(){e()});var e=function(){$(R).each(function(){$(this).find(".button, button").removeClass("active"),$(this).find(".dropdown-list").removeClass("active")}),$(document).off("click.closeDropdown")}})})},rollovers:function(){Z?$(U).each(function(){var e,t=$(this).data("hover-speed")?$(this).data("hover-speed"):J,i=$(this).data("hover-easing")?$(this).data("hover-easing"):K,a=$(this).data("hover-bkg-opacity")?$(this).data("hover-bkg-opacity"):1;if($(this).data("hover-bkg-color")){var n=$(this).data("hover-bkg-color");n=n.replace("#","");var s=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),r=parseInt(n.substring(4,6),16);e="rgba( "+s+","+o+","+r+","+a/1+" )"}else e=$(this).find(G).css("background-color");$(this).find(q).css({transitionDuration:t+"ms",transitionTimingFunction:it[i]}),$(this).find(G).css({backgroundColor:e})}):$(U).find(".overlay-link").mouseenter(function(){$(this).find(G).css({opacity:0}).stop().animate({opacity:1},J,K)}).mouseleave(function(){$(this).find(G).stop().animate({opacity:0},J,K)})},thumbnailRatio:function(){$(window).on("resize",function(){$(U).each(function(){if($(this).find(".caption-over-outer").length){var e=$(this).find("img, video"),t=e.attr("width"),i=e.attr("height"),a=$(this).find("img, video").width(),n=i>t?i/t:t/i,s=i>t?a*n:a/n;$(this).find(".caption-over-outer").css({opacity:1}),$(this).css({height:s+"px"})}})}).resize()}},X=document.body||document.documentElement,Y=X.style,Z=void 0!==Y.transition||void 0!==Y.WebkitTransition||void 0!==Y.MozTransition||void 0!==Y.MsTransition||void 0!==Y.OTransition,_=["WebkitTransform","MozTransform","OTransform","msTransform"];for(var et in _)void 0!==Y[_[et]]&&(e="-"+_[et].replace("Transform","").toLowerCase());var tt="webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend";Z&&(document.getElementsByTagName("body")[0].className+=" transition-support");var it={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.42, 0, 0.58, 1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};window.onpageshow=function(e){e.persisted&&$("body").addClass("page-fade-reset").removeClass("page-fade-out")};var at=!1;(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))&&(at=!0,document.getElementsByTagName("body")[0].className+=" mobile");var nt="WebkitAppearance"in document.documentElement.style;nt&&(document.getElementsByTagName("body")[0].className+=" webkit");var st=/constructor/i.test(window.HTMLElement);st&&(document.getElementsByTagName("body")[0].className+=" safari-browser");var ot=document.all&&document.addEventListener||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style;ot&&(document.getElementsByTagName("body")[0].className+=" ie-browser");var rt=document.all&&document.addEventListener;rt&&(document.getElementsByTagName("body")[0].className+=" ie-be-11",$(".flex").removeClass("flex").addClass("equalize")),v.init(),C.init(),T.init(),O.init(),D.init(),V.init()}); /** * Horizon * Version: 1.0.3 */ !function(a,e,t,i){"use strict";var n,r=function(e,i){function n(){a.each(c,function(a,t){t=t.split(":");var i=t[0],n=t[1];r.parallax?("direction"===i&&e.data("pd",n),"speed"===i&&e.data("ps",n),"rotate"===i&&e.data("pr",n),"opacity"===i&&e.data("po",n)):("opacity"===i&&e.data("o",n),"scale"===i&&e.data("s",n),"easing"===i&&e.data("e",n),"transX"===i&&e.data("tx",parseFloat(n)),"transY"===i&&e.data("ty",parseFloat(n)),"transZ"===i&&e.data("tz",parseFloat(n)),"rotateX"===i&&e.data("rx",parseFloat(n)),"rotateY"===i&&e.data("ry",parseFloat(n)),"rotateZ"===i&&e.data("rz",parseFloat(n)),"transOrigX"===i&&e.data("ox",n),"transOrigY"===i&&e.data("oy",n),"duration"===i&&e.data("du",parseFloat(n)),"delay"===i&&e.data("de",parseFloat(n)))})}var r=a.extend({},a.fn.horizon.tmhOpts,i);e=a(e),O&&e.css({opacity:1,visibility:"visible"}),e.data("scrolling",!1).css("-webkit-backface-visibility","hidden");var c;e.is("[data-parallax]")||r.parallax?(r.parallax=!0,r.threshold=0,e.data("threshold",0),e.parent().addClass("tmh-perspective-parallax"),e.addClass("tmh-parallax-item"),c=(e.data("parallax")+"").split(";"),o(e,r,!0)):(e.parent().addClass("tmh-perspective"),c=(e.data("animate-in")+"").split(";")),-1!=a.inArray("preset",(c+"").split(":"))?c.filter(function(e){if("preset"===e.split(":")[0]){c.splice(a.inArray(e,c),1);var t=(w[e.split(":")[1]]+"").split(";");c=a.merge(t,c).filter(Boolean),n()}}):n(),a(t).on("scroll",function(){s(e,r,!1)}),a(t).on("resize",function(){s(e,r,!1)}),r.parallax||p(e,r),s(e,r)},s=function(a,e,t){a.data("scrolling")||(requestAnimationFrame(function(){o(a,e,t)}),a.data("scrolling",!0))},o=function(e,i,n){if(c(e,i)||n)if(i.parallax){if(O)return!1;{var r=e.data("pd")?e.data("pd"):"vertical",s=e.data("ps")?e.data("ps"):i.parallaxSpeed,o=e.data("pr")?e.data("pr"):"none",p=e.data("po")?e.data("po"):"none",g=a(t),d=g.scrollTop(),b=e.offset().top,h=g.height()*s,f=e.parent().height()+e.parent().offset().top-d,y=-((b-d-g.height())*s)-h,w="horizontal"===r?y:0,x="vertical"===r?y:0;-(.1*(b-d-g.height()))-h}o="clockwise"===o?.02*-y:"anticlockwise"===o?.02*y:0,p="fade"===p?f/e.parent().height():1,u&&(g.width()<768?l(e,1,0,0,0,0,0,0,1,0,0,"100ms",0,"swing",i):l(e,p.toFixed(2),w,x,0,o,o,o,1,"50%","50%",0,0,"ease-out",i))}else{var I=e.data("ox")?e.data("ox"):"50%",F=e.data("oy")?e.data("oy"):"50%",z=e.data("du")?e.data("du"):i.speed,S=e.data("de")?e.data("de"):0,X=e.data("e")?m[e.data("e")]:m[i.easing];u?l(e,1,0,0,0,0,0,0,1,I,F,z,S,X,i):e.css({visibility:"visible"}).stop().animate({opacity:1},i.speed,i.easingFallback,function(){i.inView&&i.inView()})}e.data("scrolling",!1)},c=function(e,i){var n=a(t).scrollTop(),r=n+a(t).height(),s=e.data("threshold")?parseFloat(e.data("threshold")):i.threshold,o=e.data("ty")?parseFloat(e.data("ty")):0,c=e.offset().top,l=e.offset().top-o,g=l+e.outerHeight()-e.outerHeight()*s,d=l+e.outerHeight()*s;return(c-n>a(t).height()||c-n<-e.outerHeight())&&(i.recurring&&p(e,i),i.outOfView&&i.outOfView()),r>=d&&g>=n},p=function(a){if(O)return!1;var e=a.data("o")?parseFloat(a.data("o")):0,t=a.data("tx")?parseFloat(a.data("tx")):0,i=a.data("ty")?parseFloat(a.data("ty")):0,n=a.data("tz")?parseFloat(a.data("tz")):0,r=a.data("rx")?parseFloat(a.data("rx")):0,s=a.data("ry")?parseFloat(a.data("ry")):0,o=a.data("rz")?parseFloat(a.data("rz")):0,c=a.data("s")?parseFloat(a.data("s")):1;a.css(u?{transition:"none",transform:"translate3d("+t+"px, "+i+"px, "+n+"px )rotateX("+r+"deg) rotateY("+s+"deg) rotateZ("+o+"deg) scale3d("+c+", "+c+", "+c+")",opacity:e,visibility:"hidden"}:{opacity:0})},l=function(e,t,i,n,r,s,o,c,p,l,g,d,u,b,h){var m={};m.transform="translate3d("+i+"px, "+n+"px, "+r+"px) rotateX("+s+"deg) rotateY("+o+"deg) rotateZ("+c+"deg) scale3d("+p+", "+p+", "+p+")",m.transitionProperty=f+", opacity",m.transformOrigin=l+" "+g+" 0",m.transitionDuration=d+"ms",m.transitionDelay=u+"ms",m.transitionTimingFunction=b,m.visibility="visible",m.opacity=t,e.css(m).on(y,function(e){e.stopPropagation(),a(this).off(y),h.inView&&h.inView()})},g=e.body||e.documentElement,d=g.style,u=d.transition!==i||d.WebkitTransition!==i||d.MozTransition!==i||d.MsTransition!==i||d.OTransition!==i,b=["WebkitTransform","MozTransform","OTransform","msTransform"];for(var h in b)d[b[h]]!==i&&(n="-"+b[h].replace("Transform","").toLowerCase());var f=n+"-transform",y="webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",m={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.42, 0, 0.58, 1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)",easeFastSlow:"cubic-bezier(.11,.69,.66,1.01)",easeBounceBack:"cubic-bezier(.16,1.36,.57,.96)",easeBounceBackHard:"cubic-bezier(.8,1.91,0,.94)",easeBounceIn:"cubic-bezier(.15,2.6,0,-0.2)",easeSwingInOut:"cubic-bezier(.35,3.8,0.3,-0.6)"},w={fadeIn:"opacity: 0;easing: swing;",slideInUpShort:"opacity:0;transY: 50px;easing:easeFastSlow;",slideInRightShort:"opacity:0;transX: 50px;easing:easeFastSlow;",slideInDownShort:"opacity:0;transY: -50px;easing:easeFastSlow;",slideInLeftShort:"opacity:0;transX: -50px;easing:easeFastSlow;",slideInUpLong:"opacity:0;transY: 250px;easing:easeFastSlow;",slideInRightLong:"opacity:0;transX: 250px;easing:easeFastSlow;",slideInDownLong:"opacity:0;transY: -250px;easing:easeFastSlow;",slideInLeftLong:"opacity:0;transX: -250px;easing:easeFastSlow;",bounceIn:"opacity:0;scale:0.7;easing:easeBounceIn;",bounceOut:"opacity:0;scale:1.4;easing:easeBounceIn;",bounceInUp:"opacity:0;transY: 250px;easing:easeBounceIn;",bounceInRight:"opacity:0;transX: 250px;easing:easeBounceIn;",bounceInDown:"opacity:0;transY: -250px;easing:easeBounceIn;",bounceInLeft:"opacity:0;transX: -250px;easing:easeBounceIn;",scaleIn:"opacity:0;scale: 0.6;easing:easeFastSlow;",scaleOut:"opacity:0;scale: 1.4;easing:easeFastSlow",flipInX:"opacity:0;rotateX: -180deg;easing:easeFastSlow;",flipInY:"opacity:0;rotateY: -180deg;easing:easeFastSlow;",spinInX:"opacity:0;rotateX: -540deg;easing:easeFastSlow;",spinInY:"opacity:0;rotateY: -540deg;easing:easeFastSlow;",helicopterIn:"opacity:0;scale: 0.6;rotateZ: -360deg;easing:easeFastSlow;",helicopterOut:"opacity:0;scale: 1.4;rotateZ: -360deg;easing:easeFastSlow;",signSwingTop:"opacity:0;rotateX:-60deg;transOrigX:top;transOrigY:center;easing:easeSwingInOut;",signSwingRight:"opacity:0;rotateY:-60deg;transOrigX:right;transOrigY:center;easing:easeSwingInOut;",signSwingBottom:"opacity:0;rotateX:-60deg;transOrigX:bottom;transOrigY:center;easing:easeSwingInOut;",signSwingLeft:"opacity:0;rotateY:-60deg;transOrigX:left;transOrigY:center;easing:easeSwingInOut;",wiggleX:"opacity:0;rotateX:-90deg;transOrigX:center;transOrigY:center;easing:easeSwingInOut;",wiggleY:"opacity:0;rotateY:-90deg;transOrigX:center;transOrigY:center;easing:easeSwingInOut;",dropUp:"opacity:0;transY: 250px;rotateZ:60deg;transOrigX:left;transOrigY:top;easing:easeBounceBackHard;",dropDown:"opacity:0;transY: -250px;rotateZ:-60deg;transOrigX:left;transOrigY:top;easing:easeBounceBackHard;",rollInLeft:"opacity:0;transX: -250px;transY: 200px;rotateZ: -120px;transOrigX:left;transOrigY:top;easing:easeFastSlow;",rollInRight:"opacity:0;transX: 250px;transY: 200px;rotateZ: 120px;transOrigX:right;transOrigY:top;easing:easeFastSlow;",turnInRight:"opacity:0;transX: 250px;rotateX:20deg;rotateY:75deg;transOrigX:left;transOrigY:top;easing:easeBounceBack;",turnInLeft:"opacity:0;transX: -250px;rotateX:20deg;rotateY:-75deg;transOrigX:right;transOrigY:top;easing:easeBounceBack;"},O=!1;(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))&&(O=!0),function(){for(var a=0,e=["ms","moz","webkit","o"],i=0;i=0)return!1;if(window.isRetinaDevice()){var r=e.substr(e.lastIndexOf("."));e=e.replace(r,t.retinaSuffix+r),i.ajax({type:"GET",url:e,success:function(){i("").attr("src",e).one("load",function(){a.is("img")?a.attr("src",e):a.css("background-image","url("+e+")")})}})}};window.isRetinaDevice=function(){var i="(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)";return this.devicePixelRatio>1||this.matchMedia&&this.matchMedia(i).matches?!0:!1};var n=!1;return(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))&&(n=!0),this.each(a)}}(jQuery); /** * Equalize * Version: 1.0 */ !function(e){"use strict";var t=function(t,i){var s=e.extend({},e.fn.equalizeHeights.tmeOpts,i),a=e(t),h=this,u=0,n=0,o=0,r=[],c=0,d=a.children(),g=a.data("leader"),l=e('[data-follow="'+g+'"]');h.updateHeights=function(){o=0,s.equalizeByGroup?d.each(function(){n=e(this).position().top,e(this).attr("class",function(e,t){return t.replace(/row-\d+/,"")}).css({height:"auto"}),n!==u&&(o++,c=0,r.length=0),0===o&&(o=1,c=0),r.push(e(this)),c=c>e(this).outerHeight()?c:e(this).outerHeight(),e.each(r,function(e){r[e].addClass("row-"+o).css({height:c+"px"})}),u=n}):(e(this).css({height:"auto"}),c=0,c=a.outerHeight(),l.css({height:c+"px"}))},h.clearHeights=function(){s.equalizeByGroup?d.css({height:"auto"}):l.css({height:"auto"})},e(window).on("resize",function(){return s.updateOnResize?void(e(window).width()>s.clearUnder?h.updateHeights():h.clearHeights()):!1}),h.updateHeights()};e.fn.equalizeHeights=function(i){return this.each(function(){var s=e(this);if(!s.data("equalizeHeights")){var a=new t(this,i);s.data("equalizeHeights",a)}})},e.fn.equalizeHeights.tmeOpts={equalizeByGroup:!0,updateOnResize:!0,clearUnder:479}}(jQuery); /** * Counter * Version: 1.0 */ !function(t){"use strict";var a=function(a,n){function o(t){return(""+t).replace(/(\d)(?=(\d{3})+$)/g,"$1,")}var r,e=t.extend({},t.fn.counter.tmcOpts,n),u=t(a),c=this;c.startCounter=function(){c.clearCounter();var t=u.data("count-from")?parseFloat(u.data("count-from")):e.from,a=u.data("count-to")?parseFloat(u.data("count-to")):e.to,n=u.data("count-interval")?parseFloat(u.data("count-interval")):e.interval,l=t>a?"down":"up";r=setInterval(function(){(t===a||isNaN(t)||isNaN(a))&&(clearInterval(r),e.onComplete&&e.onComplete()),u.text(o(t)),"up"===l?t++:t--},n)},c.clearCounter=function(){clearInterval(r);var t=u.data("count-from")?parseFloat(u.data("count-from")):e.from;u.html(t)},e.autoStart&&c.startCounter()};t.fn.counter=function(n){return this.each(function(){var o=t(this);if(!o.data("counter")){var r=new a(this,n);o.data("counter",r)}})},t.fn.counter.tmcOpts={autoStart:!0,from:500,to:100,interval:20,onComplete:null}}(jQuery);