// 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    -->
	
		 
		 // Ajanta Caves
	var point = new GPoint(75.745153, 20.528768);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/india/ajanta-caves.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Ajanta Caves</b></a><br><br></div>","Ajanta Caves");
	 
		 // Amritsar
	var point = new GPoint(74.876493, 31.620333);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/india/amritsar-golden-temple.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/india/images/thumbnails-75/amritsar-golden-temple-sx-Supreet-Vaid-big.jpg'><b>Golden Temple of Amritsar</b></a><br><br>The holiest site in Sikhism, Amritsar features spectacular architecture, interesting rituals and a welcoming atmosphere.</div>","Amritsar Golden Temple");
		 
		 // Badrinath
	var point = new GPoint(79.491438, 30.744427);
	createMarker(point,"<div id=bubble><a href='http://sacred-destinations.com/india/badrinath.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Badrinath</b></a><br><br>The most important of the four sites in the Char Dham Pilgrimage.</div>","Badrinath");
		 	 
			 // Bodhgaya
	var point = new GPoint(85.0202, 24.4145);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/india/bodhgaya.htm'><img border='0' hspace='5' align='left' src='images/thumbnails-75/bodhgaya-bodhi-tree-monks-c-sacredsites.jpg'><b>Bodhgaya</b></a><br><br>The site of the Buddha's enlightenment.</div>","Bodhgaya");
	
	// Elephanta Caves
	var point = new GPoint(72.5609, 18.5800);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/india/elephanta-caves.htm'><b>Elephanta Caves</b></a><br><br>A collection of Hindu rock art linked to the cult of Shiva, located on an island just a short ferry ride from Mumbai.</div>","Elephanta Caves");

		 // Ellora Caves
	var point = new GPoint(75.179293,20.023859);
	createMarker(point,"<div id=bubble><a href='http://sacred-destinations.com/india/ellora-caves.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Ellora Caves</b></a><br><br>The Ellora Caves are a complex of 34 Buddhist, Hindu, and Jain monasteries and temples, extending over more than 2 kilometers.</div>","Ellora Caves");
	
		 // Gangotri
	var point = new GPoint(78.9363,30.9953);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/india/gangotri.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Gangotri</b></a><br><br>This Himalayan town near the source of the Ganges River is one of the four stops on the Char Dham Pilgrimage.</div>","Gangotri");
	
		 // Konark Sun Temple
	var point = new GPoint(86.094511,19.887601);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/india/konark-sun-temple.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Konark Sun Temple</b></a><br><br>This 13th-century Hindu temple is dedicated to the sun god. Shaped like a giant chariot, it is best known for the exquisite stone carvings that cover the entire structure.</div>","Konark Sun Temple");
	
		 // Kusinara - source: Kushinagar.com
	var point = new GPoint(83.240533, 26.448289);
	createMarker(point,"<div id=bubble><a href='http://sacred-destinations.com/india/kushinagar.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src=''><b>Kushinagar (Kusinara)</b></a><br><br>The place of the Buddha's passing away, this is one of four major Buddhist pilgrimage sites in India and Nepal.</div>","Kushinagar");
	
	 // Mumbai
	var point = new GPoint(72.82, 18.96);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/india/mumbai.htm'><b>Mumbai (Bombay)</b></a><br>A bustling city with numerous temples and sacred sites of various faiths.</div>","Mumbai");
	
		   // Goa
	var point = new GPoint(73.55, 15.3024);
	createMarker(point,"<div id=bubble><a href='goa-basilica-bom-jesus.htm'><b>Basilica of Bom Jesus, Goa</b></a><br><br>Portugese Catholic church dedicated to St. Francis Xavier.</div>","Goa Basilica");
	
	  // Varanasi
	var point = new GPoint(83.13, 25.36);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/india/varanasi.htm'><b>Varanasi</b></a><br>The holiest city in Hinduism, located on the sacred river Ganges.</div>","Varanasi");
	
	// 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;
    }

	//]]>