(function(n){"use strict";var t,r,s,h;n(window).on("load",function(){n(".loading .loading-wrapper").delay(500).animate({top:"-100%"},1e3,"easeInQuart");n(".loading").delay(1100).fadeOut(1500)});t=n(".home");t.height(n(window).height());n(window).on("resize",function(){t.height(n(window).height())});var i=n(".color-switcher"),c=n(".switcher-btn"),u=n(".color-switcher .color-slot");c.on("click",function(n){n.preventDefault();i.hasClass("closed")?i.removeClass("closed").animate({left:"0px"},300,"easeInOutBack"):i.animate({left:"-200px"},300,"easeInOutBack").addClass("closed")});u.css("background-color",function(){return n(this).attr("data-background")});u.on("click",function(){var t=n(this).attr("data-target");n("link[href*='color-']").attr("href",t)});n(".header-area").sticky({topSpacing:0});n("ul.nav li a").on("click",function(){n("#myNavbar").collapse("hide")});n(".accordion-toggle").on("click",function(){n(this).closest(".panel-group").children().each(function(){n(this).find(">.panel-heading").removeClass("active")});n(this).closest(".panel-heading").toggleClass("active")});n(".porfolio-items").isotope({itemSelector:".single-porfolio",layoutMode:"fitRows"});r=n("#isotope-container");r.imagesLoaded(function(){r.isotope("layout")});n(".portfolio-filter > ul.nav > li").on("click",function(){n(".portfolio-filter > ul.nav > li").removeClass("active");n(this).addClass("active");var t=n(this).attr("data-filter");return n(".porfolio-items").isotope({filter:t,animationOptions:{duration:750,easing:"linear",queue:!1}}),!1});var f=n(".home.parallax"),e=n(".fun-facts.parallax"),o=n(".testimonial.parallax");/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)?(f.css({"background-attachment":"scroll"}),e.css({"background-attachment":"scroll"}),o.css({"background-attachment":"scroll"})):(f.parallax("50%",.3),e.parallax("50%",.3),o.parallax("50%",.2));n(".client_slider").owlCarousel({navigation:!0,navigationText:['<i class="fa fa-chevron-left"><\/i>','<i class="fa fa-chevron-right"><\/i>'],slideSpeed:300,pagination:!1,paginationSpeed:400,singleItem:!0});s=new WOW({boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:function(){},scrollContainer:null});s.init();n("a.scroll-link").on("click",function(t){var i=n(this);n("html, body").stop().animate({scrollTop:n(i.attr("href")).offset().top-"56"+"px"},1200,"easeInOutExpo");t.preventDefault()});n("li.smooth-menu > a").on("click",function(t){var i=n(this);n("html, body").stop().animate({scrollTop:n(i.attr("href")).offset().top-"56"+"px"},1200,"easeInOutExpo");t.preventDefault()});n("a.smooth-menu").on("click",function(t){var i=n(this);n("html, body").stop().animate({scrollTop:n(i.attr("href")).offset().top-"56"+"px"},1200,"easeInOutExpo");t.preventDefault()});n(window).on("scroll",function(){if(n().easyPieChart){var t=0,i=["#f37321"];n(".percentage").each(function(){var r=n(this).offset().top,u=n(window).scrollTop();r<u+600&&n(this).easyPieChart({barColor:i[t],trackColor:"#636363",scaleColor:!1,scaleLength:!1,lineCap:"butt",lineWidth:10,size:150,rotate:0,animate:2e3,onStep:function(t,i,r){n(this.el).find(".percent").text(Math.round(r))}});t++;t>=i.length&&(t=0)})}});n(window).on("scroll",function(){n("body").scrollspy({target:".navbar-collapse",offset:94})});n(".fun-facts").appear(function(){n(".timer").countTo()},{accX:0,accY:-350});h=n("#toTop");n(window).on("scroll",function(){n(this).scrollTop()>400?n("#toTop").addClass("appeared"):n("#toTop").removeClass("appeared")});h.on("click",function(){n("html, body").animate({scrollTop:0},1500,"easeInQuart")})})(jQuery)