function itemVisibleInHandlerBeforeAnimation(carousel, li, idx, state) {
    // No animation on first load of the carousel
    if (state == "init")
        return;

    jQuery("img", li).show("slow");
}

function itemVisibleOutHandlerBeforeAnimation(carousel, li, idx, state) {
    jQuery("img", li).hide("slow");
}

// Ride the carousel...
jQuery(document).ready(function() {
    jQuery("#mycarousel").jcarousel({
        itemScroll: 3,
        scrollAnimation: "slow",
        itemVisibleInHandler: {
            onBeforeAnimation: itemVisibleInHandlerBeforeAnimation
        },
        itemVisibleOutHandler: {
            onBeforeAnimation: itemVisibleOutHandlerBeforeAnimation
        }
    });
});
