function createInfoIcon() {
	var infoIcon = new GIcon();
	infoIcon.iconSize = new GSize(16, 16);
	infoIcon.iconAnchor = new GPoint(8, 8);
	infoIcon.image = "info.png";
	return infoIcon;
}

function createPhotoIcon() {
	var photoIcon = new GIcon();
	photoIcon.image = "pink1.png";
	photoIcon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
	photoIcon.iconSize = new GSize(12, 20);
	photoIcon.shadowSize = new GSize(22, 20);
	photoIcon.iconAnchor = new GPoint(6, 20);
	photoIcon.infoWindowAnchor = new GPoint(5, 1);
	photoIcon.infoShadowAnchor = new GPoint(6, 12);
	return photoIcon;
}

function createPicsIcon() {
	var picsIcon = new GIcon();
	picsIcon.image = "pink2.png";
	picsIcon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
	picsIcon.iconSize = new GSize(12, 20);
	picsIcon.shadowSize = new GSize(22, 20);
	picsIcon.iconAnchor = new GPoint(6, 20);
	picsIcon.infoWindowAnchor = new GPoint(5, 1);
	picsIcon.infoShadowAnchor = new GPoint(6, 12);
	return picsIcon;
}

function createLinkIcon() {
	var linkIcon = new GIcon();
	linkIcon.image = "mm_20_red.png";
	linkIcon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
	linkIcon.iconSize = new GSize(12, 20);
	linkIcon.shadowSize = new GSize(22, 20);
	linkIcon.iconAnchor = new GPoint(6, 20);
	linkIcon.infoWindowAnchor = new GPoint(5, 1);
	linkIcon.infoShadowAnchor = new GPoint(6, 12);
	return linkIcon;
}

function createProgWalkIcon() {
	var linkIcon = new GIcon();
	linkIcon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
	linkIcon.iconSize = new GSize(12, 20);
	linkIcon.shadowSize = new GSize(22, 20);
	linkIcon.iconAnchor = new GPoint(6, 20);
	linkIcon.infoWindowAnchor = new GPoint(5, 1);
	linkIcon.infoShadowAnchor = new GPoint(6, 12);
	return linkIcon;
}

// Create a base icon for all of our markers that specifies the
// shadow, icon dimensions, etc.
function createBaseIcon() {
	var baseIcon = new GIcon();
	baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
	baseIcon.iconSize = new GSize(20, 34);
	baseIcon.shadowSize = new GSize(37, 34);
	baseIcon.iconAnchor = new GPoint(9, 34);
	baseIcon.infoWindowAnchor = new GPoint(9, 2);
	baseIcon.infoShadowAnchor = new GPoint(18, 25);
	return baseIcon;
}


// Creates a marker at the given point with the given number label
function createDefaultMarker(point, ctext) {

	var marker = new GMarker(point);
	if (ctext != "") {
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(ctext);
		});
	}
	return marker;
}

// Creates standard marker at the given point with the given number label
function createMarker(point, imgName, ctext, icon) {

	icon.image = imgName;
	var marker = new GMarker(point, icon);

	if (ctext != "") {
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(ctext);
		});
	}
	return marker;
}

// Creates marker for routes photo at the given point with the given number label
function createPhotoMarker(point, picname, icon) {

	var marker = new GMarker(point, icon);

	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml("<a href=\"../routepics/"+picname+"b.jpg\" target=\"_blank\"><img src=\"../routepics/"+picname+"s.jpg\" height=\"172\" width=\"230\" border=\"0\"></a>");
	});
	return marker;
}

// Creates marker for group photo at the given point with the given number label
function createPicsMarker(point, picname, icon) {

	var marker = new GMarker(point, icon);

	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml("<a href=\"../newpics/pic_"+picname+".jpg\" target=\"_blank\"><img src=\"../newpics/pic_"+picname+"s.jpg\" height=\"172\" width=\"230\" border=\"0\"></a>");
	});
	return marker;
}

// Creates marker for each walk link
function createLinkMarker(point, picname, icon) {

	var marker = new GMarker(point, icon);
	return marker;
}
