// 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    -->
	
		 
		 	 	 
		 // Catacombs
	var point = new GPoint(13.044473,47.796451);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/salzburg-st-peters-cemetary-and-catacombs.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/austria/images/salzburg/thumbs/cemetary-chapel-hj.jpg'><b>Catacombs</b></a><br><br></div>","");
	
		 // Cathedral
	var point = new GPoint(13.046672,47.797892);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/salzburg-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/austria/images/salzburg/thumbs/salz1_045.jpg'><b>Salzburg Cathedral</b></a><br><br>Hailed by some as the most perfect Renaissance building in the Germanic countries, Salzburg's cathedral has a marble facade and twin symmetrical towers. Inside is the font in which Mozart was baptized.</div>","Salzburg Cathedral");
	
		 	 
		 // Collegiate Church
	var point = new GPoint(13.043014,47.799132);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/salzburg-kollegienkirche-collegiate-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/austria/images/salzburg/thumbs/kollegienkirche-collegiate-church-c-alfred-molon.jpg'><b>Collegiate Church</b></a><br><br>The Collegiate Church is Fischer von Erlach's greatest and largest Salzburg church and one of the most celebrated Baroque churches in all of Austria (and that\'s saying a lot). The Kollegienkirche was built between 1694 and 1707 for the local Benedictine university founded in 1622. </div>","Collegiate Church");
	
		 // Franciscan Church
	var point = new GPoint(13.044151,47.79818);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/salzburg-franziskanerkirche-franciscan-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/austria/images/salzburg/thumbs/franciscan-church-ceiling-cc-andreakkk.jpg'><b>Franciscan Church</b></a><br><br>Built in the 13th century over an earlier church, this small edifice next to the cathedral is interesting for its venerable age and mixture of styles. The semicircular choir features elaborate vaults and nine chapels. </div>","Franciscan Church");
		 	 	 	 
		 // Holy Trinity Church
	var point = new GPoint(13.044688,47.803186);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/salzburg-holy-trinity-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/austria/images/salzburg/thumbs/dreifaltigkeitskirche-holy-trinity-church-c-alfred-molon.jpg'><b>Holy Trinity Church</b></a><br><br>Constructed in 1694 by the famous Baroque master builder Fischer von Erlach, Holy Trinity Church has a sweeping facade that is among the most excellent examples of the unexaggerated Baroque style.</div>","Holy Trinity Church");
	
		 // Loreto Church - approximate
	var point = new GPoint(13.046844,47.805264);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/salzburg-maria-loreto-convent-christ-child.htm'><b>Loreto Church</b></a><br><br>This small 17th-century church near Mirabell Gardens contains a sacred ivory statue of the Christ Child known for its miraculous healing powers.</div>","Loreto Church");
	
		 // Nonnberg Convent
	var point = new GPoint(13.051372,47.796054);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/salzburg-nonnberg-convent.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/austria/images/salzburg/thumbs/nonnberg-tower-mountains-cc-lloydi.jpg'><b>Nonnberg Convent</b></a><br><br>Primarily famous as the convent of Maria, both in real life and in The Sound of Music, Nonnberg is also one of the oldest nunneries in the world and boasts 10th-century Romanesque frescoes.</div>","Nonnberg Convent");
		 
		 // St. Michael's Church
	var point = new GPoint(13.04811,47.798908);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/salzburg-michaelskirche-st-michael-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>St. Michael\'s Church</b></a><br><br></div>","St. Michael\'s Church");
		 
		 // St. Peter's Cemetery
	var point = new GPoint(13.045117,47.796617);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/salzburg-st-peters-cemetary-and-catacombs.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>St. Peter\'s Cemetery</b></a><br><br></div>","St. Peter\'s Cemetery");
	
		 // St. Peter's Church
	var point = new GPoint(13.044902,47.796912);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/austria/salzburg-stiftkirche-st-peter.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>St. Peter\'s Abbey Church</b></a><br><br></div>","St. Peter\'s Church");
	
		
	// 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;
    }

	//]]>
