// SETUP CUSTOM GOOGLE MAPS CONTROL TO DISPLAY GEOHISTORY LOGO
// per documentation here: http://code.google.com/apis/maps/documentation/controls.html#Custom_Controls

function GeoHistoryLogoControl() {}

GeoHistoryLogoControl.prototype = new GControl();

GeoHistoryLogoControl.prototype.initialize = function(map)
{
	var container = document.createElement("div");
	var lnk = document.createElement("a");
	lnk.href = 'http://www.philageohistory.org';
	lnk.title = 'Historic map images provided by the Greater Philadelphia GeoHistory Network';
	lnk.target = '_blank';
	
	var img = document.createElement("img");
	img.src = 'http://www.philageohistory.org/tiles/viewer/images/mapsfromgeohistory.png';
	img.border = '0';
	lnk.appendChild(img);
	container.appendChild(lnk);
	
	map.getContainer().appendChild(container);
	return container;
}

GeoHistoryLogoControl.prototype.getDefaultPosition = function()
{
	return new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(75,4));
}
	
