/*inspiration google map*/
var map = null;
function load() 
{
  if (GBrowserIsCompatible()) 
  {
	map = new GMap2(document.getElementById("map"));
	map.addControl(new GLargeMapControl());
   	map.addControl(new GMapTypeControl());
	map.setCenter(new GLatLng(54.21291,-6.74389), 6);
	showMarker(55.250000,-6.485300,'<div class="mapmarker"><h3>Giants Causeway, Co. Antrim</h3><img src="../uploads/Image/places/18.jpg" width="229" height="171" alt="Giant\'s Causeway as visited by a client of Celtic Campervans." /><p>Giant\'s Causeway as visited by a client of Celtic Campervans.</p><a href="../index.php">Book your motorhome</a></div>');
showMarker(53.524601,-6.165370,'<div class="mapmarker"><h3>Ha\'penny Bridge, Dublin City</h3><img src="../uploads/Image/places/21.jpg" width="229" height="171" alt="Wilhelm and Johanna take a snap of the Ha\'Penny Bridge on their motorhome adventure." /><p>Wilhelm and Johanna take a snap of the Ha\'Penny Bridge on their motorhome adventure.</p><a href="../index.php">Book your motorhome</a></div>');
showMarker(52.678104,-9.648046,'<div class="mapmarker"><h3>Kilkee, Co. Clare</h3><img src="../uploads/Image/places/22.jpg" width="229" height="171" alt="Mark McCabe journeys to Kilkee in a Celtic Campervan to compete in a triathalon." /><p>Mark McCabe journeys to Kilkee in a Celtic Campervan to compete in a triathalon.</p><a href="../index.php">Book your motorhome</a></div>');
showMarker(53.547634,-9.894710,'<div class="mapmarker"><h3>Connemara National Park, Co. Galway</h3><img src="../uploads/Image/places/23.jpg" width="229" height="171" alt="Connemara National Park, as shot by a Celtic Campervans client." /><p>Connemara National Park, as shot by a Celtic Campervans client.</p><a href="../index.php">Book your motorhome</a></div>');
showMarker(51.478951,-3.182259,'<div class="mapmarker"><h3>Heineken Cup, Millennium Stadium, Cardiff</h3><img src="../uploads/Image/places/24.jpg" width="229" height="171" alt="Celtic Campervans joined the red army on its expedition across the water to follow the men of Munster in their quest to win their 2nd European Cup in the space of 3 years. On the road we had 21 of our 2008 fleet and the feedback was immense." /><p>Celtic Campervans joined the red army on its expedition across the water to follow the men of Munster in their quest to win their 2nd European Cup in the space of 3 years. On the road we had 21 of our 2008 fleet and the feedback was immense.</p><a href="../index.php">Book your motorhome</a></div>');
showMarker(54.627171,-8.684852,'<div class="mapmarker"><h3>Slieve League, Co. Donegal</h3><img src="../uploads/Image/places/25.jpg" width="229" height="171" alt="Mart and Katrijn Breunis enjoyed the breathtaking views of Ireland\'s second highest sea cliffs on their motorhome holiday." /><p>Mart and Katrijn Breunis enjoyed the breathtaking views of Ireland\'s second highest sea cliffs on their motorhome holiday.</p><a href="../index.php">Book your motorhome</a></div>');
showMarker(54.612751,-7.028895,'<div class="mapmarker"><h3>Beaghmore Stone Circles, Co. Tyrone</h3><img src="../uploads/Image/places/26.jpg" width="229" height="171" alt="Mart and Katrijn Breunis visited the Beaghmore stone circles which date back to Neolithic times." /><p>Mart and Katrijn Breunis visited the Beaghmore stone circles which date back to Neolithic times.</p><a href="../index.php">Book your motorhome</a></div>');
showMarker(53.136311,-6.311996,'<div class="mapmarker"><h3>Sally Gap, Co. Wicklow</h3><img src="../uploads/Image/places/27.jpg" width="229" height="140" alt="Mary and Roger Elvin enjoyed driving along the scenic roads of Wicklow, the garden of Ireland, on their motorhome holiday." /><p>Mary and Roger Elvin enjoyed driving along the scenic roads of Wicklow, the garden of Ireland, on their motorhome holiday.</p><a href="../index.php">Book your motorhome</a></div>');
showMarker(52.061413,-9.526437,'<div class="mapmarker"><h3>Ring of Kerry, Co. Kerry</h3><img src="../uploads/Image/places/28.jpg" width="229" height="171" alt="Wilhelm and Johanna toured around the stunning scenery of the Ring of Kerry in their Celtic Campervan." /><p>Wilhelm and Johanna toured around the stunning scenery of the Ring of Kerry in their Celtic Campervan.</p><a href="../index.php">Book your motorhome</a></div>');
showMarker(56.801308,-5.072462,'<div class="mapmarker"><h3>Glen Nevis, Scottish Highlands</h3><img src="../uploads/Image/places/29.jpg" width="229" height="171" alt="The Harney\'s took to the Scottish highlands in their motorhome, taking in Glen Nevis near Fort William." /><p>The Harney\'s took to the Scottish highlands in their motorhome, taking in Glen Nevis near Fort William.</p><a href="../index.php">Book your motorhome</a></div>');
showMarker(51.667683,-10.014279,'<div class="mapmarker"><h3>Ring of Beara, Co. Cork</h3><img src="../uploads/Image/places/30.jpg" width="229" height="171" alt="The Elvins explored Cork\'s picturesque Beara peninsula in their Celtic Campervan." /><p>The Elvins explored Cork\'s picturesque Beara peninsula in their Celtic Campervan.</p><a href="../index.php">Book your motorhome</a></div>');
  }
}

function showMarker(lat,long,popup)
{
	if(!map)
	{
		return;
	}
	//alert(popup);
	var point = new GLatLng(lat,long);
	var marker = new GMarker(point);
    map.addOverlay(marker);
	GEvent.addListener(marker, "click", function() {
            	marker.openInfoWindowHtml(popup);
         	 });
}

