	function affichage() 
	{
		//centrer site selon fenetre du navigateur
		resol = document.body.clientWidth; //cherche la taille de la fenêtre du navigateur
		margeGauche = (resol/2) - 400;	//donne la marge à gauche : (taille de la fenêtre / 2) - la moitié de ton bloc conteneur (le site)
		document.getElementById("conteneur").style.marginLeft = margeGauche;
		
		resolV = document.body.clientHeight; //cherche la taille de la fenêtre du navigateur	
		//alert(resolV);
		margeHaut = (resolV/2) - 300;	//donne la marge en haut 
		document.getElementById("conteneur").style.marginTop = margeHaut;
	}	
	
	var map = null;						
	var mgr = null;
	var markers = new Array;
	var geocoder = "";
	TabEr = new Array();
		
    function load() {
		if(GBrowserIsCompatible()) {
			map = new GMap2(document.getElementById("map"));
			map.setCenter(new GLatLng(48.857713,2.356911), 1);
			map.addControl(new GMapTypeControl());
			map.addControl(new GLargeMapControl());	
			mgr = new MarkerManager(map);		
		}		
		else {
			alert("votre navigateur n'est pas compatible");			
		}
	}
	
	function afficher() {
		var requete = new AjaxRequest("rech.php","parse_afficher");
	}
	
	function parse_afficher(_json) {
		markers = new Array;
		mgr.clearMarkers();		
		tot_part = _json;		
		for(var i=0; i<_json.length; i++) 
		{
			marker(i);		
		}		
	}
	
	function marker(_param) {
		/* RECUPERER LES ADRESSES*/ 
		//assemblage de l'adresse
		var ad = tot_part[_param]["adresse"];
		if(tot_part[_param]["adresse2"]!=""){var ad2 = tot_part[_param]["adresse2"]} else {var ad2="";}
		if(tot_part[_param]["adresse3"]!=""){var ad3 = tot_part[_param]["adresse3"]} else {var ad3="";}
		if(tot_part[_param]["adresse4"]!=""){var ad4 = tot_part[_param]["adresse4"]} else {var ad4="";}
		//code postal (s'il existe), ville et pays
		if(tot_part[_param]["cp"]!=""){var cp = tot_part[_param]["cp"]} else {var cp="";}
		var ville = tot_part[_param]["ville"];
		if(tot_part[_param]["complAd"]!=""){var complAd = tot_part[_param]["complAd"]} else {var complAd="";}
		var pays = tot_part[_param]["pays"];
		//assemblage du tout
		var adresse = ad +" "+ad2+" "+ad3+" "+cp+" "+ville+" "+complAd+" "+pays;
		adresseBulle = ad+" "+ad2+" "+ad3+" "+ad4+"<br />"+cp+" "+ville+" "+complAd+" "+pays;
		
		/*RECUPERER LE NOM DE LA SOCIETE*/
		var societe = tot_part[_param]["societe"];
		if(tot_part[_param]["complSoc"]!=""){var complSoc = tot_part[_param]["complSoc"]} else {var complSoc="";}
		//assemblage
		var intitule = "<b>"+societe+"</b><br /><i>"+complSoc+"</i>";
		
		/*RECUPERER COORDONNEES TEL*/
		if(tot_part[_param]["tel"]!=""){var tel = tot_part[_param]["tel"]} else {var tel="";}
		if(tot_part[_param]["tel2"]!=""){var tel2 = tot_part[_param]["tel2"]} else {var tel2="";}
		if(tot_part[_param]["fax"]!=""){var fax = tot_part[_param]["fax"]} else {var fax="";}
		
		var coordTel = "<br />Tel. : "+tel;
		
		/*RECUPERER COORDONNEES INTERNET*/
		if(tot_part[_param]["mail1"]!=""){var mail1 = tot_part[_param]["mail1"]} else {var mail1="";}
		if(tot_part[_param]["mail2"]!=""){var mail2 = tot_part[_param]["mail2"]} else {var mail2="";}
		if(tot_part[_param]["mail3"]!=""){var mail3 = tot_part[_param]["mail3"]} else {var mail3="";}
		if(tot_part[_param]["site"]!=""){var site = tot_part[_param]["site"]} else {var site="";}
		if(tot_part[_param]["site2"]!=""){var site2 = tot_part[_param]["site2"]} else {var site2="";}
		
		var coordInt="";
		if (site!= "") {coordInt = "<br /><a href="+site+" target='_blank'>"+site+"</a>"}
		
		/*RECUPERER LAT ET LNG*/
		var lat = tot_part[_param]["lat"]; 
		var lng = tot_part[_param]["lng"]; 
		
		/*ENVOYER TOUT A LA FONCTION SHOWADRESSE*/
		showAdresse(adresse, adresseBulle, intitule, societe, coordTel, coordInt, lat, lng);		
	}
	
	function showAdresse(coord_env, adresseBulle, intitule, societe, coordTel, coordInt, lat, lng) {		
		var centre = new GLatLng(48.857713,2.356911);
		var coord = new GLatLng(lat,lng);
		if(coord) {
			var marker = new GMarker(coord);
			map.addOverlay(marker);
			GEvent.addListener(marker, "click", function() {				
				marker.openInfoWindowHtml(intitule+"<br />"+ adresseBulle+"<br />"+coordTel+"<br />"+coordInt);
			});
		}		
	}

	// function affichage() 
	// {
		//centrer site selon fenetre du navigateur
		// resol = document.body.clientWidth; //cherche la taille de la fenêtre du navigateur
		// margeGauche = (resol/2) - 400;	//donne la marge à gauche : (taille de la fenêtre / 2) - la moitié de ton bloc conteneur (le site)
		// document.getElementById("conteneur").style.marginLeft = margeGauche;
	// }
				
	function affRub(texte) 
	{
		document.getElementById('sousrub').style.visibility = "visible";
		if(texte == "services")
		{
			_html = "<div class='lien' id='lien1'><a href='accounting.php?langue=<?php echo $langue?>'><?php echo $serv1 ?></a></div><div class='lien' id='lien2'><a href='audit.php?langue=<?php echo $langue?>'><?php echo $serv2 ?></a></div><div class='lien' id='lien3'><a href='taxation.php?langue=<?php echo $langue?>'><?php echo $serv3 ?></a></div><div class='lien' id='lien4'><a href='corporateFinance.php?langue=<?php echo $langue?>'><?php echo $serv4 ?></a></div><div class='lien' id='lien5'><a href='consulting.php?langue=<?php echo $langue?>'><?php echo $serv5 ?></a></div><div class='lien' id='lien6'><a href='transborderServices.php?langue=<?php echo $langue?>'><?php echo $serv6 ?></a></div>";
			document.getElementById('sousrub').innerHTML = _html;
		}
		else if(texte == "about")
		{
			_html = "<div class='lien' id='lien'><a href='about.php?langue=<?php echo $langue?>'><?php echo $about1 ?></a></div><div class='lien' id='lien8'><a href='highlights.php?langue=<?php echo $langue?>'><?php echo $about2 ?></a></div><div class='lien' id='lien9'><a href='governance.php?langue=<?php echo $langue?>'><?php echo $about3 ?></a></div> ";
			document.getElementById('sousrub').innerHTML = _html;
		}
		else
		{
			_html = "";
			document.getElementById('sousrub').innerHTML = _html;
		}	
	}
		
	function clearRub() 
	{
		document.getElementById('sousrub').innerHTML = "";
	}
		
	function tempsGlob() 
	{
		temps = new Date();
		heures = temps.getUTCHours();
		minutes = temps.getUTCMinutes();
		secondes = temps.getUTCSeconds();	
		if(heures<10)
		{
			heures ="0"+heures;
		}
		if(minutes<10)
		{
			minutes ="0"+minutes;
		}		
		if(secondes<10)
		{
			secondes ="0"+secondes;
		}
		
		leTemps = heures+":"+minutes+":"+secondes;
		document.getElementById('horloge').innerHTML = leTemps;
	}
		
	function chronos() {
		b = setInterval('tempsGlob()', 1000);
	}