// Creates a marker whose info window displays the given number
function createMarker(point, label, icon)
{
  var marker = new GMarker(point, icon);

  // Show this marker's index in the info window when it is clicked
  var html = label;

  GEvent.addListener(marker, "click", function()
  {
    marker.openInfoWindowHtml(html);
  });

  return marker;
}