
<!--
h_depart=0;
h_fin=320;
vitesse=100;
pas=2;
accelereP=1;
accelereV=50;
calq='';
calq2='';
calq3='';
function init(){
hd=h_depart; hf=h_fin;v=vitesse;p=pas;aP=accelereP;aV=accelereV;
}

function agrandir(calque,calque2,calque3){
init();
calq=document.getElementById(calque).id;
calq2=document.getElementById(calque2).id;
calq3=document.getElementById(calque3).id;
suj=document.getElementById(calq).style;
suj.display='block';
glisser();
}
function glisser(){
	if(hd<=hf){
	document.getElementById(calq).style.height=hd+'px';
	hd+=p;
	p+=aP;
	if(v>=10){/*ne doit pas devenir négatif pour IE*/
	v -= aV;}
	setTimeout("glisser()",v);
	}
else{cacher(calq2);cacher(calq3);}
}
function cacher(id){
	document.getElementById(id).style.display='none';
}
function montrer(id){
	document.getElementById(id).style.display='block';
}
function voir_cacher(id1,id2,id3){
	document.getElementById(id1).style.display='block';
	document.getElementById(id2).style.display='inLine';
	document.getElementById(id3).style.display='none';
}
rep='Imgs/';
function ChangeSrc(myid,src1,src2){
	myid=document.getElementById(myid).id;
	var source = document.getElementById(myid).src ;
	var sourceok = source.split("/");
	var j=sourceok.length;j--;//extraction du dernier élément de la chaine de caractère de l'adresse absolue (éléments séparés par des /)
		if (sourceok[j]==src1) {document.getElementById(myid).src=rep+src2;} 
		else {document.getElementById(myid).src=rep+src1;}
	}
function diapo(){
	document.getElementById('ici').src=prefixe+gd+images[i];
	commentaire=comment[i];
	if(voir_instruc=='oui'){commentaire += '<br><font color="red">(cliquer pour agrandir)</font>';}
	document.getElementById('comment').innerHTML=commentaire;
	i++;
	if(i==nb_images+1){i=1;}
	window.setTimeout("diapo()",temps*1000);
}
function ptgd(){
	voir_instruc='';
	if(gd==''){
	gd=prefixe_gd_img;
	d=document.getElementById('diapo').style;
	d.width='430px';
	/*d.top=d.right='25px';*/
} else{gd='';
	d.width='190px';
	d.top=d.left='0px';
	}
}
var images=new Array();
prefixe='Imgs/chambres/';//chemin vers repertoire
ext='jpg';//extension des images
nb_images = 9;
comment= new Array(
"titre 1",
"titre 2",
"titre 3",
"titre 4",
"titre 5",
"titre 6",
"titre 7",
"titre 8",
"titre 9");
for(j=0;j<=nb_images;j++){
images[j]=prefixe+j+'.'+ext;
}
function voir_photo(ou,numero_ph,id_com){
	document.getElementById(ou).src=images[numero_ph];
	document.getElementById(id_com).innerHTML=comment[numero_ph-1];
}
function addFav() { 
if (document.all) {
window.external.AddFavorite(location.href, document.title); 
} else {
 alert('Vous pouvez faire CTRL + D pour ajouter cette page dans vos signets, ou marque-pages.') 
} 
} 

function fermerpp(quoi){
	document.getElementById(quoi).style.display='none';
}
function voirpp(page){
	document.getElementById('ifr').src=page;
	document.getElementById('neopopup').style.display='block';	
}
//-->
