function imgRollover() {
	if (!document.getElementById) return
	
	var imgLoad = new Array();
	var imgSrc;
	var imgSet = document.getElementsByTagName('img');

	for (var i = 0; i < imgSet.length; i++) {		
		if (imgSet[i].className == 'rollover') {
			var src = imgSet[i].getAttribute('src');
			var fileTable = src.substring(src.lastIndexOf('.'), src.length);
			var hoverSet = src.replace(fileTable, '_act'+fileTable);

			imgSet[i].setAttribute('hoverSet', hoverSet);
			
			imgLoad[i] = new Image();
			imgLoad[i].src = hoverSet;
			
			imgSet[i].onmouseover = function() {
				imgSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hoverSet'));
			}	
			
			imgSet[i].onmouseout = function() {
				if (!imgSrc) imgSrc = this.getAttribute('src').replace('_act'+fileTable, fileTable);
				this.setAttribute('src', imgSrc);
			}
		}
	}
}

window.onload = imgRollover;
