$(document).ready(function() {
	$("ul.rubs").jcarousel({
		easing: "easein",
		auto: 5,
		scroll: 1,
		animation: 500,
		wrap: "both",
		initCallback: mycarousel_initCallback
	});
	$("ul.rubs > li > a").mouseover(function(){
		$(this).find(".label").stop().animate({top:75},200);
	}).mouseout(function(){
		$(this).find(".label").stop().animate({top:100},300,"bounceout");
	});
	$("ul.actus").jcarousel({
		vertical: true,
		easing: "easein",
		auto: 5,
		scroll: 1,
		animation: 500,
		wrap: "both"
	});
	$("ul.expos").jcarousel({
		vertical: true,
		easing: "easein",
		auto: 2,
		scroll: 1,
		animation: 500,
		wrap: "both"
	});
	$(".expositions a.goto").mouseover(function(){
		$(this).find("img").stop().animate({left:15},100,"easeout");
	}).mouseout(function(){
		$(this).find("img").stop().animate({left:0},500,"bounceout");
	});
});

function mycarousel_initCallback(carousel) {
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
    $("a.suiv").bind("click", function() {
		carousel.next();
		return false;
    });	
    $("a.prec").bind("click", function() {
        carousel.prev();   
        return false;
    });
}
