//Google Map Script

function createMap(){
var map = new GMap(document.getElementById("map"));

map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.centerAndZoom(new GPoint(-75.208279, 40.693169), 2);
// Download the data in mapMarkers.xml and load it on the map. The format we
// expect is:
// <markers>

//   <marker lat="37.441" lng="-122.141">
//      <infowindow>html html html</infowindow>
//
// </markers>

var request = GXmlHttp.create();
request.open('GET', './mapMarkers.xml', true);
request.onreadystatechange = function() {
  if (request.readyState == 4) {
	var xmlDoc = request.responseXML;
	var markers = xmlDoc.documentElement.getElementsByTagName("marker");
	for (var i = 0; i < markers.length; i++) {
  	var point = new GPoint(parseFloat(markers[i].getAttribute("lng")),
						   parseFloat(markers[i].getAttribute("lat")));

    var html = GXml.value(markers[i].getElementsByTagName("infowindow")[0]);

	var marker = new GMarker(point);
  	map.addOverlay(marker);
    map.openInfoWindowHtml(point,html);
    GEvent.addListener(marker, 'click', function() {map.openInfoWindowHtml(point,html);});
	}

  }
}
request.send(null);
}

 function doVoid(){}
        function turnOnFrom(){
          document.getElementById('directionsFrom').style.visibility='visible';
          document.getElementById('directionsTo').style.visibility='hidden';
        }
        function turnOnTo(){
          document.getElementById('directionsFrom').style.visibility='hidden';
          document.getElementById('directionsTo').style.visibility='visible';
        }


