// 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    -->
	
	
		 // Abbaye aux Dames
	var point = new GPoint(-0.353006,49.186349);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/caen-abbaye-aux-dames.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/caen/thumbs/view-cc-yeyo-pepe.jpg'><b>Abbaye aux Dames</b></a><br><br>The Ladies' Abbey was founded by Queen Mathilda, the wife of William the Conqueror, in 1063. Its church, La Trinité, is a fine example of Romanesque architecture.</div>","Abbaye aux Dames");
	
		 // Abbaye aux Hommes
	var point = new GPoint(-0.373026,49.181795);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/caen-abbaye-aux-hommes.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/caen/thumbs/church-cc-duncancourts.jpg'><b>Abbaye aux Hommes</b></a><br><br>The Abbaye-aux-Hommes (Men's Abbey) was founded by William the Conquerer in the 11th century. Its church, the Romanesque Église St-Etienne, is the largest and most impressive church in Caen.</div>","Abbaye aux Hommes");
	
		 // &Eacute;glise St-Etienne-le-Vieux
	var point = new GPoint(-0.369201,49.181242);
	createMarker(point,"<div id=bubble><b>&Eacute;glise St-Etienne-le-Vieux</b><br><br></div>","&Eacute;glise St-Etienne-le-Vieux");
	
		 // &Eacute;glise St-Jean
	var point = new GPoint(-0.357801,49.180616);
	createMarker(point,"<div id=bubble><b>&Eacute;glise St-Jean</b><br><br></div>","&Eacute;glise St-Jean");
	
		 // &Eacute;glise St-Pierre
	var point = new GPoint(-0.36088,49.184032);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/caen-eglise-st-pierre.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/caen/thumbs/ext-cc-yeyo-pepe.jpg'><b>&Eacute;glise St-Pierre</b></a><br><br>Much loved by the citizens of Caen, St. Peter's Church is a splendid example of the transition between Gothic and Renaissance forms. It was first built in the 13th and 14th centuries and expanded in the early 16th century.</div>","&Eacute;glise St-Pierre");
	
		 // &Eacute;glise St-Saveur
	var point = new GPoint(-0.364791,49.183074);
	createMarker(point,"<div id=bubble><b>&Eacute;glise St-Saveur</b><br><br></div>","&Eacute;glise St-Saveur");
	
	
		 // M&eacute;morial de Caen
	var point = new GPoint(-0.385981,49.198111);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/france/caen-memorial-for-peace.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/france/images/caen/thumbs/museum-for-peace-french-resistance-wall-wwii-wc-gfdl.jpg'><b>M&eacute;morial de Caen</b></a><br><br>Established in 1988, the Caen Memorial is regarded as the best World War II museum in France. It focuses on events leading up to and after D-Day (Jour J) but also includes exhibits on other failures and triumphs of peace, such as September 11th and the fall of the Berlin Wall.</div>","M&eacute;morial de Caen");
	
	// 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;
    }

	//]]>
