function ouvrir(l,h,url) {
l=800;
h=900;
hauteur=Math.round((screen.availHeight-h)/2);
largeur=Math.round((screen.availWidth-l)/2);
}
function fenetreCent(url,nom,largeur,hauteur,options) {
window.open(url, "site", "status=0,toolbar=0,location=0,directories=0,status=0, scrollbars=0,resizable=0,menubar=0,top="+hauteur+",left="+largeur+",width="+l+",height="+h);
}
function popup(page)
{ 
window.open(page,'popup','top=220,left=295,width=660,height=393,status=0,toolbar=false,scrollbars=false,location=0,directories=0,resizable=0,menubar=0');
} 
function createMarker(point,text) {
	  var marker = new GMarker(point);
	  GEvent.addListener(marker, "click", function() {   marker.openInfoWindowHtml(text);  });
	  return marker; //fonction qui affiche l'info bulle légende sur le marqueur
	}
	function load() {
		if (GBrowserIsCompatible()) {
			var Lat=43.371567// rentrez ici votre  lattitude
			var Lng=-0.344911 // rentrez ici votre longitude
			var Zoom=16 // rentrez ici le zoom désiré entre 1 et 16
			var TextAffiche="<b><h1>MAISON LESCLOUPE</h1></b><br />Mr Lanne Serge<br />20 Rte de la Mairie<br />64121 Montardon"; // rentrez ici votre texte qui sera affiche sur le point marqueur
			var map = new GMap2(document.getElementById("map")); // affiche le module
			map.setCenter(new GLatLng(Lat,Lng ),Zoom ); //affiche la carte au lieu précisé
			map.addControl(new GSmallMapControl()); // affiche le curseur de zoom
			map.addControl(new GMapTypeControl()); // affiche le curseur de déplacement
	 		map.setMapType(G_NORMAL_MAP);
			var point = new GLatLng(Lat,Lng);
			var marker = createMarker(point,TextAffiche);
			map.addOverlay(marker); // ces 3 lignes définissent le point et sa légende
		}
	}
	window.addEvent('domready',function(){
  if ($chk($('contact'))){ 
    $('contact').addEvent('submit',function(){
      return checkForm();    
    });
  }
  if ($chk($('map'))){ 
    load();    
  }
});
