// 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    -->
	
		 		 
		 // Gamla Uppsala
	var point = new GPoint(17.626963, 59.897957);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/sweden/gamla-uppsala.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/sweden/images/thumbs/gamla-uppsala-church-cc-lafalott-75.jpg'><b>Gamla Uppsala</b></a><br><br>Before the arrival of Christianity, this was one of the most important sacred sites in Scandinavia, with a large temple, human sacrifices, and fiery royal funerals. The first Swedish cathedral was built over the pagan temple in the 11th century.</div>","Gamla Uppsala");
	 
		 // Uppsala Cathedral
	var point = new GPoint(17.633089, 59.8582);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/sweden/uppsala-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/sweden/images/thumbs/uppsala-cathedral-cc-gunnar-wrobel.jpg'><b>Uppsala Cathedral</b></a><br><br>The Domkyrka (Cathedral) of Uppsala is the largest cathedral in all of Scandinavia. The twin-spired, rose-hued Gothic structure stands nearly 400 feet tall and boasts an impressive Gothic interior. Inside are the relics of St. Erik, several notable tombs, and a small museum of ecclesiastical treasures.</div>","Uppsala Cathedral");
	
			
	// 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;
    }

	//]]>