strList="

Archdiocese of St Andrews and Edinburgh (0 miles)
Zoom on map | View full information

St Peter`s (0.4 miles)
Zoom on map | View full information

St Thomas of Aquin`s High (0.6 miles)
Zoom on map | View full information

St Cuthbert`s (1.5 miles)
Zoom on map | View full information

St Mary`s, Edinburgh (1.8 miles)
Zoom on map | View full information

St Mark`s (2 miles)
Zoom on map | View full information

St John Vianney (2 miles)
Zoom on map | View full information

"; function showResults() { document.getElementById("mapList").style.display="block"; } var records = new Array(new Array('Archdiocese of St Andrews and Edinburgh (66430||71328)',55.934335,-3.200705,'Other'),new Array('St Peter`s (66354||71253)',55.929699,-3.207108,'School'),new Array('St Thomas of Aquin`s High (66377||71276)',55.943548,-3.19766,'School'),new Array('St Cuthbert`s (66142||71041)',55.930342,-3.240068,'School'),new Array('St Mary`s, Edinburgh (66344||71243)',55.959494,-3.188734,'School'),new Array('St Mark`s (66158||71057)',55.911585,-3.23059,'School'),new Array('St John Vianney (66269||71168)',55.918932,-3.157825,'School'),new Array('Holy Rood High (66375||71274)',55.940784,-3.14434,'School'),new Array('St Ninian`s (66223||71122)',55.960053,-3.150627,'School'),new Array('St Catherine`s (66221||71120)',55.903836,-3.156816,'School'),new Array('Holy Cross (66267||71166)',55.97338,-3.195857,'School'),new Array('St Francis` (66149||71048)',55.934823,-3.12726,'School'),new Array('St Joseph`s (66243||71142)',55.928527,-3.273493,'School'),new Array('Saint Michael The Archangel Church (44702||48384)',55.927763,-3.128516,'ParishChurch'),new Array('Saint Augustine Of Canterbury Church (44731||48497)',55.927763,-3.128516,'ParishChurch'),new Array('St Mary`s, Leith (66288||71187)',55.971845,-3.160912,'School'),new Array('Fox Covert RC (66161||71060)',55.951689,-3.280756,'School'),new Array('St David`s (66233||71132)',55.97368,-3.250716,'School'),new Array('St John`s (66352||71251)',55.949561,-3.121139,'School'),new Array('St Augustine`s High (66376||71275)',55.933043,-3.288544,'School'),new Array('St Margaret`s (66061||70960)',55.881238,-3.151028,'School'),new Array('St Mary`s (66145||71044)',55.873259,-3.107895,'School'),new Array('Loretto (66164||71063)',55.942598,-3.047528,'School'),new Array('St Matthew`s (66062||70961)',55.855338,-3.134942,'School'),new Array('St David`s High (66400||71299)',55.901656,-3.044953,'School'),new Array('St David`s (66116||71015)',55.888839,-3.052795,'School'),new Array('Sacred Heart (66110||71009)',55.830789,-3.232172,'School'),new Array('St Luke`s (66124||71023)',55.868911,-3.040893,'School'),new Array('St Margaret`s (66090||70989)',55.987565,-3.388124,'School'),new Array('St Gabriel`s (66191||71090)',55.955122,-2.983435,'School'),new Array('St Andrew`s (66131||71030)',55.843203,-3.0453,'School'),new Array('St Martin`s (66196||71095)',55.943279,-2.947863,'School'),new Array('St Paul`s (66115||71014)',55.896474,-3.457571,'School'),new Array('Holy Family (66077||70976)',55.956335,-3.468325,'School'),new Array('St John`s (66250||71149)',56.03434,-3.420859,'School'),new Array('St Nicholas (66342||71241)',55.932866,-3.483957,'School'),new Array('St Ninian`s (66290||71189)',55.882083,-3.499828,'School'),new Array('Howden St Andrew`s (66309||71208)',55.893028,-3.509365,'School'),new Array('St Columba`s High (66380||71279)',56.070121,-3.418529,'School'),new Array('St Margaret`s Academy (66428||71327)',55.889393,-3.522128,'School'),new Array('St Margaret`s (66329||71228)',56.069205,-3.444824,'School'),new Array('St Bride`s (66199||71098)',56.106196,-3.353834,'School'),new Array('St Marie`s (66331||71230)',56.130392,-3.149162,'School'),new Array('St Andrew`s High (66379||71278)',56.132413,-3.148321,'School'),new Array('St John Ogilvie (66347||71246)',55.904392,-3.55298,'School'),new Array('St Patrick`s (66160||71059)',56.132012,-3.312199,'School'),new Array('St Mary`s, Polbeth (66106||71005)',55.860294,-3.554624,'School'),new Array('St Ninian`s (66123||71022)',56.148896,-3.256773,'School'),new Array('St Joseph`s (66144||71043)',56.131615,-3.383898,'School'),new Array('St Joseph`s, Linlithgow (66126||71025)',55.971673,-3.609452,'School')); // 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'; } //