<!--
function init() {
    var img, sh, sn, sd;
    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 = imgMouseOn
			img.onmouseout  = imgMouseOff
		}

		if (sd != "" && sd != null) {
		    img.d = new Image();
		    img.d.src = sd;
		    img.onmousedown = imgMouseDown
		}
	    }
	}
    }
}

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

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

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

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

onload=init;
//-->

