text: var THEMEMASCOT={};!function(T){"use strict";var e=T(document),t=T(document.body),M=T(window),i=T("html"),o=T("body"),l=(T("#wrapper"),T("#header"),T("#footer"),T("section")),n=T(".gallery-isotope"),a=".portfolio-filter a",r=T(".portfolio-filter a:eq(0)");T(".portfolio-slider");THEMEMASCOT.isMobile={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return THEMEMASCOT.isMobile.Android()||THEMEMASCOT.isMobile.BlackBerry()||THEMEMASCOT.isMobile.iOS()||THEMEMASCOT.isMobile.Opera()||THEMEMASCOT.isMobile.Windows()}},THEMEMASCOT.isRTL={check:function(){return"rtl"==T("html").attr("dir")}},THEMEMASCOT.urlParameter={get:function(e){for(var t,i=decodeURIComponent(window.location.search.substring(1)).split("&"),a=0;a<i.length;a++)if((t=i[a].split("="))[0]===e)return void 0===t[1]||t[1]}},THEMEMASCOT.bmiCalculator={magic:function(e){var t="";return e?(e<15&&(t="very severely underweight"),15<=e&&e<16&&(t="severely underweight"),16<=e&&e<18.5&&(t="underweight"),18.5<=e&&e<25&&(t="normal"),25<=e&&e<30&&(t="overweight"),30<=e&&e<35&&(t="moderately obese"),35<=e&&e<=40&&(t="severely obese"),40<e&&(t="very severely obese"),"Your BMI is <span>"+e+"</span><br />You are <span>"+t+"</span>."):"You broke it!"},calculateStandard:function(e){var t=e.find('input[name="bmi_standard_weight_lbs"]').val(),i=e.find('input[name="bmi_standard_height_ft"]').val(),a=e.find('input[name="bmi_standard_height_in"]').val(),n=(e.find('input[name="bmi_standard_age"]').val(),e.find('radio[name="bmi_standard_gender"]').val(),12*parseInt(i,10)+parseInt(a,10)),o=parseFloat(t)/(n*n)*703,l=THEMEMASCOT.bmiCalculator.magic(o);e.find("#bmi_standard_calculator_form_result").html(l).fadeIn("slow")},calculateMetric:function(e){var t=e.find('input[name="bmi_metric_weight_kg"]').val(),i=e.find('input[name="bmi_metric_height_cm"]').val(),a=(e.find('input[name="bmi_standard_age"]').val(),e.find('radio[name="bmi_standard_gender"]').val(),parseFloat(t)),n=.01*parseFloat(i),o=a/(n*n),l=THEMEMASCOT.bmiCalculator.magic(o);e.find("#bmi_metric_calculator_form_result").html(l).fadeIn("slow")},init:function(){var t=T("#form_bmi_standard_calculator");t.on("submit",function(e){return e.preventDefault(),THEMEMASCOT.bmiCalculator.calculateStandard(t),!1});var i=T("#form_bmi_metric_calculator");i.on("submit",function(e){return e.preventDefault(),THEMEMASCOT.bmiCalculator.calculateMetric(i),!1})}},THEMEMASCOT.initialize={init:function(){THEMEMASCOT.bmiCalculator.init(),THEMEMASCOT.initialize.TM_fixedFooter(),THEMEMASCOT.initialize.TM_datePicker(),THEMEMASCOT.initialize.TM_ddslick(),THEMEMASCOT.initialize.TM_sliderRange(),THEMEMASCOT.initialize.TM_loadBSParentModal(),THEMEMASCOT.initialize.TM_demoSwitcher(),THEMEMASCOT.initialize.TM_platformDetect(),THEMEMASCOT.initialize.TM_onLoadPopupPromoBox(),THEMEMASCOT.initialize.TM_customDataAttributes(),THEMEMASCOT.initialize.TM_parallaxBgInit(),THEMEMASCOT.initialize.TM_resizeFullscreen(),THEMEMASCOT.initialize.TM_prettyPhoto_lightbox(),THEMEMASCOT.initialize.TM_nivolightbox(),THEMEMASCOT.initialize.TM_fitVids(),THEMEMASCOT.initialize.TM_YTPlayer(),THEMEMASCOT.initialize.TM_equalHeightDivs()},TM_fixedFooter:function(){var e=T(".fixed-footer");0<e.length&&T("body.has-fixed-footer .main-content").css("margin-bottom",e.height())},TM_datePicker:function(){T(".date-picker").datepicker(),T(".time-picker").timepicker(),T(".datetime-picker").datetimepicker()},TM_ddslick:function(){var e=T("select.ddslick");0<e.length&&e.each(function(){var t=T(this).attr("name"),i=T(this).attr("id");T("#"+i).ddslick({width:"100%",imagePosition:"left",onSelected:function(e){T("#"+i+" .dd-selected-value").prop("name",t)}})})},TM_sliderRange:function(){var e=T(".slider-range");0<e.length&&e.each(function(){var i=T(this).attr("id"),e=T(this).data("target");T("#"+e).slider({range:"max",min:2001,max:2016,value:2010,slide:function(e,t){T("#"+i).val(t.value)}}),T("#"+i).val(T("#"+e).slider("value"))})},TM_loadBSParentModal:function(){T.ajax({url:"ajax-load/bootstrap-parent-modal.html",success:function(e){o.append(e)},dataType:"html"})},TM_demoSwitcher:function(){T("#style-switcher").length||T.ajax({url:"color-switcher/style-switcher.html",success:function(e){o.append(e)},dataType:"html"})},TM_preLoaderClickDisable:function(){var t=T("#preloader");t.children("#disable-preloader").on("click",function(e){return t.fadeOut(),!1})},TM_preLoaderOnLoad:function(){var e=T("#preloader");0<e.length&&e.delay(200).fadeOut("slow")},TM_platformDetect:function(){THEMEMASCOT.isMobile.any()?i.addClass("mobile"):i.addClass("no-mobile")},TM_onLoadPopupPromoBox:function(){var e=T(".on-pageload-popup-promobox");0<e.length&&e.each(function(){var e=T(this),t=e.data("target"),i=e.data("timeout"),a=(a=e.data("delay"))?Number(a)+2500:2500;if(e.hasClass("cookie-enabled")){var n=T.cookie(t);if(n&&"enabled"==n)return!0}else T.removeCookie(t);setTimeout(function(){T.magnificPopup.open({items:{src:t},type:"inline",mainClass:"mfp-no-margins mfp-fade",closeBtnInside:!1,fixedContentPos:!0,removalDelay:500,callbacks:{afterClose:function(){e.hasClass("cookie-enabled")&&T.cookie(t,"enabled")}}},0)},Number(a));""!==i&&setTimeout(function(){T.magnificPopup.close()},Number(a)+Number(i))})},TM_hashForwarding:function(){var e;window.location.hash&&(e=T(window.location.hash).offset().top,T("html, body").animate({scrollTop:e}))},TM_customDataAttributes:function(){T("[data-bg-color]").each(function(){T(this).css("cssText","background: "+T(this).data("bg-color")+" !important;")}),T("[data-bg-img]").each(function(){T(this).css("background-image","url("+T(this).data("bg-img")+")")}),T("[data-text-color]").each(function(){T(this).css("color",T(this).data("text-color"))}),T("[data-font-size]").each(function(){T(this).css("font-size",T(this).data("font-size"))}),T("[data-height]").each(function(){T(this).css("height",T(this).data("height"))}),T("[data-width]").each(function(){T(this).css("width",T(this).data("width"))}),T("[data-border]").each(function(){T(this).css("border",T(this).data("border"))}),T("[data-margin-top]").each(function(){T(this).css("margin-top",T(this).data("margin-top"))}),T("[data-margin-right]").each(function(){T(this).css("margin-right",T(this).data("margin-right"))}),T("[data-margin-bottom]").each(function(){T(this).css("margin-bottom",T(this).data("margin-bottom"))}),T("[data-margin-left]").each(function(){T(this).css("margin-left",T(this).data("margin-left"))})},TM_parallaxBgInit:function(){!THEMEMASCOT.isMobile.any()&&800<=M.width()?T(".parallax").each(function(){var e=void 0===T(this).data("parallax-ratio")?"0.5":T(this).data("parallax-ratio");T(this).parallax("50%",e)}):T(".parallax").addClass("mobile-parallax")},TM_resizeFullscreen:function(){var e=M.height();T(".fullscreen, .revslider-fullscreen").height(e)},TM_magnificPopup_lightbox:function(){var e=T(".image-popup-lightbox");0<e.length&&e.magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,mainClass:"mfp-no-margins mfp-fade",image:{verticalFit:!0}});var t=T(".image-popup-vertical-fit");0<t.length&&t.magnificPopup({type:"image",closeOnContentClick:!0,mainClass:"mfp-img-mobile",image:{verticalFit:!0}});var i=T(".image-popup-fit-width");0<i.length&&i.magnificPopup({type:"image",closeOnContentClick:!0,image:{verticalFit:!1}});var a=T(".image-popup-no-margins");0<a.length&&a.magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,mainClass:"mfp-no-margins mfp-with-zoom",image:{verticalFit:!0},zoom:{enabled:!0,duration:300}});var n=T(".popup-gallery");0<n.length&&n.magnificPopup({delegate:"a",type:"image",tLoading:"Loading image #%curr%...",mainClass:"mfp-img-mobile",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(e){return e.el.attr("title")+"<small>by Marsel Van Oosten</small>"}}});var o=T(".zoom-gallery");0<o.length&&o.magnificPopup({delegate:"a",type:"image",closeOnContentClick:!1,closeBtnInside:!1,mainClass:"mfp-with-zoom mfp-img-mobile",image:{verticalFit:!0,titleSrc:function(e){return e.el.attr("title")+' &middot; <a class="image-source-link" href="'+e.el.attr("data-source")+'" target="_blank">image source</a>'}},gallery:{enabled:!0},zoom:{enabled:!0,duration:300,opener:function(e){return e.find("img")}}});var l=T(".popup-youtube, .popup-vimeo, .popup-gmaps");0<l.length&&l.magnificPopup({disableOn:700,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1});var r=T(".popup-with-zoom-anim");0<r.length&&r.magnificPopup({type:"inline",fixedContentPos:!1,fixedBgPos:!0,overflowY:"auto",closeBtnInside:!0,preloader:!1,midClick:!0,removalDelay:300,mainClass:"my-mfp-zoom-in"});var s=T(".popup-with-move-anim");0<s.length&&s.magnificPopup({type:"inline",fixedContentPos:!1,fixedBgPos:!0,overflowY:"auto",closeBtnInside:!0,preloader:!1,midClick:!0,removalDelay:300,mainClass:"my-mfp-slide-bottom"});var d=T(".ajaxload-popup");0<d.length&&d.magnificPopup({type:"ajax",alignTop:!0,overflowY:"scroll",callbacks:{parseAjax:function(e){THEMEMASCOT.initialize.TM_datePicker(),THEMEMASCOT.initialize.TM_sliderRange(),THEMEMASCOT.initialize.TM_ddslick()}}});var c=T(".form-ajax-load");0<c.length&&c.magnificPopup({type:"ajax"});var u=T(".popup-with-form");0<u.length&&u.magnificPopup({type:"inline",preloader:!1,focus:"#name",mainClass:"mfp-no-margins mfp-fade",closeBtnInside:!1,fixedContentPos:!0,callbacks:{beforeOpen:function(){M.width()<700?this.st.focus=!1:this.st.focus="#name"}}});var h=T('[data-lightbox="ajax"]');0<h.length&&h.magnificPopup({type:"ajax",closeBtnInside:!1,callbacks:{ajaxContentAdded:function(e){},open:function(){},close:function(){}}});var m=T('[data-lightbox="image"]');0<m.length&&m.magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,mainClass:"mfp-no-margins mfp-with-zoom",image:{verticalFit:!0}});var p=T('[data-lightbox="gallery"]');0<p.length&&p.each(function(){T(this).magnificPopup({delegate:'a[data-lightbox="gallery-item"]',type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,mainClass:"mfp-no-margins mfp-with-zoom",image:{verticalFit:!0},gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},zoom:{enabled:!0,duration:300,opener:function(e){return e.find("img")}}})});var f=T('[data-lightbox="iframe"]');0<f.length&&f.magnificPopup({disableOn:600,type:"iframe",removalDelay:160,preloader:!1,fixedContentPos:!1});var g=T('[data-lightbox="inline"]');0<g.length&&g.magnificPopup({type:"inline",mainClass:"mfp-no-margins mfp-zoom-in",closeBtnInside:!1,fixedContentPos:!0})},TM_prettyPhoto_lightbox:function(){var e=T("a[data-rel^='prettyPhoto']");0<e.length&&e.prettyPhoto({hook:"data-rel",animation_speed:"normal",theme:"light_square",slideshow:3e3,autoplay_slideshow:!1,social_tools:!1})},TM_nivolightbox:function(){var e=T("a[data-lightbox-gallery]");0<e.length&&e.nivoLightbox({effect:"fadeScale",afterShowLightbox:function(){var e,t=T(".nivo-lightbox-content > iframe");0<t.length&&(e=t.attr("src"),t.attr("src",e+"?autoplay=1"))}})},TM_wow:function(){new WOW({mobile:!1}).init()},TM_fitVids:function(){o.fitVids()},TM_YTPlayer:function(){var e=T(".player");0<e.length&&e.mb_YTPlayer()},TM_equalHeightDivs:function(){var e=T(".equal-height");0<e.length&&(e.children("div").css("min-height","auto"),e.equalHeights());var t=T(".equal-height-inner");0<t.length&&(t.children("div").css("min-height","auto"),t.children("div").children("div").css("min-height","auto"),t.equalHeights(),t.children("div").each(function(){T(this).children("div").css("min-height",T(this).css("min-height"))}));var i=T(".equal-height-pricing-table");0<i.length&&(i.children("div").css("min-height","auto"),i.children("div").children("div").css("min-height","auto"),i.equalHeights(),i.children("div").each(function(){T(this).children("div").css("min-height",T(this).css("min-height"))}))}},THEMEMASCOT.header={init:function(){setTimeout(function(){THEMEMASCOT.header.TM_fullscreenMenu(),THEMEMASCOT.header.TM_sidePanelReveal(),THEMEMASCOT.header.TM_scroolToTopOnClick(),THEMEMASCOT.header.TM_scrollToFixed(),THEMEMASCOT.header.TM_topnavAnimate(),THEMEMASCOT.header.TM_scrolltoTarget(),THEMEMASCOT.header.TM_menuzord(),THEMEMASCOT.header.TM_navLocalScorll(),THEMEMASCOT.header.TM_menuCollapseOnClick(),THEMEMASCOT.header.TM_homeParallaxFadeEffect(),THEMEMASCOT.header.TM_topsearch_toggle()},0)},TM_fullscreenMenu:function(){var e=T(".menu-full-page .fullpage-nav-toggle");0<e.length&&e.menufullpage()},TM_sidePanelReveal:function(){T(".side-panel-trigger").on("click",function(e){return o.toggleClass("side-panel-open"),THEMEMASCOT.isMobile.any()&&o.toggleClass("overflow-hidden"),!1}),T(".has-side-panel .body-overlay").on("click",function(e){return o.toggleClass("side-panel-open"),!1}),T(".side-panel-nav .nav .tree-toggler").on("click",function(e){T(this).parent().children("ul.tree").toggle(300)})},TM_scroolToTop:function(){600<M.scrollTop()?T(".scrollToTop").fadeIn():T(".scrollToTop").fadeOut()},TM_scroolToTopOnClick:function(){t.on("click",".scrollToTop",function(e){return T("html, body").animate({scrollTop:0},800),!1})},TM_menuCollapseOnClick:function(){e.on("click",".onepage-nav a",function(e){T(".showhide").trigger("click")})},TM_activateMenuItemOnReach:function(){var i=T(".onepage-nav"),a=M.scrollTop()+2,n=i.outerHeight();l.each(function(){var e=T(this).offset().top-n-80,t=e+T(this).outerHeight();e<=a&&a<=t&&(i.find("a").parent().removeClass("current").removeClass("active"),l.removeClass("current").removeClass("active"),i.find('a[href="#'+T(this).attr("id")+'"]').parent().addClass("current").addClass("active"))})},TM_scrolltoTarget:function(){T(".smooth-scroll-to-target, .fullscreen-onepage-nav a").on("click",function(e){e.preventDefault();var t=T(this),i=T(".header .header-nav"),a=0,a=i[0]?i.outerHeight(!0):0;o.hasClass("vertical-nav")&&(a=0);var n=T(t.attr("href")).offset().top-a;T("html, body").stop().animate({scrollTop:n},1500,"easeInOutExpo")})},TM_navLocalScorll:function(){var e=T("#menuzord .menuzord-menu, #menuzord-right .menuzord-menu");0<e.length&&e.localScroll({target:"body",duration:800,offset:-60,easing:"easeInOutExpo"});var t=T("#menuzord-side-panel .menuzord-menu, #menuzord-verticalnav .menuzord-menu, #fullpage-nav");0<t.length&&t.localScroll({target:"body",duration:800,offset:0,easing:"easeInOutExpo"})},TM_scrollToFixed:function(){T(".navbar-scrolltofixed").scrollToFixed(),T(".scrolltofixed").scrollToFixed({marginTop:T(".header .header-nav").outerHeight(!0)+10,limit:function(){return T("#footer").offset().top-T(this).outerHeight(!0)}}),T("#sidebar").scrollToFixed({marginTop:T(".header .header-nav").outerHeight()+20,limit:function(){return T("#footer").offset().top-T("#sidebar").outerHeight()-20}})},TM_menuzord:function(){var e=T("#menuzord");0<e.length&&e.menuzord({align:"left",effect:"slide",animation:"none",indicatorFirstLevel:"<i class='fa fa-angle-down'></i>",indicatorSecondLevel:"<i class='fa fa-angle-right'></i>"});var t=T("#menuzord-right");0<t.length&&t.menuzord({align:"right",effect:"slide",animation:"none",indicatorFirstLevel:"<i class='fa fa-angle-down'></i>",indicatorSecondLevel:"<i class='fa fa-angle-right'></i>"});var i=T("#menuzord-side-panel");0<i.length&&i.menuzord({align:"right",effect:"slide",animation:"none",indicatorFirstLevel:"",indicatorSecondLevel:"<i class='fa fa-angle-right'></i>"});var a=T("#menuzord-verticalnav");0<a.length&&a.menuzord({align:"right",effect:"slide",animation:"none",indicatorFirstLevel:"<i class='fa fa-angle-down'></i>",indicatorSecondLevel:"<i class='fa fa-angle-right'></i>"})},TM_topnavAnimate:function(){50<M.scrollTop()?T(".navbar-sticky-animated").removeClass("animated-active"):T(".navbar-sticky-animated").addClass("animated-active"),50<M.scrollTop()?T(".navbar-sticky-animated .header-nav-wrapper .container, .navbar-sticky-animated .header-nav-wrapper .container-fluid").removeClass("add-padding"):T(".navbar-sticky-animated .header-nav-wrapper .container, .navbar-sticky-animated .header-nav-wrapper .container-fluid").addClass("add-padding")},TM_homeParallaxFadeEffect:function(){var e;1200<=M.width()&&(e=M.scrollTop(),T(".content-fade-effect .home-content .home-text").css("padding-top",.061*e+"%").css("opacity",1-.0012*e))},TM_topsearch_toggle:function(){t.on("click","#top-search-toggle",function(e){return e.preventDefault(),T(".search-form-wrapper.toggle").toggleClass("active"),!1})}},THEMEMASCOT.widget={init:function(){setTimeout(function(){THEMEMASCOT.widget.TM_shopClickEvents(),THEMEMASCOT.widget.TM_fcCalender(),THEMEMASCOT.widget.TM_verticalTimeline(),THEMEMASCOT.widget.TM_verticalMasonryTimeline(),THEMEMASCOT.widget.TM_masonryIsotop(),THEMEMASCOT.widget.TM_pieChart(),THEMEMASCOT.widget.TM_progressBar(),THEMEMASCOT.widget.TM_funfact(),THEMEMASCOT.widget.TM_instagramFeed(),THEMEMASCOT.widget.TM_jflickrfeed(),THEMEMASCOT.widget.TM_accordion_toggles(),THEMEMASCOT.widget.TM_tooltip()},0)},TM_shopClickEvents:function(){t.on("click",".quantity .plus",function(e){var t=parseInt(T(this).parent().children(".qty").val(),10);return isNaN(t)||T(this).parent().children(".qty").val(t+1),!1}),t.on("click",".quantity .minus",function(e){var t=parseInt(T(this).parent().children(".qty").val(),10);return!isNaN(t)&&0<t&&T(this).parent().children(".qty").val(t-1),!1}),t.on("click","#checkbox-ship-to-different-address",function(e){T("#checkout-shipping-address").toggle(this.checked)})},TM_fcCalender:function(){var e;"undefined"==typeof calendarEvents||0<(e=T("#full-event-calendar")).length&&e.fullCalendar({header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay"},defaultDate:"2018-01-12",selectable:!0,selectHelper:!0,select:function(e,t){var i,a=prompt("Event Title:");a&&(i={title:a,start:e,end:t},T("#calendar").fullCalendar("renderEvent",i,!0)),T("#calendar").fullCalendar("unselect")},editable:!0,eventLimit:!0,events:calendarEvents})},TM_verticalTimeline:function(){var e,t=T(".cd-timeline-block");function i(e,t){e.each(function(){T(this).offset().top<=M.scrollTop()+M.height()*t&&T(this).find(".cd-timeline-img").hasClass("is-hidden")&&T(this).find(".cd-timeline-img, .cd-timeline-content").removeClass("is-hidden").addClass("bounce-in")})}0<t.length&&(e=.8,t.each(function(){T(this).offset().top>M.scrollTop()+M.height()*e&&T(this).find(".cd-timeline-img, .cd-timeline-content").addClass("is-hidden")}),M.on("scroll",function(){window.requestAnimationFrame?window.requestAnimationFrame(function(){i(t,.8)}):setTimeout(function(){i(t,.8)},100)}))},TM_verticalMasonryTimeline:function(){var e=T(".vertical-masonry-timeline");function t(){e.children(".each-masonry-item").each(function(e,t){var i=T(this),a=T(this).prev(),n=parseInt(i.css("top"),10)-parseInt(a.css("top"),10),o=0;n&&n<=87&&(o=87-n,i.find(".timeline-post-format").animate({top:o},300)),0===T(this).position().left?(T(this).removeClass("item-right"),T(this).addClass("item-left")):(T(this).removeClass("item-left"),T(this).addClass("item-right"))})}0<e.length&&e.isotope({itemSelector:".each-masonry-item",sortBy:"original-order",layoutMode:"masonry",resizable:!1}),0<e.length&&(t(),M.resize(function(){t()}))},TM_masonryIsotop:function(){var i=n.hasClass("masonry")?"masonry":"fitRows";0<n.length&&n.imagesLoaded(function(){n.isotope({itemSelector:".gallery-item",layoutMode:i,filter:"*"})}),t.on("click",a,function(e){T(a).removeClass("active"),T(this).addClass("active");var t=T(this).data("filter");return n.isotope({itemSelector:".gallery-item",layoutMode:i,filter:t}),!1}),THEMEMASCOT.slider.TM_flexslider()},TM_portfolioFlexSliderGalleryPopUpInit:function(){var e=n.find(".slides");0<e.length&&e.each(function(){for(var e=T(this).find("li > a"),t=[],i=0;i<e.length;i++)t.push({src:T(e[i]).attr("href"),title:T(e[i]).attr("title")});T(this).parent().parent().parent().find(".icons-holder").magnificPopup({items:t,type:"image",gallery:{enabled:!0}})})},TM_isotopeGridRearrange:function(){var e=n.hasClass("masonry")?"masonry":"fitRows";n.isotope({itemSelector:".gallery-item",layoutMode:e})},TM_isotopeGridShuffle:function(){n.isotope("shuffle")},TM_countDownTimer:function(){var e=T("#clock-count-down"),t=e.data("endingdate");0<e.length&&e.countdown(t,function(e){T(this).html(e.strftime('<ul class="countdown-timer"><li>%D <span>Days</span></li><li>%H <span>Hours</span></li><li>%M <span>Minutes</span></li><li>%S <span>Seconds</span></li></ul>'))})},TM_pieChart:function(){var e=T(".piechart");0<e.length&&(e.appear(),t.on("appear",".piechart",function(){var e,t,i,a,n=T(this);n.hasClass("appeared")||(e=n.data("barcolor"),t=n.data("trackcolor"),i=n.data("linewidth"),a=n.data("boxwidth"),n.css("width",a),n.easyPieChart({animate:3e3,barColor:e,trackColor:t,easing:"easeOutBounce",lineWidth:i,size:a,lineCap:"square",scaleColor:!1,onStep:function(e,t,i){T(this.el).find("span").text(Math.round(i))}}),n.addClass("appeared"))}))},TM_progressBar:function(){var e=T(".progress-bar");0<e.length&&(e.appear(),t.on("appear",".progress-bar",function(){var e,t,i,a=T(this);a.hasClass("appeared")||(e=a.data("percent"),t=void 0===a.data("unit")?"%":a.data("unit"),i=a.data("barcolor"),a.append('<span class="percent">'+e+t+"</span>").css("background-color",i).css("width",e+"%").addClass("appeared"))}))},TM_funfact:function(){var e=T(".animate-number");0<e.length&&(e.appear(),t.on("appear",".animate-number",function(){e.each(function(){var e=T(this);e.hasClass("appeared")||e.animateNumbers(e.attr("data-value"),!0,parseInt(e.attr("data-animation-duration"),10)).addClass("appeared")})}))},TM_instagramFeed:function(){var e=T(".instagram-feed");0<e.length&&e.each(function(){var e=T(this);new Instafeed({target:e.attr("id"),get:"user",userId:e.data("userid"),accessToken:e.data("accesstoken"),resolution:e.data("resolution"),limit:e.data("limit"),template:'<div class="item"><figure><img src="{{image}}" /><a href="{{link}}" class="link-out" target="_blank"><i class="fa fa-link"></i></a></figure></div>',after:function(){}}).run()});var t=T(".instagram-feed-carousel");0<t.length&&t.each(function(){var e=T(this);new Instafeed({target:e.attr("id"),get:"user",userId:e.data("userid"),accessToken:e.data("accesstoken"),resolution:e.data("resolution"),limit:e.data("limit"),template:'<div class="item"><figure><img src="{{image}}" /><a href="{{link}}" class="link-out" target="_blank"><i class="fa fa-link"></i></a></figure></div>',after:function(){e.owlCarousel({rtl:THEMEMASCOT.isRTL.check(),autoplay:!0,autoplayTimeout:4e3,loop:!0,margin:15,dots:!0,nav:!1,responsive:{0:{items:2},768:{items:4},1e3:{items:5}}})}}).run()})},TM_jflickrfeed:function(){var e=T(".flickr-widget .flickr-feed, .jflickrfeed");0<e.length&&e.each(function(){var e=T(this);e.jflickrfeed({limit:9,qstrings:{id:e.data("userid")},itemTemplate:'<a href="{{link}}" title="{{title}}" target="_blank"><img src="{{image_m}}" alt="{{title}}">  </a>'})})},TM_accordion_toggles:function(){var e=T(".panel-group .collapse");e.on("show.bs.collapse",function(e){T(this).closest(".panel-group").find("[href='#"+T(this).attr("id")+"']").addClass("active")}),e.on("hide.bs.collapse",function(e){T(this).closest(".panel-group").find("[href='#"+T(this).attr("id")+"']").removeClass("active")})},TM_tooltip:function(){var e=T('[data-toggle="tooltip"]');0<e.length&&e.tooltip()},TM_twittie:function(){var e=T(".twitter-feed"),t=T(".twitter-feed-carousel");0<e.length&&e.twittie({username:e.data("username"),dateFormat:"%b. %d, %Y",template:'{{tweet}} <div class="date">{{date}}</div>',count:void 0===e.data("count")?4:e.data("count"),loadingText:"Loading!"}),0<t.length&&t.twittie({username:t.data("username"),dateFormat:"%b. %d, %Y",template:'{{tweet}} <div class="date">{{date}}</div>',count:void 0===t.data("count")?4:t.data("count"),loadingText:"Loading!"},function(){t.find("ul").owlCarousel({rtl:THEMEMASCOT.isRTL.check(),autoplay:!0,autoplayTimeout:2e3,loop:!0,items:1,dots:!0,nav:!1})})}},THEMEMASCOT.slider={init:function(){setTimeout(function(){THEMEMASCOT.slider.TM_typedAnimation(),THEMEMASCOT.slider.TM_flexslider(),THEMEMASCOT.slider.TM_owlCarousel(),THEMEMASCOT.slider.TM_maximageSlider(),THEMEMASCOT.slider.TM_bxslider()},0)},TM_typedAnimation:function(){var e=T(".typed-text-carousel");0<e.length&&e.each(function(){var e=T(this).find("span:first-child").text(),t=T(this).find("span:nth-child(2)").text(),i=T(this).find("span:nth-child(3)").text(),a="";T(this);t.trim()&&i.trim()||(a=[e]),!i.trim()&&t.length&&(a=[e,t]),e.length&&t.length&&i.length&&(a=[e,t,i]);var n=T(this).data("speed"),o=T(this).data("back_delay"),l=T(this).data("loop");T(this).typed({strings:a,typeSpeed:n,backSpeed:0,backDelay:o,cursorChar:"|",loop:l,contentType:"text",loopCount:!1})})},TM_flexslider:function(){var e=T(".flexslider-wrapper").find(".flexslider");0<e.length&&(THEMEMASCOT.widget.TM_portfolioFlexSliderGalleryPopUpInit(),e.each(function(){var e=T(this),t=void 0===e.parent().data("direction")?"horizontal":e.parent().data("direction"),i=void 0===e.parent().data("controlnav")||e.parent().data("controlnav"),a=void 0===e.parent().data("directionnav")||e.parent().data("directionnav");e.flexslider({rtl:THEMEMASCOT.isRTL.check(),selector:".slides > li",animation:"slide",easing:"swing",direction:t,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,pauseOnHover:!1,controlNav:i,directionNav:a,start:function(e){imagesLoaded(n,function(){setTimeout(function(){r.trigger("click")},500)}),THEMEMASCOT.initialize.TM_magnificPopup_lightbox(),THEMEMASCOT.initialize.TM_prettyPhoto_lightbox(),THEMEMASCOT.initialize.TM_nivolightbox()},after:function(){}})}))},TM_owlCarousel:function(){var e=T(".owl-carousel-1col, .text-carousel, .image-carousel, .fullwidth-carousel");0<e.length&&e.each(function(){var e=void 0!==T(this).data("dots")&&T(this).data("dots"),t=void 0!==T(this).data("nav")&&T(this).data("nav"),i=void 0===T(this).data("duration")?4e3:T(this).data("duration");T(this).owlCarousel({rtl:THEMEMASCOT.isRTL.check(),autoplay:!0,autoplayTimeout:i,loop:!0,items:1,dots:e,nav:t,navText:['<i class="pe-7s-angle-left"></i>','<i class="pe-7s-angle-right"></i>']})});var t=T(".owl-carousel-2col");0<t.length&&t.each(function(){var e=void 0!==T(this).data("dots")&&T(this).data("dots"),t=void 0!==T(this).data("nav")&&T(this).data("nav"),i=void 0===T(this).data("duration")?4e3:T(this).data("duration");T(this).owlCarousel({rtl:THEMEMASCOT.isRTL.check(),autoplay:!0,autoplayTimeout:i,loop:!0,items:2,margin:15,dots:e,nav:t,navText:['<i class="pe-7s-angle-left"></i>','<i class="pe-7s-angle-right"></i>'],responsive:{0:{items:1,center:!1},480:{items:1,center:!1},600:{items:1,center:!1},750:{items:2,center:!1},960:{items:2},1170:{items:2},1300:{items:2}}})});var i=T(".owl-carousel-3col");0<i.length&&i.each(function(){var e=void 0!==T(this).data("dots")&&T(this).data("dots"),t=void 0!==T(this).data("nav")&&T(this).data("nav"),i=void 0===T(this).data("duration")?4e3:T(this).data("duration");T(this).owlCarousel({rtl:THEMEMASCOT.isRTL.check(),autoplay:!0,autoplayTimeout:i,loop:!0,items:3,margin:15,dots:e,nav:t,navText:['<i class="pe-7s-angle-left"></i>','<i class="pe-7s-angle-right"></i>'],responsive:{0:{items:1,center:!1},480:{items:1,center:!1},600:{items:1,center:!1},750:{items:2,center:!1},960:{items:2},1170:{items:3},1300:{items:3}}})});var a=T(".owl-carousel-4col");0<a.length&&a.each(function(){var e=void 0!==T(this).data("dots")&&T(this).data("dots"),t=void 0!==T(this).data("nav")&&T(this).data("nav"),i=void 0===T(this).data("duration")?4e3:T(this).data("duration");T(this).owlCarousel({rtl:THEMEMASCOT.isRTL.check(),autoplay:!0,autoplayTimeout:i,loop:!0,items:4,margin:15,dots:e,nav:t,navText:['<i class="pe-7s-angle-left"></i>','<i class="pe-7s-angle-right"></i>'],responsive:{0:{items:1,center:!0},480:{items:1,center:!1},600:{items:3,center:!1},750:{items:3,center:!1},960:{items:3},1170:{items:4},1300:{items:4}}})});var n=T(".owl-carousel-5col");0<n.length&&n.each(function(){var e=void 0!==T(this).data("dots")&&T(this).data("dots"),t=void 0!==T(this).data("nav")&&T(this).data("nav"),i=void 0===T(this).data("duration")?4e3:T(this).data("duration");T(this).owlCarousel({rtl:THEMEMASCOT.isRTL.check(),autoplay:!0,autoplayTimeout:i,loop:!0,items:5,margin:15,dots:e,nav:t,navText:['<i class="pe-7s-angle-left"></i>','<i class="pe-7s-angle-right"></i>'],responsive:{0:{items:1,center:!1},480:{items:1,center:!1},600:{items:2,center:!1},750:{items:3,center:!1},960:{items:4},1170:{items:5},1300:{items:5}}})});var o=T(".owl-carousel-6col");0<o.length&&o.each(function(){var e=void 0!==T(this).data("dots")&&T(this).data("dots"),t=void 0!==T(this).data("nav")&&T(this).data("nav"),i=void 0===T(this).data("duration")?4e3:T(this).data("duration");T(this).owlCarousel({rtl:THEMEMASCOT.isRTL.check(),autoplay:!0,autoplayTimeout:i,loop:!0,items:6,margin:15,dots:e,nav:t,navText:['<i class="pe-7s-angle-left"></i>','<i class="pe-7s-angle-right"></i>'],responsive:{0:{items:1,center:!1},480:{items:1,center:!1},600:{items:2,center:!1},750:{items:3,center:!1},960:{items:4},1170:{items:6},1300:{items:6}}})});var l=T(".owl-carousel-7col");0<l.length&&l.each(function(){var e=void 0!==T(this).data("dots")&&T(this).data("dots"),t=void 0!==T(this).data("nav")&&T(this).data("nav"),i=void 0===T(this).data("duration")?4e3:T(this).data("duration");T(this).owlCarousel({rtl:THEMEMASCOT.isRTL.check(),autoplay:!0,autoplayTimeout:i,loop:!0,items:7,margin:15,dots:e,nav:t,navText:['<i class="pe-7s-angle-left"></i>','<i class="pe-7s-angle-right"></i>'],responsive:{0:{items:1,center:!1},600:{items:2,center:!1},750:{items:3,center:!1},960:{items:4},1170:{items:7},1300:{items:7}}})});var r=T(".owl-carousel-8col");0<r.length&&r.each(function(){var e=void 0!==T(this).data("dots")&&T(this).data("dots"),t=void 0!==T(this).data("nav")&&T(this).data("nav"),i=void 0===T(this).data("duration")?4e3:T(this).data("duration");T(this).owlCarousel({rtl:THEMEMASCOT.isRTL.check(),autoplay:!0,autoplayTimeout:i,loop:!0,items:8,margin:15,dots:e,nav:t,navText:['<i class="pe-7s-angle-left"></i>','<i class="pe-7s-angle-right"></i>'],responsive:{0:{items:1,center:!1},600:{items:2,center:!1},750:{items:3,center:!1},960:{items:5},1170:{items:8},1300:{items:8}}})})},TM_bxslider:function(){var e=T(".bxslider");0<e.length&&e.bxSlider({mode:"vertical",minSlides:void 0===e.data("minslides")?2:e.data("minslides"),slideMargin:20,pager:!1,prevText:'<i class="fa fa-angle-left"></i>',nextText:'<i class="fa fa-angle-right"></i>'})},TM_maximageSlider:function(){var e=T("#maximage");0<e.length&&e.maximage({cycleOptions:{fx:"fade",speed:1500,prev:".img-prev",next:".img-next"}})}},THEMEMASCOT.documentOnReady={init:function(){THEMEMASCOT.initialize.init(),THEMEMASCOT.header.init(),THEMEMASCOT.slider.init(),THEMEMASCOT.widget.init(),THEMEMASCOT.windowOnscroll.init()}},THEMEMASCOT.windowOnLoad={init:function(){setTimeout(function(){THEMEMASCOT.initialize.TM_wow(),THEMEMASCOT.widget.TM_twittie(),THEMEMASCOT.initialize.TM_magnificPopup_lightbox(),THEMEMASCOT.initialize.TM_preLoaderOnLoad(),THEMEMASCOT.initialize.TM_hashForwarding(),THEMEMASCOT.initialize.TM_parallaxBgInit()},0);M.trigger("scroll"),M.trigger("resize")}},THEMEMASCOT.windowOnscroll={init:function(){M.on("scroll",function(){THEMEMASCOT.header.TM_scroolToTop(),THEMEMASCOT.header.TM_activateMenuItemOnReach(),THEMEMASCOT.header.TM_topnavAnimate()})}},THEMEMASCOT.windowOnResize={init:function(){setTimeout(function(){THEMEMASCOT.initialize.TM_equalHeightDivs(),THEMEMASCOT.initialize.TM_resizeFullscreen()},400)}},e.ready(THEMEMASCOT.documentOnReady.init),M.on("load",THEMEMASCOT.windowOnLoad.init),M.on("resize",THEMEMASCOT.windowOnResize.init),THEMEMASCOT.initialize.TM_preLoaderClickDisable()}(jQuery);