// Input Rollover
// Add class of inpHov to inputs for a rollover effect
// all input images must be .gif extensions and all the rollover images should be finished with -on.gif so we can find them easily.

inpHover = function() {
	if (!document.getElementById) {return}
	var sfEls = document.getElementById("main").getElementsByTagName("INPUT");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			var temp= this.src;
			temp=temp.replace(new RegExp(".gif" + "\\b"), "-on.gif");
			this.src = temp;
		}
		sfEls[i].onmouseout=function() {
			var temp= this.src;
			temp=temp.replace(new RegExp("-on.gif" + "\\b"), ".gif");
			this.src = temp;
		}
	}
}
addLoadEvent(inpHover);

