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(39.0875,-78.9959)};var g_1766fff4851ac9c11f3200477fb8cc76 = new google.maps.Geocoder();g_1766fff4851ac9c11f3200477fb8cc76.geocode( { 'address': "717 N Main St, Moorefield, WV 26836"}, function(results, status) {if (status == google.maps.GeocoderStatus.OK) {$i++;if ($i == 1){document.getElementById('moorefield-WV-capon-valley-bank').style.display = '';map = new google.maps.Map(document.getElementById('moorefield-WV-capon-valley-bank'), mapOptions);}document.getElementById('25ca1167').innerHTML += ' | View Map';var $l1766fff4851ac9c11f3200477fb8cc76 = '

Capon Valley Bank

Address: 717 N Main St, Moorefield, WV 26836
Phone: (304) 530-7714
';var m_1766fff4851ac9c11f3200477fb8cc76 = new google.maps.Marker({position: results[0].geometry.location,map: map,title: 'Capon Valley Bank',});m_1766fff4851ac9c11f3200477fb8cc76['infowindow'] = new google.maps.InfoWindow({content: $l1766fff4851ac9c11f3200477fb8cc76});var infowindow = new google.maps.InfoWindow({content: $l1766fff4851ac9c11f3200477fb8cc76});google.maps.event.addListener(m_1766fff4851ac9c11f3200477fb8cc76, 'click', function() {infowindow.open(map,m_1766fff4851ac9c11f3200477fb8cc76);});$marker.push(m_1766fff4851ac9c11f3200477fb8cc76);}});}google.maps.event.addDomListener(window, 'load', initialize);