//<![CDATA[

var map = null;
var geocoder = null;
Icon = new GIcon();
Icon.image = "images/red-dot.png";
Icon.shadow = "http://www.google.com/mapfiles/shadow50.png";
Icon.iconSize = new GSize(32, 32);
Icon.shadowSize = new GSize(50, 32);
Icon.iconAnchor = new GPoint(9, 34);
Icon.infoWindowAnchor = new GPoint(29, 2);
Icon.infoShadowAnchor = new GPoint(18, 25);
// la variable adresse se trouve dans la page annonce, elle nécéssite l'include et contient du PHP

function load() {
if (GBrowserIsCompatible()) {
geocoder = new GClientGeocoder();
map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
map.setCenter(point, 15);
var marker = new GMarker(point,{icon:Icon, draggable: false, title:'annonce'});
map.addOverlay(marker);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(geomessage);  });
return marker;
 } ); } } }

//]]>
