$(document).ready(function(){
	$(".bg_bandeau div.bloc_1 a").hover(
	// animate opacity to full
	function () {
		$(this).find('span').stop().animate({
		top: 0
		}, 100);
	},
	// on mouse out
	function () {
		// animate opacity to nill
		$(this).find('span').stop().animate({
		top: -144
		}, 100);
	});
});
$(document).ready(function(){
	$(".bg_bandeau div.bloc_2 a").hover(
	// animate opacity to full
	function () {
		$(this).find('span').stop().animate({
		top: 0
		}, 100);
	},
	// on mouse out
	function () {
		// animate opacity to nill
		$(this).find('span').stop().animate({
		top: -162
		}, 100);
	});
});
$(document).ready(function(){
	$(".bg_bandeau div.bloc_3 a").hover(
	// animate opacity to full
	function () {
		$(this).find('span').stop().animate({
		top: 0
		}, 100);
	},
	// on mouse out
	function () {
		// animate opacity to nill
		$(this).find('span').stop().animate({
		top: -182
		}, 100);
	});
});
$(document).ready(function(){
	$(".bg_bandeau div.bloc_4 a").hover(
	// animate opacity to full
	function () {
		$(this).find('span').stop().animate({
		top: 0
		}, 100);
	},
	// on mouse out
	function () {
		// animate opacity to nill
		$(this).find('span').stop().animate({
		top: -163
		}, 100);
	});
});
$(document).ready(function(){
	$(".bg_bandeau div.bloc_5 a").hover(
	// animate opacity to full
	function () {
		$(this).find('span').stop().animate({
		top: 0
		}, 100);
	},
	// on mouse out
	function () {
		// animate opacity to nill
		$(this).find('span').stop().animate({
		top: -144
		}, 100);
	});

var num_bloc = 1;
/*
setInterval(function(){
	var height_bloc   = [0, -144, -162, -182, -163, -144];
	var num_bloc_prec = (num_bloc == 1) ? 5 : num_bloc-1;
	$(".bg_bandeau div.bloc_"+ num_bloc +" a").find('span').stop().animate({
		top: 0
	}, 100);
	$(".bg_bandeau div.bloc_"+ num_bloc_prec +" a").find('span').stop().animate({
		top: height_bloc[num_bloc_prec]
	}, 100);

	num_bloc = (num_bloc >= 5) ? 1 : num_bloc+1;
},2000);
*/
});
