function showMap() {
	if (GBrowserIsCompatible()) {
		document.getElementById('mapa').style.display = "inline";
	    var map = new GMap2(document.getElementById("map"));
								        
		map.setMapType(G_NORMAL_MAP);
		map.addControl(new GSmallZoomControl());
		map.enableScrollWheelZoom();
											
		var x = 54.54603189630728, y = 17.750322818756104
		var zoom = 15;
		var point = new GLatLng(x,y);
	    map.setCenter(point,zoom);
		map.addOverlay(new GMarker(point));	
		
			     
	}
}
function hideMap() {
	document.getElementById('mapa').style.display = "none";
}
var Fosta= {

};
Fosta.HidenBox = function (boxid, position, step, loops, state, time) {
	this.box = document.getElementById(boxid);
	this.step = step;
	this.time = time;
	this.loops = loops;
	this.position = position;
	this.state = state;
	this.loop = 0;
	this.img = null;
	
	this.setArrowImage = function(id) {
			this.img = document.getElementById(id);
	}
	
	this.change = function() {
		
		var value = 0;
		if (this.position == 'horizontal') {
			value = this.box.style.width;
			value = parseInt(value.substr(0, value.length - 2));
		} else if (this.position == 'vertical') {
			value = this.box.style.height;
			value = parseInt(value.substr(0, value.length - 2));
		}
		
		if (this.state == 'hide') {
			if (this.loop < this.loops ) {
				this.box.style.height = value+step+'px';
				this.loop++;
				setTimeout("hidenBox.change();",this.time);
			} else if (this.loop == this.loops){
				this.loop = 0;
				this.state = 'show';
				Fosta.cookie.setCookie('baner','on','1');
				if (this.img != null) {
					this.img.src = "http://mlodyx.nazwa.pl/images/bar_up.gif";
				}
			} 
		} else if (this.state == 'show') {
			if (this.loop < this.loops ) {
				this.box.style.height = (value-step)+'px';
				this.loop++;
				setTimeout("hidenBox.change();",this.time);
			} else if (this.loop == this.loops){
				this.loop = 0;
				this.state = 'hide';
				Fosta.cookie.setCookie('baner','off','1');
				if (this.img != null) {
					this.img.src = "http://mlodyx.nazwa.pl/images/bar_down.gif";
				}
			} 			
		}
	}
	
}
