function FishMediaBubbleControl() {}

FishMediaBubbleControl.prototype = new GControl();

FishMediaBubbleControl.prototype.initialize = function(map)
{
	var container = document.createElement("div");
	
	var imageDiv = document.createElement("img");	  
	imageDiv.src = "images/google_map_bg_overlay1.png";
	imageDiv.style.position = "absolute";
	imageDiv.style.top = "0px";
	imageDiv.style.left = "196px";	  
	container.appendChild(imageDiv);
	
	var imageDiv = document.createElement("img");	  
	imageDiv.src = "images/google_map_bg_overlay2.png";
	imageDiv.style.position = "absolute";
	imageDiv.style.top = "0px";
	imageDiv.style.left = "0px";	  
	container.appendChild(imageDiv);
	
	var imageDiv = document.createElement("img");	  
	imageDiv.src = "images/google_map_bg_overlay3.png";
	imageDiv.style.position = "absolute";
	imageDiv.style.top = "19px";
	imageDiv.style.left = "0px";	  
	container.appendChild(imageDiv);
	
	var imageDiv = document.createElement("img");	  
	imageDiv.src = "images/google_map_bg_overlay4.png";
	imageDiv.style.position = "absolute";
	imageDiv.style.top = "43px";
	imageDiv.style.left = "0px";	  
	container.appendChild(imageDiv);
	
	var imageDiv = document.createElement("img");	  
	imageDiv.src = "images/google_map_bg_overlay5.png";
	imageDiv.style.position = "absolute";
	imageDiv.style.top = "101px";
	imageDiv.style.left = "0px";	  
	container.appendChild(imageDiv);
	
	var imageDiv = document.createElement("img");	  
	imageDiv.src = "images/google_map_bg_overlay6.png";
	imageDiv.style.position = "absolute";
	imageDiv.style.top = "173px";
	imageDiv.style.left = "0px";	  
	container.appendChild(imageDiv);
	
	var imageDiv = document.createElement("img");	  
	imageDiv.src = "images/google_map_bg_overlay7.png";
	imageDiv.style.position = "absolute";
	imageDiv.style.top = "245px";
	imageDiv.style.left = "0px";	  
	container.appendChild(imageDiv);
	
	var imageDiv = document.createElement("img");	  
	imageDiv.src = "images/google_map_bg_overlay8.png";
	imageDiv.style.position = "absolute";
	imageDiv.style.top = "287px";
	imageDiv.style.left = "0px";	  
	container.appendChild(imageDiv);
	
	var imageDiv = document.createElement("img");	  
	imageDiv.src = "images/google_map_bg_overlay9.png";
	imageDiv.style.position = "absolute";
	imageDiv.style.top = "299px";
	imageDiv.style.left = "66px";	  
	container.appendChild(imageDiv);
	
	var imageDiv = document.createElement("img");	  
	imageDiv.src = "images/google_map_bg_overlay10.png";
	imageDiv.style.position = "absolute";
	imageDiv.style.top = "320px";
	imageDiv.style.left = "104px";	  
	container.appendChild(imageDiv);
	
	var imageDiv = document.createElement("img");	  
	imageDiv.src = "images/google_map_bg_overlay11.png";
	imageDiv.style.position = "absolute";
	imageDiv.style.top = "292px";
	imageDiv.style.left = "218px";	  
	container.appendChild(imageDiv);
	
	var imageDiv = document.createElement("img");	  
	imageDiv.src = "images/google_map_bg_overlay12.png";
	imageDiv.style.position = "absolute";
	imageDiv.style.top = "250px";
	imageDiv.style.left = "264px";	  
	container.appendChild(imageDiv);
	
	var imageDiv = document.createElement("img");	  
	imageDiv.src = "images/google_map_bg_overlay13.png";
	imageDiv.style.position = "absolute";
	imageDiv.style.top = "202px";
	imageDiv.style.left = "298px";	  
	container.appendChild(imageDiv);
	
	var imageDiv = document.createElement("img");	  
	imageDiv.src = "images/google_map_bg_overlay14.png";
	imageDiv.style.position = "absolute";
	imageDiv.style.top = "154px";
	imageDiv.style.left = "316px";	  
	container.appendChild(imageDiv);
	
	map.getContainer().appendChild(container);
	return container;
}

FishMediaBubbleControl.prototype.getDefaultPosition = function()
{
	return new GControlPosition(G_ANCHOR_TOP_LEFT, 0);
}

function loadMap()
{
	if (GBrowserIsCompatible())
	{
		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl(), new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(25,120)));
		map.addControl(new FishMediaBubbleControl());
		map.setCenter(new GLatLng(52.929279, -1.47161),13);
		function createMarker(point, html){var marker = new GMarker(point); return marker;}
		var point = new GLatLng(52.929279, -1.47161);
		var marker = createMarker(point, "Fish Media's Office");
		map.addOverlay(marker);
	}
}