function affiche_div(div_name){
	var ma_div=document.getElementById(div_name);
	ma_div.style.display='block';
}

function masque_div(div_name){
	var ma_div=document.getElementById(div_name);
	ma_div.style.display='none';
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

var compteur = 1;

function diaporama(){
	

	
		if(compteur<nbre_photos) 
			{
			if(compteur>1)
				{
				var old_photo=compteur-1;
				var new_photo=compteur;
				}
			else
				{
				var old_photo=nbre_photos;
				var new_photo=compteur;
				}
			compteur++;
			}
		else
			{
			var old_photo=compteur-1;
			var new_photo=compteur;
			compteur=1;
			}
	
		var divOLD=document.getElementById("photo"+old_photo);
		divOLD.style.display='none';
		var divNEW=document.getElementById("photo"+new_photo   );
		divNEW.style.display='';
		
			theTimer=setTimeout("diaporama('')",3000);
}

