var compteur;


/* Fonction permettant de cacher la div contenant aucun résultat */
function CacheResultatVide()
{
	document.getElementById('resultat_vide').className = 'div_resultat_vide_cache';
	document.getElementById('resultat_vide').innerHTML='';
} 
/* Fonction permettant de montrer la div contenant aucun résultat */
function AffResultatVide()
{
	document.getElementById('resultat_vide').className = 'div_resultat_vide_present';
	document.getElementById('resultat_vide').innerHTML='';
	var img_cont_vide = document.createElement('img');
	document.getElementById('resultat_vide').appendChild(img_cont_vide);
	img_cont_vide.src='images/resultat/no_results.png';
	img_cont_vide.style.cssText='border:0;';
	img_cont_vide.id='vide';
	img_cont_vide.onclick= new Function('rafraichir()');	
}

/* Fonction d'intialisation de la recherche avancée */
function affInitLegenderechercheAvancee()
{
	document.getElementById('legende_familles').innerHTML=' ';
	document.getElementById('legende_familles').style.cssText='display:none;float:left;';	
	/**div_legendefamille = document.createElement('div');
	div_legendefamille.id = 'legende_familles';
	document.getElementById('tous').appendChild(div_legendefamille);*/
	
	
	div_rechercheavanceehaut_gauche = document.createElement('div');
	div_rechercheavanceehaut_gauche.id = 'rechercheavanceehaut_gauche';
	document.getElementById('legende_familles').appendChild(div_rechercheavanceehaut_gauche);
	div_rechercheavanceehaut_gauche.style.cssText="float:left;width:6px;height:0px;";			
	div_rechercheavanceehaut = document.createElement('div');
	div_rechercheavanceehaut.id = 'rechercheavanceehaut';
	document.getElementById('legende_familles').appendChild(div_rechercheavanceehaut);
	div_rechercheavanceehaut.style.cssText="float:left;width:311px;height:0px;";
	div_rechercheavanceehaut_droite = document.createElement('div');
	div_rechercheavanceehaut_droite.id = 'rechercheavanceehaut_droite';
	document.getElementById('legende_familles').appendChild(div_rechercheavanceehaut_droite);
	div_rechercheavanceehaut_droite.style.cssText="float:left;width:5px;height:0px;";
	
	div_categorie_label_gauche = document.createElement('div');
	div_categorie_label_gauche.id = 'Categorie_label_gauche';
	document.getElementById('legende_familles').appendChild(div_categorie_label_gauche);	
	div_categorie_label_gauche.style.cssText="float:left;width:6px;height:0px;";
	
	div_categorie_label_plus = document.createElement('div');
	div_categorie_label_plus.id = 'Categorie_label_plus';
	document.getElementById('legende_familles').appendChild(div_categorie_label_plus);		
	div_categorie_label_plus.style.cssText="float:left;width:25px;height:0px;";		
	div_categorie_label_moins = document.createElement('div');
	div_categorie_label_moins.id = 'Categorie_label_moins';
	document.getElementById('legende_familles').appendChild(div_categorie_label_moins);		
	div_categorie_label_moins.style.cssText="float:left;width:25px;height:0px;";		
							
	div_categorie_label = document.createElement('div');
	div_categorie_label.id = 'Categorie_label';
	document.getElementById('legende_familles').appendChild(div_categorie_label);
			
	div_categorie_label.style.cssText="float:left;width:285px;height:0px;";		
	div_categorie_label_droite = document.createElement('div');
	div_categorie_label_droite.id = 'Categorie_label_droite';
	document.getElementById('legende_familles').appendChild(div_categorie_label_droite);
	div_categorie_label_droite.style.cssText="float:left;width:5px;height:0px;";	
	
	div_categorie_label_gaucheh = document.createElement('div');
	div_categorie_label_gaucheh.id = 'Categorie_label_horizontal_gauche';
	document.getElementById('legende_familles').appendChild(div_categorie_label_gaucheh);
	div_categorie_label_gaucheh.style.cssText="float:left;width:6px;height:0px;";		
	
	div_categorie_label_horizontal = document.createElement('div');
	div_categorie_label_horizontal.id = 'Categorie_label_horizontal';
	document.getElementById('legende_familles').appendChild(div_categorie_label_horizontal);
	div_categorie_label_horizontal.style.cssText="float:left;width:25px;height:0px;";	
	
	div_categorie_label_horizontal2 = document.createElement('div');
	div_categorie_label_horizontal2.id = 'Categorie_label_horizontal_detail';
	document.getElementById('legende_familles').appendChild(div_categorie_label_horizontal2);
	div_categorie_label_horizontal2.style.cssText="float:left;width:285px;height:0px;";	
	
	div_categorie_label_droiteh = document.createElement('div');
	div_categorie_label_droiteh.id = 'Categorie_label_horizontal_droite';
	document.getElementById('legende_familles').appendChild(div_categorie_label_droiteh);	
	div_categorie_label_droiteh.style.cssText="float:left;width:5px;height:0px;";								

	div_categorie_label_gauchev = document.createElement('div');
	div_categorie_label_gauchev.id = 'Categorie_label_verticale_gauche';
	document.getElementById('legende_familles').appendChild(div_categorie_label_gauchev);
	div_categorie_label_gauchev.style.cssText="float:left;width:6px;height:0px;";		
	
	div_categorie_label_verticale = document.createElement('div');
	div_categorie_label_verticale.id = 'Categorie_label_verticale';
	document.getElementById('legende_familles').appendChild(div_categorie_label_verticale);
	div_categorie_label_verticale.style.cssText="float:left;width:12px;height:0px;";	
	
	div_categorie_label_verticale_d = document.createElement('div');
	div_categorie_label_verticale_d.id = 'Categorie_label_verticale_detail';
	document.getElementById('legende_familles').appendChild(div_categorie_label_verticale_d);
	div_categorie_label_verticale_d.style.cssText="float:left;width:298px;height:0px;";	
	
	div_categorie_label_droitev = document.createElement('div');
	div_categorie_label_droitev.id = 'Categorie_label_verticale_droite';
	document.getElementById('legende_familles').appendChild(div_categorie_label_droitev);	
	div_categorie_label_droitev.style.cssText="float:left;width:5px;height:0px;";	
	
		div_secteurgeo_label_gauche = document.createElement('div');
	div_secteurgeo_label_gauche.id = 'Secteurgeographique_label_gauche';
	document.getElementById('legende_familles').appendChild(div_secteurgeo_label_gauche);	
	div_secteurgeo_label_gauche.style.cssText="float:left;width:6px;height:0px;";	
	
	div_secteurgeo_label_plus = document.createElement('div');
	div_secteurgeo_label_plus.id = 'Secteurgeographique_label_plus';
	document.getElementById('legende_familles').appendChild(div_secteurgeo_label_plus);		
	div_secteurgeo_label_plus.style.cssText="float:left;width:25px;height:0px;";		
	div_secteurgeo_label_moins = document.createElement('div');
	div_secteurgeo_label_moins.id = 'Secteurgeographique_label_moins';
	document.getElementById('legende_familles').appendChild(div_secteurgeo_label_moins);		
	div_secteurgeo_label_moins.style.cssText="float:left;width:25px;height:0px;";	
							
	div_secteurgeo_label = document.createElement('div');
	div_secteurgeo_label.id = 'Secteurgeographique_label';
	document.getElementById('legende_familles').appendChild(div_secteurgeo_label);
	div_secteurgeo_label.style.cssText="float:left;width:285px;height:0px;";					
	div_secteurgeo_label_droite = document.createElement('div');
	div_secteurgeo_label_droite.id = 'Secteurgeographique_label_droite';
	document.getElementById('legende_familles').appendChild(div_secteurgeo_label_droite);
	div_secteurgeo_label_droite.style.cssText="float:left;width:5px;height:0px;";									
	
	div_secteurgeo_label_gaucheh = document.createElement('div');
	div_secteurgeo_label_gaucheh.id = 'Secteurgeographique_label_horizontal_gauche';
	document.getElementById('legende_familles').appendChild(div_secteurgeo_label_gaucheh);
	div_secteurgeo_label_gaucheh.style.cssText="float:left;width:6px;height:0px;";		
	
	div_secteurgeo_label_horizontal = document.createElement('div');
	div_secteurgeo_label_horizontal.id = 'Secteurgeographique_label_horizontal';
	document.getElementById('legende_familles').appendChild(div_secteurgeo_label_horizontal);
	div_secteurgeo_label_horizontal.style.cssText="float:left;width:25px;height:0px;";	
	
	div_secteurgeo_label_horizontal2 = document.createElement('div');
	div_secteurgeo_label_horizontal2.id = 'Secteurgeographique_label_horizontal_detail';
	document.getElementById('legende_familles').appendChild(div_secteurgeo_label_horizontal2);
	div_secteurgeo_label_horizontal2.style.cssText="float:left;width:285px;height:0px;";	
	
	div_secteurgeo_label_droiteh = document.createElement('div');
	div_secteurgeo_label_droiteh.id = 'Secteurgeographique_label_horizontal_droite';
	document.getElementById('legende_familles').appendChild(div_secteurgeo_label_droiteh);	
	div_secteurgeo_label_droiteh.style.cssText="float:left;width:5px;height:0px;";								
	
	
	div_secteurgeo_label_gauchev = document.createElement('div');
	div_secteurgeo_label_gauchev.id = 'Secteurgeographique_label_verticale_gauche';
	document.getElementById('legende_familles').appendChild(div_secteurgeo_label_gauchev);
	div_secteurgeo_label_gauchev.style.cssText="float:left;width:6px;height:0px;";		
	
	
	div_secteurgeo_label_verticale = document.createElement('div');
	div_secteurgeo_label_verticale.id = 'Secteurgeographique_label_verticale';
	document.getElementById('legende_familles').appendChild(div_secteurgeo_label_verticale);
	div_secteurgeo_label_verticale.style.cssText="float:left;width:12px;height:0px;";	
	
	div_secteurgeo_label_verticale_d = document.createElement('div');
	div_secteurgeo_label_verticale_d.id = 'Secteurgeographique_label_verticale_detail';
	document.getElementById('legende_familles').appendChild(div_secteurgeo_label_verticale_d);
	div_secteurgeo_label_verticale_d.style.cssText="float:left;width:298px;height:0px;";	
	
	
	div_secteurgeo_label_droitev = document.createElement('div');
	div_secteurgeo_label_droitev.id = 'Secteurgeographique_label_verticale_droite';
	document.getElementById('legende_familles').appendChild(div_secteurgeo_label_droitev);	
	div_secteurgeo_label_droitev.style.cssText="float:left;width:5px;height:0px;";	
	
	div_fonction_label_gauche = document.createElement('div');
	div_fonction_label_gauche.id = 'Fonction_label_gauche';
	document.getElementById('legende_familles').appendChild(div_fonction_label_gauche);
	div_fonction_label_gauche.style.cssText="float:left;width:6px;height:0px;";		
	
	div_fonction_label_plus = document.createElement('div');
	div_fonction_label_plus.id = 'Fonction_label_plus';
	document.getElementById('legende_familles').appendChild(div_fonction_label_plus);		
	div_fonction_label_plus.style.cssText="float:left;width:25px;height:0px;";		
	div_fonction_label_moins = document.createElement('div');
	div_fonction_label_moins.id = 'Fonction_label_moins';
	document.getElementById('legende_familles').appendChild(div_fonction_label_moins);		
	div_fonction_label_moins.style.cssText="float:left;width:25px;height:0px;";		
	
						
	div_fonction_label = document.createElement('div');
	div_fonction_label.id = 'Fonction_label';
	document.getElementById('legende_familles').appendChild(div_fonction_label);	
	div_fonction_label.style.cssText="float:left;width:285px;height:0px;";		
		
	div_fonction_label_droite = document.createElement('div');
	div_fonction_label_droite.id = 'Fonction_label_droite';
	document.getElementById('legende_familles').appendChild(div_fonction_label_droite);	
	div_fonction_label_droite.style.cssText="float:left;width:5px;height:0px;";		
	
	div_fonction_label_gaucheh = document.createElement('div');
	div_fonction_label_gaucheh.id = 'Fonction_label_horizontal_gauche';
	document.getElementById('legende_familles').appendChild(div_fonction_label_gaucheh);
	div_fonction_label_gaucheh.style.cssText="float:left;width:6px;height:0px;";		
	
	div_fonction_label_horizontal = document.createElement('div');
	div_fonction_label_horizontal.id = 'Fonction_label_horizontal';
	document.getElementById('legende_familles').appendChild(div_fonction_label_horizontal);
	div_fonction_label_horizontal.style.cssText="float:left;width:25px;height:0px;";	
	
	div_fonction_label_horizontal2 = document.createElement('div');
	div_fonction_label_horizontal2.id = 'Fonction_label_horizontal_detail';
	document.getElementById('legende_familles').appendChild(div_fonction_label_horizontal2);
	div_fonction_label_horizontal2.style.cssText="float:left;width:285px;height:0px;";	
	
	div_fonction_label_droiteh = document.createElement('div');
	div_fonction_label_droiteh.id = 'Fonction_label_horizontal_droite';
	document.getElementById('legende_familles').appendChild(div_fonction_label_droiteh);	
	div_fonction_label_droiteh.style.cssText="float:left;width:5px;height:0px;";								

	div_fonction_label_gauchev = document.createElement('div');
	div_fonction_label_gauchev.id = 'Fonction_label_verticale_gauche';
	document.getElementById('legende_familles').appendChild(div_fonction_label_gauchev);
	div_fonction_label_gauchev.style.cssText="float:left;width:6px;height:0px;";		
	
	div_fonction_label_verticale = document.createElement('div');
	div_fonction_label_verticale.id = 'Fonction_label_verticale';
	document.getElementById('legende_familles').appendChild(div_fonction_label_verticale);
	div_fonction_label_verticale.style.cssText="float:left;width:12px;height:0px;";	
	
	div_fonction_label_verticale_d = document.createElement('div');
	div_fonction_label_verticale_d.id = 'Fonction_label_verticale_detail';
	document.getElementById('legende_familles').appendChild(div_fonction_label_verticale_d);
	div_fonction_label_verticale_d.style.cssText="float:left;width:298px;height:0px;";	
	
	div_fonction_label_droitev = document.createElement('div');
	div_fonction_label_droitev.id = 'Fonction_label_verticale_droite';
	document.getElementById('legende_familles').appendChild(div_fonction_label_droitev);	
	div_fonction_label_droitev.style.cssText="float:left;width:5px;height:0px;";		
	
	
	
				
	div_formejuridique_label_gauche = document.createElement('div');
	div_formejuridique_label_gauche.id = 'Formejuridique_label_gauche';
	document.getElementById('legende_familles').appendChild(div_formejuridique_label_gauche);		
	div_formejuridique_label_gauche.style.cssText="float:left;width:6px;height:0px;";	
	
	div_formejuridique_label_plus = document.createElement('div');
	div_formejuridique_label_plus.id = 'Formejuridique_label_plus';
	document.getElementById('legende_familles').appendChild(div_formejuridique_label_plus);		
	div_formejuridique_label_plus.style.cssText="float:left;width:25px;height:0px;";		
	div_formejuridique_label_moins = document.createElement('div');
	div_formejuridique_label_moins.id = 'Formejuridique_label_moins';
	document.getElementById('legende_familles').appendChild(div_formejuridique_label_moins);		
	div_formejuridique_label_moins.style.cssText="float:left;width:25px;height:0px;";	
							
	div_formejuridique_label = document.createElement('div');
	div_formejuridique_label.id = 'Formejuridique_label';
	document.getElementById('legende_familles').appendChild(div_formejuridique_label);
	div_formejuridique_label.style.cssText="float:left;width:285px;height:0px;";					
	div_formejuridique_label_droite = document.createElement('div');
	div_formejuridique_label_droite.id = 'Formejuridique_label_droite';
	document.getElementById('legende_familles').appendChild(div_formejuridique_label_droite);
	div_formejuridique_label_droite.style.cssText="float:left;width:5px;height:0px;";								

	div_formejuridique_label_gaucheh = document.createElement('div');
	div_formejuridique_label_gaucheh.id = 'Formejuridique_label_horizontal_gauche';
	document.getElementById('legende_familles').appendChild(div_formejuridique_label_gaucheh);
	div_formejuridique_label_gaucheh.style.cssText="float:left;width:6px;height:0px;";		
	
	div_formejuridique_label_horizontal = document.createElement('div');
	div_formejuridique_label_horizontal.id = 'Formejuridique_label_horizontal';
	document.getElementById('legende_familles').appendChild(div_formejuridique_label_horizontal);
	div_formejuridique_label_horizontal.style.cssText="float:left;width:25px;height:0px;";	
	
	div_formejuridique_label_horizontal2 = document.createElement('div');
	div_formejuridique_label_horizontal2.id = 'Formejuridique_label_horizontal_detail';
	document.getElementById('legende_familles').appendChild(div_formejuridique_label_horizontal2);
	div_formejuridique_label_horizontal2.style.cssText="float:left;width:285px;height:0px;";	
	
	div_formejuridique_label_droiteh = document.createElement('div');
	div_formejuridique_label_droiteh.id = 'Formejuridique_label_horizontal_droite';
	document.getElementById('legende_familles').appendChild(div_formejuridique_label_droiteh);	
	div_formejuridique_label_droiteh.style.cssText="float:left;width:5px;height:0px;";								
	

	div_formejuridique_label_gauchev = document.createElement('div');
	div_formejuridique_label_gauchev.id = 'Formejuridique_label_verticale_gauche';
	document.getElementById('legende_familles').appendChild(div_formejuridique_label_gauchev);
	div_formejuridique_label_gauchev.style.cssText="float:left;width:6px;height:0px;";		
	
	
	div_formejuridique_label_verticale = document.createElement('div');
	div_formejuridique_label_verticale.id = 'Formejuridique_label_verticale';
	document.getElementById('legende_familles').appendChild(div_formejuridique_label_verticale);
	div_formejuridique_label_verticale.style.cssText="float:left;width:12px;height:0px;";	
	
	div_formejuridique_label_verticale_d = document.createElement('div');
	div_formejuridique_label_verticale_d.id = 'Formejuridique_label_verticale_detail';
	document.getElementById('legende_familles').appendChild(div_formejuridique_label_verticale_d);
	div_formejuridique_label_verticale_d.style.cssText="float:left;width:298px;height:0px;";	
	
	
	div_formejuridique_label_droitev = document.createElement('div');
	div_formejuridique_label_droitev.id = 'Formejuridique_label_verticale_droite';
	document.getElementById('legende_familles').appendChild(div_formejuridique_label_droitev);	
	div_formejuridique_label_droitev.style.cssText="float:left;width:5px;height:0px;";		


		
	
	
	div_label_label_gauche = document.createElement('div');
	div_label_label_gauche.id = 'Label_label_gauche';
	document.getElementById('legende_familles').appendChild(div_label_label_gauche);	
	div_label_label_gauche.style.cssText="float:left;width:6px;height:0px;";
	
	div_label_label_plus = document.createElement('div');
	div_label_label_plus.id = 'Label_label_plus';
	document.getElementById('legende_familles').appendChild(div_label_label_plus);		
	div_label_label_plus.style.cssText="float:left;width:25px;height:0px;";		
	div_label_label_moins = document.createElement('div');
	div_label_label_moins.id = 'Label_label_moins';
	document.getElementById('legende_familles').appendChild(div_label_label_moins);		
	div_label_label_moins.style.cssText="float:left;width:25px;height:0px;";		
							
	div_label_label = document.createElement('div');
	div_label_label.id = 'Label_label';
	document.getElementById('legende_familles').appendChild(div_label_label);
			
	div_label_label.style.cssText="float:left;width:285px;height:0px;";		
	div_label_label_droite = document.createElement('div');
	div_label_label_droite.id = 'Label_label_droite';
	document.getElementById('legende_familles').appendChild(div_label_label_droite);
	div_label_label_droite.style.cssText="float:left;width:5px;height:0px;";	
	
	div_label_label_gaucheh = document.createElement('div');
	div_label_label_gaucheh.id = 'Label_label_horizontal_gauche';
	document.getElementById('legende_familles').appendChild(div_label_label_gaucheh);
	div_label_label_gaucheh.style.cssText="float:left;width:6px;height:0px;";		
	
	div_label_label_horizontal = document.createElement('div');
	div_label_label_horizontal.id = 'Label_label_horizontal';
	document.getElementById('legende_familles').appendChild(div_label_label_horizontal);
	div_label_label_horizontal.style.cssText="float:left;width:25px;height:0px;";	
	
	div_label_label_horizontal2 = document.createElement('div');
	div_label_label_horizontal2.id = 'Label_label_horizontal_detail';
	document.getElementById('legende_familles').appendChild(div_label_label_horizontal2);
	div_label_label_horizontal2.style.cssText="float:left;width:285px;height:0px;";	
	
	div_label_label_droiteh = document.createElement('div');
	div_label_label_droiteh.id = 'Label_label_horizontal_droite';
	document.getElementById('legende_familles').appendChild(div_label_label_droiteh);	
	div_label_label_droiteh.style.cssText="float:left;width:5px;height:0px;";								
	
	
	
	
	div_label_label_gauchev = document.createElement('div');
	div_label_label_gauchev.id = 'Label_label_verticale_gauche';
	document.getElementById('legende_familles').appendChild(div_label_label_gauchev);
	div_label_label_gauchev.style.cssText="float:left;width:6px;height:0px;";		
	
	div_label_label_verticale = document.createElement('div');
	div_label_label_verticale.id = 'Label_label_verticale';
	document.getElementById('legende_familles').appendChild(div_label_label_verticale);
	div_label_label_verticale.style.cssText="float:left;width:12px;height:0px;";	
	
	div_label_label_verticale_d = document.createElement('div');
	div_label_label_verticale_d.id = 'Label_label_verticale_detail';
	document.getElementById('legende_familles').appendChild(div_label_label_verticale_d);
	div_label_label_verticale_d.style.cssText="float:left;width:298px;height:0px;";	
	
	div_label_label_droitev = document.createElement('div');
	div_label_label_droitev.id = 'Label_label_verticale_droite';
	document.getElementById('legende_familles').appendChild(div_label_label_droitev);	
	div_label_label_droitev.style.cssText="float:left;width:5px;height:0px;";			
	
	
	
	
}

/*Fonction vidage de la partie légende */
function Vidagelegendefamilles()
{
	document.getElementById('legende_familles').innerHTML='';	
	document.getElementById('legende_familles').style.cssText='display:none;';	
}

//Fonction vidage des sousrubriques familles
function Vidagesousrubrique()
{

/**var Node = document.getElementById("Fonction");
var NodeListe = Node.childNodes
  while(Node.hasChildNodes()==true){
  	try {
    	var Enfant=NodeListe.item(0);
    	var tmp = '';
    	tmp = Node.removeChild(Enfant);
    } catch(DOMException)  {
        alert(tmp);
        alert(DOMException);
    };
    
  } */
document.getElementById('Categorie').innerHTML=' ';
/*document.getElementById('Fonction').innerHTML=' ';	*/
document.getElementById('Label').innerHTML=' ';	
document.getElementById('Formejuridique').innerHTML=' ';	
document.getElementById('Secteurgeographique').innerHTML=' ';
	
}


/* Fonction de cache de la partie légende (recherche avancée) + résultats */
function CacheLegendeResultat()
{
	//Construction de la partie légende
					
	document.getElementById('resultat').style.cssText = 'height:0px;';
	//document.getElementById('logohaut').style.cssText = 'height:0px;';
	document.getElementById('logobas').style.cssText = 'height:0px;';				
	//document.getElementById('logohautgauche').style.cssText = 'height:0px;';
	//document.getElementById('logohautdroite').style.cssText = 'height:0px;';			
	document.getElementById('resultatgauche').style.cssText = 'height:0px;';
	document.getElementById('resultatdroite').style.cssText = 'height:0px;';		
	document.getElementById('logobasgauche').style.cssText = 'height:0px;';
	document.getElementById('logobasdroite').style.cssText = 'height:0px;';			
	document.getElementById('ligneapreslogo').style.cssText = 'height:0px;';
	document.getElementById('titre').style.cssText = 'height:0px;';
	if(document.getElementById('titre').hasChildNodes())
	{
		document.getElementById('titre').removeChild(document.getElementById('compteurs'));
	}
	document.getElementById('ligneapreslogogauche').style.cssText = 'height:0px;';
	document.getElementById('titregauche').style.cssText = 'height:0px;';
	document.getElementById('ligneapreslogodroite').style.cssText = 'height:0px;';
	document.getElementById('titredroite').style.cssText = 'height:0px;';
}
/* Fonction de cache de la partie rechercheavancée (haut+ bas) */
function CacheRechercheAvancee()
{
	document.getElementById('recherche_avancee_bas').className = 'recherche_avancee_bas_cache';
	document.getElementById('recherche_avancee_haut').className = 'recherche_avancee_haut_cache';
	document.getElementById('recherche_avancee_haut').onclick= new Function('FermerRecherche()');	
}
/* Fonction d'affichage de la partie rechercheavancée (haut+ bas) */
function AffRechercheAvancee()
{
	document.getElementById('recherche_avancee_bas').className = 'recherche_avancee_bas';
	document.getElementById('recherche_avancee_haut').className = 'recherche_avancee_haut';
	document.getElementById('recherche_avancee_haut').onclick= new Function('FermerRecherche()');	
	
}

/* Fonction de ce qui a dans la partie label_types*/
function InitLabelTypesvide()
{
	 document.getElementById('label_types').innerHTML=' ';	
}
/* Function d'initialisation de la partie label_types */
function InitLabelTypesplein()
{
	 document.getElementById('label_types').innerHTML='Afficher toutes les structures';	
	 
}	

/* Fonction permettant le dessin des sous-rubriques des familles */
function AffFiltreGen(filtre,nb)
{
	
	h = (nb*36)+20;
	//document.getElementById(filtre+'_gauche').style.cssText = 'width: 6px;height:90px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png); background-repeat: repeat-y;display:block;';	
	document.getElementById(filtre+'_label').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';
	document.getElementById(filtre+'_label_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;';
	document.getElementById(filtre+'_label_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;';
	document.getElementById(filtre+'_label_plus').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';
	document.getElementById(filtre+'_label_moins').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';	
	
	if(document.getElementById(filtre+'_label_plus').hasChildNodes())
	{
	}else{
	a = document.createElement('a');
	a.id=filtre+'_lien_plus';
	a.name=filtre+'_lien_plus';
	a.href="#";
	a.onclick=new Function('OuvertureSSRubrique("'+filtre+'","'+h+'")');
	a.border='0';
	document.getElementById(filtre+'_label_plus').appendChild(a);
	
	img = document.createElement('img');
	img.id=filtre+'_img_plus';
	img.name=filtre+'_img_plus';
	img.src='images/rechercheavancee/plus.png';
	img.border='0';
	a.appendChild(img);
	
	}
	
	if(document.getElementById(filtre+'_label_moins').hasChildNodes())
	{
	}else{
	a1 = document.createElement('a');
	a1.id=filtre+'_lien_moins';
	a1.name=filtre+'_lien_moins';
	a1.href="#";
	a1.onclick=new Function('FermetureSSRubrique("'+filtre+'","'+h+'")');
	a1.border='0';
	document.getElementById(filtre+'_label_moins').appendChild(a1);
	
	img1 = document.createElement('img');
	img1.id=filtre+'_img_moins';
	img1.name=filtre+'_img_moins';
	img1.src='images/rechercheavancee/moins.png';
	img1.border='0';
	a1.appendChild(img1);
	
	
	}
	
}

/* Fonction permettant le dessin des sous-rubriques des familles */
function AffFiltre(filtre)
{
	
	//document.getElementById(filtre+'_gauche').style.cssText = 'width: 6px;height:90px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png); background-repeat: repeat-y;display:block;';	
	/**document.getElementById(filtre+'_label').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 311px;height:475px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';
	document.getElementById(filtre+'_label_gauche').style.cssText = 'width: 6px;height:475px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;';
	document.getElementById(filtre+'_label_droite').style.cssText = 'width: 5px;height:475px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;';
	*/
	//document.getElementById(filtre).innerHTML=' ';
	document.getElementById(filtre).style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:block;';
	//document.getElementById(filtre+'_droite').style.cssText = 'width: 5px;height:90px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:block;';	
}

/* Fonction permettant le dessin des sous-rubriques des familles => cacher */
function CacheFiltre(filtre)
{
	
	//document.getElementById(filtre+'_gauche').style.cssText = 'width: 6px;height:90px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png); background-repeat: repeat-y;display:block;';	
	/**document.getElementById(filtre+'_label').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 311px;height:475px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';
	document.getElementById(filtre+'_label_gauche').style.cssText = 'width: 6px;height:475px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;';
	document.getElementById(filtre+'_label_droite').style.cssText = 'width: 5px;height:475px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;';
	*/
	//document.getElementById(filtre).innerHTML=' ';
	document.getElementById(filtre).style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
	//document.getElementById(filtre+'_droite').style.cssText = 'width: 5px;height:90px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:block;';	
}

/* Fonction de dessin de la partie type  */
function affdivpartie(typetransformables,typesmajuscule,nouveau)
{
	//  Dessin de la div principal => type
	div_cont = document.createElement('div');
	document.getElementById('detail_types').appendChild(div_cont);
	div_cont.className = 'divprincipaltypes';
	div_partie1 = document.createElement('div');
	div_partie1.className = 'divinputtypes';
	div_cont.appendChild(div_partie1);
	ipt1 = document.createElement('input');// 1er bouton
	// ipt1.type = 'radio';    DAVID
	ipt1.type = 'checkbox';
	div_partie1.appendChild(ipt1);
	ipt1.name = 'type_'+ typetransformables;
	//ipt1.value = '0'; david
	if(nouveau==1) ipt1.checked = true;
	else ipt1.checked = false;
	//ipt1.checked = false;
	ipt1.id = 'type_'+ typetransformables+'_afficher';
																	
	div_partie2 = document.createElement('div');
	div_partie2.className = 'divimagestypes';
	div_cont.appendChild(div_partie2);
									
	img = document.createElement('img');// L'image
	if(typetransformables!='structure')
	{
		img.src = 'images/legende/individu.png';
		img.id='individu_1';
	}else{
		img.src = 'images/legende/'+ typetransformables + '.png';
		img.id=typetransformables+'_1';
	}
	img.className = 'divimage';
	div_partie2.appendChild(img);
	if(typetransformables!='structure')
	{
		transpngone('individu_1');
	}else{
		transpngone(typetransformables+'_1');
	}
									
	div_partie3 = document.createElement('div');
	div_partie3.className = 'divlabeltypes';
	div_cont.appendChild(div_partie3);
									
	titre2 = document.createTextNode(typesmajuscule);
	div_partie3.appendChild(titre2);
}

//Fonction de dessin de la div famille
function affdivfamillepartie1(filtre,familletransformables)
{
	
	div2_cont = document.createElement('div');
	document.getElementById(filtre).appendChild(div2_cont);
	div2_cont.id='divprincipal2_'+familletransformables;
	div2_cont.className = 'divprincipal2';
	//div2_cont.id='DIV_ELT'; code david ne pas supprimer
	//Dessin de la partie 1 de la div (logo + titre) => Filtre
	div2_partie1 = document.createElement('div');// Div enfant
	div2_cont.appendChild(div2_partie1);
	div2_partie1.className = 'divpartie1_1';
	div2_partie1.id='divpartie1_1'+familletransformables;
	//Nouveau code
	div2_partie11 = document.createElement('div');// Div enfant
	div2_partie1.appendChild(div2_partie11);
	div2_partie11.className = 'div_input';
	div2_partie11.id='div_input'+familletransformables;
	ipt12 = document.createElement('input');// 1er bouton
	ipt12.type = 'checkbox';
	div2_partie11.appendChild(ipt12);
	ipt12.name = filtre + '_'+ familletransformables;
	ipt12.checked = false;
	ipt12.id = filtre + '_'+ familletransformables+'_afficher';
	div2_partie12 = document.createElement('div');// Div enfant
	div2_partie1.appendChild(div2_partie12);
	div2_partie12.className = 'div_image';
	div2_partie12.id='div_image'+familletransformables;
	img02 = document.createElement('img');// L'image
	img02.src = 'images/legende/logo.gif';	
} 

//Fonction de dessin de la div famille
function affdivfamillepartie2(famillesmajuscule,essaicouleur)
{
	img02.style.cssText = 'background-color : ' + essaicouleur + ';float:left;height:20px;width:20px;';
	div2_partie12.appendChild(img02);
	div2_partie13 = document.createElement('div');// Div enfant
	div2_partie1.appendChild(div2_partie13);
	div2_partie13.className = 'div_text';	
	div2_partie13.id='div_text'+famillesmajuscule;
	titre22 = document.createTextNode('   '+famillesmajuscule);
	div2_partie13.appendChild(titre22);	
} 

//Fonction d'initialisation du détail type
function InitDetailTypes()
{
	document.getElementById('detail_types').innerHTML='';
}

//Function fermer la popup d'aide
function Fermer()
{
	document.getElementById('Popup').className='mapHelpWindow';
	document.getElementById('Popup').innerHTML='';
}

//Function fermer la popup de lien
function FermerEcranLien()
{
	document.getElementById('Lien').className='mapLienWindow';
	document.getElementById('Lien').innerHTML='';
}
		
//Function permmetant l'ouverture de la popup d'aide
function OuvertureAide()
{
	affMessageAide();
}

//Fonction permettant l'ouverture de la aprtie recherche avancée
function OuvertureRecherche()
{
			CacheRechercheAvancee();
			affInitLegenderechercheAvancee();
			document.getElementById('tous').className='tous_ouvert';		
			document.getElementById('infos').className='infos2';					
			document.getElementById('rechercheavanceehaut_gauche').style.cssText = 'width: 6px;height:50px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png); background-repeat: repeat-y;';
			document.getElementById('rechercheavanceehaut').innerHTML='&nbsp;<span style="color:#69C620;font-size:20px;font_family:Arial;font-weight:bold;text-align:center;"><center>Recherche avancée</center></span>';
			document.getElementById('rechercheavanceehaut_droite').style.cssText = 'width: 5px;height:50px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;';
			document.getElementById('rechercheavanceehaut').style.cssText = 'width: 309px;height:50px;float:left;z-index: 4;background-color: #000000; filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';

			document.getElementById('Categorie_label_moins').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none';			
			document.getElementById('Label_label_moins').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none';
			document.getElementById('Fonction_label_moins').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			
			document.getElementById('Formejuridique_label_moins').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Secteurgeographique_label_moins').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			
			document.getElementById('Fonction_label_verticale_detail').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 298px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Fonction_label_verticale').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 12px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Fonction_label_verticale_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;display:none;';
			document.getElementById('Fonction_label_verticale_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:none;';

			document.getElementById('Secteurgeographique_label_verticale_detail').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 298px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Secteurgeographique_label_verticale').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 12px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Secteurgeographique_label_verticale_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;display:none;';
			document.getElementById('Secteurgeographique_label_verticale_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:none;';
			
			document.getElementById('Formejuridique_label_verticale_detail').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 2986px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Formejuridique_label_verticale').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 12px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Formejuridique_label_verticale_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;display:none;';
			document.getElementById('Formejuridique_label_verticale_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:none;';
			
			document.getElementById('Label_label_verticale_detail').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 298px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Label_label_verticale').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 12px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Label_label_verticale_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;display:none;';
			document.getElementById('Label_label_verticale_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:none;';

			document.getElementById('Categorie_label_verticale_detail').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 298px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Categorie_label_verticale').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 12px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Categorie_label_verticale_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;display:none;';
			document.getElementById('Categorie_label_verticale_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:none;';

			document.getElementById('Categorie_label_horizontal_detail').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Categorie_label_horizontal').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Categorie_label_horizontal_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;display:none;';
			document.getElementById('Categorie_label_horizontal_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:none;';
			
			document.getElementById('Label_label_horizontal_detail').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Label_label_horizontal').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Label_label_horizontal_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;display:none;';
			document.getElementById('Label_label_horizontal_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:none;';

			document.getElementById('Fonction_label_horizontal_detail').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Fonction_label_horizontal').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Fonction_label_horizontal_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;display:none;';
			document.getElementById('Fonction_label_horizontal_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:none;';

			document.getElementById('Formejuridique_label_horizontal_detail').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Formejuridique_label_horizontal').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Formejuridique_label_horizontal_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;display:none;';
			document.getElementById('Formejuridique_label_horizontal_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:none;';

			document.getElementById('Secteurgeographique_label_horizontal_detail').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Secteurgeographique_label_horizontal').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Secteurgeographique_label_horizontal_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;display:none;';
			document.getElementById('Secteurgeographique_label_horizontal_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:none;';

			
			
			document.getElementById('Categorie_label').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';						
			document.getElementById('Label_label').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';
			document.getElementById('Fonction_label').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';
			document.getElementById('Formejuridique_label').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';
			document.getElementById('Secteurgeographique_label').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';
			document.getElementById('Fonction_label_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;';
			document.getElementById('Fonction_label_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;';
			document.getElementById('Categorie_label_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png); background-repeat: repeat-y;';		
			document.getElementById('Categorie_label_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;';
			document.getElementById('Label_label_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png); background-repeat: repeat-y;';		
			document.getElementById('Label_label_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;';
			document.getElementById('Formejuridique_label_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png); background-repeat: repeat-y;';
			document.getElementById('Formejuridique_label_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;';
			document.getElementById('Secteurgeographique_label_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png); background-repeat: repeat-y;';
		    document.getElementById('Secteurgeographique_label_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;';
				document.getElementById('Fonction_label').innerHTML=' ';
				var input = document.createElement('input');
				input.id='filtre_fonction';
				input.name='filtre_fonction';
				input.type='hidden';
				input.value='Fonction';
				input.onclick=new Function('load(2)');
				document.getElementById('Fonction_label').appendChild(input);	
				var titre = document.createElement('span');
				titre.style.cssText='font-family:Arial;	font-size:12px;color:#FFFFFF;font-weight:bold;font-style:italic';
				titre.innerHTML='Par fonction des individus';
				document.getElementById('Fonction_label').appendChild(titre);	
				var detail = document.createElement('span');
				detail.style.cssText='font-family:Arial;font-size:12px;	color:#FFFFFF;font-style:italic';
				detail.innerHTML='&nbsp;<img border="0" src="images/legende/individu.gif"></img>';
				document.getElementById('Fonction_label').appendChild(detail);
							
				div_fonction = document.createElement('div');
				div_fonction.id = 'Fonction';
				document.getElementById('Fonction_label_horizontal_detail').appendChild(div_fonction);	
				div_fonction.style.cssText="float:none;width:285px;display:none;";		
	
				
				document.getElementById('Label_label').innerHTML='';
				var input1 = document.createElement('input');
				input1.id='filtre_label';
				input1.name='filtre_label';
				input1.type='hidden';
				input1.value='Label';
				input1.onclick=new Function('load(2)');
				document.getElementById('Label_label').appendChild(input1);	
				var titre1 = document.createElement('span');
				titre1.style.cssText='font-family:Arial;font-size:12px;color:#FFFFFF;font-weight:bold;font-style:italic';
				titre1.innerHTML='Par label des structures';
				document.getElementById('Label_label').appendChild(titre1);	
				var detail1 = document.createElement('span');
				detail1.style.cssText='font-family:Arial;font-size:12px;color:#FFFFFF;font-style:italic';
				detail1.innerHTML='&nbsp;<img border="0" src="images/legende/structure.gif"></img>';
				document.getElementById('Label_label').appendChild(detail1);
				
				
				
				
				div_label = document.createElement('div');
				div_label.id = 'Label';
				document.getElementById('Label_label_horizontal_detail').appendChild(div_label);	
				div_label.style.cssText="float:none;width:285px;height:auto;display:none;";	
				
				
				document.getElementById('Categorie_label').innerHTML='';
				var input10 = document.createElement('input');
				input10.id='filtre_categorie';
				input10.name='filtre_categorie';
				input10.type='hidden';
				input10.value='Categorie';
				input10.onclick=new Function('load(2)');
				document.getElementById('Categorie_label').appendChild(input10);	
				var titre10 = document.createElement('span');
				titre10.style.cssText='font-family:Arial;font-size:12px;color:#FFFFFF;font-weight:bold;font-style:italic';
				titre10.innerHTML='Par cat&eacute;gorie des acteurs';
				document.getElementById('Categorie_label').appendChild(titre10);	
				var detail10 = document.createElement('span');
				detail10.style.cssText='font-family:Arial;font-size:12px;color:#FFFFFF;font-style:italic';
				detail10.innerHTML='&nbsp;<img border="0" src="images/legende/individu.gif"></img>&nbsp;<img border="0" src="images/legende/structure.gif"></img>';
				document.getElementById('Categorie_label').appendChild(detail10);
				
				
				
				div_categorie = document.createElement('div');
				div_categorie.id = 'Categorie';
				document.getElementById('Categorie_label_horizontal_detail').appendChild(div_categorie);	
				div_categorie.style.cssText="float:none;width:285px;height:auto;display:none;";	
				
		
				document.getElementById('Formejuridique_label').innerHTML='';
				var input2 = document.createElement('input');
				input2.id='filtre_formejuridique';
				input2.name='filtre_formejuridique';
				input2.type='hidden';
				input2.value='Formejuridique';
				input2.onclick=new Function('load(2)');
				document.getElementById('Formejuridique_label').appendChild(input2);	
				var titre2 = document.createElement('span');
				titre2.style.cssText='font-family:Arial;font-size:12px;color:#FFFFFF;font-weight:bold;font-style:italic';
				titre2.innerHTML='Par forme juridique des structures';
				document.getElementById('Formejuridique_label').appendChild(titre2);	
				var detail2 = document.createElement('span');
				detail2.style.cssText='font-family:Arial;font-size:12px;color:#FFFFFF;font-style:italic';
				detail2.innerHTML='&nbsp;<img border="0" src="images/legende/structure.gif"></img>';
				document.getElementById('Formejuridique_label').appendChild(detail2);
				
				
				
				div_formejuridique = document.createElement('div');
				div_formejuridique.id = 'Formejuridique';
				document.getElementById('Formejuridique_label_horizontal_detail').appendChild(div_formejuridique);	
				div_formejuridique.style.cssText="float:none;width:285px;height:auto;display:none;";		
		
			   document.getElementById('Secteurgeographique_label').innerHTML='';
			   	var input3 = document.createElement('input');
				input3.id='filtre_secteurgeographique';
				input3.name='filtre_secteurgeographique';
				input3.type='hidden';
				input3.value='Secteurgeographique';
				input3.onclick=new Function('load(2)');
				document.getElementById('Secteurgeographique_label').appendChild(input3);	
				var titre3 = document.createElement('span');
				titre3.style.cssText='font-family:Arial;font-size:12px;color:#FFFFFF;font-weight:bold;font-style:italic';
				titre3.innerHTML='Par secteur g&eacute;ographique des acteurs';
				document.getElementById('Secteurgeographique_label').appendChild(titre3);	
				var detail3 = document.createElement('span');
				detail3.style.cssText='font-family:Arial;font-size:12px;color:#FFFFFF;font-style:italic';
				detail3.innerHTML='&nbsp;<img border="0" src="images/legende/individu.gif"></img>&nbsp;<img border="0" src="images/legende/structure.gif"></img>';
				document.getElementById('Secteurgeographique_label').appendChild(detail3);
				
				
				
				div_secteurgeographique = document.createElement('div');
				div_secteurgeographique.id = 'Secteurgeographique';
				document.getElementById('Secteurgeographique_label_horizontal_detail').appendChild(div_secteurgeographique);	
				div_secteurgeographique.style.cssText="float:none;width:285px;height:auto;display:none;";	
				
		
}



//Fonction permettant l'ouverture de la aprtie recherche avancée
function OuvrirRecherche()
{
	
	
	var totalnonfiltre = 0;
	var ToutesLesBalisesInput = document.getElementsByTagName('input');		
	if(ToutesLesBalisesInput != null)
	{
		for(var i = 0; i < ToutesLesBalisesInput.length; i++)
		{
			var name = ToutesLesBalisesInput[i].name;
			var mots = name.split("_");
			if(mots[0]!='filtre')
			{
				if(ToutesLesBalisesInput[i].type == 'checkbox')
				{
					if(ToutesLesBalisesInput[i].checked == true)
					{
						totalnonfiltre = totalnonfiltre +1;				
					}
				}
			}
		}
	}
	
	
	
	var totalfiltre = 0;
	var ToutesLesBalisesInputFiltre = document.getElementsByTagName('input');		
	if(ToutesLesBalisesInputFiltre != null)
	{
		for(var i = 0; i < ToutesLesBalisesInputFiltre.length; i++)
		{
			var namefiltre = ToutesLesBalisesInputFiltre[i].name;
			var motsfiltre = namefiltre.split("_");
			if(motsfiltre[0]=='filtre')
			{
				if(ToutesLesBalisesInputFiltre[i].type == 'checkbox')
				{
					if(ToutesLesBalisesInputFiltre[i].checked == true)
					{
						totalfiltre = totalfiltre +1;				
					}
				}
			}
		}
	}
	
	if((totalnonfiltre!=0)&&(totalfiltre!=0))
	{
		document.getElementById('tous').className='tous_ouvert';		
	}else{
		if(totalnonfiltre!=0)
		{
			AffRechercheAvancee();
			/*affInitLegenderechercheAvancee();*/
			document.getElementById('tous').className='tous_ouvert';	
			document.getElementById('infos').className='infos2';	
			document.getElementById('legende_familles').style.cssText='display:block;float:left;';	
			

			if((document.getElementById('Label_label').style.cssText=='color: rgb(255, 255, 255); font-family: Arial; font-size: 12px; font-weight: bold; width: 285px; height: 36px; float: left; z-index: 4; background-color: rgb(0, 0, 0); opacity: 0.8;')
			||(document.getElementById('Label_label').style.cssText=='FONT-WEIGHT: bold; FONT-SIZE: 12px; Z-INDEX: 4; FILTER: alpha(opacity=80); FLOAT: left; WIDTH: 285px; COLOR: #ffffff; FONT-FAMILY: Arial; HEIGHT: 36px; BACKGROUND-COLOR: #000000; moz-opacity: 0.8; opacity: 0.8'))
			{
				
				document.getElementById('Label').style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			}else{				
				document.getElementById('Label').style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:block;';
			}
			
			if((document.getElementById('Categorie_label').style.cssText=='color: rgb(255, 255, 255); font-family: Arial; font-size: 12px; font-weight: bold; width: 285px; height: 36px; float: left; z-index: 4; background-color: rgb(0, 0, 0); opacity: 0.8;')
			||(document.getElementById('Categorie_label').style.cssText=='FONT-WEIGHT: bold; FONT-SIZE: 12px; Z-INDEX: 4; FILTER: alpha(opacity=80); FLOAT: left; WIDTH: 285px; COLOR: #ffffff; FONT-FAMILY: Arial; HEIGHT: 36px; BACKGROUND-COLOR: #000000; moz-opacity: 0.8; opacity: 0.8'))
			{
				
				document.getElementById('Categorie').style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			}else{				
				document.getElementById('Categorie').style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:block;';
			}
			
			
			
			if((document.getElementById('Fonction_label').style.cssText=='color: rgb(255, 255, 255); font-family: Arial; font-size: 12px; font-weight: bold; width: 285px; height: 36px; float: left; z-index: 4; background-color: rgb(0, 0, 0); opacity: 0.8;')
			||(document.getElementById('Fonction_label').style.cssText=='FONT-WEIGHT: bold; FONT-SIZE: 12px; Z-INDEX: 4; FILTER: alpha(opacity=80); FLOAT: left; WIDTH: 285px; COLOR: #ffffff; FONT-FAMILY: Arial; HEIGHT: 36px; BACKGROUND-COLOR: #000000; moz-opacity: 0.8; opacity: 0.8'))
			{
				document.getElementById('Fonction').style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			}else{				
				document.getElementById('Fonction').style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:block;';
			}
			
			if((document.getElementById('Formejuridique_label').style.cssText=='color: rgb(255, 255, 255); font-family: Arial; font-size: 12px; font-weight: bold; width: 285px; height: 36px; float: left; z-index: 4; background-color: rgb(0, 0, 0); opacity: 0.8;')
			||(document.getElementById('Formejuridique_label').style.cssText=='FONT-WEIGHT: bold; FONT-SIZE: 12px; Z-INDEX: 4; FILTER: alpha(opacity=80); FLOAT: left; WIDTH: 285px; COLOR: #ffffff; FONT-FAMILY: Arial; HEIGHT: 36px; BACKGROUND-COLOR: #000000; moz-opacity: 0.8; opacity: 0.8'))
			{
				document.getElementById('Formejuridique').style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			}else{				
				document.getElementById('Formejuridique').style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:block;';
			}
			
			if((document.getElementById('Secteurgeographique_label').style.cssText=='color: rgb(255, 255, 255); font-family: Arial; font-size: 12px; font-weight: bold; width: 285px; height: 36px; float: left; z-index: 4; background-color: rgb(0, 0, 0); opacity: 0.8;')
			||(document.getElementById('Secteurgeographique_label').style.cssText=='FONT-WEIGHT: bold; FONT-SIZE: 12px; Z-INDEX: 4; FILTER: alpha(opacity=80); FLOAT: left; WIDTH: 285px; COLOR: #ffffff; FONT-FAMILY: Arial; HEIGHT: 36px; BACKGROUND-COLOR: #000000; moz-opacity: 0.8; opacity: 0.8'))
			{
				document.getElementById('Secteurgeographique').style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			}else{				
				document.getElementById('Secteurgeographique').style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:block;';
			}
		
			
			
			
	/**		document.getElementById('Secteurgeographique').style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 286px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('infos').className='infos';	
			document.getElementById('legende_familles').style.cssText='display:block;float:left;';	
			document.getElementById('Fonction').style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 286px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Formejuridique').style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 286px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Label').style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 286px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			document.getElementById('Secteurgeographique').style.cssText = 'color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 286px;height:auto;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
			*/
			
		}							
	}		
			
			
}
		
//Function permettant la fermeture de la recherche avancée
function FermerRecherche()
{
	
	
	document.getElementById('tous').className='tous_fermer';		
}

//Function fermeture partie bienvenue
function Fermeture() 
{
   	document.getElementById('bienvenue').innerHTML='';
   	document.getElementById('bienvenue').className='div_bienvenue_cache';
}
//Function ouverture partie bienvenue
function Ouverture() 
{
	affMessageBienvenue();	
}

//Fonction pour cacher la div de tous
function CacheTous()
{
	document.getElementById('tous').className='tous_fermer';
}

//Fonction pour cacher la div de tous
function AffResultat()
{
	document.getElementById('tous').className='tous_ouvert';	
	document.getElementById('resultats').style.cssText='display:block;float:left;';		
	document.getElementById('titregauche').style.cssText ='height:55px;width:6px;float:left;z-index:4;background-image:url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat:repeat-y;';
	document.getElementById('titre').style.cssText = 'text-align:left;float:left;width:309px;height:55px;z-index:4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';
	document.getElementById('titredroite').style.cssText ='height:55px;width:5px;float:left;z-index:4;background-image:url(images/rechercheavancee/recherche_avancee_droite.png);background-repeat:repeat-y;';
	//document.getElementById('logohautgauche').style.cssText ='height:20px;width:6px;float:left;z-index:4;background-image:url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat:repeat-y;';
	//document.getElementById('logohaut').style.cssText = 'text-align:center;float:left;width:311px;height:20px;z-index:4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';
	//document.getElementById('logohautdroite').style.cssText ='height:20px;width:5px;float:left;z-index:4;background-image:url(images/rechercheavancee/recherche_avancee_droite.png);background-repeat:repeat-y;';
	document.getElementById('ligneapreslogogauche').style.cssText ='height:16px;width:6px;float:left;z-index:4;background-image:url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat:repeat-y;';
	document.getElementById('ligneapreslogo').style.cssText = 'float:left;width:309px;height:16px;z-index:4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';
	document.getElementById('ligneapreslogodroite').style.cssText ='height:16px;width:5px;float:left;z-index:4;background-image:url(images/rechercheavancee/recherche_avancee_droite.png);background-repeat:repeat-y;';
	document.getElementById('resultatgauche').style.cssText ='height:150px;width:6px;float:left;z-index:4;background-image:url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat:repeat-y;';														
	document.getElementById('resultat').style.cssText = 'float:left;width:309px;height:150px;overflow:auto;z-index:4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';
	document.getElementById('resultatdroite').style.cssText ='height:150px;width:5px;float:left;z-index:4;background-image:url(images/rechercheavancee/recherche_avancee_droite.png);background-repeat:repeat-y;';														
	document.getElementById('logobasgauche').style.cssText ='height:40px;width:6px;float:left;z-index:4;background-image:url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat:repeat-y;';														
	document.getElementById('logobas').style.cssText = 'text-align:center;padding-top:20px;float:left;width:309px;height:20px;z-index:4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';
	document.getElementById('logobasdroite').style.cssText ='height:40px;width:5px;float:left;z-index:4;background-image:url(images/rechercheavancee/recherche_avancee_droite.png);background-repeat:repeat-y;';
	
}

//Fonction d'initation du résultat
function InitResultat()
{
	
	document.getElementById('resultat').innerHTML='';
	document.getElementById('resultats').style.cssText='display:none;';		

}

//Fonction d'initation des logos
function InitLogo()
{

	//document.getElementById('logohaut').innerHTML= '';
	document.getElementById('logobas').innerHTML= '';

}


//Function Ouverture des sous rubriques
function OuvertureSSRubrique(filtre,h)
{
	
	document.getElementById(filtre+'_label').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:22px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';
	document.getElementById(filtre+'_label_gauche').style.cssText = 'width: 5px;height:22px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;';
	document.getElementById(filtre+'_label_droite').style.cssText = 'width: 4px;height:22px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;';
	document.getElementById(filtre+'_label_plus').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:22px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
	document.getElementById(filtre+'_label_moins').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:22px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:block;';
	document.getElementById(filtre+'_label_verticale').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 12px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:block;';
	document.getElementById(filtre+'_label_verticale_detail').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 298px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:block;';
	if(document.getElementById(filtre+'_label_verticale_detail').hasChildNodes())
	{
	}else{
	img = document.createElement('img');
	img.id=filtre+'_img_h';
	img.name=filtre+'_img_h';
	img.src='images/rechercheavancee/horizontal.png';
	img.border='0';
	document.getElementById(filtre+'_label_verticale_detail').appendChild(img);
	}
	document.getElementById(filtre+'_label_verticale_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;display:block;';
	document.getElementById(filtre+'_label_verticale_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:block;';
	
	document.getElementById(filtre+'_label_horizontal_detail').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:'+h+'px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:block;';
	document.getElementById(filtre+'_label_horizontal').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:'+h+'px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:block;background-image: url(images/rechercheavancee/vertical.png);background-repeat: repeat-y;';
	document.getElementById(filtre+'_label_horizontal_gauche').style.cssText = 'width: 5px;height:'+h+'px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;display:block;';
	document.getElementById(filtre+'_label_horizontal_droite').style.cssText = 'width: 4px;height:'+h+'px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:block;';
			
	AffFiltre(filtre);


}

//Function Ouverture des sous rubriques
function FermetureSSRubrique(filtre,h)
{
	
	document.getElementById(filtre+'_label').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;';
	document.getElementById(filtre+'_label_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;';
	document.getElementById(filtre+'_label_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;';
	document.getElementById(filtre+'_label_plus').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:block;';
	document.getElementById(filtre+'_label_moins').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
	document.getElementById(filtre+'_label_verticale').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 12px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
	document.getElementById(filtre+'_label_verticale_detail').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 298px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
	document.getElementById(filtre+'_label_verticale_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;display:none;';
	document.getElementById(filtre+'_label_verticale_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:none;';
	document.getElementById(filtre+'_label_horizontal_detail').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 285px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;';
	document.getElementById(filtre+'_label_horizontal').style.cssText='color:#FFFFFF;font-family:Arial;font-size:12px;font-weight:bold;width: 25px;height:36px;float:left;z-index: 4;background-color: #000000;filter:alpha(opacity=80);-moz-opacity:0.8;opacity: 0.8;display:none;background-image: url(images/rechercheavancee/vertical.png);background-repeat: repeat-y;';
	document.getElementById(filtre+'_label_horizontal_gauche').style.cssText = 'width: 5px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_gauche.png);background-repeat: repeat-y;display:none;';
	document.getElementById(filtre+'_label_horizontal_droite').style.cssText = 'width: 4px;height:36px;float:left;z-index: 4;background-postion: top left;background-color: #ffffff;background-image: url(images/rechercheavancee/recherche_avancee_droite.png); background-repeat: repeat-y;display:none;';
	
	CacheFiltre(filtre);


}


