function mycarousel_initCallback(carousel)
{
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });
    var zon = $("#zone");
    var bg = null;
    function im(){zon.css("background-image", 'url('+bg+')');}
    $("#mycarousel > li > a").click(function(event){
	   		event.preventDefault();
   			bg = $(this).attr("href");
   			im();
	 });
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
    	 /*auto: 2,*/
       wrap: 'last',
        animation: 'slow',
        	offset: 1,
        initCallback: mycarousel_initCallback
    });
});
