
      var house = new GIcon();
      house.image = "images/house.png";
      house.shadow = "images/house-shadow.png";
      house.iconSize = new GSize(16, 16);
      house.shadowSize = new GSize(21, 11);
      house.iconAnchor = new GPoint(0, 0);
      house.infoWindowAnchor = new GPoint(16, 8);

    function createMarker(point, id) {
      var marker = new GMarker(point);
      GEvent.addListener(marker, "click", function() {
        marker.openInfoWindowHtml(id);
        //showAnnonce(id, marker);
        //programme.document.location.href = "programme-immobilier.php?id="+id;
      });
      return marker;
    }

    function showAddress(address, id) {
      var geocoder = new GClientGeocoder();
      geocoder.getLatLng(address, 
      function(point) {
        if (!point) {
          alert(address + " not found");
          //alert(geocoder.getStatus().code);
        }
        map.addOverlay(createMarker(point, id));
      } );
    }

  //]]>

