    var baseIcon = new GIcon();
	baseIcon.iconSize = new GSize(15, 19);
	baseIcon.iconAnchor = new GPoint(8, 19);
	baseIcon.infoWindowAnchor = new GPoint(8, 1);
	baseIcon.image = "/static/images/logomini.png";
	var map; 

        function init() 
		{
			if (GBrowserIsCompatible()) 
		  	{
		        map = new GMap2(document.getElementById("mapa"));
		        var point = new GLatLng(latitude, longitude);
		        map.setCenter(point, zoom);
		        if (control_zoom == 1)
		        	map.addControl(new GSmallMapControl());
				map.addControl(new GMapTypeControl());
				map.enableDoubleClickZoom();
				//map.setMapType(G_SATELLITE_MAP);
			}
			
			//loadImages();
	    }

	    function loadImages()
	    {
			jQuery.noConflict(); 
			jQuery(function() {  
			jQuery.getJSON("/panoramio?point="+latitude+","+longitude+"&size=small",
				function(data)
				{
					jQuery.each(data.photos, function(i, photo) 
					{
						var icon = new GIcon(baseIcon, 'http://mw2.google.com/mw-panoramio/photos/mini_square/'+photo.photo_id+'.jpg');
						var marker = new GMarker(new GLatLng(photo.latitude, photo.longitude), {icon: icon});
			        	map.addOverlay(marker);
						GEvent.addListener(marker, "click", function() {
							marker.openInfoWindowHtml("<a href='http://www.panoramio.com'>Panoramio</a><br/><a href='"+photo.photo_url+"'><img src='http://mw2.google.com/mw-panoramio/photos/small/"+photo.photo_id+".jpg' style='border:0' width='" + photo.width + "' height='" + photo.height + "' /></a><div style='width:170px'>Autor: <a href='"+photo.owner_url+"'>"+photo.owner_name+"</a></div>");
						});          	
						          	
					});
						
				});
        	});
		}
		
		function tooltip(marker, nombre)
		{
			var tooltip = new Tooltip(marker, nombre, 4);
			marker.tooltip = tooltip;
			map.addOverlay(tooltip);
			GEvent.addListener(marker,'mouseover',function(){ this.tooltip.show(); }); 
			GEvent.addListener(marker,'mouseout',function(){ this.tooltip.hide(); });

		}

