$(function () {

    //convert list to slider

    jQuery('#sliding_book_list').jcarousel({
        scroll: 1,
        wrap: 'circular',
        buttonNextHTML: '<span class="slider_nav right"></span>',
        buttonPrevHTML: '<span class="slider_nav left"></span>',
        animation: 500,
        buttonNextEvent: 'click',
        buttonPrevEvent: 'click'
    });

    var downNext = '';

    $('.jcarousel-next').mousedown(function () {
        downNext = setInterval(function () {
            $('.jcarousel-next').click();
        }, 500);
    }).mouseup(function () {
        clearInterval(downNext);
    });


    //deactivate no_js setting on #sliding_book_list

    $('ul#sliding_book_list').removeClass('no_js');
});

