

function initImageSwap() {
	imgs = document.getElementsByTagName('IMG');
	for(i=0;i<imgs.length;i++) {
		el = imgs[i];
		if (el.className=='imageSwap') {
			el.ext = el.src.substr(el.src.length-3,3);
			if (el.src.indexOf('a.'+el.ext)!=-1) {
				addPreload(el.src.replace('a.'+el.ext,'b.'+el.ext));
				addPreload(el.src);
				el.onmouseover = el.onmouseup = function() {
					this.src = this.src.replace('a.'+this.ext,'b.'+this.ext);
				}
				el.onmouseout = el.onmousedown = function() {
					this.src = this.src.replace('b.'+this.ext,'a.'+this.ext);
				}
			}
		}
	}
}


loadMeUp += "initImageSwap();";

