function processSlideshow(elem, imageList, imageDuration, fadeSpeed, current) 
{
	var listSize = imageList.length;
    if (!current || current >= listSize) current = 0;
    if (!imageDuration) imageDuration = 2000;
    if (!fadeSpeed) fadeSpeed = 1000;
	
	var arr = imageList[current] ;
	var src = arr[0] ;
	var lnk = arr[2];
	
	var jTd = $(elem) ;
	var jImage = $(elem + " a img") ;
	var jLink = $(elem + " a") ;
	
	
    jImage.attr("src", slideBase+src);
    jLink.attr("href", lnk);
	
    if (current == (listSize - 1)) { $(elem).css("background", "transparent url(" + slideBase+imageList[0][0] + ") no-repeat");
    } else {
        $(elem).css("background", "transparent url(" + slideBase+imageList[current + 1][0] + ") no-repeat");
    }
    jLink.animate({ opacity: "1" }, imageDuration).
	      animate({ opacity: "0.01" }, fadeSpeed, function() 
		   { 
		     $(this).css("opacity", "1"); processSlideshow(elem, imageList, imageDuration, fadeSpeed, current + 1) 
			});
    jTd.css("background-color", "black");
} 


function startSlideshow()
{
	  processSlideshow(".Product", slideShow, 2000, 1000);
}
		

