function imgSwap() {
	var allImgs = document.getElementsByTagName('img');
	for (var i=0;i<allImgs.length;i++) {
		if ( allImgs[i].src.indexOf('_off') > -1 ) {
			allImgs[i].onmouseover = function() { this.src = this.src.replace('_off.','_on.'); }
			allImgs[i].onmouseout = function() { this.src = this.src.replace('_on.','_off.'); }
		}
	}
	
	var allInputs = document.getElementsByTagName('input');
	for (i=0;i<allInputs.length;i++) {
		if ( allInputs[i].src.indexOf('_off') > -1 ) {
			allInputs[i].onmouseover = function(){ this.src = this.src.replace('_off.','_on.'); }
			allInputs[i].onmouseout = function(){ this.src = this.src.replace('_on.','_off.'); }
		}
	}
}

function AddListener(eventName, func) {
	if (window.addEventListener) {
		window.addEventListener(eventName, func, false);
	} else {
		window.attachEvent("on" + eventName, func, false);
	}
}

AddListener("load", imgSwap);