// JavaScript Document
function load() {
	if (GBrowserIsCompatible()) {
	
	//centre de la carte bayonne
		lat_centre = 43.309258;
		long_centre = -1.573969;
		zoom = 10;
		
	//Creation de la carte
		maCarte = new GMap2(document.getElementById('maMap'));
		maCarte.setCenter(new GLatLng(lat_centre, long_centre), zoom);
		maCarte.addControl(new GSmallMapControl());
		maCarte.addControl(new GScaleControl());
		maCarte.addControl(new GMapTypeControl());
		maCarte.addControl(new GOverviewMapControl());

	
	//creation d'une icone marqueur alternatif
		var icone = new GIcon(G_DEFAULT_ICON);
		icone.image = 'http://www.ihartzeartea.com/images/icone1.png';
		icone.shadow = 'http://www.ihartzeartea.com/images/o_icone.png';
		icone.iconAnchor = new GPoint(3,29);
		icone.iconSize = new GSize(30,35);
		icone.shadowSize = new GSize(30,35);
		icone.infoWindowAnchor = new GPoint(13,0);
		
		
		
	//l'appart
		//var coord_appart = '43.488755,-1.475967';
		var html_maison =  '<h5>Ihartze Artea R&eacute;ception</h5><p>All&eacute;e des Platanes<br/>64310 SARE<br/>France</p><p>coord. GPS: 43.3009258 / -1.573969</p>';
		var maison = new GMarker(new GLatLng(43.309258, -1.573969), icone);
		
		GEvent.addListener(maison, "click", function() {
				maison.openInfoWindowHtml(html_maison);
			});
		GEvent.addListener(maison, "infowindowclose", function() {
				maCarte.panTo(new GLatLng(lat_centre, long_centre), zoom);
			});
		
	//affichage du marqueur	
		maCarte.addOverlay(maison);
		
	}else{
		alert('D&eacute;sol&eacute;, mais votre navigateur n\'est pas compatible avec Google Maps');
	}
}

	
