
Array.prototype.random = function(limit)
{
	if (typeof limit == 'undefined' || limit < 0) limit = 1;
	else if (!limit) limit = this.length;
	for (var i = 0, source = this, target = new Array(), n = source.length; i < limit && n > 0; i++)
	{
		do { var index = Math.random(); } while (index == 1);
		index = Math.floor(index * n);
		target.push(source[index]);
		source[index] = source[--n];
	}
	return target;
}

document.write(new Array(

// Tu wpisz kolejne elementy:

'<img src="images/glowna/lato.jpg" alt="Kościół latem" align="right" border="3" width="150" hspace="20" vspace="20">',
'<img src="images/glowna/rysunkowy.jpg" alt="Rysunek z kroniki ministranckiej" align="right" border="3" width="150" hspace="20" vspace="20">',
'<img src="images/glowna/zima.jpg" alt="Kościół zimą" align="right" border="3" width="150" hspace="20" vspace="20">',
'<img src="images/glowna/zima2.jpg" alt="Ołtarz zimą" align="right" border="3" width="150" hspace="20" vspace="20">',
'<img src="images/glowna/inter.jpg" alt="Klasztor NMP na tle wieży kościoła" align="right" border="3" width="150" hspace="20" vspace="20">'

).random().join(''));

