!function(a){"use strict";var b,d,c={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 c.Android()||c.BlackBerry()||c.iOS()||c.Opera()||c.Windows()}},e={iOS:function(){return navigator.userAgent.match(/iPad/i)},any:function(){return e.iOS()}},f=function(){a(".slides-container .slide-item").addClass("sliderFix"),setTimeout(function(){a(".slides-container .slide-item").removeClass("sliderFix")},200)},g=function(){!function(){a("#slideshow").length&&a("#slideshow").superslides({play:a("#slideshow").data("speed"),animation:"fade",pagination:!1})}(),function(){a(".text-slider").length&&a(".text-slider").flexslider({animation:"slide",selector:".slide-text li",controlNav:!1,directionNav:!1,slideshowSpeed:a(".text-slider").data("speed"),animationSpeed:700,slideshow:a(".text-slider").data("slideshow"),touch:!0,useCSS:!1})}(),a(function(){a('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 b=a(this.hash);if(b=b.length?b:a("[name="+this.hash.slice(1)+"]"),b.length)return a("html,body").animate({scrollTop:b.offset().top-70},1e3),a("#mainnav-mobi").length&&a("#mainnav-mobi").hide(),!1}})})},h=function(){var b="desktop";a(window).on("load resize",function(){var c="desktop";if(matchMedia("only screen and (max-width: 1024px)").matches&&(c="mobile"),c!==b)if(b=c,"mobile"===c){var d=a("#mainnav").attr("id","mainnav-mobi").hide(),e=a("#mainnav-mobi").find("li:has(ul)");a("#header").find(".header-wrap").after(d),e.children("ul").hide(),e.children("a").after(''),a(".btn-menu").removeClass("active")}else{var f=a("#mainnav-mobi").attr("id","mainnav").removeAttr("style");f.find(".submenu").removeAttr("style"),a("#header").find(".col-md-10").append(f),a(".btn-submenu").remove()}}),a(".btn-menu").on("click",function(){a("#mainnav-mobi").slideToggle(300),a(this).toggleClass("active")}),a(document).on("click","#mainnav-mobi li .btn-submenu",function(b){a(this).toggleClass("active").next("ul").slideToggle(300),b.stopImmediatePropagation()})},i=function(){a(".panel-row-style").each(function(){if(a(this).data("hascolor")&&a(this).find("h1,h2,h3,h4,h5,h6,a,.fa, div, span").css("color","inherit"),a(this).data("hasbg")&&a(this).data("overlay")){a(this).append('
');var b=a(this).data("overlay-color");a(this).find(".overlay").css("background-color",b)}}),a(".panel-grid .panel-widget-style").each(function(){var b=a(this).data("title-color"),c=a(this).data("headings-color");b&&a(this).find(".widget-title").css("color",b),c&&a(this).find("h1,h2,h3:not(.widget-title),h4,h5,h6,h3 a").css("color",c)})},j=function(){b=c.any(),null==b&&a(".panel-row-style, .slide-item").parallax("50%",.3)},k=function(){d=e.any(),null!=d&&a(".slides-container .slide-item").css("background-attachment","scroll")},l=function(){a(".orches-animation").each(function(){var b=a(this),c=b.data("animation"),d=b.data("animation-delay"),e=b.data("animation-offset");b.css({"-webkit-animation-delay":d,"-moz-animation-delay":d,"animation-delay":d}),b.waypoint(function(){b.addClass("animated").addClass(c)},{triggerOnce:!0,offset:e})})},m=function(){a(window).scroll(function(){a(this).scrollTop()>800?a(".go-top").addClass("show"):a(".go-top").removeClass("show")}),a(".go-top").on("click",function(){return a("html, body").animate({scrollTop:0},1e3),!1})},n=function(){a().owlCarousel&&a(".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:a(".roll-testimonials").data("autoplay")})},o=function(){a(".progress-bar").on("on-appear",function(){a(this).each(function(){var b=a(this).data("percent");a(this).find(".progress-animate").animate({width:b+"%"},3e3),a(this).parent(".roll-progress").find(".perc").addClass("show").animate({width:b+"%"},3e3)})})},p=function(){var b=a(".site-header").offset().top;a(window).on("load scroll",function(){var c=a(this).scrollTop();c>=b?a(".site-header").addClass("fixed"):a(".site-header").removeClass("fixed"),c>=107?a(".site-header").addClass("float-header"):a(".site-header").removeClass("float-header")})},q=function(){a(".roll-counter").on("on-appear",function(){a(this).find(".numb-count").each(function(){var b=parseInt(a(this).attr("data-to")),c=parseInt(a(this).attr("data-speed"));a(this).countTo({to:b,speed:c})})})},r=function(){a('[data-waypoint-active="yes"]').waypoint(function(){a(this).trigger("on-appear")},{offset:"90%",triggerOnce:!0}),a(window).on("load",function(){setTimeout(function(){a.waypoints("refresh")},100)})},s=function(){a().owlCarousel&&a(".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})},t=function(){a(document).ready(function(){a("body").fitVids()})},u=function(){var b=a(".project-wrap").data("portfolio-effect");a(".project-item").children(".item-wrap").addClass("orches-animation"),a(".project-wrap").waypoint(function(c){a(".project-item").children(".item-wrap").each(function(c,d){setTimeout(function(){a(d).addClass("animated "+b)},150*c)})},{offset:"75%"})},v=function(){a(".widget_fp_social a").attr("target","_blank")},w=function(){a(".preloader").css("opacity",0),setTimeout(function(){a(".preloader").hide()},600)},x=function(){a("#slideshow").css("transition","height 99999s"),a(window).on("orientationchange",function(b){a("#slideshow").css("transition","none"),setTimeout(function(){a("#slideshow").css("transition","height 99999s")},600)})},y=function(){a(".project-wrap").length&&a(".project-wrap").each(function(){var b=a(this),c=b.find(".project-filter").find("a"),d=function(a){a.isotope({filter:"*",itemSelector:".project-item",percentPosition:!0,animationOptions:{duration:750,easing:"liniar",queue:!1}})};b.children().find(".isotope-container").imagesLoaded(function(){d(b.children().find(".isotope-container"))}),a(window).load(function(){d(b.children().find(".isotope-container"))}),c.click(function(){var d=a(this).attr("data-filter");return c.removeClass("active"),a(this).addClass("active"),b.find(".isotope-container").isotope({filter:d,animationOptions:{duration:750,easing:"liniar",queue:!1}}),!1})})};a(function(){f(),g(),p(),n(),s(),q(),o(),r(),h(),t(),l(),k(),i(),j(),u(),v(),m(),y(),x(),w()})}(jQuery);