function Point(latitude, longitude, message, iconImage, iconShadow)
{
    this.latitude = latitude;
    this.longitude = longitude;
    this.message = message;
    this.iconImage = iconImage;
    this.iconShadow = iconShadow;
}

function addCustomPoint(map, point) {
    // crée un point
    var latlng = new GLatLng(point.latitude, point.longitude);

    // crée une icone qui sera utilisée par le marqueur sur la carte
    var customIcon = new GIcon(G_DEFAULT_ICON);

    // spécifie le chemin de l'image à utiliser pour l'icone
    if (point.iconImage != null && point.iconImage.length > 0)
    {
        customIcon.image = point.iconImage;
    }

    // spécifie le chemin de l'image à utiliser pour l'ombre de l'icone
    if (point.iconShadow != null && point.iconShadow.length > 0)
    {
        customIcon.shadow = point.iconShadow;
    }

    // ajoute l'icone personalisée aux options du marqueur
    markerOptions = { icon:customIcon };

    // crée un marqueur en fonction du point et des options
    var marker = new GMarker(latlng, markerOptions);

	// ajoute le marqueur à la carte
	map.addOverlay(marker);

    // ajoute l'affichage du message lorsqu'on clique sur l'icone
    if (point.message != null && point.message.length > 0)
    {
        GEvent.addListener(marker, "click", function() {
            map.openInfoWindowHtml(latlng, point.message);
        });
    }
}
