$(function() {
	$(window).load(function() {
		$('#gui_bandeaux').cycle({
			fx: 'fade',
			speed: 3000,
			timeout: 10000,
			before: function() {
				$('h1', this).css({	
					left: '-450px'
				});
			},
			after: function() {
				$('h1', this).css('visibility', 'visible').animate({
					left: '450px'
				}, 5000);
			}		
		});
		
		$('#gui_actus').jcarousel({
			visible: 2,
			scroll: 1,
			auto: 5,
			wrap: 'last',
			initCallback: function(carousel) {
				$('.jcarousel-prev, .jcarousel-next').hide().css('opacity', 0.7);
				
				$('#gui_actus').hover(function() {
					carousel.stopAuto();
					$('.jcarousel-prev, .jcarousel-next').show(100);
				}, function() {
					carousel.startAuto();
					$('.jcarousel-prev, .jcarousel-next').hide(100);
				});
			}
		});
	});
	
	$('#gui_breves .gui_breve').marquee().mouseover(function() {
		$(this).trigger('stop');
	}).mouseout(function() {
		$(this).trigger('start');
	});
});
