/*****************************************************************

 Fichier de variables de Hydraulique
 Générer automatiquemant par Agestis (http://www.agestis.com)
 Le 04/01/2010 par Berthier Elisabeth

******************************************************************/


var NoOffFirstLineMenus=5;
var largeurcell=150;
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 = "#FFB060";
var HSBC = "#FFF0C0";
var FSLC = "#116097";
var FSHC = "#116097";
var BSC = "#116097";
var MTCt = "left";


Menu1=new Array("H.B.C.E.","/affiche.asp?arbo=1&num=1","/skins/standard/images/bt.jpg",0,30,largeurcell,"","","","","","",-1,-1,-1,"","H.B.C.E. (Hydraulique Bridage Conseil Expertise), spécialiste technique en électro-hydraulique vous souhaite la bienvenue.");
Menu2=new Array("Compétences","/affiche.asp?arbo=1&num=3","/skins/standard/images/bt.jpg",0,30,largeurcell,"","","","","","",-1,-1,-1,"","HBCE (Competences et savoir faire en hydraulique industrielle vous souhaite la bienvennue)");

Intitules="CENTRALE D AIR H.P.|PRESTATIONS ET CONSULTING";
t=Intitules.split("|");
LgCelSsN=calc_larg(t);
Menu3_1_1=new Array(t[0],"/affiche.asp?arbo=1&num=19","",0,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"Centrale d'air AIRMAX pour la plasturgie ");
Menu3_1_2=new Array(t[1],"/affiche.asp?arbo=1&num=20","",0,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"");


Intitules="BRIDAGE HYDRAULIQUE CHANGT VERTICAL|BRIDAGE HYDRAULIQUE CHANGEMENT HORIZONTAL|BRIDAGES MANUELS ";
t=Intitules.split("|");
LgCelSsN=calc_larg(t);
Menu3_2_1_1=new Array(t[0],"/affiche.asp?arbo=1&num=13","",0,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"Bridage de moule hydraulique à la verticale");
Menu3_2_1_2=new Array(t[1],"/affiche.asp?arbo=1&num=14","",0,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"bridage de moule hydraulique à l'horizontal");
Menu3_2_1_3=new Array(t[2],"/affiche.asp?arbo=1&num=15","",0,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"");


Intitules="SERIE H1 à H8|SERIE G Haute vitesse|SERIE IAM H8";
t=Intitules.split("|");
LgCelSsN=calc_larg(t);
Menu3_2_2_1=new Array(t[0],"/affiche.asp?arbo=1&num=16","",0,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"moteurs à pistons radiaux serie H1 à H8 intermot");
Menu3_2_2_2=new Array(t[1],"/affiche.asp?arbo=1&num=17","",0,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"hbce importe moteurs haute vitesse intermot");
Menu3_2_2_3=new Array(t[2],"/affiche.asp?arbo=1&num=18","",0,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"hbce vend moteurs a pistons radiaux intermot importateur");


Intitules="BRIDAGE MANUEL HYDRAULIQUE MAGNETIQUE E.A.S.|MOTEURS HYDRAULIQUES INTERMOT";
t=Intitules.split("|");
LgCelSsN=calc_larg(t);
Menu3_2_1=new Array(t[0],"/affiche.asp?arbo=1&num=8","",3,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"Les produits de bridage mécanique de la société HBCE");
Menu3_2_2=new Array(t[1],"/affiche.asp?arbo=1&num=9","",3,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"Les moteurs hydrauliques de la société HBCE moteurs à pistons radiaux intermot");


Intitules="MOTEURS A PISTONS INTERMOT                 |LARZEP MATERIEL DE MANUTENTION ET LEVAGE |COMPOSANTS ATOS  HYDRAULIQUE |COMPOSANTS VELJAN POMPES MOTEURS VALVES |NEWS : INDICATEURS EZ 500 OIL CHECK";
t=Intitules.split("|");
LgCelSsN=calc_larg(t);
Menu3_3_1=new Array(t[0],"/affiche.asp?arbo=1&num=21","",0,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"Moteurs à pistons radiaux INTERMOT ");
Menu3_3_2=new Array(t[1],"/affiche.asp?arbo=1&num=22","",0,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"");
Menu3_3_3=new Array(t[2],"/affiche.asp?arbo=1&num=23","",0,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"");
Menu3_3_4=new Array(t[3],"","",0,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"MOTEURS VALVES ET POMPES VELJAN ");
Menu3_3_5=new Array(t[4],"","",0,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"APPAREIL POUR L INDICATION DE LA CLASSE DE POLLUTION DES LIQUIDES INDUSTRIELS");


Intitules="PRESTATIONS et CONSULTINGS|NEGOCES|IMPORT - EXPORT";
t=Intitules.split("|");
LgCelSsN=calc_larg(t);
Menu3_1=new Array(t[0],"/affiche.asp?arbo=1&num=5","",2,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"expert consu ltant en hydraulique industrielle Activités de négoces en hydraulique industrielle expertise consultants etudes etude");
Menu3_2=new Array(t[1],"/affiche.asp?arbo=1&num=6","",2,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"");
Menu3_3=new Array(t[2],"/affiche.asp?arbo=1&num=12","",5,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"Les activités d'import - export de la société HBCE");

Menu3=new Array("Activités","","/skins/standard/images/bt.jpg",3,30,largeurcell,"","","","","","",-1,-1,-1,"","HBCE (hydraulique industrielle moteurs bridages axes numériques) vous souhaite la bienvenue");
Menu4=new Array("Références","/affiche.asp?arbo=1&num=7","/skins/standard/images/bt.jpg",0,30,largeurcell,"","","","","","",-1,-1,-1,"","HBCE, competences references savoirfaire");

Intitules="Formulaire reçu|Conditions de vente";
t=Intitules.split("|");
LgCelSsN=calc_larg(t);
Menu5_1=new Array(t[0],"/affiche.asp?arbo=1&num=10","",0,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"");
Menu5_2=new Array(t[1],"/affiche.asp?arbo=1&num=11","",0,24,LgCelSsN,LSBC,HSBC,FSLC,FSHC,BSC,"",-1,-1,-1,MTCt,"Conditions générales de vente de la société HBCE");

Menu5=new Array("Demande de devis","/affiche.asp?arbo=1&num=2","/skins/standard/images/bt.jpg",2,30,largeurcell,"","","","","","",-1,-1,-1,"","Demande de devis Consultations Consultation");


