YHA.Page.Hostels.Print = Base.extend
({
	constructor: function(lat, lng)
	{
		this.lat = lat;
		this.lng = lng;
		
		Event.observe(window, 'load', this.windowOnLoad.bindAsEventListener(this));
	},
	
	windowOnLoad: function()
	{
		this.hostelMap = new RedSquare.GoogleMap
		(
			element = $('map'), 
			lat = this.lat, 
			lng = this.lng,
			zoom = 16,
			controls = 
			{
				smallZoomControl: true
			},
			options = 
			{
				onload: function()
				{
					//window.print();
				}	
			}
		);					

		if (window.opener && window.opener.page && window.opener.page.hostelMap)
			this.hostelMap.mirror(window.opener.page.hostelMap.map);

		this.hostelMarker = this.hostelMap.addCenterMarker( { clickable: false } );
	}
});
