var map;

$('#zoomin').live('click',function()
{

	map.zoomIn();
	//map.setCenter(new GLatLng(52.181006,21.026287), map.getZoom());
	map.setCenter(new GLatLng(52.175906,21.026287), map.getZoom());
	
	var t = $('#mtgt_unnamed_0').css('top');
	var l = $('#mtgt_unnamed_0').css('left');
	
	$('#Message').css('left',parseInt(l)+50+'px');
	$('#Message').css('top',parseInt(t)-150+'px');
	
});

$('#zoomout').live('click',function()
{

	map.zoomOut();
	//map.setCenter(new GLatLng(52.181006,21.026287), map.getZoom());
	map.setCenter(new GLatLng(52.175906,21.026287), map.getZoom());
	
	var t = $('#mtgt_unnamed_0').css('top');
	var l = $('#mtgt_unnamed_0').css('left');
	
	$('#Message').css('left',parseInt(l)+50+'px');
	$('#Message').css('top',parseInt(t)-150+'px');

});

function initialize()
{
	if(GBrowserIsCompatible())
	{  
		map = new GMap2(document.getElementById("map"));
		var icon = new GIcon();  
		icon.image = base + "/img/logo-map.png";  
		icon.iconSize = new GSize(44, 38); 
		icon.iconAnchor = new GPoint(10, 38);  
		icon.infoWindowAnchor = new GPoint(5, 1);  
	  
		var marker = new GMarker(new GLatLng(52.175906,21.026287), icon);  
		GEvent.addListener(marker, "click", function() 
		{   
			if ($('#Message').is(':hidden')) 
				$('#Message').show();
			else
			{
				$('#Message').hide();
				$(".active").removeClass();
			}
		});
		
		map.addOverlay(marker); 
		map.setCenter(new GLatLng(52.175906,21.026287), 14, G_NORMAL_MAP); 
		
		$("#Message").appendTo(map.getPane(G_MAP_FLOAT_SHADOW_PANE));
		
		$('.map-container').append('<div id="zoom"><div id="zoomin"></div><div id="zoomout"></div></div>');
	}
	
};
