  	var s_mapComments = null;

    //..Global variables................................................
    var s_map = null;

	//..setupUserMap.....................................................
    function s_setupUserMap() {
    //..Debug
    //alert("setupUserMap Start");
    s_mapComments = document.getElementById("smallMapComments");
   	s_mapComments.innerHTML = "<b>Loading. Please Wait...<b>";
    
      if (GBrowserIsCompatible()) {

        s_map = new GMap2(document.getElementById("smallMap"));
        s_map.addControl(new GLargeMapControl());
        //s_map.setCenter(new GLatLng("17.458936","78.504753"), 13);
        s_map.setCenter(new GLatLng("17.443708","78.498506"), 13);
        s_map.setMapType(G_SATELLITE_TYPE);
        s_map.enableDoubleClickZoom();

        var airportToOfficePolyLine = createAirportToOfficePolyLine();
        s_map.addOverlay(airportToOfficePolyLine);
        
        var officeToHomePolyLine = createOfficeToHomePolyLine();
        s_map.addOverlay(officeToHomePolyLine);
        
        addMarkers(); 
      }

    s_mapComments.innerHTML = "";
    //..Debug
    //alert("setupUserMap End");      
    }
    
    //..createAirportToOfficePolyLine..............................................
    function createAirportToOfficePolyLine(){
		var airportToOfficePolyLine = new GPolyline([
			new GLatLng(17.449444,78.470739),
			new GLatLng(17.444222,78.470739),
			new GLatLng(17.444161,78.472539),
			new GLatLng(17.443617,78.475283),
			new GLatLng(17.443453,78.480942),
			new GLatLng(17.443203,78.490806),
			new GLatLng(17.442917,78.500697),
			new GLatLng(17.442764,78.503886),
			new GLatLng(17.442361,78.504892),
			new GLatLng(17.442786,78.505972),
			new GLatLng(17.443828,78.507250),
			new GLatLng(17.446822,78.508547),
			new GLatLng(17.448056,78.505525)
		],"#FF0000",10);
		
		return airportToOfficePolyLine;
    }
    
    
    //..createOfficeToHomePolyLine..............................................
    function createOfficeToHomePolyLine(){
		var officeToHomePolyLine = new GPolyline([
			new GLatLng(17.446822,78.508547),
			new GLatLng(17.448903,78.508828),
			new GLatLng(17.453919,78.512272),
			new GLatLng(17.459006,78.515117),
			new GLatLng(17.460500,78.519822),
			new GLatLng(17.460897,78.522739),
			new GLatLng(17.462139,78.525833),
			new GLatLng(17.462522,78.529206),
			new GLatLng(17.462311,78.532692),
			new GLatLng(17.455217,78.529722),
			new GLatLng(17.455247,78.529967)
			
		],"#FF0000",10);
		
		return officeToHomePolyLine;
    }
    
    function addMarkers(){
    
		//..RedIcon
		var redIcon = new GIcon(); 
		redIcon.image = "http://www.makelogic.com/images/mm_20_red.png"; 
		redIcon.shadow = "http://www.makelogic.com/images/mm_20_shadow.png"; 
		redIcon.iconSize = new GSize(12, 20); 
		redIcon.shadowSize = new GSize(22, 20); 
		redIcon.iconAnchor = new GPoint(6, 20); 
		redIcon.infoWindowAnchor = new GPoint(5, 1); 
		
		//..GreenIcon
		var greenIcon = new GIcon(); 
		greenIcon.image = "http://www.makelogic.com/images/mm_20_green.png"; 
		greenIcon.shadow = "http://www.makelogic.com/images/mm_20_shadow.png"; 
		greenIcon.iconSize = new GSize(12, 20); 
		greenIcon.shadowSize = new GSize(22, 20); 
		greenIcon.iconAnchor = new GPoint(6, 20); 
		greenIcon.infoWindowAnchor = new GPoint(5, 1);
		
		//..Airport
		var point1 = new GLatLng(17.449444,78.470739);
		var marker1 = new GMarker(point1);
		GEvent.addListener(marker1, "click", function() {
			marker1.openInfoWindowHtml("<b>Begumpet<br/>Airport</b>");
		});
		s_map.addOverlay(marker1);
		
		//..Office 1
		var point2 = new GLatLng(17.448056,78.505525);
		var marker2 = new GMarker(point2);
		GEvent.addListener(marker2, "click", function() {
			marker2.openInfoWindowHtml("<b>MakeLogic<br/>Development Facility 1</b>");
		});
		s_map.addOverlay(marker2);
		
		//..Office 2
		var point3 = new GLatLng(17.455247,78.529967);
		var marker3 = new GMarker(point3);
		GEvent.addListener(marker3, "click", function() {
		marker3.openInfoWindowHtml("<b>MakeLogic<br/>Development Facility 2</b>");
		});
		s_map.addOverlay(marker3);
		
		//..Landmarks
		//..HussainSagar
		var point4 = new GLatLng(17.427336,78.472611);
		var marker4 = new GMarker(point4,redIcon);
		GEvent.addListener(marker4, "click", function() {
			marker4.openInfoWindowHtml("<b>Hussain Sagar Lake</b>");
		});
		s_map.addOverlay(marker4);
		
		//..Parade Grounds
		var point5 = new GLatLng(17.444003,78.493178);
		var marker5 = new GMarker(point5,greenIcon);
		GEvent.addListener(marker5, "click", function() {
			marker5.openInfoWindowHtml("<b>Parade Grounds</b>");
		});
		s_map.addOverlay(marker5);

		//..AOC Center
		var point6 = new GLatLng(17.459039,78.515044);
		var marker6 = new GMarker(point6,greenIcon);
		GEvent.addListener(marker6, "click", function() {
			marker6.openInfoWindowHtml("<b>AOC Center</b>");
		});
		s_map.addOverlay(marker6);
		
		//..St. John's Church
		var point7 = new GLatLng(17.442664,78.506433);
		var marker7 = new GMarker(point7,greenIcon);
		GEvent.addListener(marker7, "click", function() {
			marker7.openInfoWindowHtml("<b>St. John's Church</b>");
		});
		s_map.addOverlay(marker7);
		
		//..Geeta Nursing Home
		var point8 = new GLatLng(17.447042,78.508264);
		var marker8 = new GMarker(point8,greenIcon);
		GEvent.addListener(marker8, "click", function() {
			marker8.openInfoWindowHtml("<b>Geeta Nursing Home</b>");
		});
		s_map.addOverlay(marker8);
		
		//..Safilguda
		var point9 = new GLatLng(17.462306,78.532731);
		var marker9 = new GMarker(point9,greenIcon);
		GEvent.addListener(marker9, "click", function() {
			marker9.openInfoWindowHtml("<b>Safilguda</b>");
		});
		s_map.addOverlay(marker9);

		//..Power Sub-Station
		var point10 = new GLatLng(17.455542,78.529539);
		var marker10 = new GMarker(point10,greenIcon);
		GEvent.addListener(marker10, "click", function() {
			marker10.openInfoWindowHtml("<b>Power Sub-station</b>");
		});
		s_map.addOverlay(marker10);
		
		//..Secunderabad Railway Station
		var point11 = new GLatLng(17.433086,78.502114);
		var marker11 = new GMarker(point11,redIcon);
		GEvent.addListener(marker11, "click", function() {
			marker11.openInfoWindowHtml("<b>Secunderabad<br/>Railway Station</b>");
		});
		s_map.addOverlay(marker11);
		
		//..Jubilee Bus Station
		var point12 = new GLatLng(17.447719,78.498019);
		var marker12 = new GMarker(point12,redIcon);
		GEvent.addListener(marker12, "click", function() {
			marker12.openInfoWindowHtml("<b>Jubilee<br/>Bus Station</b>");
		});
		s_map.addOverlay(marker12);
    }
