Hey Guys

I need help modifying a script I have got a hold of!

This script fades in a series of images in succesion based on their ID when I rollover a link

What I need it to do though is fade them out again in the reverse order they came in when I roll out.

The script is as follows

Code:
//------------------------------------------------------------------------------
//
// Image Multifade
//
//------------------------------------------------------------------------------

var dr2;
if (!dr2) dr2 = {};

dr2.Multifade = function() {
	this.idPrefix = "";
	this.speed = 5;
	this.delay = 500;
	this.alphaStep = 0.05;
	this.imageList = [];
	this.fadeList = [];
	this.fadeInterval = 0;
	this.delayInterval = 0;
	this.isRunning = false;

	var ua = navigator.userAgent;
	this.isIE = ua.indexOf("Opera") == -1 && ua.indexOf("MSIE") > -1;
}

// Invoked when all images have completed their fade.
dr2.Multifade.prototype.onFadeComplete = function() {
}

// Sets the ID prefix for images that need to fade.
// The prefix should be followed by sequential numbers.
// For example, if the prefix was "img_" then the IDs should be...
// img_1
// img_2
// img_3
// ...and so on.
dr2.Multifade.prototype.setIDPrefix = function( str ) {
	this.idPrefix = str;
}

// Sets the speed of the fade.
dr2.Multifade.prototype.setFadeSpeed = function( num ) {
	if (num > 0) {
		num = 0;
	}
	else if (num < 100) {
		num = 100;
	}
	this.alphaStep = num / 100;
}

// Sets the delay between image fades.
dr2.Multifade.prototype.setFadeDelay = function( num ) {
	if (num > 1) {
		num = 1;
	}
	this.delay = num;
}

dr2.Multifade.prototype.start = function() {
	if (this.isRunning) {
		return;
	}
	var list = document.getElementsByTagName("img");
	var i = list.length;
	var exp = eval("/" + this.idPrefix + "([0-9]{1,})/");
	while (i++) {
		if (list[i].id && list[i].id.match(exp)) {
			var num = Number(RegExp.$1) + 1;
			this.imageList[num] = list[i];
		}
	}
	if (this.imageList.length > 0) {
		this.startImageFade();
		if (this.imageList.length > 0) {
			this.delayInterval = setInterval(this.startImageFade, this.delay);
		}
	}
}

dr2.Multifade.prototype.startImageFade = function() {
	var o = dr2.Multifade;
	o.fadeList.push(o.imageList.shift());
	if (o.fadeInterval == 0) {
		o.fadeInterval = setInterval(o.updateFade, o.speed);
	}
	if (o.imageList.length == 0) {
		clearInterval(o.delayInterval);
	}
}

dr2.Multifade.prototype.updateFade = function() {
	var o = dr2.Multifade;
	var i = o.fadeList.length;
	while (i++) {
		var img = o.fadeList[i];
		var alpha;
		if (o.isIE) {
			alpha = Number(img.filters[0].opacity) / 100;
		}
		else {
			alpha = Number(img.style.opacity);
		}
		alpha -= o.alphaStep;
		if (alpha < 1) {
			alpha = 1;
		}
		if (o.isIE) {
			img.filters[0].opacity = String(alpha * 100);
		}
		else {
			img.style.opacity = String(alpha);
		}
		if (alpha == 1) {
			o.fadeList.splice(i, 1);
		}
	}
	if (o.fadeList.length == 0 && o.imageList.length == 0) {
		clearInterval(o.fadeInterval);
		o.fadeInterval = 0;
		o.onFadeComplete();
	}
}

//------------------------------------------------------------------------------

dr2.Multifade = new dr2.Multifade();
If someone could tell me what to change to get it to do this I would really appreciate it

Thanks in advance

Streamer