// 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    -->
	
	
		 // Bulbunath  Temple
	var point = new GPoint(72.808569,18.958886);
	createMarker(point,"<div id=bubble><b>Bulbunath  Temple</b><br><br></div>","Bulbunath  Temple");
	 
		 // Banganga Tank
	var point = new GPoint(72.793704,18.945491);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/india/mumbai-banganga-tank.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/india/images/mumbai/thumbs/priest-bathing-cc-lecercle.jpg'><b>Banganga Tank</b></a><br><br>The sacred waters of this popular bathing pool are believed to originate in the Ganges and have healing powers. Legend has it the pool sprung up after an arrow shot by the epic hero Rama landed here.</div>","Banganga Tank");
	
		
		 // Elephanta Island
	var point = new GPoint(72.9314,18.9634);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/india/elephanta-caves.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/india/images/mumbai/thumbs/mahesamurti-3headed-shiva-cc-guy-incognito.jpg'><b>Elephanta Caves</b></a><br><br>A very popular day trip from Mumbai, these Shiva temple caves are located an hour's ferry ride away on Elephanta Island. The caves are a fascinating World Heritage Site and there are great views of Mumbai from the ferry.</div>","Elephanta Caves");
	
		 // Haji Ali Dargah
	var point = new GPoint(72.808966,18.982831);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/india/mumbai-haji-ali-dargah.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/india/images/mumbai/thumbs/haji-ali-mosque-cc-phaif.jpg'><b>Haji Ali Dargah</b></a><br><br>This mosque can be reached by a narrow causeway only at low tide. A handsome example of Indian Islamic architecture, associated with legends about doomed lovers, it contains the tomb of Haji Ali.</div>","Haji Ali Dargah");
	
		 // Jama Masjid
	var point = new GPoint(72.832215,18.949104);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/india/mumbai-jama-masjid.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/india/images/mumbai/thumbs/exterior-cc-carol-mitchell.jpg'><b>Jama Masjid</b></a><br><br>The Jama Masjid is the largest and oldest mosque in Mumbai, rebuilt in 1775-1802. It is located in South Mumbai near Crawford Market.</div>","Jama Masjid");
	
		 // Mani Bhavan
	var point = new GPoint(72.8115,18.9599);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/india/mumbai-mani-bhavan-gandhi-museum.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/india/images/mumbai/thumbs/gandhi-room-cc-david-berkowitz.jpg'><b>Mani Bhavan</b></a><br><br>This museum in Gandhi's former house preserves the great leader's room, spinning wheel and other items.</div>","Mani Bhavan");
	
	
		 // St Thomas' Cathedral
	var point = new GPoint(72.8337,18.9319);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/india/mumbai-st-thomas-cathedral.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/india/images/mumbai/thumbs/tower-cc-fotomoe.jpg'><b>St Thomas' Cathedral</b></a><br><br>Once the place of worship of the East India Company, this is believed to be the oldest British building in Mumbai. It was completed in 1718 in a Neoclassical-Gothic style and contains the tombs of many British parishioners.</div>","St Thomas' Cathedral");
	
		 // Walkeshwar Temple
	var point = new GPoint(72.794305,18.945963);
	createMarker(point,"<div id=bubble><a href='http://www.sacred-destinations.com/india/mumbai-walkeshwar-temple.htm'><img style='border-color:#666666' border='1' hspace='5' align='left' src='http://www.sacred-destinations.com/india/images/mumbai/thumbs/walkeshwar-temple-and-tank-oil-EdwinLordWeeks1884.jpg'><b>Walkeshwar Temple</b></a><br><br>A Shiva temple adjacent to the sacred Banganga Tank.</div>","Walkeshwar Temple");
	
	// 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;
    }

	//]]>