// 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    -->
	

		 // Augustinerkirche
	var point = new GPoint(16.367548,48.205556);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/vienna-augustinerkirche.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/austria/images/vienna/thumbnails/augustinerkirche-steeple-cc-dugspr.jpg'><b>Augustinerkirche</b></a><br><br>Originally built in the 14th century as the parish church of the imperial court with a harmonious Gothic interior added in the 18th century. Several royal weddings took place here and Hapsburg hearts are preserved in urns.</div>","Augustinerkirche");
	
		 // Judenplatz
	var point = new GPoint(16.369522,48.211662);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/vienna-museum-judenplatz.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/austria/images/vienna/thumbnails/judenplatz-holocaust-memorial.jpg'><b>Judenplatz</b></a><br><br>This was the heart of the Jewish ghetto from the 13th to the 15th centuries. It is now home to several important Jewish sights, including a Holocaust memorial, a new Jewish museum, and synagogue excavations.</div>","Judenplatz");
	
		 // Karlskirche
	var point = new GPoint(16.371646,48.198205);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/vienna-karlskirche.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/austria/images/vienna/thumbnails/karlskirche-cc-luxpim.jpg'><b>Karlskirche</b></a><br><br>One of Vienna's greatest buildings, commissioned by the emperor in 1715 in thanks for an answered prayer. The splendid Baroque edifice was intended to glorify the Habsburg Empire.</div>","Karlskirche");
	
		 // Peterskirche
	var point = new GPoint(16.369908,48.209381);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/vienna-peterskirche.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/austria/images/vienna/thumbnails/peterskirche-nc.jpg'><b>Peterskirche</b></a><br><br>The Peterskirche is the second-oldest church in Vienna and the city's finest example of Baroque church architecture. The site has been a place of worship since as ealry as the 4th century.</div>","Peterskirche");
	
		 // Stephansdom
	var point = new GPoint(16.372644,48.208488);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/vienna-stephansdom.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/austria/images/vienna/thumbnails/stephansdom-roof-cc-cilest-flickr.jpg'><b>Stephansdom</b></a><br><br>Vienna's cathedral has survived many wars and is now a symbol of the city's freedom. The Gothic cathedral was first built in 1147 and its most recognizable characteristic, the diamond-patterned tile roof, was added in 1952.</div>","Stephansdom");
	
	
		
	// 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;
    }

	//]]>