$('document').ready(function () {
    'use strict';

    /*
     * Featured Items
     */

    if ($('.popularClinics .wrapper ul li').length) {

        slickIt('.popularClinics .wrapper ul', window.breakpoints.tablet + 20, {
            dots: true,
            infinite: false,
            arrows: false,
            autoplay: false,
            slidesToShow: 3,
            slidesToScroll: 3,
            responsive: [ {
                breakpoint: (window.breakpoints.mobile + 1),
                settings: {
                    slidesToShow: 2,
                    slidesToScroll: 2,
                    arrows: false,
                    dots: true
                }
            }]
        });
    }

}); // document ready

$(window).on('resize', debouncer(function (e) {
    'use strict';

    /*
     * Featured Items
     */

    if ($('.popularClinics .wrapper ul li').length) {

        slickIt('.popularClinics .wrapper ul', window.breakpoints.tablet + 20, {
            dots: true,
            infinite: false,
            arrows: false,
            autoplay: false,
            slidesToShow: 3,
            slidesToScroll: 3,
            responsive: [ {
                breakpoint: (window.breakpoints.mobile + 1),
                settings: {
                    slidesToShow: 2,
                    slidesToScroll: 2,
                    arrows: false,
                    dots: true
                }
            }]
        });
    }

})); // debounce
