btanglaison = new Image() ; btfrancaison = new Image() ;
btanglaisoff = new Image() ; btfrancaisoff = new Image() ;
btanglaison.src = "./images/bt-english-on.gif"; btanglaisoff.src = "./images/bt-english-off.gif"; 
btfrancaison.src = "./images/bt-francais-on.gif"; btfrancaisoff.src = "./images/bt-francais-off.gif"; 

btmenu1on = new Image() ; btmenu2on = new Image() ; btmenu3on = new Image() ; btmenu4on = new Image() ; btmenu5on = new Image() ;  
btmenu1off = new Image() ; btmenu2off = new Image() ; btmenu3off = new Image() ; btmenu4off = new Image() ; btmenu5off = new Image() ; 
btmenu1on.src = "./images/puce-menu-on.gif" ; btmenu2on.src = "./images/puce-menu-on.gif" ; btmenu3on.src = "./images/puce-menu-on.gif" ; btmenu4on.src = "./images/puce-menu-on.gif" ; btmenu5on.src = "./images/puce-menu-on.gif" ; 
btmenu1off.src = "./images/puce-menu-off.gif" ; btmenu2off.src = "./images/puce-menu-off.gif" ; btmenu3off.src = "./images/puce-menu-off.gif" ; btmenu4off.src = "./images/puce-menu-off.gif" ; btmenu5off.src = "./images/puce-menu-off.gif" ; 
btsmenu1on = new Image() ; btsmenu2on = new Image() ;  btsmenu3on = new Image() ; 
btsmenu1off = new Image() ; btsmenu2off = new Image() ; btsmenu3off = new Image() ; 
btsmenu1on.src = "./images/bt-voir-les-chambres-on.gif" ; btsmenu2on.src = "./images/bt-voir-diaporama-on.gif" ; btsmenu3on.src = "./images/bt-voir-gite-on.gif" ;
btsmenu1off.src = "./images/bt-voir-les-chambres-off.gif" ; btsmenu2off.src = "./images/bt-voir-diaporama-off.gif" ; btsmenu3off.src = "./images/bt-voir-gite-off.gif" ;
btdiapo1on = new Image() ; btdiapo2on = new Image() ; btdiapo3on = new Image() ; 
btdiapo1off = new Image() ; btdiapo2off = new Image() ; btdiapo3off = new Image() ; 
btdiapo1on.src="./images/bt-diapo-fermer-on.gif" ; btdiapo2on.src="./images/bt-diapo-gauche-on.gif" ; btdiapo3on.src="./images/bt-diapo-droite-on.gif" ; 
btdiapo1off.src="./images/bt-diapo-fermer-off.gif" ; btdiapo2off.src="./images/bt-diapo-gauche-off.gif" ; btdiapo3off.src="./images/bt-diapo-droite-off.gif" ; 


var TabloPhotoNimes = new Array(); var TabloLegendeNimes = new Array();
var TabloPhotoPoulx = new Array(); var TabloLegendePoulx = new Array();
var maxphotosNimes=14; var maxphotosPoulx=19;
var compteurdiapoNimes = 1; var compteurdiapoPoulx = 1; 

for (i=1;i<=maxphotosNimes;i++) {
	eval("TabloPhotoNimes[i] = './images/dia-gite-nimes-"+i+".jpg'; ");
}
TabloLegendeNimes[1] = "Entrée du gîte côté nord";
TabloLegendeNimes[2] = "Le gîte vu du jardin";
TabloLegendeNimes[3] = "Le salon donne sur la terrasse dominant Nîmes";
TabloLegendeNimes[4] = "Deux larges baies vitrées donnent accès à la terrasse où l’on peut prendre le repas, siroter le traditionnel apéro ou tout simplement lézarder au soleil.";
TabloLegendeNimes[5] = "";
TabloLegendeNimes[6] = "La décoration murale de la chambre des parents, à l’aspect veloutée, rend le lieu intime et chaleureux.";
TabloLegendeNimes[7] = "La seconde chambre et son clic-clac : lieu de détente ou pour dormir";
TabloLegendeNimes[8] = "Le labo-cuisine intégré avec son bar. Four, réfrigérateur, lave-vaisselle, plaques  de cuisson,  four micro-ondes, cafetière électrique...";
TabloLegendeNimes[9] = "Le coin salle à manger à proximité de la cuisine.";
TabloLegendeNimes[10] = "Grande baignoire d’angle et douche à l’italienne, 2 lavabos et placards de rangement.";
TabloLegendeNimes[11] = "... et puis n'oubliez pas vos clubs, le golf est à deux pas !";
TabloLegendeNimes[12] = "... à moins que vous préfériez une balade en garrigue !";
TabloLegendeNimes[13] = "Nîmes, cité antique, renferme des trésors monumentaux de l'époque gallo-romaine... à commencer par la Maison Carrée";
TabloLegendeNimes[14] = "Nîmes est également un pays où la tauromachie est une institution.";

for (i=1;i<=maxphotosPoulx;i++) {
	eval("TabloPhotoPoulx[i] = \"./images/dia-gite-pontdugard-"+i+".jpg\"; ");
}
TabloLegendePoulx[1] = "En hiver, un bon feu dans la cheminée réchauffe l'atmosphère (bois de chêne fourni).";
TabloLegendePoulx[2] = "Une décoration que nous avons voulu soignée.";
TabloLegendePoulx[3] = "Cuisine indépendante, équipée de tous les appareils ménagers (réfrigérateur, four, lave-vaisselle, micro-ondes, hotte).";
TabloLegendePoulx[4] = "Cuisine indépendante, équipée de tous les appareils ménagers (réfrigérateur, four, lave-vaisselle, micro-ondes, hotte).";
TabloLegendePoulx[5] = "Le gîte est à l'étage de la maison. Un large couloir, bien ajouré, distribue les pièces.";
TabloLegendePoulx[6] = "Situé au bout du village, le gîte donne directement dans la garrigue et la pinède environnantes.";
TabloLegendePoulx[7] = "L'ancienne grange de la maison.";
TabloLegendePoulx[8] = "Cultures en terrasses près du gîtes.";
TabloLegendePoulx[9] = "Le centre ancien du village et l'entrée de son église du XIe s.";
TabloLegendePoulx[10] = "A partir du gîte, de nombreux sentiers de randonnées balisés traversent la garrigue jusqu'aux Gorges du Gardon...";
TabloLegendePoulx[11] = "... et des circuits VTT.";
TabloLegendePoulx[12] = "Le gîte est environné d'olivettes.";
TabloLegendePoulx[13] = "Les Gorges du Gardon, site naturel protégé.";
TabloLegendePoulx[14] = "Le célèbre pont du Gard, patrimoine mondial, et son aqueduc reliant Uzès à Nîmes (visitable).";
TabloLegendePoulx[15] = "Uzès, premier Duché de France, et sa Tour Fenestrelle (comme un air de Pise...).";
TabloLegendePoulx[16] = "N'oublions pas que nous sommes au pays de la truffe, spécialité du Gard...";
TabloLegendePoulx[17] = "... tout comme l'huile d'olive ...";
TabloLegendePoulx[18] = "... et bien sûr les nombreux vins de pays.";
TabloLegendePoulx[19] = "Boutis et piqués, encore un spécialité provençale.";

function AvanceDiapo(sens,diapo) {
	if (diapo=="nimes") {
		if (sens==1) compteurdiapoNimes = compteurdiapoNimes==maxphotosNimes ? 1: compteurdiapoNimes+1;
		if (sens==-1)compteurdiapoNimes = compteurdiapoNimes==1 ? maxphotosNimes: compteurdiapoNimes-1;
		document.getElementById('photobase').src = TabloPhotoNimes[compteurdiapoNimes];
		document.getElementById('legende').innerHTML = TabloLegendeNimes[compteurdiapoNimes];
	}
	else {
		if (sens==1) compteurdiapoPoulx = compteurdiapoPoulx==maxphotosPoulx ? 1: compteurdiapoPoulx+1;
		if (sens==-1)compteurdiapoPoulx = compteurdiapoPoulx==1 ? maxphotosPoulx: compteurdiapoPoulx-1;
		document.getElementById('photobase').src = TabloPhotoPoulx[compteurdiapoPoulx];
		document.getElementById('legende').innerHTML = TabloLegendePoulx[compteurdiapoPoulx];	
	}
}

function AfficheDiaporama(sens,diapo) {
	if (sens==1) {
		document.getElementById('fonddiaporamaLYR').style.visibility="visible";
		document.getElementById('diaporamaLYR').style.visibility="visible";
		document.getElementById('photobase').src = diapo=="nimes" ? TabloPhotoNimes[1]: TabloPhotoPoulx[1];
		document.getElementById('legende').innerHTML = diapo=="nimes" ? TabloLegendeNimes[1]: TabloLegendePoulx[1];		
	}
	else {
		document.getElementById('diaporamaLYR').style.visibility="hidden";
		document.getElementById('fonddiaporamaLYR').style.visibility="hidden";
	}
}







/**********************************************************************************   
Dynamic Tooltips 
*   Copyright (C) 2001 <a href="/dhtmlcentral/michael_van_ouwerkerk.asp">Michael van Ouwerkerk</a>
*   This script was released at DHTMLCentral.com
*   Visit for more great scripts!
*   This may be used and changed freely as long as this msg is intact!
*   We will also appreciate any links you could give us.
*
*   Made by <a href="/dhtmlcentral/michael_van_ouwerkerk.asp">Michael van Ouwerkerk</a> 
*********************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this
}
var bw=new lib_bwcheck()

// Variables to set:

// To have more descriptions just add to the array.

fromX= 20           // How much from the actual mouse X should the description box appear?
fromY= 5            // How much from the actual mouse Y should the description box appear?
ns4center= 1        // Centering the text in ns4 doesn't work with css, use this variable instead... the value is 1 or 0
useFading= 1        // 1 for a fading effect in windows explorer 5+ and all platforms ns6, 0 for no fading ef0ect.
animation= 0        // 1 if you want animation, 0 for no animation.
detectiontype= 0    // 1 for 'smooth' window size detection, 0 for 'flip' window size detection.
delay= 300          // The time before showing the popup, in milliseconds.


/*** There should be no need to change anything beyond this. ***/ 

if(document.layers){ //NS4 resize fix.
    scrX= innerWidth; scrY= innerHeight;
    onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} };
}

// object constructor...
function makeTooltip(obj){								
   	this.elm= document.getElementById? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj]:0;
   	this.css= bw.ns4?this.elm:this.elm.style;
   	this.wref= bw.ns4?this.elm.document:this.elm;
	this.obj= obj+'makeTooltip'; eval(this.obj+'=this');
	this.w= bw.ns4? this.elm.clip.width: this.elm.offsetWidth;
	this.h= bw.ns4? this.elm.clip.height: this.elm.offsetHeight;
};
makeTooltip.prototype.measureIt= function(){
	this.w= bw.ns4? this.elm.clip.width: this.elm.offsetWidth;
	this.h= bw.ns4? this.elm.clip.height: this.elm.offsetHeight;
};
makeTooltip.prototype.writeIt= function(text){
	if (bw.ns4) {this.wref.write(text); this.wref.close()}
	else this.wref.innerHTML= text;
};

// Mousemove detection
var mouseX=0,mouseY=0,setX=0,setY=0;
function getMousemove(e){
	mouseX= (bw.ns4||bw.ns6)? e.pageX: bw.ie4&&bw.win? event.x: bw.ie&&bw.win&&!bw.ie4? (event.x-2)+document.body.scrollLeft : event.x+document.body.scrollLeft;
	mouseY= (bw.ns4||bw.ns6)? e.pageY: bw.ie4&&bw.win? event.y: bw.ie&&bw.win&&!bw.ie4? (event.y-2)+document.body.scrollTop : event.y+document.body.scrollTop;
	if (isLoaded && hovering && animation) placeIt();
};
function placeIt(){
	if (detectiontype==1) setX= mouseX+fromX+tooltip.w > screenWscrolled ? screenWscrolled-tooltip.w: mouseX+fromX;
	if (detectiontype==1) setY= mouseY+fromY+tooltip.h > screenHscrolled ? screenHscrolled-tooltip.h: mouseY+fromY;
	if (detectiontype==0) setX= mouseX+fromX+tooltip.w > screenWscrolled ? mouseX-fromX-tooltip.w: mouseX+fromX;
	if (detectiontype==0) setY= mouseY+fromY+tooltip.h > screenHscrolled ? mouseY-fromY-tooltip.h: mouseY+fromY;
	if (setX<0) setX= 0;
	if (setY<0) setY= 0;
	tooltip.css.left= setX;
	tooltip.css.top= setY;
};

// Main popUp function.
var hovering=false, screenWscrolled=0, screenHscrolled=0;
makeTooltip.prototype.showTimer= null;
function popUp(num){ 
	if(isLoaded){
		clearTimeout(tooltip.popTimer);
		dopopOut();
		if (bw.ns4){
			var text= '<span class="netscape4Style">' + (ns4center?'<center>':"") + messages[num] + (ns4center?'</center>':"") + '</span>';
			tooltip.writeIt(text);
		}
		if (!bw.ns4) tooltip.writeIt(messages[num]);
		screenWscrolled= screenW + (bw.ie?document.body.scrollLeft:pageXOffset);
		screenHscrolled= screenH + (bw.ie?document.body.scrollTop:pageYOffset);
		hovering= true;
		
		/* I'm using a timeout for ie4 here, because it doesn't store the measurements quickly enough. Does anybody know why this happens? */
		if (bw.ie4) setTimeout('tooltip.measureIt(); placeIt();', delay/2);
		else { tooltip.measureIt(); placeIt(); }
		if (useFading) tooltip.showTimer= setTimeout('tooltip.blendIn()', delay);
		if (!useFading) tooltip.showTimer= setTimeout('tooltip.css.visibility="visible"', delay);
    }
};

// Hiding routines
makeTooltip.prototype.popTimer= null;
function popOut(){
	if (isLoaded) tooltip.popTimer= setTimeout('dopopOut()', 30)
};
function dopopOut(){
	hovering= false;
	clearTimeout(tooltip.showTimer);
	tooltip.css.visibility= 'hidden';
	clearTimeout(tooltip.fadeTimer);
	tooltip.i= 0;
};

// Measure screensize.
var scrollbarWidth= bw.ns6&&bw.win?14:bw.ns6&&!bw.win?16:bw.ns4?16:0;
function measureScreen() {
	tooltip.css.top= 0;
	tooltip.css.left= 0;
	screenW= (bw.ie?document.body.clientWidth:innerWidth) - scrollbarWidth;
	screenH= (bw.ie?document.body.clientHeight:innerHeight);
};

// Opacity methods.
makeTooltip.prototype.blendIn= function(){
	if (bw.ie && bw.win && !bw.ie4) {
		this.css.filter= 'blendTrans(duration=0.5)';
		this.elm.filters.blendTrans.apply();
		this.css.visibility= 'visible';
		this.elm.filters.blendTrans.play();
	}
	else {
		this.css.visibility= 'visible';
		if (!bw.ns4) this.fadeIt();
	}
};
makeTooltip.prototype.step= 8;
makeTooltip.prototype.i= 0;
makeTooltip.prototype.fadeTimer= null;
makeTooltip.prototype.fadeIt= function(){
	this.i+= this.step;
	//this.css.filter= 'alpha(opacity='+this.i+')';
	this.css.MozOpacity= this.i/100;
	if (this.i<100) this.fadeTimer= setTimeout(this.obj+'.fadeIt()', 40);
	else this.i= 0;
};

// Init function...
var isLoaded= false;
function popupInit(){
	//Fixing the browsercheck for opera... this can be removed if the browsercheck has been updated!!
	bw.opera5 = (navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?true:false
	if (bw.opera5) bw.ns6 = 0
	
	//Extending the browsercheck to add windows platform detection.
	bw.win= (navigator.userAgent.indexOf('Windows')>-1)

	tooltip= new makeTooltip('divTooltip');
	tooltip.elm.onmouseover= function(){ clearTimeout(tooltip.popTimer); if(bw.ns4){setTimeout('clearTimeout(tooltip.popTimer)',20)}; };
	tooltip.elm.onmouseout= dopopOut;
	if (bw.ns4) document.captureEvents(Event.MOUSEMOVE);
	document.onmousemove= getMousemove;
	measureScreen();
	if (!bw.ns4) onresize= measureScreen;
	if (!bw.ns4) tooltip.elm.className= 'normalStyle';
	if (bw.ie && bw.win && !bw.ie4) tooltip.css.filter= 'alpha(opacity=100)'; //Preloads the windows filters.
	isLoaded= true;
};

// Initiates page on pageload if the browser is ok.
if(bw.bw && !isLoaded) onload= popupInit;


