        var map;
        var directionsPanel;
        var directions;
        function onLoad() {
			if (GBrowserIsCompatible()) {
				map = new GMap2(document.getElementById("map"));
				map.setCenter(new GLatLng(38.391526, -75.069712), 13);
				map.setUIToDefault();
				geocoder = new GClientGeocoder();
			}
        }
		function showAddress(address,Name) {
			if(geocoder){
				geocoder.getLatLng(address,
					function(point) {
						if (!point) {
							alert(address + " not found");
						}else{
							map.setCenter(point, 13);
							var marker = new GMarker(point);
							map.addOverlay(marker);
							marker.openInfoWindowHtml("<h3>"+Name+"</h3><p>"+address+"</p>");
						}
					}
				);
			}
		}

        function doDirections(sAddr,dAddr) {
            map = new GMap2(document.getElementById("map"));
			map.setUIToDefault();
			$("#directions").html("");
            directionsPanel = document.getElementById("directions");
            directions = new GDirections(map, directionsPanel);
            directions = new GDirections(map, document.getElementById("directions"));
            directions.load(sAddr + ' to '+ dAddr);
        }

        function redoDirections(sAddr,dAddr) {
            map = new GMap2(document.getElementById("map"));
			map.setUIToDefault();
			$("#directions").html("");
            directionsPanel = document.getElementById("directions");
            directions = new GDirections(map, directionsPanel);
            directions = new GDirections(map, document.getElementById("directions"));
            directions.load(sAddr + ' to '+ dAddr);
        }
        function addToMap(){
//			$("#dHolder").hide();
//            place = response.Placemark[0];
            point = new GLatLng(38.391472, -75.069408);
            map.setCenter(point, 15);
            marker = new GMarker(point);
            map.addOverlay(marker);
            var myHtml = "<b>Ocean-City-Rentals.com</b><br />Office: (410) 524-6688<br /> Toll Free: (800) 492-5832<br />Fax: (410) 524-4225";
            marker.openInfoWindowHtml(myHtml);
        }
     

