    var map;
  var geoXml;
  var icon;
  var currentMarker;
  var currentIndex;
  var timeVar;
	function initialiseMap() 
	{
	  if (GBrowserIsCompatible()) 
	  {
	  	if (parseFloat(point_location.lat) == 0 && parseFloat(point_location.lng) == 0)
	  	{
	  		$('#map_canvas').html('No map location provided');
	  		$('#map_canvas').css({'line-height': '120px', 'text-align': 'center', 'font-size': '16px', 'background': '#5F5F5F'});
	  	}
	  	else
	  	{
	  		map = new GMap2(document.getElementById('map_canvas'));
			map.setCenter(new GLatLng(point_location.lat, point_location.lng), 2);
			map.enableScrollWheelZoom();
			map.addControl(new GSmallMapControl());
		    
			createMarker(new GLatLng(point_location.lat, point_location.lng));
	  	} 
	  }
	}

	function createMarker(point) {
        icon = new GIcon();
        icon.image = "http://www.streetartlocator.com/icon/icon-"+ point_location.type +".png";
        icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
        
        icon.shadowSize = new GSize(22, 20);
        icon.iconAnchor = new GPoint(6, 20);
        icon.infoWindowAnchor = new GPoint(5, 1);
	        
        var marker = new GMarker(point, {'icon':icon, 'title':point_location.title});
        var html = '<table>' + 
	'<tr>' +
		'<td>It\'s name:</td><td>' + point_location.title + '</td>'+
	'</tr>' +
	'<tr>' +
		'<td>What can be <br>' +
              'found there:</td>' +
	    '<td>' + point_location.description + '</td>'+
	'</tr>'+
    '<tr>' +
    	'<td colspan="2"><img id="img_'+ point_location.id +'" src="' + point_location.thumb +'" alt="' + point_location.title + '" title="' + point_location.title + '" />'+
    '</tr>' +
  "</table>" ;
		
		GEvent.addListener(marker, "click", function() {
			//marker.openInfoWindowHtml(html);
			currentMarker = marker;
			currentIndex = index;
		});
		
        map.addOverlay(marker);
        currentMarker = marker;
        timeVar = setTimeout(animateZoom, 1000);
    }
    
	animateZoom = function()
    {
    	map.zoomIn();
    	map.zoomIn();
    	map.zoomIn();
    	if (map.getZoom() < 15)
    	{
    		clearTimeout(timeVar);
    		timeVar = setTimeout(animateZoom, 1000); 
    	}
    };
