		//tab_cat1 représente tous les hôtels de toutes les catégories

		var t_idCat = new Array("tab_cat0","tab_cat1","tab_cat2","tab_cat3","tab_cat4","tab_cat5","tab_cat6","tab_cat7");
		var cpt = new Array();
		
		window.onload=function()
		{
			for (var cat in t_idCat)
			{
				if(!document.getElementById(t_idCat[cat]))continue;
				document.getElementById(t_idCat[cat]).style.display='none';
				cpt[t_idCat[cat]]=0;
			}
			document.getElementById('tab_cat3').style.display='table';
		}

		function afficher(bloc)
		{
			for (var cat in t_idCat)
			{
				if(t_idCat[cat]==bloc)
				{
					if(cpt[t_idCat[cat]]==0)
					{
						document.getElementById(bloc).style.display = 'block';
						cpt[t_idCat[cat]]=1;
						scrolldown();
					}
					else
					{
						//document.getElementById(bloc).style.display = 'none';
						cpt[t_idCat[cat]]=0;
					}
				}
				else if(t_idCat[cat]!=bloc)
				{
					if(!document.getElementById(t_idCat[cat]))continue;
					document.getElementById(t_idCat[cat]).style.display = 'none';
					cpt[t_idCat[cat]]=0;
				}
			}
		}
		
		function souligner(bloc)
		{
			document.getElementById(bloc).style = 'underline';
		}

		function scrolldown() {
			 var h=0;
			 if (window.innerHeight) h = window.innerHeight;
			 else if (document.body && document.body.offsetHeight) h = window.document.body.offsetHeight;
			 else if (document.documentElement && document.documentElement.clientHeight) h = document.documentElement.clientHeight;
			 
			this.scroll(1,h);
		}   

		  
		// Rien à voir avec les tableaux
		//Valide le clique sur les drapeaux
		function french() 
		{
			document.getElementById("FR").submit();
		}
		
		function english()
		{
			document.getElementById("ENG").submit();
		}		
		
		
			

