function gmapPopup(text,link)
{
 var retval = "";
 retval += "<div class=\"gmapPopup\">";
 retval += "<a href=\"" + link + "\">";
 retval += text;
 retval += "</a>";
 retval += "</div>";
 return retval;
}

function createMarker(point,html,dot) 
{
 if (dot == "Light Red" || dot == "")
 {
  var marker = new GMarker(point);
 }
 else
 {
  var myIcon = new GIcon(G_DEFAULT_ICON);
  myIcon.iconSize = new GSize(32,32);
  myIcon.iconAnchor = new GPoint(16,32);
  myIcon.infoWindowAnchor = new GPoint(16, 10);

  switch(dot)
  {
   case "Blue"		: myIcon.image = "/Icons/blue-dot.png"; break;
   case "Light Blue"	: myIcon.image = "/Icons/ltblue-dot.png"; break;
   case "Green"		: myIcon.image = "/Icons/green-dot.png"; break;
   case "Orange"	: myIcon.image = "/Icons/orange-dot.png"; break;
   case "Purple"	: myIcon.image = "/Icons/purple-dot.png"; break;
   case "Red"		: myIcon.image = "/Icons/red-dot.png"; break;
   case "House"		: myIcon.image = "/Icons/casetta_base.png"; break;
   default 		: myIcon.image = "/Icons/red-dot.png"; break;
  }

  var markerOptions = { icon:myIcon};
  var marker = new GMarker(point, markerOptions);
 }

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


