// JavaScript Document

    function load() 
	{
      if (GBrowserIsCompatible()) 
	  {
        var map = new GMap2(document.getElementById("map"));
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		map.enableContinuousZoom();
		map.enableDoubleClickZoom();
		
		map.setCenter(new GLatLng(52.4851093078, -1.88754369383), 15);
		var polyline = new GPolyline([
		  new GLatLng(52.4851093078, -1.88754369383),
		  new GLatLng(52.485116, -1.886816),
		  new GLatLng(52.485606, -1.886194),
		  new GLatLng(52.485877, -1.885850),
		  new GLatLng(52.485322, -1.884853),
		  new GLatLng(52.484535, -1.886537),
		  new GLatLng(52.482921, -1.888967),
		  new GLatLng(52.482258, -1.890013),
		  new GLatLng(52.482890361, -1.89124072277)
		], "#ff0000", 10);
		map.addOverlay(polyline);
		map.setMapType(G_HYBRID_MAP);
	  	var marker = new GMarker(new GLatLng(52.4851093078, -1.88754369383));
		GEvent.addListener(marker, 'click', function() {marker.openInfoWindowHtml(html);});
		map.addOverlay(marker);
		var html = "<div class=\"bubble\"><p><strong>Aston University Day Hospital<br>Aston University<br>Birmingham<br>B4 7ET</p></div>";
        
		var marker2 = new GMarker(new GLatLng(52.482890361, -1.89124072277));
		GEvent.addListener(marker2, 'click', function() {marker2.openInfoWindowHtml(html2);});
		map.addOverlay(marker2);
		var html2 = "<div class=\"bubble\"><p><strong>Coleshill Street is now closed</strong></p></div>";
	  }
	  else
	  {
	  	alert("Sorry, Google Maps is not compatible with this browser");
	  }
    }
