/* Affiche le 1er logo */
$(function(){ 
	$('.displayOff:first').show(); 
});

/* Timer de 5s */
var numBox = 0;
setInterval('compteur()', 5000);

/* Fonction qui gère l'affichage des actualités */
function compteur()
{
	var partnerBox = $('.partner');
	var countBox = partnerBox.find('.displayOff').length;	
	
	$(".displayOff").hide();

	numBox += 1;
	
	if(numBox == countBox){ numBox = 0; }	
	
	partnerBox.find(".displayOff:eq(" + numBox + ")").fadeIn(300);
	
	return numBox;
}

/********************/
/** Actus rotation **/
$( function(){ $( '.tabs-content-box:first' ).show();  });

var current = 0;
setInterval( 'showHide()', 10000 );

function showHide()
{	
	var actuBox  = $( '#diapo-actu' );
	var countBox = $( '.tabs-content-box' ).length;
	
	$(".tabs-content-box").hide();
	
	current += 1;
	
	if( current == countBox ){ current = 0; }
	
	actuBox.find( '.tabs-content-box:eq(' + current + ')' ).fadeIn( 300 );
		
	return current;
}







