

function load() {
//~Check to see if object exists
    if (document.getElementById("map"))
    {

//--------------Start - Section 1: Javascript for Google map 
       var map = "";
       function createMarker(point,html,icons) 
       {var emarker = new GMarker(point,icons);
        GEvent.addListener(emarker, "click", function() {
          emarker.openInfoWindowHtml(html);
        });return emarker;} 

//Create the map
     map = new GMap2(document.getElementById("map"));
//Map navigation control
    map.addControl(new GLargeMapControl());

//Type of map control
     map.addControl(new GMapTypeControl());
//Set the map centre using latitude and longitude co-ordinates and set the opening zoom level of the map. 
//The smaller the number, the smaller the scale. For example, replacing 14 with 1 will display the whole world.
     map.setCenter(new GLatLng(18.53975675645354,73.89344215393066), 17);
//---------------End - Section 1: Javascript for Google map 

// --------------Start - Section 2: Available markers------------------



// --------------Start - Section 2: Available markers------------------

var point = new GLatLng(18.53975675645354,73.89344215393066);

var iconBlue = new GIcon(); 
iconBlue.image = 'http://heyiamonline.com/PM/Icons/gmarkrred.png';

iconBlue.iconSize = new GSize(20, 34);
iconBlue.shadowSize = new GSize(44, 40);
iconBlue.iconAnchor = new GPoint(6, 20);
iconBlue.infoWindowAnchor = new GPoint(5, 1);


var options = { 
title: "HDFC ATM",
icon: iconBlue,
draggable: false,
bouncy: false
};

var marker9 = new GMarker(point, options);




map.addOverlay(marker9);

GEvent.addListener(marker9, "click", function() {
        marker9.openInfoWindowHtml('<div style="width:240px">HDFC <a href="http://www.punemate.com">PuneMate<\/a> <\/div>');
      });
      map.addOverlay(marker9);

//__________________________________________________

// --------------Start - Section 2: Available markers------------------

var point = new GLatLng(18.539390562463588,73.89333486557007);

var iconBlue = new GIcon(); 
iconBlue.image = 'http://heyiamonline.com/PM/Icons/gmarkrred.png';

iconBlue.iconSize = new GSize(20, 34);
iconBlue.shadowSize = new GSize(44, 40);
iconBlue.iconAnchor = new GPoint(6, 20);
iconBlue.infoWindowAnchor = new GPoint(5, 1);


var options = { 
title: "HDFC ATM",
icon: iconBlue,
draggable: false,
bouncy: false
};

var marker9 = new GMarker(point, options);




map.addOverlay(marker9);

GEvent.addListener(marker9, "click", function() {
        marker9.openInfoWindowHtml('<div style="width:240px">HDFC <a href="http://www.punemate.com">PuneMate<\/a> <\/div>');
      });
      map.addOverlay(marker9);

//__________________________________________________

  }

}
    
window.onload = load; 
