function slideshow(slideNo,stepNo,noOfSlides,noOfSteps,stepTime,pause) {
	//Detect if browser is ie or ns
	ie5  = (document.all && document.getElementById);
	ns6 = (!document.all && document.getElementById);
	//Calculate new opacity value
	newOpacity = (100 / noOfSteps) * stepNo;
	//Loop through slides setting appropriate opacity
	for (var i = 2; i<=noOfSlides; i++) {
		if (i < slideNo) {
			thisOpacity = 100;
		}
		if (i == slideNo) {
			thisOpacity = newOpacity;
		}
		if (i > slideNo) {
				thisOpacity = 0;
		}
		if (slideNo == 1 && i == noOfSlides) {
			thisOpacity = (100 - newOpacity);
		}
		if (thisOpacity > 0) {
			thisVisibility = 'visible';
		} else {
			thisVisibility = 'hidden';
		}
		objectId = 'slide' + i;
		if (ie5) {
			document.getElementById(objectId).filters.alpha.opacity = thisOpacity;
		}
		if (ns6) {
			document.getElementById(objectId).style.MozOpacity = thisOpacity/100;
		}
		document.getElementById(objectId).style.visibility = thisVisibility;
	}
	//Set time before next cycle
	if (stepNo == noOfSteps) {
		thisStepTime = pause;
	} else {
		thisStepTime = stepTime;
	}
	//Set next step and slide numbers
	stepNo = stepNo +1;
	if (stepNo > noOfSteps) {
		stepNo = 1;
		slideNo = slideNo + 1;
		if (slideNo > noOfSlides) {
			slideNo = 1;
		}
	}
	setTimeout('slideshow(' + slideNo + ',' + stepNo + ',' + noOfSlides + ',' + noOfSteps + ',' + stepTime + ',' + pause + ')', thisStepTime);
}
