var nombre=1
var actuel=1
var album=1
var ident


function defil(argu,argu2)
{
	if (argu2!=album) { actuel=1 }
	album=argu2
	nombre=argu;
	ident=window.setTimeout(defil2,1500);
}
function defil2()
{
	var numero='Mini'+album+'.'+actuel+'.jpg';
	document.getElementById("album"+album).innerHTML=" <a href=\"album"+album+".html\" ><img src=\"../pictures/"+numero+"\" height=\"150px\" onMouseOver=\"defil("+nombre+","+album+");\" onMouseOut=\"stop_defil();\" >";
	actuel+=1
	if (actuel-1==nombre) { actuel=1 }
}
function stop_defil()
{
	window.clearTimeout(ident)
}
function diapo(argu1,argu2,argu3)
{
	actuel=actuel+argu3;
	if (actuel==0){actuel=argu1}
	if (actuel==argu1+1){actuel=1}
	var numero='Album'+argu2+'.'+actuel+'.jpg';
	document.getElementById("diapo").innerHTML="<img src=\"../pictures/"+numero+"\" height=\"400px\" >";

}
