// JavaScript Document
/* ######################################### */
/* PHOTOS ZOOM */

// photo larges vue d'avion
var coeff=2;//Coefficient de reduction
var larg=400;//largeur maxi de l'image
var haut=200;//hauteur maxi de l'image
function changer() {
if (document.image.width < larg) {
coeff = coeff-0.2;
document.image.width = Math.round(larg/coeff);
document.image.height = Math.round(haut/coeff);
chang=window.setTimeout('changer();',60);//vitesse de l'effet en centiemes de secondes
}
else {window.clearTimeout(chang);}
}
function initial() {
if (document.image.width > larg/2) { //Coefficient de reduction 
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image.width = Math.round(larg/coeff);
document.image.height = Math.round(haut/coeff);

initi=window.setTimeout('initial();',60);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}

// photo larges vue piscine
var coeff=2;//Coefficient de reduction
var larg=400;//largeur maxi de l'image
var haut=200;//hauteur maxi de l'image
function changer1() {
if (document.image1.width < larg) {
coeff = coeff-0.2;
document.image1.width = Math.round(larg/coeff);
document.image1.height = Math.round(haut/coeff);
chang=window.setTimeout('changer1();',60);//vitesse de l'effet en centiemes de secondes
}
else {window.clearTimeout(chang);}
}
function initial1() {
if (document.image1.width > larg/2) { //Coefficient de reduction 
window.clearTimeout(chang);
coeff = coeff+0.2;
document.image1.width = Math.round(larg/coeff);
document.image1.height = Math.round(haut/coeff);

initi=window.setTimeout('initial1();',60);//vitesse de l'effet
}
else {window.clearTimeout(initi);}
}

// photo haute
var coeff2=3;//Coefficient de reduction
var larg2=300;//largeur maxi de l'image
var haut2=440;//hauteur maxi de l'image
function changer2() {
if (document.image2.width < larg2) {
coeff2 = coeff2-0.2;
document.image2.width = Math.round(larg2/coeff2);
document.image2.height = Math.round(haut2/coeff2);
chang2=window.setTimeout('changer2();',60);//vitesse de l'effet en centiemes de secondes
}
else {window.clearTimeout(chang2);}
}
function initial2() {
if (document.image2.width > larg2/3) { //Coefficient de reduction 
window.clearTimeout(chang2);
coeff2 = coeff2+0.2;
document.image2.width = Math.round(larg2/coeff2);
document.image2.height = Math.round(haut2/coeff2);

initi2=window.setTimeout('initial2();',60);//vitesse de l'effet
}
else {window.clearTimeout(initi2);}
}






/* ######################################### */
/* MENU */


hauteurcadre = 20; /* taille du cadre */

xmenu = new Array;

xlien = new Array;


xmenu[0] = '<a href="index.php" class="menudyn3">Home</a>';

xmenu[1] = '<a href="en/parc.php" class="menudyn3">Castle and park</a>';

xmenu[2] = '<a href="en/chambres.php" class="menudyn3">The bedrooms and living area</a>';

xmenu[3] = '<a href="en/localisation.php" class="menudyn3">How to get there ?</a>';

xmenu[4] = '<a href="en/contact.php" class="menudyn3">Rental conditions</a>';

xmenu[5] = '<a href="en/region.php" class="menudyn3">Sight seeing</a>';

xmenu[6] = '<a href="photos.php" class="menudyn3">Photo panel</a>';




xlien[0] = ''

xlien[1] = ''

xlien[2] = ''

xlien[3] = ''

xlien[4] = ''

xlien[5] = ''

xlien[6] = ''

xlien[1] += ' | '

xlien[1] += '<img src="images/puce_verte.gif" alt="-" /> <a href="en/parc.php#loca" class="menudyn4">The rented wing</a> <img src="../images/spacer.gif" height="1" width="15" alt="" />';

xlien[1] += ' | '

xlien[1] += '<img src="images/puce_verte.gif" alt="-" /> <a href="en/parc.php#archi" class="menudyn4">Architecture</a> <img src="../images/spacer.gif" height="1" width="15" alt="" />';

xlien[1] += ' | '

xlien[1] += '<img src="images/puce_verte.gif" alt="-" /> <a href="en/parc.php#village" class="menudyn4">Surroundings...</a> <img src="../images/spacer.gif" height="1" width="15" alt="" />';

xlien[1] += ' | '

xlien[2] += ' | '

xlien[2] += '<img src="images/puce_verte.gif" alt="-" /> <a href="en/chambres.php#pres" class="menudyn4">Rooms</a> <img src="../images/spacer.gif" height="1" width="15" alt="" />';

xlien[2] += ' | '

xlien[2] += '<img src="images/puce_verte.gif" alt="-" /> <a href="en/chambres.php#photo" class="menudyn4">Details</a> <img src="../images/spacer.gif" height="1" width="15" alt="" />';

xlien[2] += ' | '

xlien[2] += '<img src="images/puce_verte.gif" alt="-" /> <a href="en/chambres.php#autres" class="menudyn4">Other services included</a> <img src="../images/spacer.gif" height="1" width="15" alt="" />';

xlien[2] += ' | '

xlien[4] += ' | '

xlien[4] += '<img src="images/puce_verte.gif" alt="-" /> <a href="en/contact.php#tarif" class="menudyn4">Rental fees</a> <img src="../images/spacer.gif" height="1" width="15" alt="" />';

xlien[4] += ' | '

xlien[4] += '<img src="images/puce_verte.gif" alt="-" /> <a href="en/contact.php#contact" class="menudyn4">Contact us</a> <img src="../images/spacer.gif" height="1" width="15" alt="" />';

xlien[4] += ' | '

xlien[5] += ' | '

xlien[5] += '<img src="images/puce_verte.gif" alt="-" /> <a href="en/region.php#0" class="menudyn4">Local history...</a> <img src="../images/spacer.gif" height="1" width="15" alt="" />';

xlien[5] += ' | '

xlien[5] += '<img src="images/puce_verte.gif" alt="-" /> <a href="en/region.php#3" class="menudyn4">To be discovered</a> <img src="../images/spacer.gif" height="1" width="15" alt="" />';

xlien[5] += ' | '

xlien[5] += '<img src="images/puce_verte.gif" alt="-" /> <a href="en/region.php#5" class="menudyn4">Activities</a> <img src="../images/spacer.gif" height="1" width="15" alt="" />';

xlien[5] += ' | '




/* couleurs des textes  et largeur de la barre */

document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%" id="menumain">  <tr><td><table cellpadding="2" cellspacing="1" border="0" width="100%">  <tr>');



for(i=0;i<xlien.length;i++)
{

	document.write('<td bgcolor="#004f00" onMouseOver="javascript:colorIt(this);MajMenu('+i+')" align="center" id="td'+i+'"><a href="#" onClick="return(false);" onMouseOver="MajMenu('+i+')" class="menudyn3">'+xmenu[i]+'</a></td>');

}

document.write('</tr><tr><td colspan="'+(xlien.length)+'" bgcolor="#FFFFFF" height="'+hauteurcadre+'" valign="top" align="center"><ilayer id="dynamenu31"  width=100% height='+hauteurcadre+'><layer id="dynamenu32" width=100% height='+hauteurcadre+'><div id="dynamenu33" class="menudyn4"> </div></layer></ilayer></td></tr></table></td></tr></table>');



/* ######################################### */
/*fonctions annexes */
function colorIt(tditem)

	{
		

	if(document.all)

		{
	
		document.all.td0.style.background='#004f00';
	
		document.all.td1.style.background='#004f00';
	
		document.all.td2.style.background='#004f00';
	
		document.all.td3.style.background='#004f00';
	
		document.all.td4.style.background='#004f00';
	
		document.all.td5.style.background='#004f00';
		
		document.all.td6.style.background='#004f00';
	
		tditem.style.background='#228b22';

		}

	else if(document.getElementById)
	
		{
	
		document.getElementById("td0").style.background='#004f00';
	
		document.getElementById("td1").style.background='#004f00';
	
		document.getElementById("td2").style.background='#004f00';
	
		document.getElementById("td3").style.background='#004f00';
	
		document.getElementById("td4").style.background='#004f00';
	
		document.getElementById("td5").style.background='#004f00';
		
		document.getElementById("td6").style.background='#004f00';

		tditem.style.background='#228b22';
	
		}

}



function MajMenu(menu)

	{
	

	which = xlien[menu];
	
	if (document.layers){
		
	
		document.dynamenu31.document.dynamenu32.document.write(which)
	
		document.dynamenu31.document.dynamenu32.document.close()
	
		}
	
	else if (document.getElementById)
	
		{

		document.getElementById("dynamenu33").innerHTML = which;
		

		}
	
	else 	if (document.all)
		
		{
	
		dynamenu33.innerHTML=' '
	
		dynamenu33.innerHTML=which;
	
		}

}

if (document.getElementById)

	colorIt(document.getElementById("td0"));

else if (document.all){

	colorIt(document.all.td0);

	}

MajMenu(0);
