// Java Document

 //<![CDATA[

 // Begin Javascript
var gmarkers = [];
var htmls = [];
function myclick(i) {
gmarkers[i].openInfoWindowHtml(htmls[i]);
}
    function onLoad() {
      // Map Overlays
      //

          // This function picks up the click and opens the corresponding info window
// Creates one a small marker at the given point
function createMarker(point, attributeHTMLString, name) {
  var marker = new GMarker(point, icon);
  map.addOverlay(marker);
  GEvent.addListener(marker, "click", function() {
    marker.openInfoWindowHtml(attributeHTMLString);
  });
  // save the info we need to use later for the sidebar
  gmarkers[i] = marker;
  htmls[i] = attributeHTMLString;
  // add a line to the sidebar html
  sidebar_html += '<a href="javascript:myclick(' + i + ')">' + name + '</a><br>';
        i++;
        return marker;
}



      // Create small marker icon
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_blue.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);

<!--    begin pulling data    -->

          	 
		 // All Souls College
	var point = new GPoint(-1.253128,51.753523);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/oxford-all-souls.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/oxford-all-souls-pictures/thumbs/6-29_167.jpg'><b>All Souls College</b></a><br><br>Founded in 1432, this college consists entirely of post-doctorate fellows. Its lovely chapel features a large stone-carved screen behind the altar.</div>","All Souls College");
		 	 
		 // Bodleian Library
	var point = new GPoint(-1.254598,51.754121);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/oxford-bodleian-library.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/oxford-75.jpg'><b>Bodleian Library</b></a><br><br>This world-famous university library houses several important religious manuscripts and the beautiful, fan-vaulted Divinity School.</div>","Bodleian Library");
	
		 // Brasenose College
	var point = new GPoint(-1.254668,51.753055);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/oxford-brasenose-college.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/oxford-brasenose-photos/thumbs/h-356.jpg'><b>Brasenose College</b></a><br><br>Founded in 1509 and named for an antique brass knocker of a lion nose, Brasenose consists of three attractive quads just off Radcliffe Square. Its 17th-century chapel has a splendid painted fan vault.</div>","Brasenose College");
	
		 // Christ Church Cathedral
	var point = new GPoint(-1.255349,51.750102);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/oxford-christ-church-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/oxford-chch-cathedral.jpg'><b>Christ Church Cathedral</b></a><br><br>This small but impressive cathedral is also the chapel of Christ Church College, the most prestigious college in Oxford. It incorporates the ancient shrine of Oxford's patron saint, Frideswide.</div>","Christ Church Cathedral");
		 
		 // Eagle and Child Pub
	var point = new GPoint(-1.260413,51.757096);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/oxford-eagle-and-child.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/oxford-eagle-child.jpg'><b>Eagle and Child Pub</b></a><br><br>It's perhaps rare that a pub has religious significance! But it was here that the beloved Anglican author C.S. Lewis and his Catholic friend J.R.R. Tolkien met to discuss their latest books over a pint. </div>","Eagle and Child");
		 	 	 
		 // Iffley Church
	var point = new GPoint(-1.238309,51.72738);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/oxford-iffley-church-of-st-mary.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Iffley Church</b></a><br><br>Built in 1170 and unusually well-preserved, the Church of St Mary in Iffley is one of the finest examples of Romanesque architecture in England. The west and south door are covered in zig-zag decorations and wonderful figurative carvings. </div>","Iffley Church");

	
	
		 // Magdalen College
	var point = new GPoint(-1.246798,51.752101);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/oxford-magdalen.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/oxford-magdalen-pictures/thumbs/5-4_056.jpg'><b>Magdalen College</b></a><br><br>Known for its beautiful tower, many gargoyles, extensive grounds and associations with C.S. Lewis.</div>","Magdalen College");
	
		 // Martyrs' Memorial
	var point = new GPoint(-1.259083,51.755196);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/oxford-martyrs-memorial.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/oxford-martyrs-memorial-c.jpg'><b>Martyrs Memorial</b></a><br><br>Here a grand memorial spire commemorates the Oxford executions of Thomas Cranmer and other bishops under Bloody Mary, which took place a block away in Broad Street.</div>","");
	
	 	 
		 // Merton College
	var point = new GPoint(-1.252141,51.750899);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/oxford-merton-college.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/oxford-merton-photos/thumbs/d-3958.jpg'><b>Merton College</b></a><br><br>Founded in 1264, Merton College is the oldest college in either Oxford or Cambridge. The large 14th-century chapel has plentiful medieval stained glass.</div>","Merton College");
	
		 // St Giles Church
	var point = new GPoint(-1.260424,51.758995);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/oxford-st-giles-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b></b></a><br><br>This  attractive 12th-century parish church just north of the city center was consecrated by St. Hugh of Lincoln. </div>","St Giles Church");
		 	 
		 // St Peter in the East
	var point = new GPoint(-1.250124,51.753536);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/oxford-st-peter-in-the-east-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>St Peter-in-the-East</b></a><br><br>A fine 12th-century church in the center of Oxford that now functions as the library for St Edmund Hall. It is surrounded by an ancient churchyard, grand old trees and tranquil lawns. The interior is not accessible but the exterior is the best part anyway.</div>","St Peter in the East");
	
		 // St Philip and James
	var point = new GPoint(-1.263782,51.764726);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/oxford-st-philip-and-st-james-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>St Philip and St James Church</b></a><br><br>A lovely 19th-century parish church that today houses the Oxford Centre for Mission Studies. The interior is not accessible without an appointment, but the exterior is well worth a look if you are in the neighborhood.</div>","St Philip and James");
	
		 // University Church of St. Mary
	var point = new GPoint(-1.253654,51.752792);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/oxford-st-mary-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/oxford-st-mary.jpg'><b>University Church of St. Mary</b></a><br><br>The official church of the university, St. Mary's has seen many historic sermons over the centuries and still holds regular services today. Climb the tower for spectacular views of the city.</div>","University Church of St Mary");
	

        // Create small marker icon
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_white.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);




         // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

        //]]>