//<![CDATA[

function addPin(map, baseIcon, letter, lat, long, name) {
	var letteredIcon = new GIcon(baseIcon);
	letteredIcon.image = "images/pins/pin" + letter + ".png";
   markerOptions = { icon:letteredIcon };  		   
	var myMarker = new GMarker(new GLatLng(lat, long), markerOptions);  	
	
	GEvent.addListener(myMarker,"click", function() {
        map.setCenter(new GLatLng(lat, long), map.getZoom() + 3);
      }); 	
  	
  	map.addOverlay(myMarker);
}	
      
function load() {
	if (GBrowserIsCompatible()) {
   	var map = new GMap2(document.getElementById("map"));
     	map.addControl(new GSmallMapControl());
   	map.setCenter(new GLatLng(52.29199, -1.53579), 6); 
   	map.enableDoubleClickZoom();
       
      // Create a base icon for all of our markers that specifies the
      // shadow, icon dimensions, etc.
      var baseIcon = new GIcon();
      baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
      baseIcon.iconSize = new GSize(20, 34);
     	baseIcon.shadowSize = new GSize(37, 34);
      baseIcon.iconAnchor = new GPoint(9, 34);
     	baseIcon.infoWindowAnchor = new GPoint(9, 2);
     	baseIcon.infoShadowAnchor = new GPoint(18, 25);                   
       
      // add the pins for concert destinations        
		 	
		 // Exhibition 
		//addPin(map, baseIcon, "A", 51.48277, -0.00901, "Greenwich Old Royal Naval College");		 	
	}
}

//]]>
