(function($){"use strict";$(window).on('load',function(){$("#loading").fadeOut(500);$("#text_rotating").Morphext({animation:"fadeInDown",separator:",",speed:5000,complete:function(){}});});$(document).ready(function(){var wow=new WOW({boxClass:'wow',animateClass:'animated',offset:0,mobile:true,live:true,callback:function(box){}});wow.init();$(window).on("scroll",function(){var header=$('header');var topmenu=$('.top_menu');var windowheight=$(this).scrollTop();var menuheight=header.outerHeight();var topmenuheight=0;var bar=$('#wpbar');bar.css('position','fixed');if(bar.length&bar.is(':visible')){header.css('top',bar.height());} if(topmenu.length>0){var topmenuheight=topmenu.outerHeight();} var fixedheight=topmenuheight;if(header.length>0){if((windowheight>fixedheight)&header.hasClass("fixed")){header.addClass('navbar-fixed-top');if(!header.hasClass("transparent")){header.next("*").css("margin-top",menuheight);} if(header.hasClass("fixed")){header.addClass("scroll");header.addClass("nav_bg");} $("header .light").addClass("nodisplay");$("header .dark").removeClass("nodisplay");}else{header.removeClass("navbar-fixed-top");if(!header.hasClass("transparent")){header.next("*").css("margin-top","0");} if(header.hasClass("fixed")){header.removeClass("scroll");header.removeClass("nav_bg");} $("header .dark").addClass("nodisplay");$("header .light").removeClass("nodisplay");if(bar.length&bar.is(':visible')){header.css('top',topmenuheight);}}}});$(function(){function toggleNavbarMethod(){if($(window).width()>992){$(".dropdown").on({mouseenter:function(){$(this).addClass("open");},mouseleave:function(){$(this).removeClass("open");}});$('.dropdown-toggle').on('click',function(event){if($(this).attr("href")=="#"){event.preventDefault();}});}else{$('.mobile-dropdown-toggle').off('mouseover').off('mouseout');$('.mobile-dropdown-toggle').on('click',function(event){$(this).parent().parent().toggleClass("open");$(this).toggleClass("arrow arrow-up");event.preventDefault();});}} toggleNavbarMethod();$(window).on("resize",(toggleNavbarMethod));$(".navbar-toggle").on("click",function(){$(this).toggleClass("active");});});$('.mobile_menu_btn').jPushMenu({closeOnClickLink:false});if($('.top_menu').length===0){$('header').addClass("no-topbar");} $('#countdown').each(function(){var $this=$(this),finalDate=$(this).data('countdown');$this.countdown(finalDate,function(event){$this.html(event.strftime('%DDays '+'%HHours '+'%MMinutes '+'%SSeconds'));});});var options={useEasing:true,useGrouping:false,separator:',',decimal:'.',prefix:'',suffix:''};$('.countup-item').on('inview',function(event,visible){if(visible){$.each($('.number'),function(){var count=$(this).data('count'),numAnim=new CountUp(this,0,count);numAnim.start();});$(this).unbind('inview');}});$(function(){var $grid=$('.grid').isotope({itemSelector:'.g_item',percentPosition:true,});$('.grid_filters').on('click','a',function(e){e.preventDefault();var filterValue=$(this).attr('data-filter');$grid.isotope({filter:filterValue});});$('.grid_filters').each(function(i,buttonGroup){var $buttonGroup=$(buttonGroup);$buttonGroup.on('click','a',function(){$buttonGroup.find('.active').removeClass('active');$(this).addClass('active');});});if($(".grid").length){$grid.imagesLoaded().progress(function(){$grid.isotope('layout');$grid.find('[loading="lazy"]').on('load',function(){$grid.masonry('layout');})});}});$(".magnific-popup, a[data-rel^='magnific-popup']").magnifiopup({type:'image',mainClass:'mfp-with-zoom',zoom:{enabled:true,duration:300,easing:'ease-in-out',fixedContentPos:true,opener:function(openerElement){return openerElement.is('img')?openerElement:openerElement.find('img');}},retina:{ratio:1,replaceSrc:function(item,ratio){return item.src.replace(/\.\w+$/,function(m){return'@2x'+m;});}}});$('.image-gallery').magnifiopup({delegate:'a',type:'image',fixedContentPos:true,gallery:{enabled:true},removalDelay:300,mainClass:'mfp-fade',retina:{ratio:1,replaceSrc:function(item,ratio){return item.src.replace(/\.\w+$/,function(m){return'@2x'+m;});}}});$('.popup-youtube, .popup-vimeo, .popup-gmaps').magnifiopup({type:'iframe',mainClass:'mfp-fade',removalDelay:300,preloader:false,fixedContentPos:true,});$('[data-toggle="popover"]').popover({html:true,offset:'0 10px',container:'body',});$('[data-toggle="tooltip"]').tooltip({animated:'fade',container:'body',offset:'0 5px'});var amountScrolled=500;var back_to_top=$('#back_to_top');$(window).on('scroll',function(){if($(window).scrollTop()>amountScrolled){back_to_top.addClass('active');}else{back_to_top.removeClass('active');}});back_to_top.on('click',function(){$('html, body').animate({scrollTop:0},500);return false;});$('.footer-language-switcher .selected-language').on('click',function(){$(this).parent().toggleClass('open');});$(window).click(function(){$('.footer-language-switcher').removeClass('open');});$('.footer-language-switcher').on('click',function(event){event.stopPropagation();});});})(jQuery); 574d1t