/*****************************************************************

 Fichier de variables de Hotel de l'Ain
 Générer automatiquemant par Agestis (http://www.agestis.com)
 Le 10/11/2005 par oudot

******************************************************************/


var NoOffFirstLineMenus=5;
var largeurcell=142;
var t="";
var isDHTML=0;var isID=0;var isAll=0;var isLayers=0;
if(document.getElementById){
	isID=1;isDHTML=1;
}else{
	if(document.all){
		isAll=1;isDHTML=1;
	}else{
		browserVersion = parseInt(navigator.appVersion);
		if((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)){
			isLayers=1;isDHTML=1;
		}
	}
}

function findDOM(objectID, withStyle){
	if (withStyle == 1){
		if (isID){
			return (document.getElementById(objectID).style);
		}else{
			if (isAll){
				return (document.all[objectID].style);
			}else{
				if (isLayers){
					return (document.layers[objectID]);
				}
			}
		}
	}else{
		if (isID){
			return (document.getElementById(objectID));
		}else{
			if (isAll){
				return (document.all[objectID]);
			}else{
				if (isLayers){
					return (document.layers[objectID]);
				}
			}
		}
	}
} 

var exist=false;var Tble_Display=false;var ms = navigator.appVersion.indexOf("MSIE");var ie=document.all && (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >4);var ns6=document.getElementById&&!document.all;

var IsCompatible;

// permet de tester le navigateur en compatibilité du calcul de largeur
if(ns6||ie){
	document.write("<table id='tableTest' border='0' style='visibility:hidden' cellpadding='0' cellspacing='0' bgcolor='yellow'>"
		+"<tr><td>"
		+"<img id='Imgtest' name='Imgtest' src='/images/t1px.gif' width='100%' height='1' border='0'>"
		+"</td></tr>"
		+"<tr><td id='TdTest'>texte de test - ne rien changer ici</td></tr>"
		+"</table>");
	var MyTestTble = findDOM('tableTest',0);
	var MyTestImg = findDOM('Imgtest',0);
	var Img = parseInt(MyTestImg.width+0);
	MyTestTble.style.visibility=''; MyTestTble.style.display='none';
	IsCompatible=true;
}
// fin du test

function calc_larg(tab_menu) {
	if (IsCompatible) {
		if(exist && Tble_Display==false){
			Tble_Display=true;Tble_Calc.style.display='';
		}
		var lmax=0;
		if (!exist) {
			document.write("<table id='TbleCalc' border='1' style='visibility:hidden' cellpadding='0' cellspacing='0' bgcolor='yellow'>"
				+"<tr><td id='TdCalc'><img id='ImgCalc' src='/images/t1px.gif' width='100%;' height='1'></td></tr>"
				+"<tr><td id='TdFt'></td></tr>"
				+"</table>");
			exist=true; Tble_Display=true;
		}
		Img_Calc=findDOM('ImgCalc', 0);Td_Calc=findDOM('TdCalc', 0);Td_Ft=findDOM('TdFt', 0);Tble_Calc=findDOM('TbleCalc', 0);
		for (var i=0 ; i<tab_menu.length ; i++){
			str_txt="<font style='font-family:"+FontFamily+";font-size:"+FontSize+"pt;";
			if (FontBold!=0){str_txt=str_txt+"font-weight: bold ;";}
			if (FontItalic!=0){str_txt=str_txt+" font-style: italic;";}
			str_txt+="'>"+tab_menu[i]+"</font>";
			Td_Ft.innerHTML=str_txt;
			if(Td_Calc.offsetWidth>0){
				if (Td_Calc.offsetWidth>lmax){lmax=Td_Calc.offsetWidth;}
			}else{
				if (Img_Calc.width>lmax){lmax=Img_Calc.width;}
			}
		}
		Tble_Calc.style.display='none'; Tble_Display=false;
		return (lmax+(LeftPaddng*2)+20);
	}else {
		return DftLrgCell2;
	}
}

var LSBC = "#F6933A";
var HSBC = "#903C12";
var FSLC = "#F6933A";
var FSHC = "#F6933A";
var BSC = "#903C12";
var MTCt = "left";


Menu1=new Array("Welcome","/affiche.asp?arbo=2&num=1","/skins/standard/images/bt.jpg",0,24,largeurcell,"","","","","","",-1,-1,-1,"","Authenticate hotel located at Pont of Poitte, on the river Ain, at the sources of the Lake Vouglans and close to CLairvaux the lakes...");
Menu2=new Array("Rooms","/affiche.asp?arbo=2&num=2","/skins/standard/images/bt.jpg",0,24,largeurcell,"","","","","","",-1,-1,-1,"","For your future stay in the Jura, discover our roomy rooms...");
Menu3=new Array("Restaurant","/affiche.asp?arbo=2&num=3","/skins/standard/images/bt.jpg",0,24,largeurcell,"","","","","","",-1,-1,-1,"","Before taste of the specialities of the head:  traditional, generous, greedy....");
Menu4=new Array("Locating us","/affiche.asp?arbo=2&num=4","/skins/standard/images/bt.jpg",0,24,largeurcell,"","","","","","",-1,-1,-1,"","Find our complete co-ordinates and a plan of access to find us easily...");
Menu5=new Array("tariffs","/affiche.asp?arbo=2&num=5","/skins/standard/images/bt.jpg",0,24,largeurcell,"","","","","","",-1,-1,-1,"","Find our tariffs to prepare your stay.");



