// 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    -->
	
		 	 
		 // Cathedral Notre-Dame
	var point = new GPoint(1.094749,49.44023);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/rouen-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/rouen/thumbs/facade-cc-pnikosis.jpg'><b>rouen Cathedral</b></a><br><br>Rouen Cathedral has many fine features, but is especially famous for two things: the highest spire in France, a cast-iron tour-de-force erected in 1876; and Claude Monet\'s many paintings of its facade.</div>","Cathedral Notre-Dame");
	

		 // Eglise Ste-Jeanne
	var point = new GPoint(1.088322,49.442998);
	createMarker(point,"<div id=bubble><b>Eglise Ste-Jeanne</b><br><br>A modern church dedicated to St. Joan of Arc, who was burned at the stake in Rouen.</div>","Eglise Ste-Jeanne");
	
		 // Eglise St-Maclou
	var point = new GPoint(1.098367,49.439752);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/rouen-st-maclou-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/rouen/thumbs/maclou-ext-cc-mannyyy.jpg'><b>Eglise St-Maclou</b></a><br><br>Just across this street from the cathedral and surrounded by half-timbered buildings is this fine Gothic church, rebuilt 1437-1521. It is best known for its finely carved wooden doors from the 16th century.</div>","Eglise St-Maclou");
	
		 // Eglise St-Ouen
	var point = new GPoint(1.09966,49.442572);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/rouen-eglise-st-ouen.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/rouen/thumbs/tower-cc-sarutora.jpg'><b>Eglise St-Ouen</b></a><br><br>Originally the church of a Benedictine abbey, St-Ouen is larger than the cathedral and more harmonious in its Gothic architecture. Joan of Arc was sentenced to death in its cemetary in 1431.</div>","Eglise St-Ouen");
	
		 

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

	//]]>