// JavaScript Document

// JavaScript Document

function createMarker(point, txt, id) {
	var icon = new GIcon();
	icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
	icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
	icon.iconSize = new GSize(12, 20);
	icon.shadowSize = new GSize(22, 20);
	icon.iconAnchor = new GPoint(6, 20);
	icon.infoWindowAnchor = new GPoint(5, 1);
	var marker = new GMarker(point, icon);
	GEvent.addListener(marker, "click", function() {
		txt = '<span class="gmap_bubble">'+txt+'</span>';
		marker.openInfoWindowHtml(txt);
	});
	return marker;
}

function createSearchPointMarker(point) {

	var iconblue = new GIcon();
	iconblue.image = "http://labs.google.com/ridefinder/images/mm_20_blue.png";
	iconblue.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
	iconblue.iconSize = new GSize(12, 20);
	iconblue.shadowSize = new GSize(22, 20);
	iconblue.iconAnchor = new GPoint(6, 20);
	iconblue.infoWindowAnchor = new GPoint(5, 1);
  var marker = new GMarker(point,iconblue);
  GEvent.addListener(marker, "click", function() {
	txt = '<span class="gmap_bubble">You searched here.</span>';
	marker.openInfoWindowHtml(txt);
  });
  //marker.openInfoWindowHtml("You searched for Cameraphone Zones near here.<br/><br/><a href=\"./retailers.php\">Click here to search again</a>");
  return marker;
}

