    //<![CDATA[
	var _map;
	_locations=new Array(new Array());
	var _currentPlace;
	var _directions;
    function load() {
		//Wexford
	_locations[0]['description']="<p><b>Wexford Arts Centre</b><br />Cornmarket,<br />Wexford</p>";
	_locations[0]['lat']=52.339731;
	_locations[0]['lng']=-6.46407;

      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
		this._map=map;
	    var directionsPanel = document.getElementById("route");
		var directions = new GDirections(map, directionsPanel);
	    this._directions=directions;

		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
		for (var i=0; i<_locations.length; i++) {
			addPoint(map,i);
		}
		map.setCenter(new GLatLng(_locations[0]['lat'],_locations[0]['lng']), 16);
		
      }
	  
	  function addPoint(map,locationID) {
	  	var point = new GLatLng(_locations[locationID]['lat'], _locations[locationID]['lng']);
		var street=new GMarker(point);
		map.setCenter(point, 13);
  		map.addOverlay(street);
		GEvent.addListener(street, "click", function() {
			map.openInfoWindow(point, _locations[locationID]['description']);
		});
		
		
	  }
	 
	}
	function showDirections(from, to) {
		_directions.load(from + " to " + to);
	}	
	function switchLocation(locationID) {
		var point=new GLatLng(_locations[locationID]['lat'], _locations[locationID]['lng']);
		 panTo(point);
		_map.openInfoWindow(point, _locations[locationID]['description']);
	}
	function panTo(point) {
	 	_map.panTo(point);
	}	

    //]]>