function mycarousel_initCallback(carousel)
{
	//jump to slide preview
	jQuery('#slides img').hover(function() {
		carousel.scroll(parseInt(this.id.substr(6)));
	}, function () {});
};

function mycarousel_itemVisibleInCallback(carousel, item, i, state, evt)
{
	jQuery('#slides img').removeClass('showing');
	jQuery('#slide-' + i).addClass('showing');
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
		scroll: 1,
		auto: 15,
        wrap: 'last',
		itemVisibleInCallback: {onBeforeAnimation: mycarousel_itemVisibleInCallback},
		initCallback: mycarousel_initCallback,
        buttonNextHTML: null,
        buttonPrevHTML: null,
		animation: 0
    });
});