function initialize() {
if (document.getElementById("map_canvas")!=null){
 
 
  var myOptions = {
    zoom: 15,
    center: new google.maps.LatLng(46.868954,3.159703),
    mapTypeId: google.maps.MapTypeId.SATELLITE
  }
  var map = new google.maps.Map(document.getElementById("map_canvas"),
                                myOptions);
  setMarkers(map, beaches);
  }
}

var beaches = [
  ['ACE', 46.8657075,3.1629682, 1],
];

function setMarkers(map, locations) {
  // Add markers to the map

  // Marker sizes are expressed as a Size of X,Y
  // where the origin of the image (0,0) is located
  // in the top left of the image.

  // Origins, anchor positions and coordinates of the marker
  // increase in the X direction to the right and in
  // the Y direction down.
  var image = new google.maps.MarkerImage('googlemaps_logoace.jpg',
      // This marker is 20 pixels wide by 32 pixels tall.
      new google.maps.Size(60, 20),
      // The origin for this image is 0,0.
      new google.maps.Point(0,0),
      // The anchor for this image is the base of the flagpole at 0,32.
      new google.maps.Point(0, 20));

      // Shapes define the clickable region of the icon.
      // The type defines an HTML <area> element 'poly' which
      // traces out a polygon as a series of X,Y points. The final
      // coordinate closes the poly by connecting to the first
      // coordinate.
  var shape = {
      coord: [1, 1, 1, 60, 60, 20, 20 , 1],
      type: 'poly'
  };
  
  
    var beach = locations[0];
    var myLatLng = new google.maps.LatLng(beach[1], beach[2]);
    var marker = new google.maps.Marker({
        position: myLatLng,
        map: map,
        icon: image,
        shape: shape,
        title: beach[0],
        zIndex: beach[3]
    });
	var contentString = '<div id="content">'+
    '<div id="siteNotice">'+
    '</div>'+
    '<h1 style="color:#222222">AERO CONCEPT ENGINEERING</h1>'+
    '<div id="bodyContent">'+
    '<p style="color:#555555">Technopôle du Circuit<br>58470 MAGNY-COURS<br>France</p>'+
	'<p style="color:#555555">GPS :<br>Latitude=46,8657075<br>Longitude=3,1629682</p>'+
    '</div>'+
    '</div>';
	var infowindow = new google.maps.InfoWindow({
    	content: contentString
		});
	google.maps.event.addListener(marker, 'click', function() {
	  infowindow.open(map,marker);
	});
	
}

