$j(document).ready(function(){

	var time = 5000;
	getslideup = setTimeout('set_net()', time);
	
	$j(".news").hover(function(){
	
		var set_time = $j(this).attr("id").split("news_");
		set_time = set_time[1];
		get_next(set_time,'fast');
	});
	
});


var numAffiche = 1;
var getslideup;
var time = 5000;

function get_next(num,type){

	if(num != numAffiche){
		if(num>5) { num=1; }
		
		$j(".slideshow_div").stop(true, true);
		$j(".img_slc_affiche img").stop(true, true);
		
		$j(".news").removeClass("trackid");
		$j("#news_"+num).addClass("trackid");
		
		$j("#affiche_"+numAffiche).fadeOut(type, function () {
		$j("#affiche_"+num).fadeIn(type);
      });

	
		numAffiche = num;
		clearTimeout(getslideup);
		getslideup = setTimeout('set_net()', time);
	}
}
function set_net(){
	get_next(numAffiche+1,'slow');	
}
