(function(a){function q(c){0!==a(c).find(".nav-tabs").length&&a(c).outerFind('section[id^="tabs"]').each(function(){var b=a(this).attr("id"),c=a(this).find(".nav-tabs .nav-item"),e=a(this).find(".tab-pane");e.removeClass("active").eq(0).addClass("active");c.find("a").removeClass("active").removeAttr("aria-expanded").eq(0).addClass("active");e.each(function(){a(this).attr("id",b+"_tab"+a(this).index())});c.each(function(){a(this).find("a").attr("href","#"+b+"_tab"+a(this).index())})})}var f=a("html").hasClass("is-builder"); a.extend(a.easing,{easeInOutCubic:function(a,b,d,e,h){return 1>(b/=h/2)?e/2*b*b*b+d:e/2*((b-=2)*b*b+2)+d}});a.fn.outerFind=function(a){return this.find(a).addBack(a)};a.fn.footerReveal=function(){function c(){b.outerHeight()<=e.outerHeight()?(b.css({"z-index":-999,position:"fixed",bottom:0}),b.css({width:d.outerWidth()}),d.css({"margin-bottom":b.outerHeight()})):(b.css({"z-index":"",position:"",bottom:""}),b.css({width:""}),d.css({"margin-bottom":""}))}var b=a(this),d=b.prev(),e=a(window);c();e.on("load resize", function(){c()});return this};(function(a,b){var d=function(a,b,c){var d;return function(){var f=this,k=arguments;d?clearTimeout(d):c&&a.apply(f,k);d=setTimeout(function(){c||a.apply(f,k);d=null},b||100)}};jQuery.fn[b]=function(a){return a?this.bind("resize",d(a)):this.trigger(b)}})(jQuery,"smartresize");a.isMobile=function(c){var b=[],d={blackberry:"BlackBerry",android:"Android",windows:"IEMobile",opera:"Opera Mini",ios:"iPhone|iPad|iPod"};c="undefined"==a.type(c)?"*":c.toLowerCase();"*"==c?b=a.map(d, function(a){return a}):c in d&&b.push(d[c]);return!(!b.length||!navigator.userAgent.match(new RegExp(b.join("|"),"i")))};var r=function(){var c=a('
').appendTo("body"),b=c[0],d=parseInt(window.innerHeight/2,10),b=parseInt((window.getComputedStyle?getComputedStyle(b,null):b.currentStyle).height,10);c.remove();return b==d}();a(function(){function c(){a(this).css("height",9*a(this).parent().width()/16)}function b(b){setTimeout(function(){a(b).outerFind(".mbr-parallax-background").jarallax({speed:.6}).css("position", "relative")},0)}function d(b){a(b).outerFind("[data-bg-video]").each(function(){var b=a(this).attr("data-bg-video"),c=b.match(/(http:\/\/|https:\/\/|)?(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(&\S+)?/),d=a('
').hide().css({backgroundSize:"cover",backgroundPosition:"center"});a("> *:eq(0)",this).before(d);if(c&&(/youtube/g.test(c[3])||/vimeo/g.test(c[3])))if(c&&/youtube/g.test(c[3]))b= "http"+("https:"===location.protocol?"s":"")+":",b+="//img.youtube.com/vi/"+c[6]+"/maxresdefault.jpg",a("").on("load",function(){if(120===(this.naturalWidth||this.width)){var a=this.src.split("/").pop();switch(a){case "maxresdefault.jpg":this.src=this.src.replace(a,"sddefault.jpg");break;case "sddefault.jpg":this.src=this.src.replace(a,"hqdefault.jpg");break;default:f&&d.css("background-image",'url("images/no-video.jpg")').show()}}else d.css("background-image",'url("'+this.src+'")').show()}).attr("src", b),!a.fn.YTPlayer||f||a.isMobile()||a("> *:eq(1)",this).before('
').prev().YTPlayer({videoURL:c[6],containment:"self",showControls:!1,mute:!0});else{if(c&&/vimeo/g.test(c[3])){var k=new XMLHttpRequest;k.open("GET","https://vimeo.com/api/v2/video/"+c[6]+".json",!0);k.onreadystatechange=function(){if(4===this.readyState)if(200<=this.status&&400>this.status){var a=JSON.parse(this.responseText);d.css("background-image",'url("'+a[0].thumbnail_large+'")').show()}else f&& d.css("background-image",'url("images/no-video.jpg")').show()};k.send();k=null;!a.fn.vimeo_player||f||a.isMobile()||a("> *:eq(1)",this).before('
').prev().vimeo_player({videoURL:b,containment:"self",showControls:!1,mute:!0})}}else f&&d.css("background-image",'url("images/video-placeholder.jpg")').show()})}a("html").addClass(a.isMobile()?"mobile":"desktop");a(window).scroll(function(){a(".mbr-navbar--sticky").each(function(){var b=10b?0:1]=c;a(window).smartresize(function(){var b=a(window).height();0>a.inArray(b,d)&&(b=d[a(window).width()>b?1:0]);a(".mbr-section--full-height").css("height",b+"px")})}(a(window).width(),a(window).height()):r||(a(window).smartresize(function(){a(".mbr-section--full-height").css("height",a(window).height()+"px")}),a(document).on("add.cards", function(b){a("html").hasClass("mbr-site-loaded")&&a(b.target).outerFind(".mbr-section--full-height").length&&a(window).resize()}));a(window).smartresize(function(){a(".mbr-section--16by9").each(c)});a(document).on("add.cards changeParameter.cards",function(b){var d=a(b.target).outerFind(".mbr-section--16by9");d.length?d.attr("data-16by9","true").each(c):a(b.target).outerFind("[data-16by9]").css("height","").removeAttr("data-16by9")});a.fn.jarallax&&!a.isMobile()&&(a(window).on("update.parallax", function(b){setTimeout(function(){var b=a(".mbr-parallax-background");b.jarallax("coverImage");b.jarallax("clipContainer");b.jarallax("onScroll")},0)}),f?(a(document).on("add.cards",function(c){b(c.target);a(window).trigger("update.parallax")}),a(document).on("changeParameter.cards",function(c,d,e,g){if("bg"===d)switch(a(c.target).jarallax("destroy").css("position",""),g){case "type":!0===e.parallax&&b(c.target);break;case "value":"image"===e.type&&!0===e.parallax&&b(c.target);break;case "parallax":!0=== e.parallax&&b(c.target)}a(window).trigger("update.parallax")})):b(document.body),a(window).on("shown.bs.tab",function(b){a(window).trigger("update.parallax")}));var e,h,p=0,g=null,m=!a.isMobile();a(window).scroll(function(){h&&clearTimeout(h);var b=a(window).scrollTop(),c=b<=p||m;p=b;if(g){var d=b>g.breakPoint;c?d!=g.fixed&&(m?(g.fixed=d,a(g.elm).toggleClass("is-fixed")):h=setTimeout(function(){g.fixed=d;a(g.elm).toggleClass("is-fixed")},40)):(g.fixed=!1,a(g.elm).removeClass("is-fixed"))}});a(document).on("add.cards delete.cards", function(b){e&&clearTimeout(e);e=setTimeout(function(){g&&(g.fixed=!1,a(g.elm).removeClass("is-fixed"));a(".mbr-fixed-top:first").each(function(){g={breakPoint:a(this).offset().top+3*a(this).height(),fixed:!1,elm:this};a(window).scroll()})},650)});a(window).smartresize(function(){a(".mbr-embedded-video").each(function(){a(this).height(a(this).width()*parseInt(a(this).attr("height")||315)/parseInt(a(this).attr("width")||560))})});a(document).on("add.cards",function(b){a("html").hasClass("mbr-site-loaded")&& a(b.target).outerFind("iframe").length&&a(window).resize()});if(f)a(document).on("add.cards",function(a){d(a.target)});else d(document.body);a(document).on("changeParameter.cards",function(b,c,e,g){if("bg"===c)switch(g){case "type":a(b.target).find(".mbr-background-video-preview").remove();"video"===e.type&&d(b.target);break;case "value":"video"===e.type&&(a(b.target).find(".mbr-background-video-preview").remove(),d(b.target))}});f||a("body > *:not(style, script)").trigger("add.cards");a("html").addClass("mbr-site-loaded"); a(window).resize().scroll();f||a(document).click(function(b){try{var c=b.target;if(!a(c).parents().hasClass("carousel")){do if(c.hash){var d=/#bottom|#top/g.test(c.hash);a(d?"body":c.hash).each(function(){b.preventDefault();var d=a(c).parents().hasClass("navbar-fixed-top")?60:0,d="#bottom"==c.hash?a(this).height()-a(window).height():a(this).offset().top-d;a(this).hasClass("panel-collapse")||a(this).hasClass("tab-pane")||a("html, body").stop().animate({scrollTop:d},800,"easeInOutCubic")});break}while(c= c.parentNode)}}catch(e){}});a(".cols-same-height .mbr-figure").each(function(){function b(){d.css({width:"",maxWidth:"",marginLeft:""});if(h&&g){var a=h/g;c.addClass({position:"absolute",top:0,left:0,right:0,bottom:0});var f=e.height()/e.width();f>a&&(a=100*(f-a)/a,d.css({width:a+100+"%",maxWidth:a+100+"%",marginLeft:-a/2+"%"}))}}var c=a(this),d=c.children("img"),e=c.parent(),g=d[0].width,h=d[0].height;d.one("load",function(){g=d[0].width;h=d[0].height;b()});a(window).on("resize",b);b()})});if(!f){if(a.fn.socialLikes)a(document).on("add.cards", function(c){a(c.target).outerFind(".mbr-social-likes").on("counter.social-likes",function(b,c,e){999=d&&g<=f&&b.hasClass("hidden"))b.removeClass("hidden").addClass("fadeInUp").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){b.removeClass("animated fadeInUp")})})});d.trigger("scroll")}});a(".nav-dropdown").length&&a(".nav-dropdown").swipe({swipeLeft:function(c, b,d,e,f){a(".navbar-close").click()}})}a(document).ready(function(){if(a(".mbr-arrow-up").length){var c=a("#scrollToTop"),b=a("body,html"),d=a(window);c.css("display","none");d.scroll(function(){0'),d())});c.on("mouseleave",function(){a(".main-menu-animated-line").remove()})})},l.find("ul.navbar-nav li.dropdown").hover(function(){a(this).hasClass("open")||a(this).find("a")[0].click()},function(){a(this).hasClass("open")&& a(this).find("a")[0].click()}),l.find("ul.navbar-nav li.dropdown .dropdown-menu .dropdown").hover(function(){a(this).hasClass("open")||a(this).find("a")[0].click()},function(){a(this).hasClass("open")&&a(this).find("a")[0].click()}),"undefined"!==typeof n&&n())}a.fn.outerFind=function(a){return this.find(a).addBack(a)};f||("undefined"===typeof window.initTestimonialsPlugin&&0!=a(document.body).find(".testimonials-slider").length&&(window.initTestimonialsPlugin=!0,a(".testimonials-slider").each(function(){var c= a(this),b=c.attr("ID")+"-carousel";c.find(".carousel").attr("id",b);c.find(".carousel-controls a").attr("href","#"+b);c.find(".carousel-indicators li").attr("data-target","#"+b);a(c).find(".carousel-item:first").addClass("active")})),"undefined"===typeof window.initTabsPlugin&&(window.initTabsPlugin=!0,q(document.body)),0!=a(".mbr-slider.carousel").length&&a(".mbr-slider.carousel").each(function(){var c=a(this),b=c.find(".carousel-control"),d=c.find("carousel-indicators li");c.on("slide.bs.carousel", function(){b.bind("click",function(a){a.stopPropagation();a.preventDefault()});d.bind("click",function(a){a.stopPropagation();a.preventDefault()});c.carousel({keyboard:!1})}).on("slid.bs.carousel",function(){b.unbind("click");d.unbind("click");c.carousel({keyboard:!0});1Mobirise Mobirise v4.7.1';document.body.insertBefore(a,document.body.childNodes[0])}}();