function createMarker(point,text,color) 
{

  // Create a base icon for all of our markers that specifies the shadow, icon dimensions, etc.

	var baseIcon = new GIcon();

	baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
	baseIcon.iconSize = new GSize(20, 34);
	baseIcon.shadowSize = new GSize(37, 34);
	baseIcon.iconAnchor = new GPoint(9, 34);
	baseIcon.infoWindowAnchor = new GPoint(9, 2);
	baseIcon.infoShadowAnchor = new GPoint(18, 25);

  	var icon = new GIcon(baseIcon);

  	if(color == "RECREATION")
  		icon.image = "/images/markers/markerGreen.png";
	else if(color == "CHURCH")
		icon.image = "/images/markers/markerRed.png";
	else if(color == "RESTAURANT")
		icon.image = "/images/markers/markerAqua.png";
	else if(color == "SCHOOL")
		icon.image = "/images/markers/markerOrange.png";
	else if(color == "HOSPITAL")
		icon.image = "/images/markers/markerBlue.png";
	else if(color == "RETAIL")
		icon.image = "/images/markers/markerYellow.png";
	else
		icon.image = "http://www.google.com/mapfiles/marker.png";

	var marker = new GMarker(point, icon);

	GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(text); });


  return marker;

}

