if(BackCount!=-1){
	BackCount = "";
}else{
	BackCount = '';
}

imgBt1 = new Image();
imgBt1.src = BackCount + "fr/templates/fr/images/menu/but.gif";

imgBt2 = new Image();
imgBt2.src = BackCount + "fr/templates/fr/images/menu/butov.gif";

//Cache menu fr/templates/fr/images

imgMnu1 = new Image();
imgMnu1.src = strImgPath + 'thl.gif';
imgMnu2 = new Image(); 
imgMnu2.src = strImgPath + 'mthl.gif'; 

imgMnu3 = new Image();
imgMnu3.src = strImgPath + 'mnuTopbar.gif'; 
imgMnu3 = new Image();
imgMnu3.src = strImgPath + 'mnurow.gif'; 


imgMnu4 = new Image();
imgMnu4.src = strImgPath + 'mnubotbar.gif'; 
imgMnu4 = new Image();
imgMnu4.src = strImgPath + 'mbhl.gif'; 

imgMnu4 = new Image();
imgMnu4.src = strImgPath + 'bhl.gif'; 

/////////////////////////////////////////////////
window.menu1= new objMenu();
window.menu2= new objMenu();
window.menu3= new objMenu();
window.menu4= new objMenu();
window.menu5= new objMenu();
window.menu6= new objMenu();
/*window.menu7= new objMenu();
window.menu5= new objMenu();*/

strImgPath = BackCount + "fr/templates/fr/images/menu/";
var tdEl = null;
var tdNm = 0;

	function fn_over(ele,td,flg){
		var ttd = document.getElementById('tdMbt'+td);
		var ttdtxt = document.getElementById('tdMtxt'+td);
		//var mntov = document.getElementById('mnt_ov'+td);

		ele = document.getElementById(ele);


		if(tdEl){
			tdEl.src = BackCount + "fr/templates/fr/images/menu/but.gif"
			//var mnt_ov = document.getElementById('mnt_ov'+tdNm);
			var ttdtxt = document.getElementById('tdMtxt'+tdNm);

			/*if(mnt_ov){
				mnt_ov.src = BackCount + "fr/templates/fr/images/menu/mnt"+tdNm+".gif";
			}*/
			ttdtxt.className='menu_main';
		}

		tdNm = td;				
		ele.src = BackCount + "fr/templates/fr/images/menu/butov.gif";
		//mntov.src = BackCount + "fr/templates/fr/images/menu/mntov"+tdNm+".gif";
		tdEl = ele ;

		

		if(flg){
			menu2.HideMenus(2,7);
			return;
		}

		switch(ttd.id){

			case 'tdMbt1':
				//window.location.href = BackCount+'index.php?module=quisommes&action=default';
				menu1.HideMenus(1,7);
				menu1.show_menu(1);				
				break;

			case 'tdMbt2':
				menu2.HideMenus(1,7);
				menu2.show_menu(2);				
				break;		

			case 'tdMbt3': //La actualle
				//window.location.href = BackCount+'index.php?module=actualite&action=default';
				//menu2.HideMenus(2,7);	
				menu3.HideMenus(1,7);
				menu3.show_menu(3);		
				break;		

			case 'tdMbt4'://Journal online
				//window.location.href = BackCount+'index.php?module=journal&action=login';
				//menu4.HideMenus(2,7);
				menu4.HideMenus(1,7);
				menu4.show_menu(4);	
				break;		

			case 'tdMbt5'://archives 
				//menu5.show_menu(5);	

				//window.location.href=BackCount + "index.php?module=archive&action=load";	
				//menu5.HideMenus(2,7);	
				menu5.HideMenus(1,7);
				menu5.show_menu(5);			
				break;		

			case 'tdMbt6':
				menu6.HideMenus(1,7);
				menu6.show_menu(6);				
				break;		

		/*	case 'tdMbt7':
				menu7.HideMenus(2,7);	
				menu7.show_menu(7);				
				break;	*/	
		}
	}


	function fn_out(ele,td){
		var ttd = document.getElementById('tdMbt'+td);
		//var mntov = document.getElementById('mnt_ov'+td);
		var ttdtxt = document.getElementById('tdMtxt'+td);
		tdNm = td;

		if((ttd.id != 'tdMbt1')&& (ttd.id != 'tdMbt2')&&(ttd.id != 'tdMbt3') && (ttd.id != 'tdMbt4') && (ttd.id != 'tdMbt5') && (ttd.id != 'tdMbt6')){
			ele.src = BackCount + "fr/templates/fr/images/menu/but.gif";			
			if(mntov){
				mntov.src = BackCount + "fr/templates/fr/images/menu/mnt"+tdNm+".gif";
			}
			ttdtxt.className='menu_main';
		}	
	}


	function Init_Menu(){
		var menuWidth = 100;
		var menuPos = 200; //for IE 
		menu1.CreateLayer(1);
		if (navigator.userAgent.indexOf("Firefox") != -1){
			//menu1.mnuLeft = 170;
			menuPos =  menuPos - 30;
		}
		else{
			menuPos =  menuPos + menuWidth;
		}
		menu1.mnuLeft = menuPos;

		menu1.mnuTop = -1;
		
		menu1.AddMenu(1,"Nos offres",0,"Qui sommes-nous ?",BackCount + "index.php?module=quisommes&action=default");
		menu1.AddMenu(1,"Nos offres",1,"Journal",BackCount + "index.php?module=nos_journal&action=default");
		menu1.AddMenu(1,"Nos offres",2,"Atlas",BackCount + "index.php?module=nos_atlas&action=default");
		menu1.AddMenu(1,"Nos offres",3,"Etudes",BackCount + "index.php?module=nos_etudes&action=default");
		menu1.AddMenu(1,"Nos offres",4,"Conseil",BackCount + "index.php?module=nos_conseil&action=default");
		menu1.AddMenu(1,"Nos offres",5,"Alertes mail",BackCount + "index.php?module=nos_mailalert&action=default");
		menu1.AddMenu(1,"Nos offres",5,"Panier d'achat",BackCount + "index.php?module=nos_offres&action=show_products");
		menu1.init_menu();
		
		menu2.CreateLayer(2);
		menuPos =  menuPos + menuWidth - 20;
		menu2.mnuLeft = menuPos;

		menu2.mnuTop = -1;
		menu2.AddMenu(2,"L'actualit&eacute;",0,"Les titres des derniers num&eacute;ros",BackCount + "index.php?module=actualite&action=default");
		menu2.AddMenu(2,"L'actualit&eacute;",1,"Espace abonn&eacute;s",BackCount + "index.php?module=journal&action=login");
		menu2.AddMenu(2,"L'actualit&eacute;",2,"Archives",BackCount + "index.php?module=archive&action=load");
		menu2.AddMenu(2,"L'actualit&eacute;",3,"Appels d&#39;offres",BackCount + "index.php?module=appels&action=default");
		menu2.AddMenu(2,"L'actualit&eacute;",4,"Contrats sign&eacute;s",BackCount + "index.php?module=contract&action=default");
		menu2.AddMenu(2,"L'actualit&eacute;",5,"Agenda",BackCount + "index.php?module=agenda&action=load");
		menu2.init_menu();
		
		menu3.CreateLayer(3);
		menuPos =  menuPos + menuWidth - 20;
		menu3.mnuLeft = menuPos;

		menu3.mnuTop = -1;
		menu3.AddMenu(3,"La vie du march&eacute;",2,"Chiffres clés",BackCount + "index.php?module=chiffres&action=default");
		menu3.AddMenu(3,"La vie du march&eacute;",1,"Organisations professionnelles",BackCount + "index.php?module=syndicats&action=load");
		menu3.AddMenu(3,"La vie du march&eacute;",0,"Rubrique juridique",BackCount + "index.php?module=espace&action=load");
		menu3.AddMenu(3,"La vie du march&eacute;",3,"Liens",BackCount + "index.php?module=liens&action=default");
		menu3.init_menu();

		menu4.CreateLayer(4);
		menuPos =  menuPos + menuWidth + 20;
		menu4.mnuLeft = menuPos;

		menu4.mnuTop = -1;
		menu4.AddMenu(4,"Catalogue produits",0,"Pr&eacute;sentation",BackCount + "index.php?module=product&action=presentation");
		menu4.AddMenu(4,"Catalogue produits",1,"Alarme-contrôle d'accès",BackCount + "index.php?module=product&action=search&sectorId=15");
		menu4.AddMenu(4,"Catalogue produits",2,"Vidéosurveillance",BackCount + "index.php?module=product&action=search&sectorId=19");
		menu4.AddMenu(4,"Catalogue produits",3,"Incendie",BackCount + "index.php?module=product&action=search&sectorId=16");
		menu4.AddMenu(4,"Catalogue produits",4,"Sécurité physique",BackCount + "index.php?module=product&action=search&sectorId=20");
		menu4.AddMenu(4,"Catalogue produits",5,"Autres secteurs",BackCount + "index.php?module=product&action=search&sectorId=21");
		menu4.init_menu();
		
		menu5.CreateLayer(5);
		menuPos =  menuPos + menuWidth + 30;
		menu5.mnuLeft = menuPos;

		menu5.mnuTop = -1;
		menu5.AddMenu(5,"Emploi dans la profession",0,"Offres",BackCount + "index.php?module=employee&action=offer");
		menu5.AddMenu(5,"Emploi dans la profession",1,"Demandes",BackCount + "index.php?module=employee&action=demand");
		menu5.init_menu();
	}

	function ChangeButton(stat){
		var mntov = document.getElementById('mnt_ov'+tdNm);
		var ttdtxt = document.getElementById('tdMtxt'+tdNm);

		if(stat){
			tdEl.src = BackCount + "fr/templates/fr/images/menu/butov.gif";
			//mntov.src = BackCount + "fr/templates/fr/images/menu/mntov"+tdNm+".gif";
			ttdtxt.className='menu_main_hover';
		}else{
			tdEl.src = BackCount + "fr/templates/fr/images/menu/but.gif";
			//mntov.src = BackCount + "fr/templates/fr/images/menu/mnt"+tdNm+".gif";
			ttdtxt.className='menu_main';
		}

	}
