function processSlideshow(elem, imageList, imageDuration, fadeSpeed, current) 
{
	var listSize = imageList.length-1;
    
    if(current <= 0 ) 
    { 
    	$('#slideshow div').css('opacity',1);
    	current = listSize;
    	
    }
    if (!current) current=listSize-1;
    if (!imageDuration) imageDuration = 2000;
    if (!fadeSpeed) fadeSpeed = 1000;
    
    $('#ss'+current).animate({ opacity: "0" }, imageDuration).
	      animate({ opacity: "0.01" }, fadeSpeed, function() 
		   { 
		      $(this).css("opacity", "0"); 
		      processSlideshow(elem, imageList, imageDuration, fadeSpeed, current - 1) 
			});

} 





	
	
