// 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    -->
		 

		 	
			// Lutheran Cathedral
	var point = new GPoint(24.952419, 60.1704);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/finland/helsinki-lutheran-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/finland/images/thumbs/helsinki-cathedral-cc-hoolypics.jpg'><b>Lutheran Cathedral</b></a><br><br>This striking neoclassical cathedral dominates Helsinki's city center. Completed in 1852, it was called St. Nicholas' Church until Finnish independence in 1917.</div>","Lutheran Cathedral");
	 
		 // Temppeliaukiokirkko
	var point = new GPoint(24.925404, 60.173036);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/finland/helsinki-rock-church-temppeliaukio.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/finland/images/thumbs/helsinki-rock-interior-cc-archigeek.jpg'><b>Temppeliaukiokirkko</b></a><br><br>This spectacular sight is an underground church built inside a massive block of natural granite. Completed in 1969, it is a popular venue for classical concerts.</div>","Temppeliaukio kirkko");
	
		 // Uspenski Cathedral
	var point = new GPoint(24.960122, 60.168553);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/finland/uspenski-orthodox-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/finland/images/thumbs/helsinki-uspenski-orthodox-cathedral-cc-ja-macd.jpg'><b>Uspenski Cathedral</b></a><br><br>The largest Orthodox church in western Europe, Uspenski has a striking red-brick exterior and beautiful icons inside. Built in 1868, it is a cathedral of the Finnish Orthodox Church.</div>","Uspenski 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;
    }

	//]]>
