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

function NeRAINLogoControl() {}

NeRAINLogoControl.prototype = new GControl();

NeRAINLogoControl.prototype.initialize = function(map)
{
	var container = document.createElement("div");
	var lnk = document.createElement("a");
	lnk.href = 'http://dnrdata.dnr.ne.gov/NeRAIN/index.asp';
	lnk.title = 'Rainfall data provided by the NeRAIN';
	lnk.target = '_blank';
	
	var img = document.createElement("img");
	img.src = 'scripts/nerainsm.gif';
	lnk.appendChild(img);
	container.appendChild(lnk);
	
	map.getContainer().appendChild(container);
	return container;
}

NeRAINLogoControl.prototype.getDefaultPosition = function()
{
	return new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(5,72));
}
	
