
function zmienGallery()
{
	var ileObrazow = 5;
	if (typeof(this.pop) == 'undefined')
		this.pop = 1;
	
	if (typeof(this.nast) == 'undefined')
		this.nast = 2;
	
	$('#img'+this.pop).stop();
	$('#img'+this.nast).stop();
	
	$('#img'+this.pop).animate( {opacity : 0 }, 1000 );
	$('#img'+this.nast).animate( {opacity : 1 }, 1000 );
	
	this.pop = this.nast;
	(this.nast == ileObrazow) ? this.nast=1 : this.nast++; 
	
}
