
// Google API
function showAddress(address) {
	var map = new GMap2(document.getElementById("google_map_div"));
	var geocoder = new GClientGeocoder();
	geocoder.getLatLng(address,
		function(point) {
		  if (!point) {
		    // alert(address + " not found");
		  } else {

		    map.setCenter(point, 13);
			// SiconR Small icon Red
	        var SiconR = new GIcon();
	        SiconR.image="http://labs.google.com/ridefinder/images/mm_20_red.png";
	        SiconR.shadow="http://labs.google.com/ridefinder/images/mm_20_shadow.png";
	        SiconR.iconSize = new GSize(12, 20);
	        SiconR.shadowSize = new GSize(22, 20);
	        SiconR.iconAnchor = new GPoint(6, 20);
	        SiconR.infoWindowAnchor = new GPoint(5, 1);


		    var marker = new GMarker(map.getCenter(),SiconR);
		    map	.addOverlay(marker);
		    // marker.openInfoWindowHtml('<font size="1" face="Verdana">' + address + '</font>');
		  }
	    }
    );
}

function showMap(address)
{
	if (GBrowserIsCompatible()) {
	    var map = new GMap2(document.getElementById("google_map_div"));
	    map.setCenter(new GLatLng(37.4419, -122.1419), 13);
	    showAddress(address);
	    //showAddress("1586 Nilda Avenue, Mountain View, CA");
	}
}
