// 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
	var point = new GPoint(11.393305,47.269482);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/innsbruck-dom-cathedral-st-james.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Innsbruck Cathedral</b></a><br><br>Based on designs by the Baroque architect Johann Jakob Herkommer, the Domkirche was rebuilt between 1717 and 1724. The cathedral is roofed with domes and features a lavish Baroque interior. The main attraction is the high altar painting of Maria Hilf (Mary of Succor) by Lucas Cranach the Elder. </div>","Cathedral");
		 
		 // Hofkirche
	var point = new GPoint(11.395558,47.268885);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/innsbruck-hofkirche.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Hofkirche (Court Church)</b></a><br><br>The Hofkirche in Innsbruck is a Gothic royal court church and mausoleum built in 1553. It contains the ornate black marble tomb of Emperor Maximilian I (although his remains are elsewhere), which is considered a great feat of German Renaissance sculpture. </div>","Hofkirche");
	
	
		
	// 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;
    }

	//]]>