

var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(51.391720,-2.334635), 13);


// Creates a marker at the given point with the given number label
function createMarker(point) {


// Create our "tiny" marker icon
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);


var marker = new GMarker(point,icon);

  GEvent.addListener(marker, "click", function() {
    marker.openInfoWindowHtml("<span id='googleMapText'><b>Tasburgh House Hotel</b><br/>Warminster Road<br/>Bath, BA2 6SH.<br/> +44 (0)1225 425 096<br/><a href='mailto:hotel@bathtasburgh.co.uk' class='purpleLink'>hotel@bathtasburgh.co.uk</a><br/><a href='http://www.bathtasburgh.co.uk' class='purpleLink'>http://www.bathtasburgh.co.uk</a><br/><a href='http://local.google.co.uk/maps?f=q&hl=en&q=Tasburgh+House+Hotel&li=lmd&cid=51381443,-2357483,17846586750221169593&ie=UTF8&ll=51.396689,-2.337513&spn=0.0573,0.088406&om=1' class='purpleLink'  target='blank'>Get Directions</a><br/>");
 
 });
  return marker;
}





// put the icon on the map

		var point = new GLatLng(51.391720,-2.334635);


		  map.addOverlay(createMarker(point));


