		//<![CDATA[

		// key for ciccu.org.uk
		var key1 = '<' + 'script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA-v9zQZnJoi5J1S893QF01hRxPK-CtvBlGwOdVNQ2LC7jQ2zikhSDLIhtgDwuBmXTducypyFzLOVEzg" type="text/javascript">'+'<'+'/script>';

		// key for srcf.ucam.org/ciccu
		var key2 = '<' + 'script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA-v9zQZnJoi5J1S893QF01hRMrmNzGfDp_r-SfiIYMvGeQ4_NiRTkfHQBcAwKYiJ3MMaRH1-LO93QqA" type="text/javascript">'+'<'+'/script>';

		if (window.location.host == 'www.srcf.ucam.org') {
			document.write(key2);
		}
		else {
			document.write(key1);
		}

		var map;
		var qsParm = new Array();

		function load() {
			if (GBrowserIsCompatible()) {
				map = new GMap2(document.getElementById("mapcontainer"));
				map.addControl(new GSmallMapControl());

				qs();
				map.setCenter(new GLatLng(52.2058,0.1193), 16);
				goToVenue(qsParm['venue']);
			}
		}

		function qs() {
			var query = window.location.search.substring(1);
			var parms = query.split('&');
			for (var i=0; i<parms.length; i++) {
				var pos = parms[i].indexOf('=');
				if (pos > 0) {
					var key = parms[i].substring(0,pos);
					var val = parms[i].substring(pos+1);
					qsParm[key] = val;
				}
			}
		}

		function goToVenue(venue) {
			if (map != null) {
				var h1 = document.getElementById('h1');
				var lat, lng;
				var venueFound = true;
				var message, title;
				switch (venue) {
					case "stag":
						lat = 52.20505; lng = 0.12149;
						title = "St. Andrew the Great";
						message = "St. Andrew the Great is just next to Cindy's (now Ballare), opposite Christ's College at the east entrance to the Lion Yard shopping centre. There is a taxi rank just outside it.";
						break;
					case "eden":
						lat = 52.2068; lng = 0.1296;
						title = "Eden Chapel";
						message = "Head out of Cambridge down Jesus Lane, turn right at the roundabout then left at the pelican crossing. Eden is on the corner of Fitzroy street which carries on down to the Grafton centre.";
						break;
					case "eurc":
						lat = 52.201206; lng = 0.117471;
						title = "Emmanuel United Reformed Church";
						message = "Emmanuel URC is opposite the entrance to Pembroke College on Trumpington Street.";
						break;
					case "kelseykerridge":
						lat = 52.20075; lng = 0.13097;
						title = "Kelsey Kerridge Sports Centre";
						message = "Hosts the Freshers' Fair. Head out of Cambridge down Regent Street, go diagonally across Parker's Piece (by Pizza Hut) and Kelsey Kerridge is at the other side next to Parkside Pools.";
						break;
					case "ht":
						lat = 52.205805; lng = 0.119969;
						title = "Holy Trinity Church";
						message = "Holy Trinity Church is on the corner of Sidney Street and Market Street, opposite WHSmith.";
						break;
					case "hmh":
						lat = 52.205805; lng = 0.119969;
						title = "Henry Martyn Hall";
						message = "Hosts many of CICCU's international activities. The Henry Martyn Hall is on the corner of Sidney Street and Market Street, opposite WHSmith. Go through the short black metal gate.";
						break;
					case "sidgwick":
						lat = 52.2007; lng = 0.1102;
						title = "Meade Room (Economics), Sidgwick Site";
						message = "Hosts the Sidgwick@one event two Tuesday lunch times per term. These events answer different apologetic questions. The Sidgwick Site is on Sidgwick Avenue.";
						break;
					case "newmuseums":
						lat = 52.20365; lng = 0.11897;
						title = "Lecture Theatre A, the Arts School, New Museums Site";
						message = "Hosts the Downing@one event two Tuesday lunch times per term. These events answer different apologetic questions. The New Museums Site is on Pembroke/Downing Street.";
						break;
					case "stab":
						lat = 52.202767; lng = 0.123918;
						title = "St. Andrew's St. Baptist Church";
						message = "St. Andrew's St. Baptist Church is just south of the town centre, next to Spoons.";
						break;
					case "queens":
						lat = 52.2019652; lng = 0.1150131;
						title = "Fitzpatrick Hall, Queens' College";
						message = "To get to the Fitzpatrick Hall, the best place to enter Queens' is from the entrance on Silver Street, just past the bridge over the Cam, slightly down the road and opposite the Anchor pub. From there, follow the signs to the Fitzpatrick Hall.";
						break;
					case "babbage":
						lat = 52.2034644; lng = 0.1198625;
						title = "Babbage Lecture Theatre, New Museums Site";
						message = "You can find the venue by proceeding straight ahead through the entrance off Pembroke Street (opposite Tennis Court Road), past the whale skeleton on your right and then up the stairs in front of you. The lecture theatre entrance is then on your left."
						break;
					case "stmarys":
						lat = 52.205298; lng = 0.118033;
						title = "Great St. Mary&#39;s Church";
						message = "Great St. Mary&#39;s Church is located on King&#39;s Parade - opposite the Senate House."
						break;

					default:
						venueFound = false;
						lat = 52.2058; lng = 0.1193;
						title = "Locations of CICCU events";
						break;
				}
				h1.innerHTML = title;

				map.clearOverlays();
				var point = new GLatLng(lat, lng);
				map.panTo(point);

				if (venueFound)
				{
					var marker = new GMarker(point);
					map.addOverlay(marker);
					marker.openInfoWindowHtml(
						'<h3>' + title + '</h3><p class="mapmessage">' + message + '</p>',
						{maxWidth:400}
					);
				}
			}
		}

		//]]>
