//<![CDATA[

function load() 
{
	externalLinks();
	
	if (GBrowserIsCompatible()) 
	{
		churchpoint = new GLatLng(51.313574495151066, -0.006201267242431641);
		receptionpoint = new GLatLng(51.30004621274712, -0.05158424377441406);
	   	
        	var map = new GMap2(document.getElementById("church_reception"));
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
        	map.setCenter(new GLatLng(51.30818914708442, -0.027637481689453125), 14);

		//Create Church Icon
		var churchicon = new GIcon();
		churchicon.image = "http://wedding.pilch.org.uk/images/church_icon.png";
		churchicon.iconSize = new GSize(38, 50);
		churchicon.iconAnchor = new GPoint(38, 50);
		churchicon.infoWindowAnchor = new GPoint(5, 1);

		//Create Reception Icon
		var recepicon = new GIcon();
		recepicon.image = "http://wedding.pilch.org.uk/images/reception_icon.png";
		recepicon.iconSize = new GSize(52, 50);
		recepicon.iconAnchor = new GPoint(26, 30);
		recepicon.infoWindowAnchor = new GPoint(5, 1);
        	
        	var churchmarker = new GMarker(churchpoint,churchicon);
        	var receptionmarker = new GMarker(receptionpoint,recepicon);

		map.addOverlay(churchmarker);
        	map.addOverlay(receptionmarker);

        	var polypoints = [];
        	
        	polypoints.push(churchpoint);         	
        	polypoints.push(new GLatLng(51.313406841294395, -0.00583648681640625));
        	polypoints.push(new GLatLng(51.31394333147932, -0.004355907440185547));
        	polypoints.push(new GLatLng(51.31342025362547, -0.004162788391113281));
        	polypoints.push(new GLatLng(51.31268256959361, -0.0034224987030029297));
        	polypoints.push(new GLatLng(51.311978405589905, -0.00446319580078125));
        	polypoints.push(new GLatLng(51.31088525339314, -0.00516057014465332));
        	polypoints.push(new GLatLng(51.309825608614695, -0.0052678585052490234));
        	polypoints.push(new GLatLng(51.30873911197834, -0.005911588668823242));
        	polypoints.push(new GLatLng(51.30827633708044, -0.0064373016357421875));
        	polypoints.push(new GLatLng(51.30774648762619, -0.007531642913818359));
        	polypoints.push(new GLatLng(51.307169682531196, -0.009366273880004882));
        	polypoints.push(new GLatLng(51.307089197522934, -0.009806156158447265));
        	polypoints.push(new GLatLng(51.30647884828305, -0.011265277862548828));
        	polypoints.push(new GLatLng(51.306525798512766, -0.011930465698242187));
        	polypoints.push(new GLatLng(51.30727699565593, -0.013282299041748047));
        	polypoints.push(new GLatLng(51.30767941763878, -0.014998912811279297));
        	polypoints.push(new GLatLng(51.307894041253355, -0.015578269958496093));
        	polypoints.push(new GLatLng(51.30793428306935, -0.01617908477783203));
        	polypoints.push(new GLatLng(51.308135491619936, -0.017445087432861328));
        	polypoints.push(new GLatLng(51.307411136709, -0.018024444580078125));
        	polypoints.push(new GLatLng(51.307384308529755, -0.019118785858154297));
        	polypoints.push(new GLatLng(51.3070221265749, -0.022079944610595703));
        	polypoints.push(new GLatLng(51.3065526271939, -0.02195119857788086));
        	polypoints.push(new GLatLng(51.305814832747714, -0.022101402282714844));
        	polypoints.push(new GLatLng(51.30452701765801, -0.025641918182373047));
        	polypoints.push(new GLatLng(51.3036550390071, -0.026307106018066406));
        	polypoints.push(new GLatLng(51.30340014981084, -0.02710103988647461));
        	polypoints.push(new GLatLng(51.303520886975015, -0.029418468475341797));
        	polypoints.push(new GLatLng(51.304057492750744, -0.03186464309692383));
        	polypoints.push(new GLatLng(51.30256839627179, -0.03094196319580078));
        	polypoints.push(new GLatLng(51.30144148033545, -0.030813217163085937));
        	polypoints.push(new GLatLng(51.3006901876734, -0.031435489654541016));
        	polypoints.push(new GLatLng(51.30051577868962, -0.03188610076904297));
        	polypoints.push(new GLatLng(51.30089142798508, -0.03334522247314453));
        	polypoints.push(new GLatLng(51.30079751594944, -0.036242008209228516));
        	polypoints.push(new GLatLng(51.30048894647945, -0.04014730453491211));
        	polypoints.push(new GLatLng(51.3006901876734, -0.04117727279663086));
        	polypoints.push(new GLatLng(51.29997913150607, -0.04332304000854492));
        	polypoints.push(new GLatLng(51.299294897247755, -0.04643440246582031));
        	polypoints.push(new GLatLng(51.29824840159529, -0.05021095275878906));
        	polypoints.push(receptionpoint); 
        	
              	map.addOverlay(new GPolyline(polypoints));	
      	}

}



//]]>
