<!--
var nb_photo = new Array();

nb_photo[1]=5;
nb_photo[2]=3;
nb_photo[3]=2;
nb_photo[4]=4;

nb_chambre = 4;
nb_photo_max = 5;

var prefixe = "cha";

var indice_chambre = 1;
var indice_photo = 1;

function affiche_boutons()
	{
	//affiche les boutons necessaires et masque les autres
	nbr_a_afficher = nb_photo[indice_chambre];
	for(a=1;a<=nb_photo_max;a++)
		{
		var div_bnav=document.getElementById("bnav"+a);
		
		if (a<=nbr_a_afficher)
			div_bnav.style.display='';
		else
			div_bnav.style.display='none';
		}
	}

function affiche_boutonON()
	{
	//affiche le bouton en ON et les autres en OFF
	for(a=1;a<=nb_photo_max;a++)
		{
		if(a==indice_photo)
			document.images['b'+a].src="../images/diapo/nav/b"+a+"on.jpg";
		else
			document.images['b'+a].src="../images/diapo/nav/b"+a+"off.jpg";
		}
	}


function affiche_puceON()	//
	{
	//affiche le bouton en ON et les autres en OFF
	for(a=1;a<=nb_chambre;a++)
		{
		if(a==indice_chambre)
			document.images['puce'+a].src="../images/puce.gif";
		else
			document.images['puce'+a].src="../images/pxl.gif";
		}
	}

function affiche_photo()
	{
	//affiche la [i_pho]iśme photo de la [i_cha]iśme chambre
	document.images.photo.src="../images/diapo/photos/"+prefixe+indice_chambre+"pho"+indice_photo+".jpg";
	}
	
function test_lien(i,b){
if (navigator.appName=="Microsoft Internet Explorer"){
document.links[b+i].blur();}
}

function zape_chambre(i_cha)
	{
	indice_chambre = i_cha;
	indice_photo = 1;
	//passer d'une chambre  l'autre
	affiche_boutons();
	affiche_boutonON();
	affiche_puceON()
	affiche_photo();
	test_lien(indice_chambre,6);
	}

function zape_photo(i_pho)
	{
	indice_photo = i_pho;
	//passer d'une chambre  l'autre
	affiche_boutonON();
	affiche_photo();
	test_lien(indice_photo,10);
	}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
//-->
