// 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(18.110222,42.639894);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/croatia/dubrovnik-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/croatia/images/dubrovnik/thumbs/churches-cc-lawrence-op.jpg'><b>Cathedral</b></a><br><br>The Cathedral of the Assumption is an imposing baroque structure built after the 1667 earthquake. Inside are a number of important paintings (including one by Tatian) and an extensive treasury.</div>","Cathedral");
	
		 // Church of St. Blaise
	var point = new GPoint(18.110136,42.640727);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/croatia/dubrovnik-st-blaise-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/croatia/images/dubrovnik/thumbs/blaise-night-cc-lawrence-op.jpg'><b>Church of St. Blaise</b></a><br><br>This large church near the cathedral is dedicated to Dubrovnik's patron saint (who also protects against sore throats). It was rebuilt in a baroque style in 1714 after the 14th-century original succumbed to earthquake and fire.</div>","Church of St. Blaise");
	
		 // Dominican Monastery
	var point = new GPoint(18.11094,42.641753);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/croatia/dubrovnik-dominican-monastery.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/croatia/images/dubrovnik/thumbs/dominican-monks-cc-lawrence-op.jpg'><b>Dominican Monastery</b></a><br><br>Dubrovnik's 14th-century Dominican Monastery features a lovely Gothic cloister, a working medieval well in tranquil gardens, a medieval priory church and a museum of religious artwork.</div>","Dominican Monastery");
	
		 // Franciscan Monastery
	var point = new GPoint(18.107604,42.641812);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/croatia/dubrovnik-franciscan-monastery.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/croatia/images/dubrovnik/thumbs/franciscan-cloister-cc-redandgray.jpg'><b>Franciscan Monastery</b></a><br><br>The highlights of this peaceful monastery are the Romanesque cloisters with carved capitals, the Franciscan Museum, and what claims to be the oldest working pharmacy in the world.</div>","Franciscan Monastery");
	
	
		 // Rector's Palace
	var point = new GPoint(18.11056,42.64023);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://farm2.static.flickr.com/1158/1359600935_073aa0aedb_s.jpg'><b>Rector's Palace</b><br><br>The historic meeting place of the city government features some very fine architecture.</div>","Rector's Palace");
	
	
	// 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;
    }

	//]]>