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.2832,-78.3927)};var g_11cc6517ac7a46cd35a712f09f38402b = new google.maps.Geocoder();g_11cc6517ac7a46cd35a712f09f38402b.geocode( { 'address': "1506 S Main St #10, Farmville, VA 23901, USA"}, function(results, status) {if (status == google.maps.GeocoderStatus.OK) {$i++;if ($i == 1){document.getElementById('farmville-VA-onemain-financial').style.display = '';map = new google.maps.Map(document.getElementById('farmville-VA-onemain-financial'), mapOptions);}document.getElementById('ceb8b592').innerHTML += ' | View Map';var $l11cc6517ac7a46cd35a712f09f38402b = '

OneMain Financial

Address: 1506 S Main St #10, Farmville, VA 23901, USA
Phone: (434) 392-9455
';var m_11cc6517ac7a46cd35a712f09f38402b = new google.maps.Marker({position: results[0].geometry.location,map: map,title: 'OneMain Financial',});m_11cc6517ac7a46cd35a712f09f38402b['infowindow'] = new google.maps.InfoWindow({content: $l11cc6517ac7a46cd35a712f09f38402b});var infowindow = new google.maps.InfoWindow({content: $l11cc6517ac7a46cd35a712f09f38402b});google.maps.event.addListener(m_11cc6517ac7a46cd35a712f09f38402b, 'click', function() {infowindow.open(map,m_11cc6517ac7a46cd35a712f09f38402b);});$marker.push(m_11cc6517ac7a46cd35a712f09f38402b);}});}google.maps.event.addDomListener(window, 'load', initialize);