text:  AOS.init({
   	duration: 800,
   	easing: 'slide'
   });
  
  
  
  (function($) {
  
  	"use strict";
  
  	var isMobile = {
  		Android: function() {
  			return navigator.userAgent.match(/Android/i);
  		},
  			BlackBerry: function() {
  			return navigator.userAgent.match(/BlackBerry/i);
  		},
  			iOS: function() {
  			return navigator.userAgent.match(/iPhone|iPad|iPod/i);
  		},
  			Opera: function() {
  			return navigator.userAgent.match(/Opera Mini/i);
  		},
  			Windows: function() {
  			return navigator.userAgent.match(/IEMobile/i);
  		},
  			any: function() {
  			return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
  		}
  	};
  
  
  	$(window).stellar({
      responsive: true,
      parallaxBackgrounds: true,
      parallaxElements: true,
      horizontalScrolling: false,
      hideDistantElements: false,
      scrollProperty: 'scroll'
    });
  
  
  	var fullHeight = function() {
  
  		$('.js-fullheight').css('height', $(window).height());
  		$(window).resize(function(){
  			$('.js-fullheight').css('height', $(window).height());
  		});
  
  	};
  	fullHeight();
  
  	// loader
  	var loader = function() {
  		setTimeout(function() { 
  			if($('#ftco-loader').length > 0) {
  				$('#ftco-loader').removeClass('show');
  			}
  		}, 1);
  	};
  	loader();
  
  	// Scrollax
     $.Scrollax();
  
  	var carousel = function() {
  		$('.carousel-car').owlCarousel({
  			center: true,
  			loop: true,
  			autoplay: true,
  			items:1,
  			margin: 30,
  			stagePadding: 0,
  			nav: false,
  			navText: ['<span class="ion-ios-arrow-back">', '<span class="ion-ios-arrow-forward">'],
  			responsive:{
  				0:{
  					items: 1
  				},
  				600:{
  					items: 2
  				},
  				1000:{
  					items: 3
  				}
  			}
  		});
  		$('.carousel-testimony').owlCarousel({
  			center: true,
  			loop: true,
  			items:1,
  			margin: 30,
  			stagePadding: 0,
  			nav: false,
  			navText: ['<span class="ion-ios-arrow-back">', '<span class="ion-ios-arrow-forward">'],
  			responsive:{
  				0:{
  					items: 1
  				},
  				600:{
  					items: 2
  				},
  				1000:{
  					items: 3
  				}
  			}
  		});
  
  	};
  	carousel();
  
  	$('nav .dropdown').hover(function(){
  		var $this = $(this);
  		// 	 timer;
  		// clearTimeout(timer);
  		$this.addClass('show');
  		$this.find('> a').attr('aria-expanded', true);
  		// $this.find('.dropdown-menu').addClass('animated-fast fadeInUp show');
  		$this.find('.dropdown-menu').addClass('show');
  	}, function(){
  		var $this = $(this);
  			// timer;
  		// timer = setTimeout(function(){
  			$this.removeClass('show');
  			$this.find('> a').attr('aria-expanded', false);
  			// $this.find('.dropdown-menu').removeClass('animated-fast fadeInUp show');
  			$this.find('.dropdown-menu').removeClass('show');
  		// }, 100);
  	});
  
  
  	$('#dropdown04').on('show.bs.dropdown', function () {
  	  console.log('show');
  	});
  
  	// scroll
  	var scrollWindow = function() {
  		$(window).scroll(function(){
  			var $w = $(this),
  					st = $w.scrollTop(),
  					navbar = $('.ftco_navbar'),
  					sd = $('.js-scroll-wrap');
  
  			if (st > 150) {
  				if ( !navbar.hasClass('scrolled') ) {
  					navbar.addClass('scrolled');	
  				}
  			} 
  			if (st < 150) {
  				if ( navbar.hasClass('scrolled') ) {
  					navbar.removeClass('scrolled sleep');
  				}
  			} 
  			if ( st > 350 ) {
  				if ( !navbar.hasClass('awake') ) {
  					navbar.addClass('awake');	
  				}
  				
  				if(sd.length > 0) {
  					sd.addClass('sleep');
  				}
  			}
  			if ( st < 350 ) {
  				if ( navbar.hasClass('awake') ) {
  					navbar.removeClass('awake');
  					navbar.addClass('sleep');
  				}
  				if(sd.length > 0) {
  					sd.removeClass('sleep');
  				}
  			}
  		});
  	};
  	scrollWindow();
  
  	var isMobile = {
  		Android: function() {
  			return navigator.userAgent.match(/Android/i);
  		},
  			BlackBerry: function() {
  			return navigator.userAgent.match(/BlackBerry/i);
  		},
  			iOS: function() {
  			return navigator.userAgent.match(/iPhone|iPad|iPod/i);
  		},
  			Opera: function() {
  			return navigator.userAgent.match(/Opera Mini/i);
  		},
  			Windows: function() {
  			return navigator.userAgent.match(/IEMobile/i);
  		},
  			any: function() {
  			return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
  		}
  	};
  
  	var counter = function() {
  		
  		$('#section-counter, .hero-wrap, .ftco-counter').waypoint( function( direction ) {
  
  			if( direction === 'down' && !$(this.element).hasClass('ftco-animated') ) {
  
  				var comma_separator_number_step = $.animateNumber.numberStepFactories.separator(',')
  				$('.number').each(function(){
  					var $this = $(this),
  						num = $this.data('number');
  						console.log(num);
  					$this.animateNumber(
  					  {
  					    number: num,
  					    numberStep: comma_separator_number_step
  					  }, 7000
  					);
  				});
  				
  			}
  
  		} , { offset: '95%' } );
  
  	}
  	counter();
  
  
  	var contentWayPoint = function() {
  		var i = 0;
  		$('.ftco-animate').waypoint( function( direction ) {
  
  			if( direction === 'down' && !$(this.element).hasClass('ftco-animated') ) {
  				
  				i++;
  
  				$(this.element).addClass('item-animate');
  				setTimeout(function(){
  
  					$('body .ftco-animate.item-animate').each(function(k){
  						var el = $(this);
  						setTimeout( function () {
  							var effect = el.data('animate-effect');
  							if ( effect === 'fadeIn') {
  								el.addClass('fadeIn ftco-animated');
  							} else if ( effect === 'fadeInLeft') {
  								el.addClass('fadeInLeft ftco-animated');
  							} else if ( effect === 'fadeInRight') {
  								el.addClass('fadeInRight ftco-animated');
  							} else {
  								el.addClass('fadeInUp ftco-animated');
  							}
  							el.removeClass('item-animate');
  						},  k * 50, 'easeInOutExpo' );
  					});
  					
  				}, 100);
  				
  			}
  
  		} , { offset: '95%' } );
  	};
  	contentWayPoint();
  
  
  	// navigation
  	var OnePageNav = function() {
  		$(".smoothscroll[href^='#'], #ftco-nav ul li a[href^='#']").on('click', function(e) {
  		 	e.preventDefault();
  
  		 	var hash = this.hash,
  		 			navToggler = $('.navbar-toggler');
  		 	$('html, body').animate({
  		    scrollTop: $(hash).offset().top
  		  }, 700, 'easeInOutExpo', function(){
  		    window.location.hash = hash;
  		  });
  
  
  		  if ( navToggler.is(':visible') ) {
  		  	navToggler.click();
  		  }
  		});
  		$('body').on('activate.bs.scrollspy', function () {
  		  console.log('nice');
  		})
  	};
  	OnePageNav();
  
  
  	// magnific popup
  	$('.image-popup').magnificPopup({
      type: 'image',
      closeOnContentClick: true,
      closeBtnInside: false,
      fixedContentPos: true,
      mainClass: 'mfp-no-margins mfp-with-zoom', // class to remove default margin from left and right side
       gallery: {
        enabled: true,
        navigateByImgClick: true,
        preload: [0,1] // Will preload 0 - before current, and 1 after the current image
      },
      image: {
        verticalFit: true
      },
      zoom: {
        enabled: true,
        duration: 300 // don't foget to change the duration also in CSS
      }
    });
  
    $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({
      disableOn: 700,
      type: 'iframe',
      mainClass: 'mfp-fade',
      removalDelay: 160,
      preloader: false,
  
      fixedContentPos: false
    });
  
  
  	$('#book_pick_date,#book_off_date').datepicker({
  	  'format': 'm/d/yyyy',
  	  'autoclose': true
  	});
  	$('#time_pick').timepicker();
  
  
  
  })(jQuery);
  
  
   AOS.init({
   	duration: 800,
   	easing: 'slide',
   	once: true
   });
  
  jQuery(document).ready(function($) {
  
  	"use strict";
  
  	
  
  	var siteMenuClone = function() {
  
  		$('.js-clone-nav').each(function() {
  			var $this = $(this);
  			$this.clone().attr('class', 'site-nav-wrap').appendTo('.site-mobile-menu-body');
  		});
  
  
  		setTimeout(function() {
  			
  			var counter = 0;
        $('.site-mobile-menu .has-children').each(function(){
          var $this = $(this);
          
          $this.prepend('<span class="arrow-collapse collapsed">');
  
          $this.find('.arrow-collapse').attr({
            'data-toggle' : 'collapse',
            'data-target' : '#collapseItem' + counter,
          });
  
          $this.find('> ul').attr({
            'class' : 'collapse',
            'id' : 'collapseItem' + counter,
          });
  
          counter++;
  
        });
  
      }, 1000);
  
  		$('body').on('click', '.arrow-collapse', function(e) {
        var $this = $(this);
        if ( $this.closest('li').find('.collapse').hasClass('show') ) {
          $this.removeClass('active');
        } else {
          $this.addClass('active');
        }
        e.preventDefault();  
        
      });
  
  		$(window).resize(function() {
  			var $this = $(this),
  				w = $this.width();
  
  			if ( w > 768 ) {
  				if ( $('body').hasClass('offcanvas-menu') ) {
  					$('body').removeClass('offcanvas-menu');
  				}
  			}
  		})
  
  		$('body').on('click', '.js-menu-toggle', function(e) {
  			var $this = $(this);
  			e.preventDefault();
  
  			if ( $('body').hasClass('offcanvas-menu') ) {
  				$('body').removeClass('offcanvas-menu');
  				$this.removeClass('active');
  			} else {
  				$('body').addClass('offcanvas-menu');
  				$this.addClass('active');
  			}
  		}) 
  
  		// click outisde offcanvas
  		$(document).mouseup(function(e) {
  	    var container = $(".site-mobile-menu");
  	    if (!container.is(e.target) && container.has(e.target).length === 0) {
  	      if ( $('body').hasClass('offcanvas-menu') ) {
  					$('body').removeClass('offcanvas-menu');
  				}
  	    }
  		});
  	}; 
  	siteMenuClone();
  
  
  	var sitePlusMinus = function() {
  		$('.js-btn-minus').on('click', function(e){
  			e.preventDefault();
  			if ( $(this).closest('.input-group').find('.form-control').val() != 0  ) {
  				$(this).closest('.input-group').find('.form-control').val(parseInt($(this).closest('.input-group').find('.form-control').val()) - 1);
  			} else {
  				$(this).closest('.input-group').find('.form-control').val(parseInt(0));
  			}
  		});
  		$('.js-btn-plus').on('click', function(e){
  			e.preventDefault();
  			$(this).closest('.input-group').find('.form-control').val(parseInt($(this).closest('.input-group').find('.form-control').val()) + 1);
  		});
  	};
  	// sitePlusMinus();
  
  
  	var siteSliderRange = function() {
      $( "#slider-range" ).slider({
        range: true,
        min: 0,
        max: 500,
        values: [ 75, 300 ],
        slide: function( event, ui ) {
          $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] );
        }
      });
      $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) +
        " - $" + $( "#slider-range" ).slider( "values", 1 ) );
  	};
  	// siteSliderRange();
  
  
  	var siteMagnificPopup = function() {
  		$('.image-popup').magnificPopup({
  	    type: 'image',
  	    closeOnContentClick: true,
  	    closeBtnInside: false,
  	    fixedContentPos: true,
  	    mainClass: 'mfp-no-margins mfp-with-zoom', // class to remove default margin from left and right side
  	     gallery: {
  	      enabled: true,
  	      navigateByImgClick: true,
  	      preload: [0,1] // Will preload 0 - before current, and 1 after the current image
  	    },
  	    image: {
  	      verticalFit: true
  	    },
  	    zoom: {
  	      enabled: true,
  	      duration: 300 // don't foget to change the duration also in CSS
  	    }
  	  });
  
  	  $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({
  	    disableOn: 700,
  	    type: 'iframe',
  	    mainClass: 'mfp-fade',
  	    removalDelay: 160,
  	    preloader: false,
  
  	    fixedContentPos: false
  	  });
  	};
  	siteMagnificPopup();
  
  
  	var siteCarousel = function () {
  		if ( $('.nonloop-block-13').length > 0 ) {
  			$('.nonloop-block-13').owlCarousel({
  		    center: false,
  		    items: 1,
  		    loop: true,
  				stagePadding: 10,
  		    margin: 30,
  		    smartSpeed: 1000,
  		    autoplay:true,
  				autoplayTimeout:1000,
  				autoplayHoverPause:false,
  
  		    nav: true,
  				navText: ['<span class="icon-keyboard_arrow_left">', '<span class="icon-keyboard_arrow_right">'],
  		    responsive:{
  	        600:{
  	        	margin: 30,
  	        	nav: true,
  	          items: 2
  	        },
  	        1000:{
  	        	margin: 30,
  	        	nav: true,
  	          items: 3
  	        },
  	        1200:{
  	        	margin: 30,
  	        	nav: true,
  	          items: 4
  	        }
  		    }
  			});
  		}
  
  		$('.slide-one-item').owlCarousel({
  	    center: false,
  	    items: 1,
  	    loop: true,
  			stagePadding: 0,
  			smartSpeed: 1000,
  	    margin: 0,
  	    autoplay: true,
  	    pauseOnHover: false,
  	    nav: true,
  	    navText: ['<span class="icon-keyboard_arrow_left">', '<span class="icon-keyboard_arrow_right">'],
  	  });
  	};
  	siteCarousel();
  
  	var siteStellar = function() {
  		$(window).stellar({
  	    responsive: false,
  	    parallaxBackgrounds: true,
  	    parallaxElements: true,
  	    horizontalScrolling: false,
  	    hideDistantElements: false,
  	    scrollProperty: 'scroll'
  	  });
  	};
  	siteStellar();
  
  	var siteCountDown = function() {
  
  		$('#date-countdown').countdown('2020/10/10', function(event) {
  		  var $this = $(this).html(event.strftime(''
  		    + '<span class="countdown-block"><span class="label">%w</span> weeks </span>'
  		    + '<span class="countdown-block"><span class="label">%d</span> days </span>'
  		    + '<span class="countdown-block"><span class="label">%H</span> hr </span>'
  		    + '<span class="countdown-block"><span class="label">%M</span> min </span>'
  		    + '<span class="countdown-block"><span class="label">%S</span> sec</span>'));
  		});
  				
  	};
  	siteCountDown();
  
  	var siteDatePicker = function() {
  
  		if ( $('.datepicker').length > 0 ) {
  			$('.datepicker').datepicker();
  		}
  
  	};
  	siteDatePicker();
  
  	var siteRangeSlider = function() {
  
  		$('input[type="range"]').rangeslider({
  	    polyfill : false,
  	    onInit : function() {
  	        this.output = $( '<div class="range-output" />' ).insertAfter( this.$range ).html( this.$element.val() );
  	    },
  	    onSlide : function( position, value ) {
  	        this.output.html( value );
  	    }
  		});
  
  	};
  	siteRangeSlider();
  	
  
  });
          window.jssor_1_slider_init = function() {
  
              var jssor_1_SlideshowTransitions = [
                {$Duration:800,x:0.3,$During:{$Left:[0.3,0.7]},$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,x:-0.3,$SlideOut:true,$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,x:-0.3,$During:{$Left:[0.3,0.7]},$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,x:0.3,$SlideOut:true,$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,y:0.3,$During:{$Top:[0.3,0.7]},$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,y:-0.3,$SlideOut:true,$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,y:-0.3,$During:{$Top:[0.3,0.7]},$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,y:0.3,$SlideOut:true,$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,x:0.3,$Cols:2,$During:{$Left:[0.3,0.7]},$ChessMode:{$Column:3},$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,x:0.3,$Cols:2,$SlideOut:true,$ChessMode:{$Column:3},$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,y:0.3,$Rows:2,$During:{$Top:[0.3,0.7]},$ChessMode:{$Row:12},$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,y:0.3,$Rows:2,$SlideOut:true,$ChessMode:{$Row:12},$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,y:0.3,$Cols:2,$During:{$Top:[0.3,0.7]},$ChessMode:{$Column:12},$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,y:-0.3,$Cols:2,$SlideOut:true,$ChessMode:{$Column:12},$Easing:{$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,x:0.3,$Rows:2,$During:{$Left:[0.3,0.7]},$ChessMode:{$Row:3},$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,x:-0.3,$Rows:2,$SlideOut:true,$ChessMode:{$Row:3},$Easing:{$Left:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,x:0.3,y:0.3,$Cols:2,$Rows:2,$During:{$Left:[0.3,0.7],$Top:[0.3,0.7]},$ChessMode:{$Column:3,$Row:12},$Easing:{$Left:$Jease$.$InCubic,$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,x:0.3,y:0.3,$Cols:2,$Rows:2,$During:{$Left:[0.3,0.7],$Top:[0.3,0.7]},$SlideOut:true,$ChessMode:{$Column:3,$Row:12},$Easing:{$Left:$Jease$.$InCubic,$Top:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,$Delay:20,$Clip:3,$Assembly:260,$Easing:{$Clip:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,$Delay:20,$Clip:3,$SlideOut:true,$Assembly:260,$Easing:{$Clip:$Jease$.$OutCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,$Delay:20,$Clip:12,$Assembly:260,$Easing:{$Clip:$Jease$.$InCubic,$Opacity:$Jease$.$Linear},$Opacity:2},
                {$Duration:800,$Delay:20,$Clip:12,$SlideOut:true,$Assembly:260,$Easing:{$Clip:$Jease$.$OutCubic,$Opacity:$Jease$.$Linear},$Opacity:2}
              ];
  
              var jssor_1_options = {
                $AutoPlay: 1,
                $SlideshowOptions: {
                  $Class: $JssorSlideshowRunner$,
                  $Transitions: jssor_1_SlideshowTransitions,
                  $TransitionsOrder: 1
                },
                $ArrowNavigatorOptions: {
                  $Class: $JssorArrowNavigator$
                },
                $ThumbnailNavigatorOptions: {
                  $Class: $JssorThumbnailNavigator$,
                  $SpacingX: 5,
                  $SpacingY: 5
                }
              };
  
              var jssor_1_slider = new $JssorSlider$("jssor_1", jssor_1_options);
  
              /*#region responsive code begin*/
  
              var MAX_WIDTH = 980;
  
              function ScaleSlider() {
                  var containerElement = jssor_1_slider.$Elmt.parentNode;
                  var containerWidth = containerElement.clientWidth;
  
                  if (containerWidth) {
  
                      var expectedWidth = Math.min(MAX_WIDTH || containerWidth, containerWidth);
  
                      jssor_1_slider.$ScaleWidth(expectedWidth);
                  }
                  else {
                      window.setTimeout(ScaleSlider, 30);
                  }
              }
  
              ScaleSlider();
  
              $Jssor$.$AddEvent(window, "load", ScaleSlider);
              $Jssor$.$AddEvent(window, "resize", ScaleSlider);
              $Jssor$.$AddEvent(window, "orientationchange", ScaleSlider);
              /*#endregion responsive code end*/
          };
   
  