(function(jQuery) {

"use strict";

/*------------------------------------
  HT Predefined Variables
--------------------------------------*/
var jQuerywindow = jQuery(window),
    jQuerydocument = jQuery(document),
    jQuerybody = jQuery('body');

//Check if function exists
jQuery.fn.exists = function () {
  return this.length > 0;
};

function swiperslider() {

var bannerswiper = new Swiper(".banner-swiper", {
        slidesPerView: 1,
        spaceBetween: 0,
        speed: 1500,
        effect: "fade",
        autoplay: {
            delay: 7000,
            disableOnInteraction: false
          },
       navigation: {
          nextEl: "#banner-swiper-button-next",
          prevEl: "#banner-swiper-button-prev",
        },
        loop: true,
      });

var portfolioswiper = new Swiper(".portfolio-swiper", {
        slidesPerView: 4,
        spaceBetween: 30,
        loop: true,

          pagination: {
        el: "#portfolio-pagination",
        clickable: true,
      },
       navigation: {
          nextEl: "#portfolio-swiper-button-next",
          prevEl: "#portfolio-swiper-button-prev",
        },
        speed: 2500,
        breakpoints: {
          0: {
            slidesPerView: 1,
            spaceBetween: 0,
          },
           640: {
            slidesPerView: 1,
            spaceBetween: 0,
          },
          768: {
            slidesPerView: 2,
            spaceBetween: 20,
          },
          1024: {
            slidesPerView: 2,
            spaceBetween: 30,
          },
        },
      });


var testimonialswiper = new Swiper(".testimonial-swiper", {
        slidesPerView: 1,
        spaceBetween: 10,
        loop: true,
        centeredSlides: false,
        speed: 1500,
        autoplay: {
          delay: 5000,
          disableOnInteraction: false,
        },
        pagination: {
        el: "#testimonial-pagination",
        clickable: true,
      },
        navigation: {
          nextEl: "#testimonial-swiper-button-next",
          prevEl: "#testimonial-swiper-button-prev",
        },
      breakpoints: {
          0: {
            slidesPerView: 1,
            spaceBetween: 0,
          },
           640: {
            slidesPerView: 1,
            spaceBetween: 10,
          },
          768: {
            slidesPerView: 1,
            spaceBetween: 10,
          },
          1024: {
            slidesPerView: 1,
            spaceBetween: 10,
          },
        },
      });

var testimonialswiper2 = new Swiper(".testimonial-swiper2", {
        slidesPerView: 1,
        spaceBetween: 0,
        speed: 2500,
        loop: true,
        autoplay: {
          delay: 7000,
          disableOnInteraction: false,
        },
        breakpoints: {
          0: {
            slidesPerView: 1,
            spaceBetween: 0,
          },
           640: {
            slidesPerView: 1,
            spaceBetween: 0,
          },
          768: {
            slidesPerView: 2,
            spaceBetween: 0,
          },
          1024: {
            slidesPerView: 2,
            spaceBetween: 0,
          },
        },
      });

var teamswiper = new Swiper(".team-swiper", {
        slidesPerView: 4,
        spaceBetween: 50,
        speed: 1500,
        loop: true,
        autoplay: {
        delay: 7000,
        disableOnInteraction: false,
      },
        pagination: {
        el: "#team-pagination",
        clickable: true,
      },
      navigation: {
          nextEl: "#team-swiper-button-next",
          prevEl: "#team-swiper-button-prev",
        },
        breakpoints: {
          0: {
            slidesPerView: 1,
            spaceBetween: 0,
          },
           640: {
            slidesPerView: 1,
            spaceBetween: 0,
          },
          768: {
            slidesPerView: 2,
            spaceBetween: 20,
          },
          1024: {
            slidesPerView: 4,
            spaceBetween: 50,
          },
        },
      });

var postswiper = new Swiper(".post-swiper", {
        slidesPerView: 3,
        spaceBetween: 30,
        speed: 2500,
        loop: true,
        autoplay: {
        delay: 7000,
        disableOnInteraction: false,
      },
        pagination: {
        el: "#post-pagination",
        clickable: true,
      },
        breakpoints: {
          0: {
            slidesPerView: 1,
            spaceBetween: 0,
          },
           640: {
            slidesPerView: 1,
            spaceBetween: 0,
          },
          768: {
            slidesPerView: 2,
            spaceBetween: 20,
          },
          1024: {
            slidesPerView: 3,
            spaceBetween: 30,
          },
        },
      });


var serviceswiper = new Swiper(".service-swiper", {
        slidesPerView: 4,
        spaceBetween: 0,
        loop: true,
        centeredSlides: true,
        speed: 1500,
        autoplay: {
          delay: 7000,
          disableOnInteraction: false,
        },
        pagination: {
        el: "#service-pagination",
        clickable: true,
      },
        breakpoints: {
          0: {
            slidesPerView: 1,
            spaceBetween: 0,
          },
           640: {
            slidesPerView: 1,
            spaceBetween: 0,
          },
          768: {
            slidesPerView: 2,
            spaceBetween: 0,
          },
          1024: {
            slidesPerView: 4,
            spaceBetween: 0,
          },
        },
      });

var serviceswiper2 = new Swiper(".service-swiper2", {
        slidesPerView: 3,
        spaceBetween: 30,
        speed: 2500,
        loop: true,
        autoplay: {
        delay: 7000,
        disableOnInteraction: false,
      },
        pagination: {
        el: "#service-pagination",
        clickable: true,
      },
       navigation: {
          nextEl: "#service-swiper-button-next",
          prevEl: "#service-swiper-button-prev",
        },
        breakpoints: {
          0: {
            slidesPerView: 1,
            spaceBetween: 0,
          },
           640: {
            slidesPerView: 1,
            spaceBetween: 0,
          },
          768: {
            slidesPerView: 2,
            spaceBetween: 0,
          },
          1024: {
            slidesPerView: 2,
            spaceBetween: 0,
          },
          1600: {
            slidesPerView: 3,
            spaceBetween: 0,
          },
        },
      });

var clientswiper = new Swiper(".client-swiper", {
        spaceBetween: 0,
  centeredSlides: true,
  speed: 6000,
  autoplay: {
    delay: 1,
  },
  loop: true,
  slidesPerView:'auto',
  allowTouchMove: false,
  disableOnInteraction: true
      });

};


/*------------------------------------
  HT Window load and functions
--------------------------------------*/
jQuery(document).ready(function() {
    swiperslider();
});

})(jQuery);