    //<![CDATA[
    // Check to see if this browser can run the Google API
    if (GBrowserIsCompatible()) {
	  var side_bar_html = "";
      var gmarkers = [];
	  
      // A function to create the marker and set up the event window
      function createMarker(point,name,html,what) {
        var marker = new GMarker(point);

        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
		
		// save the info we need to use later for the side_bar
        gmarkers.push(marker);
        // add a line to the side_bar html
        side_bar_html += '<a href="javascript:myclick(' + (gmarkers.length-1) + ')">' + name + '<\/a><br>';
        return marker;
		
        gmarkers[i] = marker;
        htmls[i] = html;
        i++;
        return marker;
		
		var marker = new GMarker(point,{id:what, name:"foo", description:"baz"});
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
        return marker;	
      }

		// This function picks up the click and opens the corresponding info window
      function myclick(i) {
        GEvent.trigger(gmarkers[i], "click");
      }	
      // Display the map, with some controls and set the initial location 
      var map = new GMap2(document.getElementById("map"));
	  map.addControl(new GSmallMapControl())
      map.addControl(new GMapTypeControl());
      map.setCenter(new GLatLng(34.062032,74.38875), 12);
    
      // Set up three markers with info windows 
      var point1 = new GLatLng(34.062032,74.38875);
      var marker = createMarker(point1,"Гульмарг",'Индия, <a href="http://snowside.ru/place.php?id_place=39">Гульмарг<\/a>')
      map.addOverlay(marker);

      


	  

// put the assembled side_bar_html contents into the side_bar div
      document.getElementById("side_bar").innerHTML = side_bar_html;
    }

    
    // display a warning if the browser was not compatible
    else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
    }
    // This Javascript is based on code provided by the
    // Blackpool Community Church Javascript Team
    // http://www.commchurch.freeserve.co.uk/   
    // http://econym.googlepages.com/index.htm

    //]]>

