var timer;
var infoCourante = 0;
var infoPrecedente = -1;
function afficherInfo() {	clearInterval (timer);
	timer = setInterval(infoSuivante, 8000);
	if ($("info"+infoCourante) && ($("info"+infoCourante)!=$("info"+infoPrecedente))) {		
		$("info"+infoCourante).style.left = "610px";
		$("info"+infoCourante).set('tween', {
			duration: 1000,
			transition: Fx.Transitions.Cubic.easeInOut
		}).tween('left', '150px');
		if ($("info"+infoPrecedente)) {		
			$("info"+infoPrecedente).set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Cubic.easeInOut
			}).tween('left', '-310px');
		}
	}
}
function infoSuivante() {
	infoPrecedente = infoCourante;
	infoCourante ++;
	if (!$("info"+infoCourante)) {infoCourante=0;}
	afficherInfo();
}
afficherInfo();
