function loadmap() {
  if (GBrowserIsCompatible()) {
	map = new GMap2(document.getElementById('themap'));
	map.addControl(new GSmallMapControl());
	geocoder = new GClientGeocoder();
	showAddress(address);
  }
  window.onunload = GUnload;
}

function showAddress(address) {
  geocoder.getLatLng(
    address,
    function(point) {
      if (!point) {
		return;
      } else {
        map.setCenter(point, 13);
        var marker = new GMarker(point);
        map.addOverlay(marker);
        marker.openInfoWindowHtml(address);
      }
    }
  );
}

window.onload = loadmap;
