// 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    -->
		 
		 // Bishop's Palace
	var point = new GPoint(19.936162,50.055799);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/poland/krakow-archdiocesan-museum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/poland/images/krakow/thumbs/entrance-cc-szczur.jpg'><b>Bishop\'s Palace</b></a><br><br>This is a must-see for fans of the late Pope John Paul II, who lived here as the Archbishop of Krakow until his elevation to pope in 1978. Inside is the Archdiocesan Museum, which also centers around the Pope\'s legacy.</div>","Bishop\'s Palace");
	
			 // Church of Peter and Paul
	var point = new GPoint(19.93885,50.056929);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/poland/krakow-st-peter-and-paul-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/poland/images/krakow/thumbs/krakow-st-peter-and-paul-church-wc-gfdl.jpg'><b>Church of Peter and Paul</b></a><br><br>Established by the Jesuits in the 17th century, the Kosciól swietego Piotra i Pawla features a splendid Baroque facade (patterned closedly after the mother church in Rome) and larger-than-life statues of the 12 apostles.</div>","Church of Peter and Paul");
	
		 // Corpus Christi Church
	var point = new GPoint(19.944901,50.049888);
	createMarker(point,"<div id=bubble><a href='ttp://www.sacred-destinations.com/poland/krakow-corpus-christi-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/poland/images/krakow/thumbs/Corpus_Christi_church.jpg'><b>Corpus Christi Church</b></a><br><br>This large Gothic brick church dates from the mid-14th-century and is adjacent to a monastery built 1405. The rich interior includes a painting by Lucas Cranach, fine choir stalls and a boat-shaped pulpit.</div>","Corpus Christi Church");
		
	 // Galicia Jewish Museum
	var point = new GPoint(19.949584,50.050753);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/poland/krakow-galicia-jewish-museum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/poland/images/krakow/thumbs/galicia-jewish-museum-cheneys-wiesels-2005-us-pd.jpg'><b>Galicia Jewish Museum</b></a><br><br>This often-overlooked museum features contemporary and beautiful photographs of important Jewish sites throughout southern Poland with explanations of what happened there.</div>","Galicia Jewish Museum");
	
		 // Isaak Synagogue
	var point = new GPoint(19.946424,50.051445);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/poland/krakow-isaak-synagogue.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/poland/images/krakow/thumbs/isaak-synagogue.jpg'><b>Isaak Synagogue</b></a><br><br>Dating from 1664, the Synagoga Izaaka is considered by many to be the most beautiful synagogue in Krakow. It now houses historic photographs and documentary films, including haunting newsreels taken by the Nazis.</div>","Isaak Synagogue");
	
		 // Jewish Cemetery
	var point = new GPoint(19.946854,50.052382);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/poland/krakow-remuh-synagogue-and-cemetery.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/poland/images/krakow/thumbs/cemetery5-cc-whistling-in-the-dark.jpg'><b>Jewish Cemetery</b></a><br><br>The Remuh Jewish Cemetery, adjacent to the synagogue of the same name, was used until the beginning of the 19th century. It includes the tomb of Remuh, which is still visited by Jewish pilgrims.</div>","Jewish Cemetery");
	
		 // Krakus Mound
	var point = new GPoint(19.958425,50.038124);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/poland/krakow-krakus-and-wanda-mounds.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/poland/images/krakow/thumbs/krakusa-mound-cc-sz-u.jpg'><b></b></a><br><br>One of two prehistoric man-made mounds that add a bit of mystery to Krakow\'s skyline. Their purpose remains unknown, but both are perfectly astronomically aligned with the sunrises on important Celtic days.</div>","Krakus Mound");
	
		 // Old Synagogue
	var point = new GPoint(19.948522,50.051435);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/poland/krakow-old-synagogue.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/poland/images/krakow/thumbs/old-synagogue-ext-cc-ozziebackpacker.jpg'><b>Old Synagogue</b></a><br><br>The oldest surviving Jewish building in Poland, the Old Synagogue was rebuilt after a fire in 1557. Badly looted during World War II, it has been restored and now houses a Museum of Jewish History.</div>","Old Synagogue");
	
		 // Remuh Synagogue
	var point = new GPoint(19.94754,50.052665);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/poland/krakow-remuh-synagogue-and-cemetery.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/poland/images/krakow/thumbs/remuh-synagogue.jpg'><b>Remuh Synagogue</b></a><br><br>The historic Remuh Synagogue, named for the founder's son, is the only synagogue in the city to remain in active use. It dates from the 16th century and includes an original ark and a fine cemetery with many old tombstones.</div>","Remuh Synagogue");
	
		 // St. Andrew's Church
	var point = new GPoint(19.938329,50.056581);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/poland/krakow-st-andrews-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/poland/images/krakow/thumbs/ext-cc-maggiejp.jpg'><b>St. Andrew\'s Church</b></a><br><br>Located right next to the Baroque Church of Sts. Peter and Paul, St. Andrew's Church dates from the 11th century and is the finest example of Romanesque architecture in Kraków. The interior has been given a Baroque makeover.</div>","St. Andrew\'s Church");
	
		 // St. Mary's Church
	var point = new GPoint(19.939338,50.061685);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/poland/krakow-st-marys-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/poland/images/krakow/thumbs/facade-cc-soylentgreen23.jpg'><b>St. Mary\'s Church</b></a><br><br>The Kosciol Mariacki is a large 14th-century church notable for its imposing but uneven towers, vibrantly colored interior, and its magnificent wooden altarpiece depicting medieval scenes.</div>","St. Mary\'s Church");
	
		 // St. Stanislaw's Church
	var point = new GPoint(19.937493,50.048238);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/poland/krakow-st-stanislaws-church.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/poland/images/krakow/thumbs/kazimierz-church-cc-soylentgreen23.jpg'><b>St. Stanislaw\'s Church</b></a><br><br>Also known as the Church on the Rock, this 14th-century Gothic church stands on the site where Bishop Stanislaw of Poland was beheaded and dismembered on order of the King in 1079. It is now a Paulite church and monastery.</div>","St. Stanislaw\'s Church");
	
		 // St. Wojcich Church
	var point = new GPoint(19.937595,50.060886);
	createMarker(point,"<div id=bubble><b>St. Wojcich Church</b><br><br>Also known as St. Adelbert's Church.</div>","St. Wojcich Church");
	
		 // Tempel Synagogue
	var point = new GPoint(19.944348,50.05293);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/poland/krakow-tempel-synagogue.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/poland/images/krakow/thumbs/facade-cc-whistling-in-the-dark.jpg'><b>Tempel Synagogue</b></a><br><br>Built in 1862 for Krakow's progressive (or reformed) Jews, this fine synagogue still hosts services a few times a year, along with classical concerts. Behind the splendid neo-Renaissance exterior is an exquisite Moorish-style interior.</div>","Tempel Synagogue");
		
	 // Wawel Cathedral
	var point = new GPoint(19.935358,50.054666);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/poland/krakow-wawel-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/poland/images/krakow/thumbs/view-cc-ddanzig.jpg'><b>Wawel Cathedral</b></a><br><br>The 14th-century Katedra Wawelska, located inside Wawel Castle, is the spiritual center of the Polish state. It is the burial place of Polish kings and national heroes and was the cathedral of Karol Wojtyla until he became Pope.</div>","Wawel 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;
    }

	//]]>
