//<![CDATA[                
function load() {
if (GBrowserIsCompatible()) {                
        var map = new GMap2(document.getElementById('map'));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(51.5535, -1.7830), 13);
        
        var pt = new GLatLng(51.5535, -1.7830);                                        
        var offset = new GSize(0, -10);
        var html = "<div class='iw'><div class='title'><a href='http://www.maps.google.co.uk/maps?f=q&amp;hl=en&amp;sll=53.098145,-2.443696&amp;sspn=7.207931,17.797852&amp;q=video+graphics+swindon&amp;ie=UTF8&amp;latlng=51561430,-1765775,436863639061582436'>VideoGraphics</a></div><div class='basics'>18a Lansdown Rd<br>Swindon, SN1 3NE<br><div class='pn'>01793 527226</div><div class='dir' style='padding-top: 0.7em;'>Get directions from:<div><div class='card' tab='dir:to' tabload='this.e('iwsaddr').value = this.e('iwdaddr').value;this.e('iwsaddr').select();acinit('iwsaddr');spinit('iwsaddr')'><form onsubmit='prepareForm(this,'51561430,-1765775,436863639061582436')' action='http://www.maps.google.co.uk/maps' target='vp'><input value='18a Lansdown Rd, Swindon, SN1 3NE (VideoGraphics) @51.553499,-1.782985' name='daddr' type='hidden'><div><input class='inpt' id='iwsaddr' name='saddr' value='swindon' type='text'></div><div><input value='Get Directions' type='submit'></div></form></div></div></div></div>";

        // Create a base icon for all of our markers that specifies the
        // shadow, icon dimensions, etc.
        var baseIcon = new GIcon();
        baseIcon.shadow = "http://www.videographics.co.uk/VideoGraphicsMarkerShadow.png";
        baseIcon.iconSize = new GSize(130, 50);
        baseIcon.shadowSize = new GSize(130, 50);
        baseIcon.iconAnchor = new GPoint(65, 60);
        baseIcon.infoWindowAnchor = new GPoint(65, 60);
        baseIcon.infoShadowAnchor = new GPoint(45, 60);
        
        // Creates a marker whose info window displays the letter corresponding
        // to the given index.
        function createMarker(point, index) {
          // Create a lettered icon for this point using our icon class
          var letter = String.fromCharCode("VideoGraphics".charCodeAt(0) + index);
          var icon = new GIcon(baseIcon);
          icon.image = "http://www.videographics.co.uk/VideoGraphicsMarker.png";                          
          var marker = new GMarker(pt, icon);
        
          GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowHtml(html);
          });
          return marker;
        }
         map.addOverlay(createMarker(pt, 0));                                                                                                   
        }
}
//]]>                

