// 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    -->
	
		 	 
		 // Istanbul Archaeological Museum
	var point = new GPoint(28.98144, 41.011511);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/istanbul-archaeological-museum.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/turkey/images/istanbul/thumbs/archaeological-museum-babylonian-bull-c-osseman.jpg'><b>Istanbul Archaeological Museum</b></a><br><br>This huge museum has a world-class collection of Greek and Roman artifacts, including finds from Istanbul, Ephesus and Troy.</div>","Archaeological Museum");
		
	
		 // Beyazit Camii
	var point = new GPoint(28.965358, 41.010168);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/istanbul-beyazit-mosque.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/turkey/images/istanbul/thumbs/beyazit-camii-minaret-detail-c-cascoly.jpg'><b>Beyazit Camii</b></a><br><br>Located by Istanbul's university, this is one of the oldest mosques in the city. It was built in 1506 using materials from Theodosius's Forum, on top of which it was constructed.</div>","Beyazit Camii");
		 	 
		 // Blue Mosque
	var point = new GPoint(28.976827, 41.005277);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/istanbul-blue-mosque.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/turkey/blue-mosque-photos/WebPhotosProFiles/custom/exterior-sunset-c-betts.jpg'><b>Blue Mosque</b></a><br><br>The cascading domes and six slender minarets of the Blue Mosque dominate the skyline of Istanbul. This 17th-century mosque was built by Sultan Ahmet I to rival the Hagia Sophia.<br><br><a href='http://www.sacred-destinations.com/turkey/istanbul-blue-mosque.htm'>Article</a> | <a href='http://www.sacred-destinations.com/turkey/blue-mosque-photos/index.html'>Photos</a></div>","Blue Mosque");
		 	 
		 // Church of the Holy Apostles 
	var point = new GPoint(28.950294, 41.019845);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/istanbul-church-of-holy-apostles.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/turkey/images/istanbul/thumbs/church-of-holy-apostles-illumination.jpg'><b>Church of the Holy Apostles</b></a><br><br>No longer standing, this great church was built by Constantine and rebuilt by Justinian. It was the resting place of the Byzantine emperors as well as the saints Andrew, Luke, Timothy, John Chrysostom and Gregory the Theologian. Destroying during the Crusades, its materials were used to build the Fatih Mosque, which now stands on the site.</div>","Church of the Holy Apostles");
	
	
		 		 // Fatih Mosque
	var point = new GPoint(28.949811, 41.019518);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/istanbul-fatih-camii.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/turkey/images/istanbul/thumbs/fatih-mosque-interior-c-osseman.jpg'><b>Fatih Mosque</b></a><br><br>Originally built in 1470, this mosque was entirely rebuilt in 1766 after an earthquake. It shelters the tomb of Fatih Mehmet the Conqueror.</div>","Fatih Mosque");
	
			 // Fethiye Camii
	var point = new GPoint(28.946464, 41.029093);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/istanbul-fethiye-camii-theotokos-church.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/turkey/images/istanbul/thumbs/fethiye-mosque-c-efendi-flickr.jpg'><b>Fethiye Camii (Theotokos Church)</b></a><br><br>Originally a Byzantine church, Fethiye was built in 1292 and served as the headquarters of the Orthodox Patriarchate from 1456 to 1528. Five years later, it was converted into a mosque.</div>","Fethiye Mosque");

		 	 
		 // Hagia Eirene
	var point = new GPoint(28.981097, 41.00967);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/istanbul-hagia-eirene.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/turkey/images/istanbul/thumbs/hagia-eirene-nc-helen-betts.jpg'><b>Hagia Eirene</b></a><br><br>The &quot;Basilica of Holy Peace&quot; dates from the 6th century and was tranformed into the arsenal of the Topkapi Palace in the 1460s. Today, its excellent acoustics make it a popular venue for concerts.</div>","Hagia Eirene");
	
		 // Hagia Sophia
	var point = new GPoint(28.979938, 41.008548);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/istanbul-hagia-sophia.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/turkey/hagia-sophia-photos/WebPhotosProFiles/custom/exterior-cc-Cybjorg-flickr.jpg'><b>Hagia Sophia</b></a><br><br>Hagia Sophia was originally a Byzantine church built by Justinian. Later used as a mosque, it is now a museum. Hagia Sophia is universally acknowledged as one of the great buildings of the world.<br><br><a href='http://www.sacred-destinations.com/turkey/istanbul-hagia-sophia.htm'>Article</a> | <a href='http://www.sacred-destinations.com/turkey/hagia-sophia-photos/index.htm'>Photos</a></div>","Hagia Sophia");
	
		 // Kariye Camii (St Savior in Chora)
	var point = new GPoint(28.939018, 41.031226);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/istanbul-st-savior-in-chora-kariye.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/turkey/istanbul-kariye-chora-pictures/thumbs/exterior-cc-feuillu.jpg'><b>Kariye Camii (St Savior in Chora)</b></a><br><br>This 11th-century church (later a mosque, now a museum) contains one of the finest preserved galleries of Byzantine mosaics anywhere.</div>","Kariye (St Savior in Chora)");
		 	 
		 // Küçük Ayasofya (Sergius and Bacchus)
	var point = new GPoint(28.972192, 41.002727);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/istanbul-church-of-sts-sergius-and-bacchus-kucuk-ayasofya.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/turkey/images/istanbul/thumbs/st-sergius-and-bacchus-interior-nc-croisade.jpg'><b>Küçük Ayasofya (Sts Sergius and Bacchus)</b></a><br><br>Begun by Justinian in the first year of his reign (527), this was an important stage in the process of Byzantine building. It is now a mosque known as the &quot;Little Hagia Sophia.&quot;</div>","Küçük Ayasofya (Sergius and Bacchus)");
	
		 // Mihrimah Camii
	var point = new GPoint(28.935644, 41.029291);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='0' hspace='0' align='left' src=''><b>Mihrimah Camii</b><br><br></div>","Mihrimah Camii");
		 
		 // Mosaic Museum
	var point = new GPoint(28.97635, 41.003747);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/istanbul-mosaic-museum.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/turkey/images/istanbul/thumbs/mosaic-museum-mosaic-nc-croisade.jpg'><b>Mosaic Museum</b></a><br><br>A museum centered around the mosaic floor of Constantine's Great Palace, discovered in 1933, which features non-religious imagery like hunting and the four seasons.</div>","Mosaic Museum");
	
		  // Nuruosmaniye Camii
	var point = new GPoint(28.970373, 41.010277);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='0' hspace='0' align='left' src=''><b>Nuruosmaniye Camii</b><br><br></div>","Nuruosmaniye Camii");
	
		 // Orthodox Patriarchate
	var point = new GPoint(28.951753, 41.029012);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/istanbul-orthodox-patriarchate-st-george.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/turkey/images/istanbul/thumbs/orthodox-patriarch-bartholomew.jpg'><b>Orthodox Patriarchate</b></a><br><br>A rather humble exterior in Fener shelters the worldwide headquarters of the Greek Orthodox Church. It includes the Patriarchal Cathedral Church of St. George (Aya Yorgi).</div>","Orthodox Patriarchate");
		 
		 // Rustem Pasha Camii
	var point = new GPoint(28.968759, 41.017583);
	createMarker(point,"<div id=bubble><a href=''><img style='border-color:#666666' border='1' hspace='7' align='left' src=''><b>Rustem Pasha Camii</b></a><br><br></div>","Rustem Pasha Camii");
	
			  // Sehzade Mosque and Külliye
	var point = new GPoint(28.957193, 41.013746);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='0' hspace='0' align='left' src=''><b>Sehzade Mosque and Külliye</b><br><br>Commissioned by Sultan Süleyman the Magnificent in memory of his beloved son, Prince Mehmet, Sehzade was constructed by the architect Sinan from 1543 to 1548. </div>","Sehzade Camii");	 
		 
		 // Sokullu Mehmet Pasha Camii
	var point = new GPoint(28.972589, 41.004257);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='0' hspace='5' align='left' src=''><b>Sokullu Mehmet Pasha Mosque</b><br><br>Another mosque by the architect Sinan, this was built in 1577 for Grand Vizier Sokullu Mehmet Pasha. Inside it is decorated with beautiful blue tiles.</div>","Sokullu Mehmet Pasha Camii");
	
	 // St. Euphemia Martyrion
	var point = new GPoint(28.975641, 41.007723);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='0' hspace='0' align='left' src=''><b>St. Euphemia Martyrion</b><br><br>This Byzantine round church dates from the 5th century AD, but collapsed in 1951. It is famed for its interesting frescoes, which are preserved under an awning here. One of these portrays the torture and death of Euphemia, a Christian martyr from Chalcedon. The relics of Euphemia are preserved in the church of the Orthodox Patriarchate in Fener, Istanbul.</div>","St. Euphemia Martyrion");
	
	 // St. Polyeuctus Church
	var point = new GPoint(28.953202, 41.014211);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='0' hspace='0' align='left' src=''><b>St. Polyeuctus Church</b><br><br>Built in the 520s under Justinian, this huge church (52m long) was basilical in form. It now lies in ruins in an archaeological park.</div>","St. Polyeuctus Church");
	
		 
		 // St. Theodosia Church
	var point = new GPoint(28.956313, 41.02677);
	createMarker(point,"<div id=bubble><b>St. Theodosia Church</b></a><br><br></div>","St. Theodosia Church");
	
	
		 // Süleymaniye Camii
	var point = new GPoint(28.963909, 41.016085);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/istanbul-suleiman-mosque.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/turkey/istanbul-suleymaniye-camii-pictures/thumbs/interior4-cc-feuillu.jpg'><b>Süleymaniye Camii</b></a><br><br>Commissioned by Sultan Suleiman the Magnificent and constructed by the great Ottoman architect Sinan, this beautiful mosque patterned after the Hagia Sophia was finished in 1557.</div>","Süleymaniye Camii");
	
		 
		 // Yeni Camii
	var point = new GPoint(28.972106, 41.01683);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/istanbul-yeni-camii-new-mosque.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/turkey/images/istanbul/thumbs/yeni-camii5-nc-helen-betts-pbase.jpg'><b>Yeni Camii</b></a><br><br>The New Mosque is not so new - it was built in the 1600s. Designed by the architect Da'ud Aga, a pupil of Sinan, Yeni Camii has become a defining feature of Istanbul's skyline.</div>","Yeni Camii");
	
		 
		 // Zeyrek Camii
	var point = new GPoint(28.957177, 41.019773);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/istanbul-church-of-the-pantocrator-zeyrek.htm'><img style='border-color:#666666' border='1' hspace='7' align='left' src='http://www.sacred-destinations.com/turkey/images/istanbul/thumbs/zeyrek-camii-c-betts.jpg'><b>Zeyrek Camii (Church of the Pantocrator)</b></a><br><br>The Church of the Pantocrator, now a mosque named Zeyrek Camii, is a former monastery church and one of the most important landmarks of the Byzantine period. Today it is in a state of neglect.</div>","Zeyrek Camii");
	
	// 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);
		  
		 // Basilica Cistern
	var point = new GPoint(28.977803, 41.007998);
	createMarker(point,"<div id=bubble><b>Basilica Cistern</b><br><br></div>","Basilica Cistern");
		 	
		 // Column of Constantine
	var point = new GPoint(28.974912, 41.005464);
	createMarker(point,"<div id=bubble><b>Column of Constantine Porphyrogenitus</b><br><br></div>","Column of Constantine");
	
		 
		 // Column of Theodosius
	var point = new GPoint(28.975459, 41.005958);
	createMarker(point,"<div id=bubble><b>Column of Theodosius</b><br><br></div>","Column of Theodosius"); 	
	
	// Galata Tower
	var point = new GPoint(28.974348, 41.02571);
	createMarker(point,"<div id=bubble><b>Galata Tower</b><br><br>Provides excellent views of Istanbul and the Bosphorus.</div>","Galata Tower");
	
	 // Grand Bazaar
	var point = new GPoint(28.968469, 41.010661);
	createMarker(point,"<div id=bubble><b>Grand Bazaar</b><br><br></div>","Grand Bazaar");
	
		 // Hippodrome
	var point = new GPoint(28.975239, 41.005787);
	createMarker(point,"<div id=bubble><img style='border-color:#666666' border='0' hspace='5' align='left' src=''><b>Hippodrome</b><br><br></div>","Hippdrome");
	
		 // Topkapi Palace
	var point = new GPoint(28.983371, 41.013025);
	createMarker(point,"<div id=bubble><b>Topkapi Palace</b><br><br></div>","Topkapi Palace");
	
	 // put the assembled sidebar_html contents into the sidebar div
    //document.getElementById("sidebar").innerHTML = sidebar_html;
    }

	//]]>