"use strict";function themo_start_flex_slider(flex_selector,themo_autoplay,themo_flex_animation,themo_flex_easing,themo_flex_animationloop,themo_flex_smoothheight,themo_flex_slideshowspeed,themo_flex_animationspeed,themo_flex_randomize,themo_flex_pauseonhover,themo_flex_touch,themo_flex_directionnav,themo_flex_controlNav){jQuery("img.frm_ajax_loading").remove();jQuery(flex_selector).flexslider({slideshow:themo_autoplay,animation:themo_flex_animation,smoothHeight:themo_flex_smoothheight,easing:themo_flex_easing,animationLoop:themo_flex_animationloop,slideshowSpeed:themo_flex_slideshowspeed,animationSpeed:themo_flex_animationspeed,randomize:themo_flex_randomize,pauseOnHover:themo_flex_pauseonhover,touch:themo_flex_touch,directionNav:themo_flex_directionnav,controlNav:themo_flex_controlNav,prevText:'',nextText:'',start:function(slider){jQuery('body').addClass('loaded');},after:function(slider){},before:function(){}});}
function themo_active_lightbox(){jQuery(document).delegate('*[data-toggle="lightbox"]','click',function(event){event.preventDefault();return jQuery(this).ekkoLightbox({always_show_close:true,gallery_parent_selector:'.gallery',right_arrow_class:'.flex-next',left_arrow_class:'.flex-prev'});});}
jQuery(function($){themo_adjust_pricing_table_height();themo_init_isotope();if(navigator.userAgent.match(/(iPod|iPhone|iPad)/)||(navigator.userAgent.match(/(Android)/))){$(".th-parallax").addClass("th-mobile");}
function themo_init_isotope(){$.fn.equalizeHeights=function(){var two=$(this).map(function(i,e){return $(e).height();});return this.height(Math.max.apply(this,two.get()));};var $container=$('.th-portfolio-row').not('.elementor-element-edit-mode .th-portfolio-row');var $port_grid=$container.isotope({itemSelector:'.th-portfolio-item',layoutMode:'fitRows'});$port_grid.imagesLoaded().progress(function(){$port_grid.isotope('layout');});var $th_cardbody=$('.th-portfolio-row .th-port-card-body');$($th_cardbody).equalizeHeights();$('.th-portfolio-filters').on('click','a',function(e){e.preventDefault();var filterValue=$(this).attr('data-filter');if(filterValue=='*'){var parent_class=$(this).closest('.th-portfolio').attr("id");}else{var parent_class=$(filterValue).closest('.th-portfolio').attr("id");}
$('#'+parent_class+' .th-portfolio-filters a').removeClass("current");$(this).addClass("current");var $thiscontainer=$('#'+parent_class+' .th-portfolio-row');$thiscontainer.isotope({filter:filterValue});});var $bloggrid=$('.mas-blog').isotope({itemSelector:'.mas-blog-post',transitionDuration:'0.2s',percentPosition:true,originLeft:true,masonry:{columnWidth:'.mas-blog-post-sizer'}});$bloggrid.imagesLoaded().progress(function(){$bloggrid.isotope('layout');$bloggrid.on('layoutComplete',function(event,laidOutItems){});});}
function themo_adjust_pricing_table_height(){var $tallestCol;$('.th-pricing-table').each(function(){$tallestCol=0;$(this).find('> div .th-pricing-title').each(function(){($(this).height()>$tallestCol)?$tallestCol=$(this).height():$tallestCol=$tallestCol;});if($tallestCol==0)$tallestCol='auto';$(this).find('> div .th-pricing-title').css('height',$tallestCol);$(this).find('> div .th-btn-wrap').each(function(){($(this).height()>$tallestCol)?$tallestCol=$(this).height():$tallestCol=$tallestCol;});if($tallestCol==0)$tallestCol='auto';$(this).find('> div .th-btn-wrap').css('height',$tallestCol);$(this).find('> div .th-pricing-features').each(function(){($(this).height()>$tallestCol)?$tallestCol=$(this).height():$tallestCol=$tallestCol;});if($tallestCol==0)$tallestCol='auto';$(this).find('> div .th-pricing-features').css('height',$tallestCol);});}
$('.th-itinerary').find('.th-itin-single').each(function(){var $$=$(this),$title=$$.find('.th-itin-title'),$content=$$.find('.th-itin-content');$title.on('click',function(){if($$.hasClass('th-itin-active')){$content.slideUp('fast',function(){$$.addClass('th-itin-inactive');$$.removeClass('th-itin-active');});}else{$content.slideDown('fast',function(){$$.addClass('th-itin-active');$$.removeClass('th-itin-inactive');});}});});$('a[rel=tooltip]').tooltip();$("a[rel=popover]").popover();});jQuery(window).on('load',function($){"use strict";themo_active_lightbox();});jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/image-carousel.default',function($scope){});})
jQuery(document).ready(function($){if(typeof jQuery.fn.slick==='function'){$('.th-image-carousel-timeline .elementor-image-carousel').slick();}
if(typeof elementorFrontend!=='undefined'&&typeof elementorFrontend.hooks!=='undefined'){elementorFrontend.hooks.addAction('frontend/element_ready/themo-image-carousel-timeline.default',function($scope){var $carousel=$scope.find('.elementor-image-carousel');if(typeof jQuery.fn.slick==='function'&&!$carousel.hasClass('slick-initialized')){$carousel.slick();}});}});