function losujFotki() {
		
		//alert('!');

		var fotoCount = 0;
		var aktFoto = 0;
		var nastFoto = 0;
		var j = 0;
		
		jQuery.each( $("a.linkPhoto") , function(i, linkPhoto) {
	      
			//pobrac ilosc zdjec
			fotoCount = $(linkPhoto).find('img.anim').length;
			
			j = 0;
			
			aktFoto = 0;
			
			jQuery.each( $(linkPhoto).find('img.anim') , function(i, img) {
				
				
			
				
				
				if ( $(img).is(':visible') )
				{
					aktFoto = j;
				}
				
				 //$(img).hide();
				
				
				j++;
				
				
			});
			
			
			
			if (aktFoto < fotoCount - 1) {
				nastFoto = aktFoto + 1;
			}
			else
			{
				nastFoto = 0;
			}
			
			
			//podmianka
			
			fotoArr = $(linkPhoto).find('img.anim');
			
			$(fotoArr[aktFoto]).fadeOut(3800);
			$(fotoArr[nastFoto]).fadeIn(3800);
			
			
			
			
			
    });
    
    
   
    
}
