var mapa;
		
	function mapaStart()
		{
			if(GBrowserIsCompatible())  
			{
				mapa = new GMap2(document.getElementById('mapka'));
				mapa.setCenter(new GLatLng(49.8937635,19.4868547),13);  
				mapa.addOverlay(new Obraz(mapa.getCenter(),'http://www.sklep.ponar-wadowice.pl/img/loga_grkap/ponar-wadowice2.png',128));
				mapa = new GMap2(document.getElementById('mapka2'));
				mapa.setCenter(new GLatLng(50.1481826,18.8481081),16);
				mapa.addOverlay(new Obraz(mapa.getCenter(),'http://www.sklep.ponar-wadowice.pl/img/loga_grkap/ponar-silesia2.png',128));
			}
		}			
		
		function Obraz(punkt,obrazURL,szerokosc)
		{
			this.punkt = punkt;
			this.obrazURL = obrazURL;
			this.szerokosc = szerokosc || 128;
		};
		
		Obraz.prototype = new GOverlay();

		Obraz.prototype.initialize = function(mapa)
		{
			var obraz = document.createElement("img");
			obraz.src = this.obrazURL;
			obraz.className = 'obrazek';
			obraz.style.position = 'absolute';
			obraz.style.width = this.szerokosc+'px';
			mapa.getPane(G_MAP_MAP_PANE).appendChild(obraz);
			
			this.mapa = mapa;
			this.obraz = obraz;	
		};

		Obraz.prototype.remove = function()
		{
			this.obraz.parentNode.removeChild(this.obraz);
		};

		Obraz.prototype.copy = function()
		{
			return new Obraz(this.punkt,this.obrazURL,this.szerokosc);
		};

		Obraz.prototype.redraw = function(wymus)
		{
			if (!wymus)
				return;
			this.obraz.style.top = (mapa.fromLatLngToDivPixel(this.punkt).y+3)+'px';
			this.obraz.style.left = mapa.fromLatLngToDivPixel(this.punkt).x+'px';
		}