var map;var $marker = [];function $setCursor($lat, $lng, $index){$marker[$index - 1]['infowindow'].open(map, $marker[$index - 1]);var $lat_lng = new google.maps.LatLng($lat, $lng);map.setCenter($lat_lng);map.setZoom(20);}function initialize(){var $i = 0;var mapOptions = {zoom: 10,center: new google.maps.LatLng(37.5863,-79.0519)};var g_33276cd4a3902a21b7acac94278bdd0c = new google.maps.Geocoder();g_33276cd4a3902a21b7acac94278bdd0c.geocode( { 'address': "164 S Main St, Amherst, VA 24521, USA"}, function(results, status) {if (status == google.maps.GeocoderStatus.OK) {$i++;if ($i == 1){document.getElementById('amherst-VA-bank-of-the-james').style.display = '';map = new google.maps.Map(document.getElementById('amherst-VA-bank-of-the-james'), mapOptions);}document.getElementById('c40a2f72').innerHTML += ' | View Map';var $l33276cd4a3902a21b7acac94278bdd0c = '