;(function($){"use strict";$(document).ready(function(){$(document).on('click','.navbar-area .navbar-nav li.menu-item-has-children>a',function(e){e.preventDefault();})
var rtlEnable=$('html').attr('dir');var sliderRtlValue=!(typeof rtlEnable==='undefined'||rtlEnable==='ltr');var OwlRtlValue=!(typeof rtlEnable==='undefined'||rtlEnable==='ltr');new WOW().init();$('.video-play-btn,.video-popup,.small-vide-play-btn').magnificPopup({type:'video'});$(document).on('click','.back-to-top',function(){$("html,body").animate({scrollTop:0},2000);});var counternumber=$('.count-num');counternumber.counterUp({delay:20,time:3000});var $Container=$('.recent-case-study-filter-area');if($Container.length>0){$('.recent-case-study-filter-area').imagesLoaded(function(){var festivarMasonry=$Container.isotope({itemSelector:'.masonry-item',masonry:{gutter:0}});$(document).on('click','.recent-case-study-filter-nav li',function(){var filterValue=$(this).attr('data-filter');festivarMasonry.isotope({filter:filterValue});});});$(document).on('click','.recent-case-study-filter-nav li',function(){$(this).siblings().removeClass('active');$(this).addClass('active');});}
var $caseStudyThreeContainer=$('.recent-case-filter-03');if($caseStudyThreeContainer.length>0){$('.recent-case-filter-03').imagesLoaded(function(){var caseMasonry=$caseStudyThreeContainer.isotope({itemSelector:'.case-masonry-03',masonry:{gutter:0}});$(document).on('click','.recent-case-filter-03 .recent-case-filter-menu li',function(){var filterValue=$(this).attr('data-filter');caseMasonry.isotope({filter:filterValue});});});$(document).on('click','.recent-case-filter-03 .recent-case-filter-menu li',function(){$(this).siblings().removeClass('active');$(this).addClass('active');});}
var $caseContainer=$('.recent-case-filter-02');if($caseContainer.length>0){$('.recent-case-filter-02').imagesLoaded(function(){var festivarMasonry=$caseContainer.isotope({itemSelector:'.case-masonry',masonry:{gutter:0}});$(document).on('click','.recent-case-filter-menu li',function(){var filterValue=$(this).attr('data-filter');festivarMasonry.isotope({filter:filterValue});});});$(document).on('click','.recent-case-filter-menu li',function(){$(this).siblings().removeClass('active');$(this).addClass('active');});}
var $TestimonialCarousel=$('.testimonial-carousel');if($TestimonialCarousel.length>0){$TestimonialCarousel.owlCarousel({loop:true,rtl:OwlRtlValue,autoplay:true,autoPlayTimeout:1000,margin:30,dots:true,nav:false,navText:['<i class="fas fa-angle-left"></i>','<i class="fas fa-angle-right"></i>'],animateOut:'fadeOut',animateIn:'fadeIn',responsive:{0:{items:1},460:{items:1},599:{items:1},768:{items:1},960:{items:1},1200:{items:1},1920:{items:1}}});}
var $blogGridCarousel=$('.blog-grid-carousel');if($blogGridCarousel.length>0){$blogGridCarousel.owlCarousel({loop:true,rtl:OwlRtlValue,autoplay:true,autoPlayTimeout:1000,margin:30,dots:true,nav:true,navText:['<i class="fas fa-angle-left"></i>','<i class="fas fa-angle-right"></i>'],animateOut:'fadeOut',animateIn:'fadeIn',responsive:{0:{items:1},460:{items:1},599:{items:1},768:{items:2},960:{items:2},1200:{items:3},1920:{items:3}}});}
var $attorneyCarousel=$('.our-attorney-carousel');if($attorneyCarousel.length>0){$attorneyCarousel.owlCarousel({loop:true,rtl:OwlRtlValue,autoplay:true,autoPlayTimeout:1000,margin:30,dots:true,nav:true,navText:['<i class="fas fa-angle-left"></i>','<i class="fas fa-angle-right"></i>'],animateOut:'fadeOut',animateIn:'fadeIn',smartSpeed:2000,responsive:{0:{items:1},460:{items:1,},599:{items:1},768:{items:1},960:{items:1},1200:{items:2},1920:{items:2}}});}
var $headerCarousel=$('.header-slider-one');if($headerCarousel.length>0){$headerCarousel.owlCarousel({loop:true,rtl:sliderRtlValue,autoplay:true,autoPlayTimeout:1000,margin:30,dots:true,nav:true,navText:['<i class="fas fa-angle-left"></i>','<i class="fas fa-angle-right"></i>'],animateOut:'fadeOut',animateIn:'fadeIn',responsive:{0:{items:1,nav:false,},460:{items:1,nav:false,},599:{items:1},768:{items:1},960:{items:1},1200:{items:1},1920:{items:1}}});}
var bodyOvrelay=$('#body-overlay');var searchPopup=$('#search-popup');$(document).on('click','#body-overlay',function(e){e.preventDefault();bodyOvrelay.removeClass('active');searchPopup.removeClass('active');});$(document).on('click','#search',function(e){e.preventDefault();searchPopup.addClass('active');bodyOvrelay.addClass('active');});});var lastScrollTop='';$(window).on('scroll',function(){var ScrollTop=$('.back-to-top');if($(window).scrollTop()>1000){ScrollTop.fadeIn(1000);}else{ScrollTop.fadeOut(1000);}
var st=$(this).scrollTop();var mainMenuTop=$('.navbar-area');if($(window).scrollTop()>1000){if(st>lastScrollTop){mainMenuTop.removeClass('nav-fixed');}else{mainMenuTop.addClass('nav-fixed');}}else{mainMenuTop.removeClass('nav-fixed ');}
lastScrollTop=st;});$(window).on('load',function(){var preLoder=$("#preloader");preLoder.fadeOut(1000);var backtoTop=$('.back-to-top')
backtoTop.fadeOut();$(document).on('click','.cancel-preloader a',function(e){e.preventDefault();$("#preloader").fadeOut(2000);});});})(jQuery);