
function crossfadeImage(str_divId, int_imgCount, str_imgName)
{
	currentImg = parseInt($('#'+str_divId+" img:first").attr("rel"));
	nextImg = currentImg == int_imgCount ? 1 : currentImg+1;
	var nextName = str_imgName.replace(/%no%/, nextImg);
	$('#'+str_divId).prepend("<div class='slide'><img src='"+nextName+"' rel='"+nextImg+"'></div>");
	$("#log").prepend("<div class='slide'><img src='"+nextName+"' rel='"+nextImg+"'></div>");
	$('#'+str_divId+' .slide:last').fadeOut(1000, function() {
		$(this).remove();
	});
	
}
