function activate_waypoints(a){if(jQuery.fn.kleo_waypoints){if(typeof a=="undefined"){a="body"}jQuery(".animate-when-visible",a).kleo_waypoints();jQuery(".animate-when-almost-visible",a).kleo_waypoints({offset:"90%"})}}function activate_shortcode_scripts(a){if(typeof a=="undefined"){a="body"}if(jQuery.fn.kleo_sc_gallery){jQuery(".kleo-gallery",a).kleo_sc_gallery()}if(jQuery.fn.kleo_general_onebyone){jQuery(".one-by-one-general",a).kleo_general_onebyone()}if(jQuery.fn.kleo_animate_number){jQuery(".kleo-animate-number",a).kleo_animate_number()}if(jQuery.fn.one_by_one_animated){jQuery(".one-by-one-animated",a).one_by_one_animated()}if(jQuery.fn.kleo_sc_progressbar){jQuery(".progress-bar-container",a).kleo_sc_progressbar()}if(jQuery.fn.kleo_sc_testimonial){jQuery(".kleo-testimonial-wrapper",a).kleo_sc_testimonial()}}(function(a){a.fn.kleo_sc_testimonial=function(b){return this.each(function(){var c=a(this),d=c.find(".kleo-testimonial");c.on("kleo-start-animation",function(){d.each(function(f){var e=a(this);setTimeout(function(){e.addClass("kleo-start-animation")},(f*150))})})})};a.fn.kleo_sc_progressbar=function(b){return this.each(function(){var c=a(this),d=c.find(".progress");c.on("start-animation",function(){d.each(function(f){var e=a(this);setTimeout(function(){a(".bar strong").css("opacity",1);e.addClass("start-animation")},(f*250))})})})};a.fn.one_by_one_animated=function(b){return this.each(function(){var c=a(this),d=c.find(".list-el-animated");c.on("start-animation",function(){d.each(function(f){var e=a(this);setTimeout(function(){e.addClass("start-animation")},(f*350))})})})};a.fn.kleo_animate_number=function(b){var c=function(j,g,d,l){var k=l+d;if(k>=g){j.text(g)}else{var f="",e=g.toString().length-k.toString().length;for(var h=e;h>0;h--){f+="0"}j.text(f+k);window.kleoAnimFrame(function(){c(j,g,d,k)})}};a(this).each(function(e){var d=a(this),g=d.text();d.text(g.replace(/./g,"0"));var f=d.data("timer")||3000;d.addClass("number_prepared").on("start-animation",function(){var j=a(this),i=j.data("number"),k=parseInt(j.text(),10),h=Math.round(i*30/f);if(h==0||h%10==0){h+=1}setTimeout(function(){c(j,i,h,k)},300)})})};window.kleoAnimFrame=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(b){window.setTimeout(b,1000/60)}})();a.fn.kleo_sc_gallery=function(b){return this.each(function(){var d=a(this),c=d.find("img"),e=d.find(".kleo-gallery-big");d.on("start-animation",function(){c.each(function(f){var g=a(this);setTimeout(function(){g.addClass("start-animation")},(f*150))})})})};a.fn.kleo_general_onebyone=function(b){return this.each(function(){var c=a(this),d=c.children();c.on("start-animation",function(){d.each(function(e){var f=a(this);setTimeout(function(){f.addClass("start-animation")},(e*150))})})})};a.fn.kleo_waypoints=function(d){if(!a("html").is(".kleo-transform")){return}var c={offset:"bottom-in-view",triggerOnce:true},b=a.extend({},c,d);return this.each(function(){var e=a(this);setTimeout(function(){e.waypoint(function(f){a(this).addClass("start-animation").trigger("start-animation")},b)},100)})}})(jQuery);