// 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    -->
		 
	
	// Alaeddin Mosque
	var point = new GPoint(32.492859,37.873346);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/konya-alaeddin-mosque.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/turkey/images/thumbnails50/konya-alaettin-mosque-c-osseman.jpg'><b>Alaeddin Mosque</b></a><br><br>Located on Alaettin Hill, the site of Konya's original acropolis, the Alaeddin Mosque (also spelled Alaettin) is the largest and oldest mosque in Konya. It was constructed by the Seljuk Sultan of Rum in 1221. The Alaeddin Mosque has some interesting architectural features, such as columns of different sizes and a rambling design and decorations incorporated from different periods. Inside is a tomb chamber containing a dozen Seljuk sultans.</div>","Alaeddin Mosque");
		 
	// Archaeological Museum
	var point = new GPoint(32.493321,37.867655);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/konya-archaeological-museum.htm'><img style='border-color:#666666' border='1' hspace='5' src='http://www.sacred-destinations.com/turkey/images/thumbnails50/konya-museum-c-osseman.jpg'><b>Archaeological Museum</b></a><br><br>The Archaeological Museum in Konya has an excellent collection of ancient artifacts ranging from the Bronze Age to the Byzantine Era. The museum opened in its present location in 1962. Among the displays are many ancient Roman sarcophagi, Greek altars and pottery, important inscriptions in Latin and Greek, Byzantine mosaics, and more. </div>","Archaeological Museum");
	
	// Mevlana Museum
	var point = new GPoint(32.504811,37.870733);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/konya-mevlana-museum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/turkey/images/thumbnails50/konya-mevlana-museum-whirling-c-osseman.jpg'><b>Mevlana Museum</b></a><br><br></div>","Mevlana Museum");
	
	// Selimiye Mosque
	var point = new GPoint(32.50398,37.870492);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/turkey/konya-selimiye-mosque.htm'><b>Selimiye Mosque</b></a><br><br>This mosque was commissioned by, and named for, Sultan Selim II. Construction began in 1588 when Selim was still a prince and was completed shortly after he became sultan, in 1567. Like the Ottoman mosques of Istanbul, the Selimiye Camii is roofed with a large dome surrounded by semi-domes and sumptuously decorated inside. One interesting feature of the interior is the spire of the minbar (pulpit), which closely resembles the Green Dome of the Mevlana Museum next door.</div>","Selimiye Mosque");
	
	
	// 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;
    }

	//]]>
