(function($) {
    "use strict";
    /* ================ Revolution Slider. ================ */
    if ($('.tp-banner').length > 0) {
        $('.tp-banner').show().revolution({
            delay: 6000,
            startheight: 550,
            startwidth: 1140,
            hideThumbs: 1000,
            navigationType: 'none',
            touchenabled: 'on',
            onHoverStop: 'on',
            navOffsetHorizontal: 0,
            navOffsetVertical: 0,
            dottedOverlay: 'none',
            fullWidth: 'on'
        });
    }
    if ($('.tp-banner-full').length > 0) {
        $('.tp-banner-full').show().revolution({
            delay: 6000,
            hideThumbs: 1000,
            navigationType: 'none',
            touchenabled: 'on',
            onHoverStop: 'on',
            navOffsetHorizontal: 0,
            navOffsetVertical: 0,
            dottedOverlay: 'none',
            fullScreen: 'on'
        });
    }

/* ================ FAQs ================ */
$('.fa-caret-down').on('click', function(e){
      e.preventDefault();
      $(this).next().slideToggle('');
  });

    /* ================ testimonials ================ */
    $(document).ready(function() {
        $(".owl-carousel").owlCarousel({
            loop: true,
            margin: 10,
            nav: false,
			autoplay: true,
            autoplayTimeout: 3000,
			autoplayHoverPause: true,
            responsiveClass: true,
            responsive: {
                0: {
                    items: 1,
                    nav: true
                },
                700: {
                    items: 1,
                    nav: false
                },
                1170: {
                    items: 1,
                    nav: true,
                    loop: true
                }
            }
        });
    });

  })(jQuery);




  jQuery("#carousel").owlCarousel({
    autoplay: true,
    items : 4,
     loop  : true,
     margin : 30,
     nav    : true, 
     center: false,    
     navText : ["<i class='fa fa-chevron-left'></i>","<i class='fa fa-chevron-right'></i>"],
  responsiveClass: true,
  autoHeight: true,  
  autoplayTimeout: 5500,
  smartSpeed: 5500,
  nav: true,
  responsive: {
    0: {
      items: 1
    },

    600: {
      items: 3
    },

    1024: {
      items: 3
    },

    1200: {
      items: 3
    },
    1300: {
      items: 3
    },
    1400: {
      items: 4
    },
  }
});