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

    /*
     * Complimented Items
     */
    slickComplimentedItems();


}); // document ready

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

    'use strict';

    /*
     * Complimented Items
     */
    slickComplimentedItems();

})); // debounce



function slickComplimentedItems() {

    'use strict';


    if ($('.complimentedList li').length) {


        var element_to_slick = '.complimentedList';

        var slides = 4,
            width = $(window).width();

        if(width <= 980) {
            slides = 3;
        }

        if(width <= 640) {
            slides = 2;
        }

        if(width <= 420) {
            slides = 1;
        }

        slickItAlt(element_to_slick, {
            dots : true,
            infinite : true,
            arrows : true,
            autoplay : false,
            slidesToShow: slides,
            slidesToScroll: 1,
            fade: false,
            pauseOnFocus: true,
            pauseOnHover: false
        });




    }

}
