(function($){"use strict";$(document).ready(function(){$('.min-header').click(function(){$('#menu').slideToggle(200);});$('.toggle-menu').click(function(){$('.new-header__menu').slideToggle(200); $('.new-header__menu-wrap .close-menu').fadeToggle(200)});$("section").click(function(){$('.new-header__menu').slideUp(200); $('.new-header__menu-wrap .close-menu').fadeOut(200)});$(window).scroll(function(){if($(this).scrollTop()>1){$('.old-header').addClass("mini")} else{$('.old-header').removeClass("mini")}});$('#menu li a, .baixa').bind('click',function(event){var $anchor=$(this);$('html, body').stop().animate({scrollTop:$($anchor.attr('href')).offset().top-80},1500,'easeInOutExpo');event.preventDefault()});if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){$('#menu li a').bind('click',function(event){$('#menu').slideToggle();var $anchor=$(this);$('html, body').stop().animate({scrollTop:$($anchor.attr('href')).offset().top-80},1500,'easeInOutExpo');event.preventDefault()})} jQuery(document).ready(function($){var hash=window.location.hash if(hash==''||hash=='#'||hash==undefined)return!1;var target=$(hash);target=target.length?target:$('[name='+hash.slice(1)+']');if(target.length){$('html,body').stop().animate({scrollTop:target.offset().top-70},1500,'linear')}});var height=$(window).height();$('.top').height(height-100);$(window).resize(function(){var height=$(window).height();$('.top').height(height-100)});$(".fancybox").fancybox({helpers:{title:{type:'over'}}});$('.new-home__top').owlCarousel({items:1,loop:true,nav:!0,dots:!0,autoplay:true,margin:0,autoplayTimeout: 10000,navText: ['','']});$('.what__top--carousel').owlCarousel({items:1,loop:false,nav:!1,dots:!0,autoplay:true,margin:0});$('.gallery-logos').owlCarousel({items:7,loop:!0,nav:!1,dots:!0,autoplay:!0,margin:30,responsive:{200:{items:1},480:{items:2},600:{items:5},1000:{items:7}}});$('.new-home__gallery-logos').owlCarousel({items:4,loop:!0,nav:!1,dots:!0,autoplay:!0,margin:30,responsive:{200:{items:1},480:{items:2},600:{items:4}}});$('.gallery-cases').owlCarousel({items:1,loop:false,nav:!1,dots:!0,autoplay:false,margin:0,responsive:{200:{items:1},480:{items:1}}});$('.slider-about').owlCarousel({items:1,loop:!1,nav:!1,dots:!1,autoplay:!1,URLhashListener:!0,startPosition:'URLHash',mouseDrag:!1,touchDrag:!1,pullDrag:!1,freeDrag:!1});$('.menu-items a').click(function(){$('.menu-items a').removeClass('active');$(this).addClass('active')});jQuery('.panel').addClass("hidden").viewportChecker({classToAdd:'visible animated fadeInUp',offset:50,repeat:!1,});jQuery('.service .icon').addClass("hidden").viewportChecker({classToAdd:'visible animated fadeInUp',offset:50,repeat:!1,});jQuery('.human-image').addClass("hidden").viewportChecker({classToAdd:'visible animated fadeInUp',offset:50,repeat:!1,});jQuery('.case_study').addClass("hidden").viewportChecker({classToAdd:'visible animated fadeInRight',offset:50,repeat:!1,});jQuery('.fadeup').addClass("hidden").viewportChecker({classToAdd:'visible animated fadeInUp',offset:50,repeat:!1,});jQuery('.fadeleft').addClass("hidden").viewportChecker({classToAdd:'visible animated fadeInLeft',offset:50,repeat:!1,});jQuery('.faderight').addClass("hidden").viewportChecker({classToAdd:'visible animated fadeInRight',offset:50,repeat:!1,})});function callback(){var hash=$('.owl-item.active > div').attr('data-hash');$(".menu-items > a").removeClass('active');$("#"+hash).addClass('active');window.location.hash=hash}})(jQuery)