    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("googlemap"));
        map.setCenter(new GLatLng(51.822595, -3.019036), 8);
        map.addControl(new GSmallMapControl());
        //map.setUIToDefault();

            var address = new Array();
            address[0]= Array('51.822595', '-3.019036', 'Bairstow Eves&nbsp;Estate Agents<br>15 High&nbsp;Street<br>Abergavenny <br>NP7 5RY');
            address[1]= Array('51.731634', '-3.134322', 'Simon Thompsett Associates Ltd,<br/>40 Church Street ,<br />Abertillery ,<br />NP13 1DB');
            address[2]= Array('51.404537', '-3.271371', 'K J Herbert Insurance Services&nbsp;<br>27 Holton Road<br>Barry <br>CF63 4HA');
            address[3]= Array('51.664367', '-3.193412', 'UKTS Ltd.,<br/>221 High Street,<br />Blackwood,<br />NP12 1AL');
            address[4]= Array('51.948625', '-3.391379', 'Beacon Independent Advice Limited<br/>Unit 2<br/>The Struet<br/>Brecon<br/>Powys<br/>LD3 7LH');
            address[5]= Array('51.512964', '-3.220625', '18 Merthyr Road<br/>Whitchurch<br/>Cardiff<br/>CF14 1DG');
            address[6]= Array('51.686264', '-3.025634', 'Simon Thompsett Associates Ltd.,<br>12 Windsor Road,<br>Griffithstown,<br>NP4 5HY');
            address[7]= Array('52.054563', '-2.718315', 'Trivett Hicks Estate Agents,<br/> 18 Kings Street,<br/> Hereford,<br/> HR4 9BX');
            address[8]= Array('51.532479', '-3.679243', 'Elite Independent Mortgages Ltd,<br>61 Commercial Street,<br>Kenfig Hill,<br>Nr. Bridgend,<br>CF33 6DH');
            address[9]= Array('51.664782', '-3.145462', 'Granville West Chivers &amp; Morgan Solicitors <br>Somerset Chambers<br>1 Tynewydd Terrace, Newbridge<br>NP11 4LS');
            address[10]= Array('51.9151', '-2.582634', 'Trivett Hicks Estate Agents,<br>53 Broad Street,<br>Ross-on-Wye,<br>HR9 7DY');


        // Create a base icon for all of our markers that specifies the
        // shadow, icon dimensions, etc.
        var baseIcon = new GIcon(G_DEFAULT_ICON);
        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);

        // Creates a marker whose info window displays the letter corresponding
        // to the given index.
        function createMarker(point, index, address) {
          // Create a lettered icon for this point using our icon class
          var letter = String.fromCharCode("A".charCodeAt(0) + index);
          var letteredIcon = new GIcon(baseIcon);
          letteredIcon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";

          // Set up our GMarkerOptions object
          markerOptions = { icon:letteredIcon };
          var marker = new GMarker(point, markerOptions);

          GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowHtml(address);
          });
          return marker;
        }

        // Add markers to the map
        for ( var i=0, len=address.length; i<len; i++ ){
            var point = new GLatLng(address[i][0],address[i][1]);
            map.addOverlay(createMarker(point, i, address[i][2]));
        }
      }
    }

    google.setOnLoadCallback(initialize);

