    function initialize() {
      if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(46.523936, 6.6147923), 15);


//Création du marqueur au centre de la carte. 
var point = map.getCenter();
var marqueur = new GMarker(point, {draggable: true});   

// Abonnons les deux évènements 
// en affichant un message lorsque ceux ci se déclenchent.
GEvent.addListener(marqueur, "dragstart", function() {
 //Action(s)
 }
);

GEvent.addListener(marqueur, "dragend", function() {
 //Action(s)
 }
);

// Ajoutons le marqueur à la carte.
map.addOverlay(marqueur);

GEvent.addListener(marqueur, "click", function() 
 {
marqueur.openInfoWindowHtml("<h3>Nous sommes ici</h3><br/><InfoWindowHtml>");
 }
 );
                           
      }
    }




