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.0667,-78.97)};var g_898a0e46882c081b09170b0fe72108f4 = new google.maps.Geocoder();g_898a0e46882c081b09170b0fe72108f4.geocode( { 'address': "300 N Main St, Moorefield, WV 26836, USA"}, function(results, status) {if (status == google.maps.GeocoderStatus.OK) {$i++;if ($i == 1){document.getElementById('moorefield-WV-summit-community-bank').style.display = '';map = new google.maps.Map(document.getElementById('moorefield-WV-summit-community-bank'), mapOptions);}document.getElementById('a8b8b5cc').innerHTML += ' | View Map';var $l898a0e46882c081b09170b0fe72108f4 = '

Summit Community Bank

Address: 300 N Main St, Moorefield, WV 26836, USA
Phone: (304) 530-1000
';var m_898a0e46882c081b09170b0fe72108f4 = new google.maps.Marker({position: results[0].geometry.location,map: map,title: 'Summit Community Bank',});m_898a0e46882c081b09170b0fe72108f4['infowindow'] = new google.maps.InfoWindow({content: $l898a0e46882c081b09170b0fe72108f4});var infowindow = new google.maps.InfoWindow({content: $l898a0e46882c081b09170b0fe72108f4});google.maps.event.addListener(m_898a0e46882c081b09170b0fe72108f4, 'click', function() {infowindow.open(map,m_898a0e46882c081b09170b0fe72108f4);});$marker.push(m_898a0e46882c081b09170b0fe72108f4);}});}google.maps.event.addDomListener(window, 'load', initialize);