document.write('<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAALwhUyq5UOjk8EeMlNUXI-RSjyA3FkzpOjIPT2ETGFPXHSDNT1RQUBTw8OqI6vqlz5fpYclcq4IWG2A" type="text/javascript"></script>');

var map = null;
var geocoder = null;

function showAddress(address, page) {
  if (geocoder) {
    geocoder.getLatLng(
      address,
      function(point) {
        if (point) {
        	$("map_canvas").style.display = '';
        	
			map = new GMap2(document.getElementById("map_canvas"));
			map.addControl(new GLargeMapControl());
			var mapControl = new GMapTypeControl();
			map.addControl(mapControl);       
       
			map.setCenter(point, 15);
			var marker = new GMarker(point);
			map.addOverlay(marker);
			marker.openInfoWindowHtml(address);          
        }
        else
        {
        	if (page == 'business')
        		$("map_data").className = 'business-data-wide';
        }
      }
    );
  }
}

function initialize() {
  if (GBrowserIsCompatible()) {
    geocoder = new GClientGeocoder();
  }
}