<!--
//on 
visite_off = new Image() ; 
visite_off.src = "/img/n1/visite-en-off.gif"; 
histoire_off = new Image() ; 
histoire_off.src = "/img/n1/histoire-en-off.gif"; 
infos_off = new Image() ; 
infos_off.src = "/img/n1/infos-en-off.gif"; 
galerie_off = new Image() ; 
galerie_off.src = "/img/n1/galerie-en-off.gif"; 
region_off = new Image() ; 
region_off.src = "/img/n1/region-en-off.gif"; 
accueil_off = new Image() ; 
accueil_off.src = "/img/n1/accueil-en-off.gif"; 
contact_off = new Image() ; 
contact_off.src = "/img/n1/contact-en-off.gif"; 
infos2_off = new Image() ; 
infos2_off.src = "/img/n1/infos2-en-off.gif"; 
resto_off = new Image() ; 
resto_off.src = "/img/n1/resto-en-off.gif"; 
 
//on 
visite_on = new Image() ; 
visite_on.src = "/img/n1/visite-en-on.gif"; 
histoire_on = new Image() ; 
histoire_on.src = "/img/n1/histoire-en-on.gif"; 
infos_on = new Image() ; 
infos_on.src = "/img/n1/infos-en-on.gif"; 
galerie_on = new Image() ; 
galerie_on.src = "/img/n1/galerie-en-on.gif"; 
region_on = new Image() ; 
region_on.src = "/img/n1/region-en-on.gif"; 
accueil_on = new Image() ; 
accueil_on.src = "/img/n1/accueil-en-on.gif"; 
contact_on = new Image() ; 
contact_on.src = "/img/n1/contact-en-on.gif"; 
infos2_on = new Image() ; 
infos2_on.src = "/img/n1/infos2-en-on.gif"; 
resto_on = new Image() ; 
resto_on.src = "/img/n1/resto-en-on.gif"; 

 
/* fonction de swap d'image, le nom de l'image est le même que celui du nom de l'objet javascript + "_status" */ 
function swapOnce(imgName, status){ 
	if (document.layers) {
		if(document.layers.menu.document.images && imgName != "" && (status == "off" || status == "on")){ 
			document.layers.menu.document.images[imgName].src = eval(imgName + "_" + status + ".src"); 
		} 
	} else {
		if(document.images && imgName != "" && (status == "off" || status == "on")){ 
			document.images[imgName].src = eval(imgName + "_" + status + ".src"); 
		} 
	}
} 
 
/* fonction qui reçoit 2 swaps et le même statut pour les 2 images */ 
function swapTwice(imgName1, imgName2, status){
	swapOnce(imgName1, status) ;
	swapOnce(imgName2, status) ;
} 
 
//Fonction d'ouverture de popup
function openWindow(url, name, w, h, r, s, m,left, top) {
	popupWin = window.open(url, name, 'width=' + w + ',height=' + h + ',resizable=' + r + ',scrollbars=' + s + ',menubar=' + m + ',left=' + left + ',top=' + top);
}

/** Function to empty a field when onFocus for exmaple
*/
function clearField(field) {
	if (field.value == field.defaultValue) {
		field.value = "";
	}
}
/** Function to fill a field with deafult value when onBlur for exmaple
*/
function checkField(field) {
	if (field.value == "") {
		field.value = field.defaultValue;
	}
}

//-->
