var geocoder;
var map;
var address = "Mariniersweg 151, Rotterdam, The Netherlands";

var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_white.png";
icon.shadow= "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);

function load() {
  map = new GMap2(document.getElementById("map"));
  map.addControl(new GSmallMapControl());
  geocoder = new GClientGeocoder();
  geocoder.getLocations(address, addToMap);
}
function addToMap(response) {
  place = response.Placemark[0];
  point = new GLatLng(place.Point.coordinates[1], place.Point.coordinates[0]);
  map.setCenter(point, 14);
  marker = new GMarker(point, icon);
  map.addOverlay(marker);
}
window.onload = load;
