function afficheVignette(cheminVignette,cheminMaxi)
	{
	document.write('<A HREF="javascript:afficheMaxi(\''+cheminMaxi+'\')"><IMG SRC="'+cheminVignette+'" HSPACE=0 VSPACE=0 BORDER=0 ALT="cliquez pour agrandir" /></A>');
	}
function afficheMaxi(chemin)
	{
	i1 = new Image;
	i1.src = chemin;
	html = '<HTML><HEAD><TITLE>Image</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)"></CENTER></BODY></HTML>';
	popupImage = window.open('','zoom','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
	popupImage.document.open();
	popupImage.focus();
	popupImage.document.write(html);
	popupImage.document.close()
	};
function change_p(a){
var cpt, b, c ;
for (cpt=1; cpt<10; cpt++){
	b='p'+cpt;
	if(document.getElementById(b)){
		document.getElementById(b).style.display='none';//cache toutes photos
	}	
}
c='p'+a;
document.getElementById(c).style.display='block';//montre la photo choisie
}

function change_t(a){
var cpt, d, e ;
for (cpt=1; cpt<10; cpt++){
	d='t'+cpt;
	if(document.getElementById(d)){
		document.getElementById(d).style.display='none';//cache tous textes
	}	
}
e='t'+a;
document.getElementById(e).style.display='block';//montre le texte choisi
document.getElementById('corps_text').style.top=0;//remet le texte à son debut
}


function change_photo(image){
	document.images['grande_photo'].src=image;
}

function change_texte(message,champ){
	if(document.getElementById){
	document.getElementById(champ).innerHTML=message;
	document.getElementById('corps_text').style.top=0;
	}
}
function popup(page){
var w = window.open(page,'pop1','width=500, height=500, top=10, left=10, resizable=yes, location=no, menubar=no, status=no, scrollbars=yes');
w.document.close();
w.focus(); 
}
