//----------------------------------------------------------------
// photos grand format sur page "window1_fr_left" idem pour "nl" et "en".
imag1 = new Image()
imag2 = new Image()
imag3 = new Image()
imag4 = new Image()
imag5 = new Image()
imag6 = new Image()
imag7 = new Image()

imag1.src="images/situation_anime.gif"
imag2.src="images/cadre_anime.gif"
imag3.src="images/IMG0016.jpg"
imag4.src="images/keuken.jpg"
imag5.src="images/IMG0047.jpg"
imag6.src="images/dirk_anime.gif"
imag7.src="images/Henry.jpg"

tab_img = new Array(imag1,imag2,imag3,imag4,imag5,imag6,imag7)
//--------------------------------------------------------------------
function bougephoto(){
	var deplv = document.body.scrollTop
	photo_base_v.style.top=deplv+15
	photo_base_h.style.top=deplv+15
	dirk_app.style.top=deplv+15
	fac_app.style.top=deplv+15
	cadre_app.style.top=deplv+15
}
//--------------------------------------------------------------------
/*
function change(){
	if(i==2){i=0}
	document.top_image.src=tab_img[i].src
	i=i+1
	window.setTimeout("change()",2000)
	switch (i){
	case 2:
		document.label_clic.style.display=""
		break
	default:
		document.label_clic.style.display="none"
	}
}
*/
//----------------------------------------------------------------
// Agrandissement photo restaurant sur la page index.html par
// l'ouverture d'une nouvelle fenêtre et fermeture automatique après
// 4 secondes.
/*
function big_dame(){
		window_dame=window.open("dame_high.html","window_dame","height=450,width=300,top=0,left=0")
		setTimeout("window_dame.close()",4000)
}
*/
//----------------------------------------------------------------
// Ouverture d'une nouvelle fenêtre et fermeture par
// clic sur bouton.
function open_window_menu(nom_window,haut,larg,posih,posiv,scroll){
		window.open(nom_window,"window_menu","height="+haut+",width="+larg+",top="+posiv+",left="+posih+",scrollbars="+scroll+"")
}
// Fermeture
function close_window_menu(nom_window){
		window.close(nom_window)
		}
//----------------------------------------------------------------
// Fonction utilisée dans les tags <a> contenant les images choix des langues.
//Elle teste la version du navigateur : Netscape > ou = 3.0 et Explorer > ou = 4.0
//Si c'est le cas la fonction retourne "true" et l'image "flamm_3" sera affichée dans le MouseOver.

function VersionNavigateur(Netscape, Explorer) {
  if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      
      (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
    return true;
	else
	return false;
}
//----------------------------------------------------------------
//Fonction testant le nom du navigateur.
//Si c'est "Netscape" la fonction retourne "true"

function NomNavigateur() {
  if (navigator.appName == 'Netscape')     
    return true;
	else
	return false;
}
//----------------------------------------------------------------
// Agrandissement photo par l'ouverture d'une nouvelle fenêtre 
// contenant la photo en grand format.
// Les variables passées à cette fonction sont :
//			1. nom du fichier html contenant la photo grand format
//			2. hauteur nouvelle fenêtre (= hauteur photo)
//			3. largeur nouvelle fenêtre (= largeur photo)
//			4. position horizontale
//			5. position verticale
// La fonction soustrait la valeur "5" en hauteur et en largeur de façon
// à ce que la photo remplisse complètement la fenêtre.
function open_big_photo(nom_window,haut,larg,posih,posiv){
		haut=haut-5;larg=larg-5
		window.open(nom_window,"window_big_photo","height="+haut+",width="+larg+",top="+posiv+",left="+posih+"")
}
// Fermeture
function close_big_photo(){
		window.close("window_big_photo")
		}
//----------------------------------------------------------------

function tip_ok_none(){
		document.tip_ok.style.display="none"
		}
function tip_ok_displ(){
		document.tip_ok.style.display=""
		}
//----------------------------------------------------------------
function print_banquet()
{
window.print();
window.close();
}
//----------------------------------------------------------------
function voirphoto(i,x){
	switch(x){
		case 1:
		document.photo_base_v.src=tab_img[i].src
		document.photo_base_v.style.display=""
		break
		case 2:
		document.photo_base_h.src=tab_img[i].src
		document.photo_base_h.style.display=""
		break
		}
	}
function voirphoto_n(i,x,dv){
	switch(x){
		case 1:
		document.photo_base_v.src=tab_img[i].src
		document.photo_base_v.style.display=""
		document.photo_base_v.style.top=dv
		break
		case 2:
		document.photo_base_h.src=tab_img[i].src
		document.photo_base_h.style.display=""
		document.photo_base_h.style.top=dv
		break
		}
	}
function cachephoto(x){
	switch(x){
		case 1:
		document.photo_base_v.style.display="none"
		case 2:
		document.photo_base_h.style.display="none"
		}
	}
function voir_dirk_app(){
	document.dirk_app.style.display=""
	}
function cache_dirk_app(){
	document.dirk_app.style.display="none"
	}
function voir_fac_app(){
	document.fac_app.style.display=""
	}
function cache_fac_app(){
	document.fac_app.style.display="none"
	}
function voir_cadre_app(){
	document.cadre_app.style.display=""
	}
function cache_cadre_app(){
	document.cadre_app.style.display="none"
	}
//----------------------------------------------------------------
function voit_avis_displ(){
	document.voit_avis.style.display=""
	}
function voit_avis_none(){
	document.voit_avis.style.display="none"
	}
//----------------------------------------------------------------
function photo_map_displ(){
	document.photo_map.style.display=""
	}
function photo_map_none(){
	document.photo_map.style.display="none"
	}
//----------------------------------------------------------------
