// See http://econym.googlepages.com/example_markeredlabels.htm
if (GBrowserIsCompatible()) {
  // remember which label was associated with the open info window
  var lastlabel; 

  // Invisible version of icon.  Details on where it's clickable probably need mod from DEFAULT_ICON...
  var invisibleIcon = new GIcon(G_DEFAULT_ICON, "/images/markerTrans22x22.png");
  invisibleIcon.iconSize = new GSize(22,22);
  invisibleIcon.iconAnchor = new GPoint(11,11);
  invisibleIcon.infoWindowAnchor = new GPoint(11,0);
  invisibleIcon.shadow = '';
  invisibleIcon.shadowSize = new GSize(0,0);

  function createMarkeredLabel(point,html,text) {
    // Create the Label
    var contents = '<div><div class="gmaplabel">'+text+'</div><img src="/images/gm-square.png" width=22 height=22></div>';
    var label=new ELabel(point, contents, null, new GSize(-11,11), 75, 1);
    map.addOverlay(label);

    // Create an invisible GMarker which can be clicked if we want to give 'em a link -
    // eventually maybe icon should be another color if clickable?
    if (html && (html.length > 0)) {
      var marker = new GMarker(point,invisibleIcon);
      GEvent.addListener(marker, "click", function() {
        marker.openInfoWindowHtml(html);
        label.setOpacity(100);
        lastlabel = label;
      });
      map.addOverlay(marker);
    }
  }
}
