var l;
var vitesse = 10;
var photo = 1;
var element = new Array();

function decale_left(id, limit) {

	clearInterval(element[id]);
	element[id] = setInterval("gauche('"+id+"', "+limit+");",4000);
}

function gauche(id, limit) {

	var photo_temp = id + photo;
	var photo_plus = photo + 1;
	photo_plus = id + photo_plus;

	if(photo > 0){
		document.getElementById(photo_temp).style.width = "0%";
	}else{
		photo_temp = id + limit;
		document.getElementById(photo_temp).style.width = "0%";
	}
	document.getElementById(photo_plus).style.width = "100%";
	
	photo = photo + 1;

	if(photo >= limit){
		photo = 0;
	}

}
