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.3031,-78.3917)};var g_288612637586ad44eae69606ecc16a57 = new google.maps.Geocoder();g_288612637586ad44eae69606ecc16a57.geocode( { 'address': "216 N Main St, Farmville, VA 23901, USA"}, function(results, status) {if (status == google.maps.GeocoderStatus.OK) {$i++;if ($i == 1){document.getElementById('farmville-VA-bank-of-charlotte-county').style.display = '';map = new google.maps.Map(document.getElementById('farmville-VA-bank-of-charlotte-county'), mapOptions);}document.getElementById('e2e7a568').innerHTML += ' | View Map';var $l288612637586ad44eae69606ecc16a57 = '

Bank of Charlotte County

Address: 216 N Main St, Farmville, VA 23901, USA
Phone: (434) 391-1136
';var m_288612637586ad44eae69606ecc16a57 = new google.maps.Marker({position: results[0].geometry.location,map: map,title: 'Bank of Charlotte County',});m_288612637586ad44eae69606ecc16a57['infowindow'] = new google.maps.InfoWindow({content: $l288612637586ad44eae69606ecc16a57});var infowindow = new google.maps.InfoWindow({content: $l288612637586ad44eae69606ecc16a57});google.maps.event.addListener(m_288612637586ad44eae69606ecc16a57, 'click', function() {infowindow.open(map,m_288612637586ad44eae69606ecc16a57);});$marker.push(m_288612637586ad44eae69606ecc16a57);}});}google.maps.event.addDomListener(window, 'load', initialize);