/*******************************************************************************
	EasyWEB	5

	@Copyright 	Synerway Sp. z o. o. http://www.synerway.pl/
			All rights reserved

	@Author		Antoni Jakubiak <a.jakubiak@synerway.pl>


	@Description	Powiekszanie zdjec dla hoteli na liscie

	$Id: map.js,v 1.1 2007/10/31 10:27:19 mwlodar Exp $
*******************************************************************************/

function InfoHotelMap( iElement, iLat, iLng, iZoom ) {
	this.lat                   = iLat;
	this.lng                   = iLng;
	this.zoom                  = iZoom;
	this.element               = iElement;
	this.show();
}

/**
 * Pokazywanie powiekszonego zdjecia
 */
InfoHotelMap.prototype.show = function() {
	if (GBrowserIsCompatible()) {
		var map   = new GMap2( this.element );
		var point = new GLatLng( this.lat, this.lng );
		map.setCenter( point, this.zoom );
		map.addControl(new GSmallMapControl());
//		map.addControl(new GMapTypeControl());
		var marker = new GMarker(point)
		map.addOverlay( marker );
	}
}
