strList="

Our Lady Of Seven Sorrows (0 miles)
Zoom on map | View full information

Our Lady of Fatima (0.3 miles)
Zoom on map | View full information

St Tudwal, (7.3 miles)
Zoom on map | View full information

St Mair Church (10.5 miles)
Zoom on map | View full information

St David, Tywyn Church (14 miles)
Zoom on map | View full information

Holy Cross Church (14.1 miles)
Zoom on map | View full information

Christ the King Church (15.4 miles)
Zoom on map | View full information

"; function showResults() { document.getElementById("mapList").style.display="block"; } var records = new Array(new Array('Our Lady Of Seven Sorrows (60085-65100)',52.741452,-3.884838,'ParishChurch'),new Array('Our Lady of Fatima (60055-65088)',52.740974,-3.892817,'ParishChurch'),new Array('St Tudwal, (60060-65090)',52.724946,-4.05724,'ParishChurch'),new Array('St Mair Church (60150-65127)',52.591264,-3.846229,'ParishChurch'),new Array('St David, Tywyn Church (60145-65125)',52.583891,-4.095693,'ParishChurch'),new Array('Holy Cross Church (60164-65140)',52.940836,-3.957831,'Church'),new Array('Christ the King Church (60157-65133)',52.544369,-4.056024,'Church'),new Array('The Most Holy Redeemer (60120-65116)',52.92432,-4.132738,'ParishChurch'),new Array('The Most Holy Redeemer (60120-65118)',52.92432,-4.132738,'ParishChurch'),new Array('St Mary Magdalene (60067-65092)',52.995671,-3.934145,'ParishChurch'),new Array('The Holy Spirit, Porthmadog Church (60122-65116)',52.922346,-4.234204,'ParishChurch'),new Array('Our Lady Of The Angels And St Winefride Church (45806-53030)',52.4189559,-4.083242599999949,'ParishChurch'),new Array('St Padarn`s School (37743-35847)',52.413143,-4.074808,'School'),new Array('St Joseph, Pwllheli Church (60127-65118)',52.881598,-4.416871,'ParishChurch'),new Array('Our Lady and Saint Richard Gwyn, Llanidloes Church (60152-65128)',52.446347,-3.546563,'ParishChurch'),new Array('St Mary, Porthmadog Church (60121-65116)',53.082825,-4.103949,'ParishChurch'),new Array('Our Lady and St Cynfil (60118-65115)',52.879588,-4.475987,'ParishChurch'),new Array('Y Bugail Da Church (60105-65109)',53.140761,-3.795153,'ParishChurch'),new Array('St Mary`s School (38467-36571)',52.515671,-3.323016,'School'),new Array('God The Holy Ghost Church (60103-65108)',52.517537,-3.316956,'ParishChurch')); // var IMAGES = [ "parishChurchMarker", "ChurchMarker", "PresbyteryMarker", "OtherPresbyteryMarker", "SchoolMarker", "HallMarker" ]; // var ICONS = []; var markers = []; // declared EXTERNALLY // var map = null; // var mgr = null; // var mgr2 = null; // var mgr3 = null; function initialize() { var map = new google.maps.Map( document.getElementById('map_canvas'), { center: new google.maps.LatLng(records[0][1],records[0][2]), zoom: 13, mapTypeId: google.maps.MapTypeId.ROADMAP }); var markerName; for (var rows=0; rows < 8; rows++) { markerName=records[rows][3]; if(markerName=="ParishChurch") markerName="Parish-Church" var marker = new google.maps.Marker({ animation: google.maps.Animation.DROP, position: new google.maps.LatLng(records[rows][1],records[rows][2]), map: map, icon: "https://www.catholicdirectory.org/Pictures/map/" + markerName + "-Marker.png", title: records[rows][0] }); var infowindow = new google.maps.InfoWindow(); google.maps.event.addListener(marker, 'click', function() { load_content(map, this, infowindow); }); markers.push(marker); } } function load_content(map,marker,infowindow){ $.ajax({ url: 'mapinfowindow.asp?var1='+marker.title, success: function(data){ infowindow.setContent("
"+data+"
"); infowindow.open(map, marker); } }); } function launchInfoWindow(x) { // window.scroll(0, 0); // markers[x].setMap(map); google.maps.event.trigger(markers[x], "click"); } google.maps.event.addDomListener(window, 'load', initialize); function loadPage(a) { if(document.getElementById("frame_"+a).style.display=="none") { document.getElementById("tab_"+a).className="tab_selected"; document.getElementById("frame_"+a).style.display="block"; for (var i=0;i<3;i++) { if(i!=a) { document.getElementById("tab_"+i).className="tab" document.getElementById("frame_"+i).style.display="none"; } } } } function sendEmail(a,b) { document.getElementById("CCToEmailID").value=a; document.getElementById("CCEmailName").innerText=b; document.getElementById('CCEmailWindow').style.display='block'; } //