function mycarousel_initCallback(carousel) {
    $("#genreHighlightCarousel").css("visibility", "visible");

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });

    jQuery('.jcarousel-control a').bind('click', function() {
        //carousel.startAuto(0);
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
        return false;
    });

    jQuery('#mycarousel-next').bind('click', function() {
        carousel.startAuto(0);
        carousel.next();
        return false;
    });

    jQuery('#mycarousel-prev').bind('click', function() {
        carousel.startAuto(0);
        carousel.prev();
        return false;
    });
};

// Ride the carousel...
jQuery(document).ready(function() {
    $("#genreHighlightCarousel").css("visibility", "hidden");
    jQuery("#genreHighlightCarousel").jcarousel({
        scroll: 1,
        auto: 3,
        wrap: 'last',
        animation: 'slow',
        initCallback: mycarousel_initCallback
    });
});
