// JavaScript Document

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=400,height=300,screenX=150,screenY=150,top=150,left=150')
} 
function feu(ambiance){
setTimeout("document.getElementById('marquee').style.visibility='visible'",1000);
document.getElementById('imgmarquee').src='../images/' + ambiance + '/fond_droit2.jpg';
}

function displayPics()
{
	var photos = document.getElementById('galerie_mini') ;
	// On r?cup?re l'?l?ment ayant pour id galerie_mini
	var liens = photos.getElementsByTagName('a') ;
	// On r?cup?re dans une variable tous les liens contenu dans galerie_mini
	var big_photo = document.getElementById('big_pict') ;
	// Ici c'est l'?l?ment ayant pour id big_pict qui est r?cup?r?, c'est notre photo en taille normale
  var big_lien = document.getElementById('biglien') ;
	// Et enfin le titre de la photo de taille normale

	// Une boucle parcourant l'ensemble des liens contenu dans galerie_mini
	for (var i = 0 ; i < liens.length ; ++i) {
		// Au clique sur ces liens 
		liens[i].onclick = function() {
  big_lien.href = this.title;
 big_photo.src = this.href; 
			return false; 
		};
	}
}

window.onload = displayPics;

function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}

}

