    //<![CDATA[
	var _map;
	_locations=new Array(new Array(), new Array(), new Array());
	var _currentPlace;
	var _directions;
    function load() {
		//Wexford
	_locations[0]['description']="<p><b>Westgate Computer Centre</b><br />Westgate Yard,<br />Wexford</p>";
	_locations[0]['lat']=52.341739;
	_locations[0]['lng']=-6.466441;

	//Enniscorthy
	_locations[1]['description']="<p><b>Westgate Computer Centre</b><br />Quarry Park, Enniscorthy</p>";
	_locations[1]['lat']=52.514449;
	_locations[1]['lng']=-6.565107;
	
	//Raheen
	_locations[2]['description']="<p><b>Westgate Computer Centre</b><br />Raheen, <br />Adamstown</p>";
	_locations[2]['lat']=52.392337;
	_locations[2]['lng']=-6.792641;	
	
      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(52.434665,-6.545105), 10);
		
      }
	  
	  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);
	}	

    //]]>
