// 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    -->
	
		 // Ritz Hotel
	var point = new GPoint(2.328128, 48.867794);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/ritz-hotel-75.jpg'><b>Ritz Hotel</b><br><br>Here Robert Langdon wakes in the middle of the night to the news that the curator of the Louvre has been murdered in mysterious circumstances. Press junkets for The Da Vinci Code movie took place here, too.</div>","Ritz Hotel"); 
	
	 // Louvre - Mona Lisa
	var point = new GPoint(2.332535, 48.860607);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/sacred-sites/images/da-vinci-movie/mona-lisa-75.jpg'><b>Louvre - Denon Wing and the Mona Lisa</b><br><br>Louvre curator Jacques Sauniere is found murdered in the Denon Wing of the museum. Soon, Langdon and cryptologist Sophie Neveu are on a race against time to decipher a series of clues, one of which centers on Da Vinci's famous Mona Lisa.</div>","Louvre - Mona Lisa");
	
		 
		 // Saint-Sulpice Church
	var point = new GPoint(2.334847, 48.850903);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Eglise Saint-Sulpice</b></a><br><br>Here, monk-assassin Silas searches along the Rose Line for a keystone believed to unlock the secret of the Holy Grail.</div>","Saint-Sulpice");
	
	
	 // Bois de Bologne
	var point = new GPoint(2.262, 48.858161);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Bois de Bologne</b><br><br>In a stolen taxi, Robert and Sophie make a fast getaway  through this seedy part of Paris to the fictional Depository Bank of Zurich.</div>","Bois de Bologne");
	
		 // Louvre - Pyramid
	var point = new GPoint(2.337513, 48.861094);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/paris-louvre-inverted-pyramid.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/tom-louvre-c-sony-75.jpg'><b>Louvre - The Inverted Pyramid</b></a><br><br>The novel ends here, with Robert Langdon reflecting on all that he has learned about the Grail and the Sacred Feminine.</div>","Louvre - Inverted Pyramid");
	
	
	
	// 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;
    }

	//]]>
