var map = null;
var geocoder = null;

function initialize(address, html)
{
    if (GBrowserIsCompatible())
    {
        map = new GMap2(document.getElementById("map"));
        //map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        map.setUIToDefault();
        geocoder = new GClientGeocoder();
        
        if (geocoder)
        {
            geocoder.getLatLng(
            address,
            function(point)
            {
                if (!point)
                {
                    document.getElementById("map").style.display = "none";
                }
                else
                {
                    map.setCenter(point, 13);
                    var marker = new GMarker(point);
                    map.addOverlay(marker);
                    marker.openInfoWindowHtml(html);
                    
                    GEvent.addListener(marker, "click", function()
                    {
                        marker.openInfoWindowHtml(html);
                    });

                }
            }
            );
        }
    }
}