strList="
 Our Lady Of Perpetual Succour And St Nicholas Church (0 miles)
Zoom on map | View full information
 Assumption Of Our Lady And St Therese Church (5.9 miles)
Zoom on map | View full information
 St Bede the Venerable (9.8 miles)
Zoom on map | View full information
 St Walburgh`s Church (11 miles)
Zoom on map | View full information
 St Walburgh`s Church (11 miles)
Zoom on map | View full information
 Moor Park School (13.5 miles)
Zoom on map | View full information
 Catholic Church, WEOBLEY Parish Church (14.5 miles)
Zoom on map | View full information
";
function showResults()
{
document.getElementById("mapList").style.display="block";
}
var records = new Array(new Array('Our Lady Of Perpetual Succour And St Nicholas Church (45877-53310)',52.3442983,-3.0516739,'ParishChurch'),new Array('Assumption Of Our Lady And St Therese Church (45876-53304)',52.265728,-2.996505,'ParishChurch'),new Array('St Bede the Venerable (41149-38522)',52.2027744,-3.0275123,'ParishChurch'),new Array('St Walburgh`s Church (59789-32805)',52.4826821,-2.925020099999983,'Church'),new Array('St Walburgh`s Church (59789-64975)',52.4826821,-2.925020099999983,'Church'),new Array('Moor Park School (38132-36236)',52.339455,-2.731745,'School'),new Array('Catholic Church, WEOBLEY Parish Church (30677-31553)',52.161986,-2.883516,'ParishChurch'),new Array('St Thomas Of Hereford Church (41207-38522)',52.161986,-2.883516,'ParishChurch'),new Array('St Peter (59767-32806)',52.375343,-2.70976,'ParishChurch'),new Array('Catholic Church, LEOMINSTER Parish Church (30681-31555)',52.226916,-2.74692,'ParishChurch'),new Array('St Ethelbert Church (41153-38482)',52.226916,-2.74692,'ParishChurch'),new Array('Our Lady Of Ransom And The Holy Souls Church (45846-53203)',52.242024,-3.384664,'ParishChurch'),new Array('God The Holy Ghost Church (60103-65108)',52.517537,-3.316956,'ParishChurch'),new Array('St Mary`s School (38467-36571)',52.515671,-3.323016,'School'),new Array('St Milburga (59752-32805)',52.5387843,-2.798662000000036,'ParishChurch'),new Array('St Joseph Church (45840-53170)',52.07463,-3.127166,'ParishChurch'),new Array('Sacred Heart and Our Lady  Church (36077-34370)',52.305514,-2.605098,'ParishChurch'),new Array('Sacred Heart and Our Lady  Church (36077-34495)',52.305514,-2.605098,'ParishChurch'),new Array('St Francis Of Assisi Church (45878-53317)',52.302567,-3.51019,'ParishChurch'),new Array('Christ The King Church (45847-53213)',52.149282,-3.408093,'ParishChurch'),new Array('Our Lady and Saint Richard Gwyn, Llanidloes Church (60152-65128)',52.446347,-3.546563,'ParishChurch'),new Array('St Winefride (60147-65126)',52.66035,-3.154864,'ParishChurch'),new Array('St Francis Xavier Church (41145-38478)',52.055361,-2.717175,'ParishChurch'),new Array('Abbey Of St Michael And All Angels Church (41141-38476)',52.038881,-2.756085,'ParishChurch'),new Array('Belmont Abbey Parish Centre Parish Church (30675-31552)',52.038881,-2.756085,'ParishChurch'),new Array('Our Lady`s Parish Church (30673-31551)',52.045953,-2.72519,'ParishChurch'),new Array('Our Lady Queen Of Martyrs Church (41143-38477)',52.045953,-2.72519,'ParishChurch'),new Array('St Helen`s School (36852-34951)',52.045326,-2.721768,'School'),new Array('St Joseph`s Prebytery Parish Church (30683-31556)',52.189076,-2.510628,'ParishChurch'),new Array('St Joseph`s Prebytery Parish Church (30683-38482)',52.189076,-2.510628,'ParishChurch'),new Array('St Mary`s RC High School (36876-34975)',52.064055,-2.658689,'School'),new Array('St Winefride`s School (38212-36316)',52.705631,-2.754508,'School'),new Array('Cathedral Church of Our Lady Help of Christians and Saint Peter of Alcantara (63445-32798)',52.7056294,-2.7527294,'Cathedral'),new Array('St Winefride (59803-32798)',52.710311,-2.724748,'ParishChurch'),new Array('Shrewsbury Cathedral Primary (38190-36294)',52.718675,-2.737411,'School'),new Array('St John`s School (38170-36274)',52.538975,-2.424152,'School'),new Array('St John the Evangelist (59708-32829)',52.537468,-2.420673,'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';
}
    //