var centerLatitude =  52.476128;
var centerLongitude =  -1.898618;
var description = 'HIP HIP hooray Birmingham';

var startZoom = 14;
var map;

function addMarker(latitude, longitude, description) {
	var marker = new GMarker(new GLatLng(latitude,longitude));
	
	GEvent.addListener(marker, 'click',
					   function() {
						   marker.openInfoWindowHtml(description);
					   }
				);
				
				map.addOverlay(marker)
			
			}


function init() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
        map.setCenter(new GLatLng(centerLatitude, centerLongitude), startZoom);
		
		addMarker(centerLatitude, centerLongitude, description);
		}
    }
	

window.onload = init;
window.onunload = GUnload;