//Defines the marker Red Icon
var iconRed = new GIcon();
iconRed.image = 'img/mm_20_red.png';
iconRed.shadow = 'img/mm_20_shadow.png';
iconRed.iconSize = new GSize(12, 20);
iconRed.shadowSize = new GSize(22, 20);
iconRed.iconAnchor = new GPoint(6, 20);
iconRed.infoWindowAnchor = new GPoint(5, 1);
function initialize(latitude, longitude, address) {
  if (GBrowserIsCompatible()) {
	var map = new GMap2(document.getElementById("google_map"));
	map.setCenter(new GLatLng(latitude, longitude), 15);
	map.addControl(new GMapTypeControl());
	map.addControl(new GLargeMapControl());
	// Add 10 markers to the map at random locations
	var bounds = map.getBounds();
	var southWest = bounds.getSouthWest();
	var northEast = bounds.getNorthEast();
	var lngSpan = northEast.lng() - southWest.lng();
	var latSpan = northEast.lat() - southWest.lat();
	var latlng = new GLatLng(latitude, longitude);
	var marker = new GMarker(latlng, iconRed);
	map.addOverlay(marker);
	GEvent.addListener(marker, 'click', function() {
		marker.openInfoWindowHtml("<div style='font-family:Arial;font-size:8pt;color:#000000'>"+address+"</div>");
		});
  }
}
