// SETUP CUSTOM GOOGLE MAPS CONTROL TO DISPLAY ADVENTURA LOGO // DO NOT STEAL - GOD WILL PUNISH YOU!
// per documentation here: http://code.google.com/apis/maps/documentation/controls.html#Custom_Controls

function AdventuraLogoControl() {}

AdventuraLogoControl.prototype = new GControl();

AdventuraLogoControl.prototype.initialize = function(map)
{
	var container = document.createElement("div");
	var lnk = document.createElement("a");
	lnk.href = 'http://adventura.bg';
	lnk.title = 'powered by Adventura LLC';
	lnk.target = '_blank';
	
	var img = document.createElement("img");
	img.src = 'http://alliedpickfords.eu/uploads/map/prozrachno_minilogo.png';
	lnk.appendChild(img);
	container.appendChild(lnk);
	map.getContainer().appendChild(container);
	return container;
}

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

