jQuery(document).ready(function($){"use strict";$(document).foundation();if($('form#contact_form').length>0){$('form#contact_form').validate({messages:{},submitHandler:function(form){$.ajax({type:'POST',url:'send.php',data:$(form).serialize(),success:function(data){if(data.match(/success/)){$(form).trigger('reset');$('#thanks').show().fadeOut(5000);}}});return false;}});} $('#menu-toggler').on('click',function(){$('.top-bar-section').toggle();return false;});if($('#slides').length>0){$('#slides').on('init.slides',function(){var that=this;setTimeout(function(){$('.slides-container',that).children().eq(0).addClass('active');},300);});$('#slides').superslides({animation:'fade',hashchange:false,play:15000});$('#slides').on('animated.slides',function(){$('.slides-container',this).children().removeClass('active');var index=$(this).superslides('current');var that=this;setTimeout(function(){$('.slides-container',that).children().eq(index).addClass('active');},300);});} if($('.slides').length>0){$('.slides').slick({autoplay:true,pauseOnHover:false,dots:true,speed:1000,arrows:false});} new WOW().init();var bars=$(".bars");for(var i=0;i li > .highlighted',$(bar));for(var j=0;j0){$('.clients').slick({slidesToShow:5,slidesToScroll:1,autoplay:true,autoplaySpeed:3000,pauseOnHover:false,responsive:[{breakpoint:767,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:2,slidesToScroll:1}}]});} $('.back-to-top').on('click',function(){$("html, body").animate({scrollTop:0},1000);return false;});var masonryGallery=function(sel){var $ctx=$(sel);var items=$('.gallery li',$ctx);var gutter=$ctx.data('gutter');if(!gutter){gutter=0};for(var i=0;i