function mycarousel_initCallback(carousel)
{
    carousel.buttonNext.bind('click', function() {
        //carousel.startAuto(1);
        //carousel.next();
    });

    carousel.buttonPrev.bind('click', function() {
        //carousel.startAuto(1);
        //carousel.prev();
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    //carousel.clip.hover(function() {
    //    carousel.stopAuto();
    //}, function() {
    //    carousel.startAuto();
    //});
};

jQuery(document).ready(function() {
    myCarousel = jQuery('#mycarousel').jcarousel({
        auto: carousel_autoplay,
        wrap: 'both',
        visible: carousel_items_visible,
        itemFallbackDimension: 400,
        scroll: carousel_scroll,
        initCallback: mycarousel_initCallback
    });
});
