﻿//<![CDATA[

      function load() {
        if (GBrowserIsCompatible()) {

        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(34.90578310630646, 135.7274580001831),15);
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl(true));
        map.addMapType(G_PHYSICAL_MAP);
        map.setMapType(G_HYBRID_MAP);

        geocoder = new GClientGeocoder();

        }
     }

     function showAddress(address) {
       if (geocoder) {
         geocoder.getLatLng(
           address,
           function(point) {
             if (!point) {
               alert(address + " not found");
             } else {
               map.setCenter(point, 15);
               var marker = new GMarker(point);
               map.addOverlay(marker);
               marker.openInfoWindowHtml(address);
             }
           }
         );
       }
     }

//]]>