   //<![CDATA[
   var map;
  
   //Marker function
   function load() {      
	  if (GBrowserIsCompatible()) {     
		  function createMarker(point,html) {
        var marker = new GMarker(point);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
        return marker;
      }  
      // Test function for custom map overlay
      
      // A TextualZoomControl is a GControl that displays textual "Zoom In"
      // and "Zoom Out" buttons (as opposed to the iconic buttons used in
      // Google Maps)
		  function TextualZoomControl() 
		  {
			  }TextualZoomControl.prototype = new GControl();
			  
			  // Creates a one DIV for each of the buttons and places them in a container
			  // DIV which is returned as our control element. We add the control to
			  // to the map container and return the element for the map class to
			  // position properly.
			  
			  TextualZoomControl.prototype.initialize = function(map) {
				  var container = document.createElement("div");
				  var zoomInDiv = document.createElement("div");
				  this.setButtonStyle_(zoomInDiv);
				  container.appendChild(zoomInDiv);
				  zoomInDiv.appendChild(document.createTextNode("View London Branch Map"));
				  GEvent.addDomListener(zoomInDiv, "click", function() {
					  map.panTo(new GLatLng(51.505502,-0.249485));
					  });
				var zoomOutDiv = document.createElement("div");
				this.setButtonStyle_(zoomOutDiv);
				container.appendChild(zoomOutDiv);
				zoomOutDiv.appendChild(document.createTextNode("View Birmingham Branch Map"));
				GEvent.addDomListener(zoomOutDiv, "click", function() {
					map.panTo(new GLatLng(52.494911,-1.879319));
					});
					map.getContainer().appendChild(container);
					return container;
					}
					
					// Tells the map where to position the buttons.			
					
					TextualZoomControl.prototype.getDefaultPosition = function() {
						return new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(7, 7));
						}
						// Sets the proper CSS for the given button element.
						TextualZoomControl.prototype.setButtonStyle_ = function(button) {
							button.style.textDecoration = "underline";  
							button.style.color = "#0000cc";  
							button.style.backgroundColor = "white";  
							button.style.font = "small Arial";  
							button.style.border = "1px solid black";  
							button.style.padding = "2px";  
							button.style.marginBottom = "3px";  
							button.style.textAlign = "center";  
							button.style.width = "6em";  
							button.style.cursor = "pointer";
							}
			
			  
			  //stuff
		  map = new GMap2(document.getElementById("maplon"));   
		  map.addControl(new TextualZoomControl());  
		  map.addControl(new GSmallMapControl());
		  map.addControl(new GMapTypeControl());   
		  map.setCenter(new GLatLng(51.505502,-0.249485), 11);
		 // window.setTimeout(function() {  
			//  map.panTo(new GLatLng(52.494911,-1.879319))
			//  ;}, 5000);
		  
		  //markers
		  var point = new GLatLng(51.505502,-0.249485);
      var marker = createMarker(point,'LMC Audio Systems London<br>Unit 10 Cowley Road<br>Acton<br>W3 7XA<br>Tel: +44 (0)20 8743 4680<br>Fax: +44 (0)20 8749 9875')
      map.addOverlay(marker);
      var point = new GLatLng(52.494911,-1.879319);
      var marker = createMarker(point,'LMC Audio Systems Birmingham<br>Unit 47 Phoenix Park<br>Avenue road<br>B7 4NU<br>Tel: +44 (0)121 359 4535 <br>Fax: +44 (0)121 359 8789 ')
      map.addOverlay(marker);
      }
    }
    //]]>