// boilerplate functions for stone maps 1 Dec 06 v1.00

// Create our green marker icon
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_green.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);

// Create our red marker icon
var oicon = new GIcon();
oicon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
oicon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
oicon.iconSize = new GSize(12, 20);
oicon.shadowSize = new GSize(22, 20);
oicon.iconAnchor = new GPoint(6, 20);
oicon.infoWindowAnchor = new GPoint(5, 1);

// Create our yellow marker icon
var yicon = new GIcon();
yicon.image = "http://labs.google.com/ridefinder/images/mm_20_yellow.png";
yicon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
yicon.iconSize = new GSize(12, 20);
yicon.shadowSize = new GSize(22, 20);
yicon.iconAnchor = new GPoint(6, 20);
yicon.infoWindowAnchor = new GPoint(5, 1);

// Creates one of our tiny markers at the given point
function createHmarker(point,map,name) {
var marker = new GMarker(point, yicon);
map.addOverlay(marker);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(name);
});
}

// Creates one of our tiny markers at the given point
function createMarker(point,name,url,descr,map,extant) {
if (extant=="True") {
	var marker = new GMarker(point, icon);
        }
        else {
	var marker = new GMarker(point, oicon);
        }
map.addOverlay(marker);
GEvent.addListener(marker, "click", function() {
if (url != "") {
name='<a href="' + url + '">' + name + '</a>'
}
marker.openInfoWindowHtml(name + "<br />" + descr);
});
}