strList="
 St Alban`s Primary School (0 miles)
Zoom on map | View full information
 All Hallows School (1.1 miles)
Zoom on map | View full information
 All Hallows School (1.1 miles)
Zoom on map | View full information
 St Alban (1.1 miles)
Zoom on map | View full information
 Christ the King Primary (1.8 miles)
Zoom on map | View full information
 St Edward the Confessor (2 miles)
Zoom on map | View full information
 St Gregory (3.1 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('St Alban`s Primary School (38149-36253)',53.266235,-2.159453,'School'),new Array('All Hallows School (38215-36319)',53.255364,-2.141486,'School'),new Array('All Hallows School (38215-80186)',53.255364,-2.141486,'School'),new Array('St Alban (59654-32775)',53.259992,-2.13489,'ParishChurch'),new Array('Christ the King Primary (78800-80247)',53.2475213,-2.1288241,'School'),new Array('St Edward the Confessor (59688-32774)',53.247024,-2.12337,'ParishChurch'),new Array('St Gregory (59698-32773)',53.297667,-2.104612,'ParishChurch'),new Array('St Pius X (59773-32796)',53.30319979999999,-2.233989699999938,'ParishChurch'),new Array('Alderley Edge School for Girls (38214-36318)',53.305097,-2.238247,'School'),new Array('Sacred Heart and St Teresa (59637-32794)',53.32637,-2.230844,'ParishChurch'),new Array('St Paul`s Primary School (38196-36300)',53.343225,-2.120359,'School'),new Array('St Benedict`s Primary School (38158-36262)',53.346494,-2.207144,'School'),new Array('St Benedict (59673-32795)',53.34587759999999,-2.210175400000026,'ParishChurch'),new Array('St Paul (59760-32776)',53.347803,-2.117548,'ParishChurch'),new Array('St Vincent de Paul (59786-32789)',53.357275,-2.158186,'ParishChurch'),new Array('St James School (38229-36333)',53.359857,-2.198269,'School'),new Array('St Ann (63301-32793)',53.365831,-2.183915,'ParishChurch'),new Array('St Mary`s Primary School (38186-36290)',53.166267,-2.218181,'School'),new Array('St Mary (59734-32753)',53.164371,-2.222658,'ParishChurch'),new Array('St Peter`s Primary School (38198-36302)',53.374112,-2.127195,'School'),new Array('Christ Church (59577-32792)',53.371703,-2.224145,'ParishChurch'),new Array('Cheadle Catholic Junior School (38125-36229)',53.37622,-2.206853,'School'),new Array('Cheadle Catholic Infants School (38124-36228)',53.37622,-2.206853,'School'),new Array('St Peter (59765-32790)',53.381822,-2.128286,'ParishChurch'),new Array('Sacred Heart (59633-32783)',53.32991,-1.988069,'ParishChurch'),new Array('St Simon`s Primary School (38204-36308)',53.382709,-2.114172,'School'),new Array('St Anthony`s RC Church (59667-32760)',53.372127,-2.259017,'ParishChurch'),new Array('St Elizabeth`s RC Church (59691-32760)',53.3773,-2.243956,'ParishChurch'),new Array('St Ambrose (59658-32785)',53.389553,-2.171011,'ParishChurch'),new Array('St Anthony`s Primary School (38154-36258)',53.373586,-2.262107,'School'),new Array('St Anthony`s RC Primary School (8885-80184)',53.373586,-2.262107,'Other'),new Array('St Elizabeth`s Primary School (38165-36269)',53.3785987,-2.2499308,'School'),new Array('St Ambrose Primary School (38151-36255)',53.392105,-2.165037,'School'),new Array('St Vincent`s Primary School (38208-36312)',53.302644,-2.359734,'School'),new Array('Aquinas College School (38217-36321)',53.396208,-2.14821,'School'),new Array('St Philip`s School (38201-36305)',53.394372,-2.117932,'School'),new Array('St Philip (59771-32782)',53.394372,-2.117932,'ParishChurch'),new Array('St Chad (59679-32791)',53.395012,-2.208613,'ParishChurch'),new Array('St John`s Primary School (38172-36276)',53.385399,-2.263405,'School'),new Array('S t Margaret`s  Church (63370-66784)',53.202511,-2.35596,'Other'),new Array('Our Lady and The Apostles (59610-32784)',53.40242,-2.161332,'ParishChurch'),new Array('St Vincent de Paul (59788-32819)',53.307485,-2.375457,'ParishChurch'),new Array('Annunciation Church (56052-62262)',53.366036,-2.004229,'ParishChurch'),new Array('Our Lady`s Primary School (38141-36245)',53.403073,-2.16368,'School'),new Array('St Mary`s Catholic Primary School (37824-35928)',53.366252,-2.003132,'School'),new Array('Larkhall Rise (78771-80228)',53.3926457,-2.2509166,'Other'),new Array('Holy Spirit (59596-32788)',53.39379,-2.069209,'ParishChurch'),new Array('St Peter`s Primary School (38200-36304)',53.385143,-2.278866,'School'),new Array('St Paul`s School (38233-36337)',53.385143,-2.278866,'School'),new Array('Holy Angels (59586-32817)',53.369948,-2.316536,'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';
}
    //