function load() {
	if (GBrowserIsCompatible()) {

		var addressS = "<strong>Scarborough Office</strong><br />3E Burniston Industrial Estate,<br />Willymath Close,<br />Burniston,<br />Scarborough<br />YO13 0HG<br />Tel: 01723 356540<br />Fax: 01723 871742<br /><br />";
		
		var addressT = "<strong>Teeside Office</strong><br />Lysander House<br />Falcon Court<br />Preston Farm Estate<br />Stockton-on-Tees<br />TS18 3TX<br />Tel: 01642 633556<br />Fax: 01642 702499<br /><br />";
		
		var addressY = "<strong>York &amp; Selby Office</strong><br />6 Clifton Moor Village<br />James Nicholson Link<br />Clifton Moor<br />York<br />YO30 4XG<br />Tel: 01904 693104<br />Fax: 01904 693018<br /><br />";
				
		var addressN = "<strong>Northallerton Office:</strong><br />277 High Street<br />Northallerton<br />North Yorkshire<br />DL7 8DW<br />Tel: 01609 783883<br />Fax: 01609 783917<br /><br />";
		
		var addressC = "<strong>Cumbria Office:</strong><br />The Old Stables<br />Redhills<br />Penrith, Cumbria<br />CA11 0DT<br />Tel: 01768 895634<br /><br />";
		
		var addressH = "<strong>Harrogate (Head Office)</strong><br />The Avalon Group<br />3 Grove Park Court<br />Harrogate HG1 4DP<br />Tel: 01423 530053<br /><br />";
		
    	var map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallMapControl());
  	    map.setMapType(G_NORMAL_MAP); 	     
   	    //map.setCenter(new GLatLng(54.200602,-1.529921), 8);
		map.setCenter(new GLatLng(54.380000,-1.529921), 8);
		
		// Big icon
		var bigicon = new GIcon();
	    bigicon.image = "http://www.avalongroup.org.uk/images/site/avalon-marker.png";
	    bigicon.iconSize = new GSize(116, 73);
	    bigicon.shadow = "http://www.avalongroup.org.uk/images/site/marker-shadow.png";
	    bigicon.shadowSize = new GSize(153.0, 73.0);
	    bigicon.iconAnchor = new GPoint(58, 73);
		
		// Small icon
		var smallicon = new GIcon();
		smallicon.image = "http://www.avalongroup.org.uk/images/site/marker-small.png";
		smallicon.iconSize = new GSize(20, 34);
		smallicon.iconAnchor = new GPoint(10, 34); 
		
		// Add markers for the other branches
		var pointS = new GLatLng(54.319701,-0.439584);
		var markerS = new GMarker(pointS, smallicon);	
		GEvent.addListener(markerS, "click", function() {
          map.openInfoWindow(pointS, addressS);
        });
	    map.addOverlay(markerS);
	
		var pointT = new GLatLng(54.545602,-1.321728);
		var markerT = new GMarker(pointT, smallicon);
		GEvent.addListener(markerT, "click", function() {
          map.openInfoWindow(pointT, addressT);
        });
	    map.addOverlay(markerT);
		
		var pointY = new GLatLng(53.98626,-1.100188);
		var markerY = new GMarker(pointY, smallicon);
		GEvent.addListener(markerY, "click", function() {
          map.openInfoWindow(pointY, addressY);
        });
	    map.addOverlay(markerY);
		
		var pointN = new GLatLng(54.343317,-1.437777);
		var markerN = new GMarker(pointN, smallicon);
		GEvent.addListener(markerN, "click", function() {
          map.openInfoWindow(pointN, addressN);
        });
	    map.addOverlay(markerN);

		var pointC = new GLatLng(54.64934,-2.770089);
		var markerC = new GMarker(pointC, smallicon);
		GEvent.addListener(markerC, "click", function() {
          map.openInfoWindow(pointC, addressC);
        });
	    map.addOverlay(markerC);
		
		// Add a marker for the main office
		var pointH = new GLatLng(54.000602,-1.529921);			   	    
		var markerH = new GMarker(pointH, bigicon);
		GEvent.addListener(markerH, "click", function() {
          map.openInfoWindow(pointH, addressH);
        });
	    map.addOverlay(markerH);
		
	}
}

