function rolloverImg() {
	if(!document.getElementById){
		return;
	}
	
	var imgBuff = new Array();
	var imgElement = document.getElementsByTagName('img');
	var tmp;
		
	for(var i=0; i<imgElement.length; i++){
		if(imgElement[i].className == 'imgover'){
			var src = imgElement[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf("."), src.length);
			var hsrc = src.replace(ftype, '_over'+ftype);
			
			imgElement[i].setAttribute('hsrc', hsrc);
			
			imgBuff[i] = new Image();
			imgBuff[i].src = hsrc;
			
			imgElement[i].onmouseover = function() {
				tmp = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}
			
			imgElement[i].onmouseout = function() {
				if(!tmp) tmpSrc = this.getAttribute('src').replace('_over'+ftype,ftype);
				this.setAttribute('src', tmp);
			}
		}
	}
}

