!function(t){"use strict";var a,e={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 e.Android()||e.BlackBerry()||e.iOS()||e.Opera()||e.Windows()}},i=function(){!function(){t("#slideshow").length&&t("#slideshow").superslides({play:t("#slideshow").data("speed"),animation:"fade",pagination:!1})}(),function(){t(".text-slider").length&&t(".text-slider").flexslider({animation:"slide",selector:".slide-text li",controlNav:!1,directionNav:!1,slideshowSpeed:t(".text-slider").data("speed"),animationSpeed:700,slideshow:t(".text-slider").data("slideshow"),touch:!0,useCSS:!1})}(),t(function(){t('a[href*=#]:not([href=#],[class*="tab"] a,.wc-tabs a, .activity-content a)').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=t(this.hash);if(a=a.length?a:t("[name="+this.hash.slice(1)+"]"),a.length)return t("html,body").animate({scrollTop:a.offset().top-70},1e3),!1}})})},n=function(){var a="desktop";t(window).on("load resize",function(){var e="desktop";if(matchMedia("only screen and (max-width: 1024px)").matches&&(e="mobile"),e!==a)if(a=e,"mobile"===e){var i=t("#mainnav").attr("id","mainnav-mobi").hide(),n=t("#mainnav-mobi").find("li:has(ul)");t("#header").find(".header-wrap").after(i),n.children("ul").hide(),n.children("a").after(''),t(".btn-menu").removeClass("active")}else{var o=t("#mainnav-mobi").attr("id","mainnav").removeAttr("style");o.find(".submenu").removeAttr("style"),t("#header").find(".col-md-10").append(o),t(".btn-submenu").remove()}}),t(".btn-menu").on("click",function(){t("#mainnav-mobi").slideToggle(300),t(this).toggleClass("active")}),t(document).on("click","#mainnav-mobi li .btn-submenu",function(a){t(this).toggleClass("active").next("ul").slideToggle(300),a.stopImmediatePropagation()})},o=function(){t(".panel-row-style").each(function(){t(this).data("hascolor")&&t(this).find("h1,h2,h3,h4,h5,h6,a,.fa, div, span").css("color","inherit"),t(this).data("hasbg")&&t(this).append('
')})},s=function(){a=e.any(),null==a&&t(".panel-row-style, .slide-item").parallax("50%",.3)},r=function(){t(".orches-animation").each(function(){var a=t(this),e=a.data("animation"),i=a.data("animation-delay"),n=a.data("animation-offset");a.css({"-webkit-animation-delay":i,"-moz-animation-delay":i,"animation-delay":i}),a.waypoint(function(){a.addClass("animated").addClass(e)},{triggerOnce:!0,offset:n})})},l=function(){t(window).scroll(function(){t(this).scrollTop()>800?t(".go-top").addClass("show"):t(".go-top").removeClass("show")}),t(".go-top").on("click",function(){return t("html, body").animate({scrollTop:0},1e3),!1})},d=function(){t().owlCarousel&&t(".roll-testimonials").owlCarousel({navigation:!1,pagination:!0,responsive:!0,items:1,itemsDesktop:[3e3,1],itemsDesktopSmall:[1400,1],itemsTablet:[970,1],itemsTabletSmall:[600,1],itemsMobile:[360,1],touchDrag:!0,mouseDrag:!0,autoHeight:!0,autoPlay:t(".roll-testimonials").data("autoplay")})},c=function(){t(".progress-bar").on("on-appear",function(){t(this).each(function(){var a=t(this).data("percent");t(this).find(".progress-animate").animate({width:a+"%"},3e3),t(this).parent(".roll-progress").find(".perc").addClass("show").animate({width:a+"%"},3e3)})})},u=function(){var a=t(".site-header").offset().top;t(window).on("load scroll",function(){var e=t(this).scrollTop();e>=a?t(".site-header").addClass("fixed"):t(".site-header").removeClass("fixed"),e>=107?t(".site-header").addClass("float-header"):t(".site-header").removeClass("float-header")})},h=function(){t(".roll-counter").on("on-appear",function(){t(this).find(".numb-count").each(function(){var a=parseInt(t(this).attr("data-to")),e=parseInt(t(this).attr("data-speed"));t(this).countTo({to:a,speed:e})})})},m=function(){t('[data-waypoint-active="yes"]').waypoint(function(){t(this).trigger("on-appear")},{offset:"90%",triggerOnce:!0}),t(window).on("load",function(){setTimeout(function(){t.waypoints("refresh")},100)})},f=function(){t().owlCarousel&&t(".panel-grid-cell .roll-team").owlCarousel({navigation:!1,pagination:!0,responsive:!0,items:3,itemsDesktopSmall:[1400,3],itemsTablet:[970,2],itemsTabletSmall:[600,1],itemsMobile:[360,1],touchDrag:!0,mouseDrag:!0,autoHeight:!1,autoPlay:!1})},p=function(){t(document).ready(function(){t("body").fitVids()})},g=function(){var a=t(".project-wrap").data("portfolio-effect");t(".project-item").children(".item-wrap").addClass("orches-animation"),t(".project-wrap").waypoint(function(e){t(".project-item").children(".item-wrap").each(function(e,i){setTimeout(function(){t(i).addClass("animated "+a)},150*e)})},{offset:"75%"})},v=function(){t(".widget_fp_social a").attr("target","_blank")},w=function(){t(".preloader").css("opacity",0),setTimeout(function(){t(".preloader").hide()},600)};t(function(){i(),u(),d(),f(),h(),c(),m(),n(),p(),r(),o(),s(),g(),v(),l(),w()})}(jQuery);