        var geocoder;        var map;        var markersArray = [];        var marker;        var infowindow = new google.maps.InfoWindow();        function initialize() {            geocoder = new google.maps.Geocoder();            var myOptions = {            zoom: 14,                mapTypeId: google.maps.MapTypeId.ROADMAP            }            map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);            codeAddress();            google.maps.event.addListener(map, 'click', function(event) {                                placeMarker(event.latLng);            });                    }        function codeAddress() {            var address = document.getElementById("address").value;            geocoder.geocode({ 'address': address }, function(results, status) {                if (status == google.maps.GeocoderStatus.OK) {                    clearOverlays();                    document.getElementById("address").value = results[0]['formatted_address'];                    document.getElementById("latlong").innerText = results[0].geometry.location;                    map.setCenter(results[0].geometry.location);                    marker = new google.maps.Marker({                        map: map,                        title: results[0]['formatted_address'],                        position: results[0].geometry.location,                        animation: google.maps.Animation.DROP                    });                    infowindow.setContent(results[1].formatted_address);                    infowindow.open(map, marker);                    markersArray.push(marker);                } else {                    alert("Geocode was not successful for the following reason: " + status);                }            });        }        function placeMarker(location) {            geocoder.geocode({ 'latLng': location }, function(results, status) {                if (status == google.maps.GeocoderStatus.OK) {                    if (results[1]) {                        clearOverlays();                        document.getElementById("address").value = results[1].formatted_address;                        document.getElementById("latlong").innerText = results[0].geometry.location;                        marker = new google.maps.Marker({                            position: location,                            title: results[1].formatted_address,                            map: map,                            animation: google.maps.Animation.DROP                        });                        infowindow.setContent(results[1].formatted_address);                        infowindow.open(map, marker);                        markersArray.push(marker);                        google.maps.event.addListener(marker, 'click', toggleBounce);                        map.setCenter(location);                    }                } else {                    alert("Geocoder failed due to: " + status);                }            });                                                          }        function clearOverlays() {            if (markersArray) {                for (i in markersArray) {                    markersArray[i].setMap(null);                }            }        }        function toggleBounce() {            if (marker.getAnimation() != null) {                marker.setAnimation(null);            } else {                marker.setAnimation(google.maps.Animation.BOUNCE);            }        }        
