function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


window.onload=montre;
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';}
}




/*
Script Diaporama d'images en transition de fondu
© Dynamic Drive (www.dynamicdrive.com)
visitez dynamicdrive.com
*/
function reapply(){
setTimeout("slideit()",2000);
return true;
}
window.onerror=reapply;



var image1=new Image();
image1.src="/images/castillon_vallon.jpg";
var image2=new Image();
image2.src="/images/castillon.jpg";
var image3=new Image();
image3.src="/images/piscine.jpg";
var image4=new Image();
image4.src="/images/salle_pt_dej.jpg";
var image5=new Image();
image5.src="/images/chambre.jpg";


var Count = 0;
var Text = "Hôtel *** - Castillon des Baux - Hôtel de charme Maussane les Alpilles - 10bis, avenue de la Vallée des Baux - Quartier du Touret - 13520 Maussane les Alpilles - Tel: +33 (0) 4.90.54.31.93 - Fax: +33 (0) 4.90.54.51.31";
var Speed = 90;
var timerID = null;
var TimerRunning = false;

var i = 0;
while (i ++ < 140)
Text = " " + Text;

function Scroll(){
window.status = Text.substring(Count++, Text.length);
if (Count == Text.length)
Count = 0;
timerID = setTimeout("Scroll()", Speed);
TimerRunning = true;
}

function Start(){
Stop();
Scroll();
}

function Stop(){
if(TimerRunning)
clearTimeout(timerID);
TimerRunning = false;
}

Start(); 