// 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    -->
	 	
	 // Aldersgate Flame
	var point = new GPoint(-0.096264,51.517675);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-aldersgate-conversion-site.htm'><b>Aldersgate Flame</b></a><br><br>This monument marking the site where John Wesley experienced an evangelical conversion in 1738 is inscribed with his own account of the experience.</div>","Aldersgate Flame");
	
		 // All Hallows by the Tower
	var point = new GPoint(-0.079393,51.509357);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-all-hallows-by-the-tower.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>All Hallows by the Tower</b></a><br><br>Founded in 675 as part of an abbey, All Hallows by the Tower was built over a Roman building. Its proximity to the Tower of London provided it with many royal and historic assocations over the centuries and it remains an active parish church today.</div>","All Hallows by the Tower");
	
                 // Baha'i Centre
        var point = new GPoint(-0.169222, 51.501558);
        createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Baha\'i Centre</b></a><br><br></div>","Baha\'i Centre");

                 // Bevis Marks Synagogue
        var point = new GPoint(-0.079136, 51.514258);
        createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-bevis-marks-synagogue.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/london-bevis-marks-synagogue-75.jpg'><b>Bevis Marks Synagogue</b></a><br><br>The Bevis Marks Synagogue was established in 1701 and is the oldest still in use in Britain. The interiors are lavish and detailed and contain all of the orignal furnishings.</div>","Bevis Marks Synagogue");

                 // British Museum
        var point = new GPoint(-0.127003, 51.519467);
        createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/sacred-sites/satellite-photos/WebPhotosProFiles/custom/london-british-museum-1551ft-51-31-09n-0-07-36w.jpg'><b>British Museum</b><br><br>One of the largest and best museums in the world, the British Museum's displays include many important religious artifacts, such as early biblical manuscripts, Buddhist statues and pieces of the Parthenon.</div>","British Museum");

                 // Bunhill Fields
        var point = new GPoint(-0.088389, 51.523558);
        createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-bunhill-fields.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/london-bunill-fields-mike-reed-75.jpg'><b>Bunhill Fields</b></a><br><br>A Nonconformist (i.e. non-Anglican Christian) cemetery, Bunhill Fields is the burial place of John Bunyan, Daniel Defoe, William Blake, and Susanna Wesley.</div>","Bunhill Fields");


                 // Christ Church Spitalfields
        var point = new GPoint(-0.073722, 51.519119);
        createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-christ-church-spitalfields.htm'><img style='border-color:#666666' border='0' hspace='0' align='left' src=''><b>Christ Church Spitalfields</b></a><br><br>18th-century church designed by Nicholas Hawksmoor.</div>","Christ Church Spitalfields");

                 // Freemasons Hall
        var point = new GPoint(-0.120783, 51.515028);
        createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/london-freemasons-lodge-arms-75.jpg'><b>Freemasons Hall and Museum of Freemasonry</b><br><br>Headquarters of the United Grand Lodge of England. It includes the Library and Museum of Freemasonry as well as the Grand Temple, which is often used for concerts.</div>","Freemasons Hall");

	 
		 // London Jamme Masjid
	var point = new GPoint(-0.072216, 51.519699);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-jamme-masjid.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/London_Jamme_Masjid-nc-euboia.jpg'><b>London Jamme Masjid</b></a><br><br>This building has an interesting life story that reflects the history of immigration into the area. It became a mosque for the local Bangladeshi community in 1976.</div>","London Jamme Masjid");
		 
		 // Jewish Museum
	var point = new GPoint(-0.144627, 51.537304);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-jewish-museum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/london/jewish-museum-c_1992_10.jpg'><b>Jewish Museum</b></a><br><br>The Jewish Museum of London tells a comprehensive history of the Jews in London from Norman times, though the bulk of the exhibits date from after the end of the 17th century, when Cromwell repealed the laws against Jewish settlement. </div>","Jewish Museum");
		 
		 // Mill Hill Synagogue
	var point = new GPoint(-0.246739, 51.613705);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-mill-hill-synagogue.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/london-mill-hill-synagogue-officsite.jpg'><b>Mill Hill Synagogue</b></a><br><br>Mill Hill Synagogue is the home of the Orthodox Jewish community in NW London. Its current membership is around 1,200 people. </div>","Mill Hill Synagogue");
		 
		 // Neasden Temple
	var point = new GPoint(-0.260833, 51.547500);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-neasden-temple.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/london-neasden-temple5-cc-link-colingregorypalmernet.jpg'><b>Neasden Temple (Shri Swaminarayan Mandir)</b></a><br><br>The Shri Swaminarayan Mandir is a beautiful, traditional Hindu temple completed on the outskirts of London in 1995. Full of intricate carvings of Hindu deities, created entirely in India, the temple also includes a permanent exhibition on India and Hinduism.</div>","Neasden Temple");
	
                 // Regent's Park Mosque
        var point = new GPoint(-0.165153, 51.528947);
        createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-regents-park-mosque.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/london/thumbs/central-mosque-75.jpg'><b>London Central Mosque</b></a><br><br>A 20th-century mosque built in recognition of the British Empire's vast Muslim population, the London Central Mosque is the main mosque of the UK.</div>","Regent's Park Mosque");

                 // Southwark Cathedral
        var point = new GPoint(-0.089567, 51.506133);
        createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-southwark-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/sacred-sites/satellite-photos/WebPhotosProFiles/custom/london-southwark-cathedral-357ft-51-30-22n-0-05-22w.jpg'><b>Southwark Cathedral</b></a><br><br>This 15th-century cathedral was the place of worship for William Shakespeare and Geoffrey Chaucer. A Shakespeare birthday service is held here every year. </div>","Southwark Cathedral");	 
								
		 // St Bart the Great
	var point = new GPoint(-0.099574,51.518905);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>St. Bartholomew the Great</b></a><br><br></div>","");
	
	 
		 // St. Bride's Church
	var point = new GPoint(-0.105727, 51.513797);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-st-brides-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/london-st-brides-steeple-sunset-cc-angryhaggis.jpg'><b>St. Bride's Church</b></a><br><br>Known as the the church of the press due to its location on Fleet Street, St. Bride's Church is a remarkable historical and religious landmark.</div>","St. Bride's Church");
	
	 
		 // St. Giles Cripplegate
	var point = new GPoint(-0.09396, 51.518721);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-st-giles-cripplegate.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>St. Giles Cripplegate</b></a><br><br></div>","St. Giles Cripplegate");
	
                 // St. Paul's Cathedral
        var point = new GPoint(-0.098276, 51.513737);
        createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-st-pauls-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://static.flickr.com/50/130802902_448270d91f_s.jpg'><b>St. Paul's Cathedral</b></a><br><br>A huge cathedral beautifully designed by Sir Christopher Wren. </div>","St. Paul's Cathedral");


                 // Temple Church
        var point = new GPoint(-0.110442, 51.513186);
        createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-temple-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/temple-church-photos/WebPhotosProFiles/custom/eos-166.jpg'><b>Temple Church</b></a><br><br>This 12th-century Norman church, famed for its rare round shape and its recent mention in the Da Vinci Code, was built by the Knights Templar and contains several fascinating details.<br><br><a href='http://www.sacred-destinations.com/england/london-temple-church.htm'>Article</a> | <a href='http://www.sacred-destinations.com/england/temple-church-photos/index.html'>Photo Gallery</a></div>","Temple Church");

                 // Temple of Mithras
        var point = new GPoint(-0.091842, 51.512336);
        createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-temple-of-mithras.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Temple of Mithras</b></a><br><br>This 3rd-century AD temple to the Roman god Mithras was discovered by accident during construction work in 1957. The temple foundations have been moved to an outdoor location down the road from where they were found, where the public can view them anytime.</div>","Temple of Mithras");


                 // Westminster Abbey
        var point = new GPoint(-0.12748, 51.499306);
        createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-westminster-abbey.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/england/images/thumbnails50/westminster-abbey-towers-hj.jpg'><b>Westminster Abbey</b></a><br><br>This former abbey church is the national church of Britain, used for coronations and filled with important tombs and monuments.</div>","Westminster Abbey");


                 // Westminster Cathedral
        var point = new GPoint(-0.139783, 51.496100);
        createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-westminster-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Westminster Cathedral</b></a><br><br>Not to be confused with the more famous (and Anglican) Westminster Abbey a few doors down, Westminster Cathedral is the headquarters of the Roman Catholic Church in Britain. Completed in 1903, it has a lovely and unique Byzantine design.</div>","Westminster Cathedral");

                 // Wesley's Chapel
        var point = new GPoint(-0.086539,51.523745);
        createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/england/london-wesley-chapel.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Wesley's Chapel </b></a><br><br>This important site includes John Wesley's chapel, house and tomb plus the Museum of Methodism. The Chapel opened on November 1, 1778. Wesley's house was completed in 1779, and he died there on March 2, 1791.</div>","Wesley's Chapel");

                 // Whitefield's Tabernacle
        var point = new GPoint(-0.085781, 51.524467);
        createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Site of Whitefield's Tabernacle</b></a><br><br>In 1741, the followers of Calvinist preacher Whitefield built a wooden tabernacle on this site. When Whitefield died in the USA in 1770, John Wesley preached his London funeral sermon here. Today the site is used as a school. </div>","Whitefield's Tabernacle");



        // 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;
    }

        //]]>