function ShowMap( Elem, Latitude, Longtude, Zoom , Opis, Placeid) {
    this.latitude  = Latitude;
    this.longtude  = Longtude;
    this.zoom   = Zoom;
    this.element= Elem;
    this.opis = Opis;
    this.placeid = Placeid;
    this.show();
}

ShowMap.prototype.show = function() 
{
 if (GBrowserIsCompatible()) {
	map   = new GMap2( this.element );
	point = new GLatLng( this.latitude, this.longtude );
	map.setCenter( point, this.zoom );
	map.addControl(new GSmallMapControl());
	map.addControl(new GMapTypeControl());
	map.enableContinuousZoom();

   
    
													
		var icon = new GIcon();
		icon.image = "http://www.odkryjpolske.pl/mapgoogle/p4.png";
		icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
		icon.iconSize = new GSize(37, 47);
		icon.shadowSize = new GSize(22, 20);
		icon.iconAnchor = new GPoint(6, 20);
		icon.infoWindowAnchor = new GPoint(5, 1);						
							
	var marker = new GMarker(point , icon)
	map.addOverlay( marker );
	var opisik = this.opis;
	
	if(opisik !="")
	{
	    marker.openInfoWindowHtml(opisik);

	    GEvent.addListener(marker, "click", function() {
	        marker.openInfoWindowHtml(opisik);
	    });
	}
	
   }	

}
