// JavaScript Document
function GrandePhoto(titre,photo,W,H) {
  myWin=open("","newin","width="+W+",height="+H+",resizable=1,scrollbars=0,status=0");
  myWin.document.open();
  if (myWin.blur) myWin.focus();
  myWin.resizeTo(W+8,H+56);
  myWin.document.write('<html><head><title>'+titre+'</title></head><body BGCOLOR="#ffffff" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">');
  myWin.document.write('<table border="0" cellspacing="0" cellpadding="0"><tr><td>');
  myWin.document.write('<a href="javascript:window.close();" alt="Cliquez pour fermer">');  
  myWin.document.write('<img src="'+photo+'" width="'+W+'" height="'+H+'" border="0" />');
  myWin.document.write('</a>');
  myWin.document.write("</table></tr></td>");
  myWin.document.write("</body></html>");
  myWin.document.close();  
}

function Doc () {
	alert('Cliquez sur le bouton ENREGISTRER dans la fenêtre suivante');
	var lien = "dossier_pdf.php";
	var window2=window.open(lien,"Doc",'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=550,height=210,top=0,left=0');
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function info(lien) {
	window.open(lien,'popup','width=450,height=200,toolbar=false,scrollbars=false');
}

imgPath = new Array;
SiClickGoTo = new Array;
if (document.images)
	{
	i0 = new Image;
	i0.src = '../images/photos/ph_chambres1.jpg';
	SiClickGoTo[0] = "javascript:GrandePhoto('Nos Chambres','../images/photos/ph_chambres1_maxi.jpg',450,338);";
	imgPath[0] = i0.src;
	i1 = new Image;
	i1.src = '../images/photos/ph_chambres2.jpg';
	SiClickGoTo[1] = "javascript:GrandePhoto('Nos Chambres','../images/photos/ph_chambres2_maxi.jpg',450,324);";
	imgPath[1] = i1.src;/*
	i2 = new Image;
	i2.src = 'images/contenu/ph_pres3.jpg';
	SiClickGoTo[2] = "";
	imgPath[2] = i2.src;*/	
	}
a = 0;
function ejs_img_fx(img)
	{
	if(img && img.filters && img.filters[0])
		{
		img.filters[0].apply();
		img.filters[0].play();
		}
	}

function StartAnim()
	{
	if (document.images)
		{
		document.write('<A HREF="#" onClick="ImgDest();return(false)"><IMG SRC="../images/photos/ph_chambres1.jpg" BORDER=0 CLASS=cadre ALT="Cliquez pour agrandir" NAME=defil></a>');
		defilimg();
		}
	else
		{
		document.write('<A HREF="lien1"><IMG SRC="../images/photos/ph_chambres1.jpg" CLASS=cadre BORDER=0></a>');
		}
	}
function ImgDest()
	{
	document.location.href = SiClickGoTo[a-1];
	}
function defilimg()
	{
	if (a == 2)
		{
		a = 0;
		}
	if (document.images)
		{
		ejs_img_fx(document.defil)
		document.defil.src = imgPath[a];
		tempo3 = setTimeout("defilimg()",3000);
		a++;
		}
	}



imgPath_R = new Array;
SiClickGoTo_R = new Array;
if (document.images)
	{
	i0_R = new Image;
	i0_R.src = '../images/photos/ph_resto1.jpg';
	SiClickGoTo_R[0] = "javascript:GrandePhoto('Petit déjeuner en terrasse','../images/photos/ph_resto1_maxi.jpg',400,300);";
	imgPath_R[0] = i0_R.src;
	i1_R = new Image;
	i1_R.src = '../images/photos/ph_resto3.jpg';
	SiClickGoTo_R[1] = "javascript:GrandePhoto('Salle de restaurant','../images/photos/ph_resto3_maxi.jpg',400,300);";
	imgPath_R[1] = i1_R.src;/*
	i2 = new Image;
	i2.src = 'images/contenu/ph_pres3.jpg';
	SiClickGoTo[2] = "";
	imgPath[2] = i2.src;*/	
	}
a_R = 0;
function ejs_img_fx_R(img_R)
	{
	if(img_R && img_R.filters && img_R.filters[0])
		{
		img_R.filters[0].apply();
		img_R.filters[0].play();
		}
	}

function StartAnim_R()
	{
	if (document.images)
		{
		document.write('<A HREF="#" onClick="ImgDest_R();return(false)"><IMG SRC="../images/photos/ph_resto1.jpg" BORDER=0 CLASS=cadre ALT="Cliquez pour agrandir" NAME=defil></a>');
		defilimg_R();
		}
	else
		{
		document.write('<A HREF="lien1"><IMG SRC="../images/photos/ph_resto1.jpg" CLASS=cadre BORDER=0></a>');
		}
	}
function ImgDest_R()
	{
	document.location.href = SiClickGoTo_R[a_R-1];
	}
function defilimg_R()
	{
	if (a_R == 2)
		{
		a_R = 0;
		}
	if (document.images)
		{
		ejs_img_fx_R(document.defil)
		document.defil.src = imgPath_R[a_R];
		tempo3_R = setTimeout("defilimg_R()",3000);
		a_R++;
		}
	}
function info_R(lien_R) {
	window.open(lien_R,'popup','width=450,height=200,toolbar=false,scrollbars=false');
}


function Visualiser (menu)
{var lien = "popup_menu.php?idmenu="+menu;
 var window2=window.open(lien,"popup",'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=691,height=510,Top=0,Left=0');
}
imgPath_M = new Array;
SiClickGoTo_M = new Array;
if (document.images)
	{
	i0_M = new Image;
	i0_M.src = '../images/photos/ph_plat1.jpg';
	SiClickGoTo_M[0] = "javascript:GrandePhoto('Un exemple de plat','../images/photos/ph_plat1_maxi.jpg',400,267);";
	imgPath_M[0] = i0_M.src;
	i1_M = new Image;
	i1_M.src = '../images/photos/ph_plat2.jpg';
	SiClickGoTo_M[1] = "javascript:GrandePhoto('Un exemple de plat','../images/photos/ph_plat2_maxi.jpg',400,267);";
	imgPath_M[1] = i1_M.src;
	i2_M = new Image;
	i2_M.src = '../images/photos/ph_plat3.jpg';
	SiClickGoTo_M[2] = "javascript:GrandePhoto('Un exemple de plat','../images/photos/ph_plat3_maxi.jpg',400,267);";
	imgPath_M[2] = i2_M.src;	
	}
a_M = 0;
function ejs_img_fx_M(img_M)
	{
	if(img_M && img_M.filters && img_M.filters[0])
		{
		img_M.filters[0].apply();
		img_M.filters[0].play();
		}
	}

function StartAnim_M()
	{
	if (document.images)
		{
		document.write('<A HREF="#" onClick="ImgDest_M();return(false)"><IMG SRC="../images/photos/ph_plat1.jpg" BORDER=0 CLASS=cadre ALT="Cliquez pour agrandir" NAME=defil></a>');
		defilimg_M();
		}
	else
		{
		document.write('<A HREF="lien1"><IMG SRC="../images/photos/ph_plat1.jpg" CLASS=cadre BORDER=0></a>');
		}
	}
function ImgDest_M()
	{
	document.location.href = SiClickGoTo_M[a_M-1];
	}
function defilimg_M()
	{
	if (a_M == 3)
		{
		a_M = 0;
		}
	if (document.images)
		{
		ejs_img_fx_M(document.defil)
		document.defil.src = imgPath_M[a_M];
		tempo3_M = setTimeout("defilimg_M()",3000);
		a_M++;
		}
	}
function info_M(lien_M) {
	window.open(lien_M,'popup','width=450,height=200,toolbar=false,scrollbars=false');
}




//english
function info_en(lien_en) {
	window.open(lien_en,'../popup','width=450,height=200,toolbar=false,scrollbars=false');
}

imgPath_en = new Array;
SiClickGoTo_en = new Array;
if (document.images)
	{
	i0_en = new Image;
	i0_en.src = '../../images/photos/ph_chambres1.jpg';
	SiClickGoTo_en[0] = "javascript:GrandePhoto('Nos Chambres','../../images/photos/ph_chambres1_maxi.jpg',450,338);";
	imgPath_en[0] = i0_en.src;
	i1_en = new Image;
	i1_en.src = '../../images/photos/ph_chambres2.jpg';
	SiClickGoTo_en[1] = "javascript:GrandePhoto('Nos Chambres','../../images/photos/ph_chambres2_maxi.jpg',450,324);";
	imgPath_en[1] = i1_en.src;/*
	i2 = new Image;
	i2.src = 'images/contenu/ph_pres3.jpg';
	SiClickGoTo[2] = "";
	imgPath[2] = i2.src;*/	
	}
a_en = 0;
function ejs_img_fx_en(img_en)
	{
	if(img_en && img_en.filters && img_en.filters[0])
		{
		img_en.filters[0].apply();
		img_en.filters[0].play();
		}
	}

function StartAnim_en()
	{
	if (document.images)
		{
		document.write('<A HREF="#" onClick="ImgDest_en();return(false)"><IMG SRC="../../images/photos/ph_chambres1.jpg" BORDER=0 CLASS=cadre ALT="Clic to enlarge" NAME=defil></a>');
		defilimg_en();
		}
	else
		{
		document.write('<A HREF="lien1"><IMG SRC="../../images/photos/ph_chambres1.jpg" CLASS=cadre BORDER=0></a>');
		}
	}
function ImgDest_en()
	{
	document.location.href = SiClickGoTo_en[a_en-1];
	}
function defilimg_en()
	{
	if (a_en == 2)
		{
		a_en = 0;
		}
	if (document.images)
		{
		ejs_img_fx_en(document.defil)
		document.defil.src = imgPath_en[a_en];
		tempo3_en = setTimeout("defilimg_en()",3000);
		a_en++;
		}
	}


imgPath_Ren = new Array;
SiClickGoTo_Ren = new Array;
if (document.images)
	{
	i0_Ren = new Image;
	i0_Ren.src = '../../images/photos/ph_resto1.jpg';
	SiClickGoTo_Ren[0] = "javascript:GrandePhoto('Petit déjeuner en terrasse','../../images/photos/ph_resto1_maxi.jpg',400,300);";
	imgPath_Ren[0] = i0_Ren.src;
	i1_Ren = new Image;
	i1_Ren.src = '../../images/photos/ph_resto3.jpg';
	SiClickGoTo_Ren[1] = "javascript:GrandePhoto('Salle de restaurant','../../images/photos/ph_resto3_maxi.jpg',400,300);";
	imgPath_Ren[1] = i1_Ren.src;/*
	i2 = new Image;
	i2.src = 'images/contenu/ph_pres3.jpg';
	SiClickGoTo[2] = "";
	imgPath[2] = i2.src;*/	
	}
a_Ren = 0;
function ejs_img_fx_Ren(img_Ren)
	{
	if(img_Ren && img_Ren.filters && img_Ren.filters[0])
		{
		img_Ren.filters[0].apply();
		img_Ren.filters[0].play();
		}
	}

function StartAnim_Ren()
	{
	if (document.images)
		{
		document.write('<A HREF="#" onClick="ImgDest_Ren();return(false)"><IMG SRC="../images/photos/ph_resto1.jpg" BORDER=0 CLASS=cadre ALT="Clic to enlarge" NAME=defil></a>');
		defilimg_Ren();
		}
	else
		{
		document.write('<A HREF="lien1"><IMG SRC="../images/photos/ph_resto1.jpg" CLASS=cadre BORDER=0></a>');
		}
	}
function ImgDest_Ren()
	{
	document.location.href = SiClickGoTo_Ren[a_Ren-1];
	}
function defilimg_Ren()
	{
	if (a_Ren == 2)
		{
		a_Ren = 0;
		}
	if (document.images)
		{
		ejs_img_fx_Ren(document.defil)
		document.defil.src = imgPath_Ren[a_Ren];
		tempo3_Ren = setTimeout("defilimg_Ren()",3000);
		a_Ren++;
		}
	}
function info_Ren(lien_Ren) {
	window.open(lien_Ren,'popup','width=450,height=200,toolbar=false,scrollbars=false');
}


function Visualiser_en (menu_en)
{var lien_en = "popup_menu.php?idmenu="+menu_en;
 var window2=window.open(lien_en,"popup",'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=691,height=510,Top=0,Left=0');
}
imgPath_Men = new Array;
SiClickGoTo_Men = new Array;
if (document.images)
	{
	i0_Men = new Image;
	i0_Men.src = '../../images/photos/ph_plat1.jpg';
	SiClickGoTo_Men[0] = "javascript:GrandePhoto('Un exemple de plat','../../images/photos/ph_plat1_maxi.jpg',400,267);";
	imgPath_Men[0] = i0_Men.src;
	i1_Men = new Image;
	i1_Men.src = '../../images/photos/ph_plat2.jpg';
	SiClickGoTo_Men[1] = "javascript:GrandePhoto('Un exemple de plat','../../images/photos/ph_plat2_maxi.jpg',400,267);";
	imgPath_Men[1] = i1_Men.src;
	i2_Men = new Image;
	i2_Men.src = '../../images/photos/ph_plat3.jpg';
	SiClickGoTo_Men[2] = "javascript:GrandePhoto('Un exemple de plat','../../images/photos/ph_plat3_maxi.jpg',400,267);";
	imgPath_Men[2] = i2_Men.src;	
	}
a_Men = 0;
function ejs_img_fx_Men(img_Men)
	{
	if(img_Men && img_Men.filters && img_Men.filters[0])
		{
		img_Men.filters[0].apply();
		img_Men.filters[0].play();
		}
	}

function StartAnim_Men()
	{
	if (document.images)
		{
		document.write('<A HREF="#" onClick="ImgDest_Men();return(false)"><IMG SRC="../../images/photos/ph_plat1.jpg" BORDER=0 CLASS=cadre ALT="Clic to enlarge" NAME=defil></a>');
		defilimg_Men();
		}
	else
		{
		document.write('<A HREF="lien1"><IMG SRC="../../images/photos/ph_plat1.jpg" CLASS=cadre BORDER=0></a>');
		}
	}
function ImgDest_Men()
	{
	document.location.href = SiClickGoTo_Men[a_Men-1];
	}
function defilimg_Men()
	{
	if (a_Men == 3)
		{
		a_Men = 0;
		}
	if (document.images)
		{
		ejs_img_fx_Men(document.defil)
		document.defil.src = imgPath_Men[a_Men];
		tempo3_Men = setTimeout("defilimg_Men()",3000);
		a_Men++;
		}
	}
function info_Men(lien_Men) {
	window.open(lien_Men,'popup','width=450,height=200,toolbar=false,scrollbars=false');
}

