// 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    -->
	
		 
		 
		 // Augsburg Cathedral
	var point = new GPoint(10.896721,48.372779);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/augsburg-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/images/thumbnails50/augsburg-cathedral-cc-stefanb.jpg'><b>Augsburg Cathedral (Dom St. Maria)</b></a><br><br>Augsburg's historic cathedral has the distinction of containing the oldest stained-glass windows in the world (12th century). The cathedral was begun in 944 AD.</div>","Augsburg Cathedral");	 
		 	
	 // St Anne
	var point = new GPoint(10.895176,48.367811);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/augsburg-st-anne-church.htm'><b>St. Anne\'s Church</b></a><br><br>Founded in 1321 by Carmelite monks, this fine Gothic church went on play a role in the history of the Reformation. It is notable for its fine works of Gothic and Renaissance art and its Luther museum.</div>","St. Anne\'s Church");
	
		 // St. Ulrich and St. Afra Churches 
	var point = new GPoint(10.900272,48.361346);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/germany/augsburg-st-ulrich-st-afra-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/germany/images/thumbnails50/augsburg-basilica-st-ulrich-st-afra-wc-gfdl-75.jpg'><b>St. Ulrich and St. Afra Churches </b></a><br><br>These churches form the most attractive ecclesiastical compound in Augsburg. Constructed around 1500 over a Roman temple, one is Catholic and the other is Protestant.</div>","St. Ulrich and St. Afra Churches ");
	
	
	
	// 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;
    }

	//]]>
