if(typeof(otworz_url) == 'undefined')
{
	document.write('<script type="text/javascript" src="./javascript/otworz_url.js"></scr'+'ipt>');//importowanie funkcji
}

var tresc_ostatnio_dodane_galerie = false;//określa czy treść została wczytana
var tresc_ostatnio_dodane_galerie_zdarzenie = null;//uchwyt który przechowuje stan odświerzania postępu wczytywania galerii

function sprawdz_stan_wczytywania_dodanych_galerii (http)
{
	//pobieramy teraz element DOM
	element = document.getElementById('ostatnio_dodane_galerie');
	switch(http.readyState)
	{
		case 4:
			element.innerHTML = http.responseText;
			tresc_ostatnio_dodane_galerie = true;
		break;
		default:
		{
			if(tresc_ostatnio_dodane_galerie_zdarzenie == null || tresc_ostatnio_dodane_galerie_zdarzenie == 3)
			{
				element.innerHTML = o_d_g_z_loading+' .';
				tresc_ostatnio_dodane_galerie_zdarzenie = 0;
			}
			else
			{
				element.innerHTML += '.';
				tresc_ostatnio_dodane_galerie_zdarzenie++;
			}
		}
	}
}
function wczytaj_zawartosc_dodanych_galerii()
{
	if(tresc_ostatnio_dodane_galerie == true) return true;
	var galeria_dane = otworz_url('./?t=126', 'sprawdz_stan_wczytywania_dodanych_galerii');
}