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(43.2085,-78.3877)};var g_37bc3d1076fca822d98e539754dae9cd = new google.maps.Geocoder();g_37bc3d1076fca822d98e539754dae9cd.geocode( { 'address': "1410 S Main St, Medina, NY 14103, USA"}, function(results, status) {if (status == google.maps.GeocoderStatus.OK) {$i++;if ($i == 1){document.getElementById('medina-NY-bank-of-castile').style.display = '';map = new google.maps.Map(document.getElementById('medina-NY-bank-of-castile'), mapOptions);}document.getElementById('311291ff').innerHTML += ' | View Map';var $l37bc3d1076fca822d98e539754dae9cd = '

Bank of Castile

Address: 1410 S Main St, Medina, NY 14103, USA
Phone: (585) 798-5510
';var m_37bc3d1076fca822d98e539754dae9cd = new google.maps.Marker({position: results[0].geometry.location,map: map,title: 'Bank of Castile',});m_37bc3d1076fca822d98e539754dae9cd['infowindow'] = new google.maps.InfoWindow({content: $l37bc3d1076fca822d98e539754dae9cd});var infowindow = new google.maps.InfoWindow({content: $l37bc3d1076fca822d98e539754dae9cd});google.maps.event.addListener(m_37bc3d1076fca822d98e539754dae9cd, 'click', function() {infowindow.open(map,m_37bc3d1076fca822d98e539754dae9cd);});$marker.push(m_37bc3d1076fca822d98e539754dae9cd);}});}google.maps.event.addDomListener(window, 'load', initialize);