strList="

St David Church (0 miles)
Zoom on map | View full information

Abbey Of Our Lady And St Samson (0 miles)
Zoom on map | View full information

St Illtyd Church (0 miles)
Zoom on map | View full information

Holyrood And St Teilo Church (2.3 miles)
Zoom on map | View full information

St Teilo`s Catholic Primary School (2.6 miles)
Zoom on map | View full information

St Bride Church (5.3 miles)
Zoom on map | View full information

St Joseph Church (10.4 miles)
Zoom on map | View full information

"; function showResults() { document.getElementById("mapList").style.display="block"; } var records = new Array(new Array('St David Church (45820||53093)',51.637699,-4.687454,'ParishChurch'),new Array('Abbey Of Our Lady And St Samson (45819||53092)',51.637699,-4.687454,'ParishChurch'),new Array('St Illtyd Church (65923||70907)',51.637699,-4.687454,'Church'),new Array('Holyrood And St Teilo Church (45880||53321)',51.669858,-4.699699,'ParishChurch'),new Array('St Teilo`s Catholic Primary School (38898||37004)',51.674232,-4.704632,'School'),new Array('St Bride Church (45881||53326)',51.713909,-4.70784,'ParishChurch'),new Array('St Joseph Church (45864||53269)',51.674428,-4.922667,'ParishChurch'),new Array('The Immaculate Conception Church (45839||53169)',51.79691,-4.743881,'ParishChurch'),new Array('St Mary`s School (37747||35851)',51.687385,-4.941517,'School'),new Array('Catholic Rectory (66487||53269)',51.693062,-4.942536,'Other'),new Array('St Mary Church (45863||53263)',51.693062,-4.942536,'ParishChurch'),new Array('Holy Cross Abbey (45882||53327)',51.807907,-4.629473,'ParishChurch'),new Array('St Francis School (37746||35850)',51.717622,-5.033443,'School'),new Array('St Francis Of Assisi Church (45858||53239)',51.717622,-5.033443,'ParishChurch'),new Array('Mary Immaculate School (37745||35849)',51.795485,-4.977111,'School'),new Array('St David And St Patrick Church (45837||53162)',51.799631,-4.973207,'ParishChurch'),new Array('Our Lady And St Cadoc Church (45818||53091)',51.737199,-4.302416,'ParishChurch'),new Array('Our Lady Star Of The Sea Church (45817||53086)',51.688073,-4.246128,'ParishChurch'),new Array('St Mary Church (45823||53106)',51.856419,-4.31913,'ParishChurch'),new Array('St Mary`s School (37741||35845)',51.856419,-4.31913,'School'),new Array('Our Lady Queen Of Peace Church (45848||53215)',51.68119,-4.165891,'ParishChurch'),new Array('St Mary`s School (37742||35846)',51.687778,-4.134694,'School'),new Array('St John Lloyd School (37740||35844)',51.687778,-4.134694,'School'),new Array('Eglwys Groes (holy Cross) Church (45867||53277)',51.784532,-4.166968,'ParishChurch'),new Array('Penclawdd Community Centre (65922||53007)',51.640863,-4.108367,'Other'),new Array('Blessed Sacrament Church (65925||70909)',51.668594,-4.048511,'ParishChurch'),new Array('Holy Name Catholic Primary School (37744||35848)',51.996925,-4.982148,'School'),new Array('Holy Name Church (45831||53131)',51.996925,-4.982148,'ParishChurch'),new Array('St Joachim And St Anne Church (45802||53007)',51.624171,-4.025747,'ParishChurch'),new Array('St Bride Church (45865||53270)',51.713827,-4.034529,'ParishChurch'),new Array('Our Lady Queen Of Peace Church (45862||53259)',52.039346,-4.46604,'ParishChurch'),new Array('St David`s School (37752||35856)',51.581312,-4.004831,'School'),new Array('St David`s Roman Catholic Primary School (38900||37006)',51.581312,-4.004831,'School'),new Array('St Michael`s Church (45833||53142)',51.882536,-5.263733,'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 }); for (var rows=0; rows < 8; rows++) { var marker = new google.maps.Marker({ position: new google.maps.LatLng(records[rows][1],records[rows][2]), map: map, icon: "http://www.catholicdirectory.org/Pictures/map/" + records[rows][3] + "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'; } //