// JavaScript PC@HOME

// Google Map
function load() {
	
	if (GBrowserIsCompatible()) {
		
		var map = new GMap2(document.getElementById("map"));	
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		map.addControl(new GOverviewMapControl());
        map.setCenter(new GLatLng(48.80359886089938, 7.811236381530762), 13);
		
		// Creates a marker at the given point with the given number label
		function createMarker(point, number) {
		var marker = new GMarker(point);
		GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml("<img src='/global/images/logo/pchome-petit2.gif' alt='PC@HOME informatique' title='PC@HOME informatique' /><br><b>PC@HOME informatique</b><br>79b route de Bischwiller<br>67500 Haguenau");
		});
		return marker;
		}
	
		// Add marker
		var point = new GLatLng(48.80359886089938, 7.811236381530762);
		map.addOverlay(createMarker(point, 1));
		
	}
	
}


