function mycarousel_initCallback(carousel) {

	$('#wideContent li').css('display','inline-block');
    //jQuery('.jcarousel-control a').bind('click', function() {
    //    carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
    //    return false;
    //});

    //jQuery('.jcarousel-scroll select').bind('change', function() {
    //    carousel.options.scroll = jQuery.jcarousel.intval(this.options[this.selectedIndex].value);
    //    return false;
    //});

    //jQuery('#carousel-next').bind('click', function() {
    //    carousel.next();
    //    return false;
    //});

    //jQuery('#carousel-prev').bind('click', function() {
    //    carousel.prev();
    //    return false;
    //});
};

// Ride the carousel...
jQuery(document).ready(function() {
    jQuery("#wideContent").jcarousel({
        scroll: 3,
        start: parseInt(window.carouselNdx),
        initCallback: mycarousel_initCallback
    });
    
    $('img.packshotsmall').each(function() {
    	topMargin = 75-parseInt($(this).height());
    	$(this).css('margin-top',topMargin);
    });
    
});

