function mycarousel2_initCallback(carousel2)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel2.buttonNext.bind('click', function() {
        carousel2.startAuto(0);
    });

    carousel2.buttonPrev.bind('click', function() {
        carousel2.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel2.clip.hover(function() {
        carousel2.stopAuto();
    }, function() {
        carousel2.startAuto();
    });
	//$("#mycarousel2 li").css("display","block");
};

jQuery(document).ready(function() {
    jQuery('#mycarousel2').jcarousel2({
        auto: 3,
        wrap: 'last',
        initCallback: mycarousel2_initCallback
    });
});
