function processSlideshow(elem, imageList, imageDuration, fadeSpeed, current, linkList) 
{
	//---- IMAGE LIST SIZE
	var listSize 	= imageList.length;
    
    //---- SETTING UP VARIABLES
    //---- CURRENT IMAGE
    if (!current || current >= listSize) current = 0;
    //---- IMAGE DISPLAY TIME ms
    if (!imageDuration) imageDuration = 2000;
    //---- IMAGE FADE TIME ms
    if (!fadeSpeed) fadeSpeed = 1000;
    

	//---- MODIFIES THE EXISTING IMG TAG
    $(elem + " img").attr("src", imageList[current]);
	//---- MODIFIES THE EXISTING A TAG
    $(elem + " a").attr("href", linkList[current]);
    $(elem + " a").attr("target", "_Blank");
    
    
    if (current == (listSize - 1)) 
    { 
		$(elem).css("background", "transparent url(" + imageList[0] + ") no-repeat");
    } 
    else 
    {
        $(elem).css("background", "transparent url(" + imageList[current + 1] + ") no-repeat");
    }
    
    $(elem + " img").animate({ opacity: "1" }, imageDuration).animate({ opacity: "0.01" }, fadeSpeed, function() 
	{ 
		$(this).css("opacity", "1"); processSlideshow(elem, imageList, imageDuration, fadeSpeed, current + 1,linkList) 
	});
} 





	
	