jQuery(function(e){"use strict";function o(){var o=e(window).width();o>120?e(window).on("scroll",function(){e(window).scrollTop()>100?e(".main-nav").addClass("header-fixed animated slideInDown"):e(".main-nav").removeClass("header-fixed animated slideInDown")}):e(".main-nav").addClass("fixed-menu animated slideInDown")}o(),e(".navbar-nav .fa-search").on("click",function(){e("html, body").animate({scrollTop:0},"slow"),e(".site-search .container").toggleClass("open")}),e(".site-search .close").on("click",function(){e(".site-search .container").removeClass("open")}),e("#main-slide").carousel({pause:!0,interval:1e5}),e("#testimonial-carousel").owlCarousel({navigation:!0,slideSpeed:600,pagination:!1,singleItem:!0});var t=e("#testimonial-carousel");e(".next").click(function(){t.trigger("owl.next")}),e(".prev").click(function(){t.trigger("owl.prev")}),e(".play").click(function(){t.trigger("owl.play",1e3)}),e(".stop").click(function(){t.trigger("owl.stop")}),e("#client-carousel").owlCarousel({navigation:!0,navigationText:["",""],slideSpeed:800,pagination:!1,items:5,rewindNav:!0,itemsDesktop:[1199,3],itemsDesktopSmall:[979,3],stopOnHover:!0}),e("#team-carousel").owlCarousel({navigation:!0,navigationText:["",""],slideSpeed:800,pagination:!1,items:4,rewindNav:!0,itemsDesktop:[1199,3],itemsDesktopSmall:[979,3],stopOnHover:!0}),e(window).scroll(function(){e(this).scrollTop()>50?e("#back-to-top").fadeIn():e("#back-to-top").fadeOut()}),e("#back-to-top").click(function(){return e("#back-to-top").tooltip("hide"),e("body,html").animate({scrollTop:0},800),!1}),e("#back-to-top").tooltip("hide"),e(".percentage").length&&e(".percentage").easyPieChart({animate:5e3,onStep:function(e){this.$el.find("span").text(~~e)}}),e("#blog-gallary").bxSlider({mode:"fade",autoControls:!1}),e("#portfolio-slider").bxSlider({mode:"fade",autoControls:!1}),e(window).load(function(){var o=e("#isotope-filter>a");if("undefined"!=o){var t=e(".isotope");t.isotope({itemSelector:".col-sm-3",layoutMode:"fitRows"}),o.on("click",function(){o.removeClass("active"),e(this).addClass("active");var i=e(this).attr("data-filter");return t.isotope({filter:i}),!1})}}),(new WOW).init(),e("a[data-rel^='prettyPhoto']").prettyPhoto()});