 // Creates a marker at the given point with the given number label
function createMarker(point, speed, displaydate, standardIcon, unitMeasure) {
	//create the icon to use instead of the default.
	var icon = new GIcon();
	if (standardIcon)
		icon.image = "/i/dot2.png";
	else
		icon.image = "/i/dot.png";
	icon.iconSize = new GSize(20, 20);
	
	icon.shadowSize = new GSize(0, 0);
	icon.iconAnchor = new GPoint(10, 10);
	icon.infoWindowAnchor = new GPoint(10, 10);

	//create the marker
	var marker = new GMarker(point, icon);			
	
	GEvent.addListener(marker, "click", function() {				
		marker.openInfoWindowHtml("<div class=\"bubble\">speed: " + speed + " " + unitMeasure + "<br/>date: " + displaydate.substring(0, 11) + "<br/>time: " + displaydate.substring(11) + "</div>");
	});
	return marker;
}
