        var map;
        var directionsPanel;
        var directions;
        function onLoad() {
            map = new GMap2(document.getElementById("slide"));
            var mapControl = new GMapTypeControl();
            map.addControl(mapControl);
            map.addControl(new GLargeMapControl());
        }
        function doDirections(sAddr,dAddr) {
            map = new GMap2(document.getElementById("slide"));
            var mapControl = new GMapTypeControl();
            map.addControl(mapControl);
            map.addControl(new GLargeMapControl());
			$("#directions").html("");
			$("#dHolder").show();
            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("slide"));
            var mapControl = new GMapTypeControl();
            map.addControl(mapControl);
            map.addControl(new GLargeMapControl());
			$("#directions").html("");
			$("#dHolder").show();
            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>Sunset Island Rentals</b><br />Office: (410) 524-6688<br /> Toll Free: (800) 492-5832<br />Fax: (410) 524-4225";
            marker.openInfoWindowHtml(myHtml);
        }
     
