function rolloverSetup() {
	var img, sh, sn, sd, alt, title
	for (var i = 0; (img = document.images[i]); i++) {
		if (img.getAttribute) {
			sn = img.getAttribute("src");
			sh = img.getAttribute("hsrc");
			sd = img.getAttribute("dsrc");
			if (sn != "" && sn != null) {
				img.n = new Image();
				img.n.src = img.src;
				if (sh != "" && sh != null) {
					img.h = new Image();
					img.h.src = sh;
					img.onmouseover = rolloverSwapOn
					img.onmouseout  = rolloverSwapOff
				}
				if (sd != "" && sd != null) {
					img.d = new Image();
					img.d.src = sd;
					img.onmousedown = rolloverSwapDown
				}
			}
			alt = img.getAttribute("alt");
			title = img.getAttribute("title");
			if (title="" || title==null)
			   img.title = img.alt;
		}
	}
}

function rolloverSwapOn() {
	this.src = this.h.src;
}

function rolloverSwapOff() {
	this.src  = this.n.src;
}

function rolloverSwapDown() {
	this.src  = this.d.src;
	this.temp = typeof(document.onmouseup) != 'undefined' && typeof(document.onmouseup) != 'unknown' ? document.onmouseup : "";
	rolloverSwapUp.img = this;
	document.onmouseup = rolloverSwapUp;
}

function rolloverSwapUp() {
	var ths = rolloverSwapUp.img;
	ths.src = ths.n.src;
	if (ths.temp) document.onmouseup = ths.temp;
}
