function scanImgs() {
	var arr,i;
	
	arr=$$('img[hoverSrc]');
	for(i=0;i<arr.length;i++) {
		
		arr[i].myImg=new Image();
		arr[i].hoverImg=new Image();
		arr[i].myImg.src=arr[i].src;
		arr[i].hoverImg.src=arr[i].readAttribute("hoverSrc");
		
		arr[i].onmouseover=function() {
			if(this.hoverImg.complete) {
				this.src=this.hoverImg.src;
			}
		}
		arr[i].onmouseout=function() {
			this.src=this.myImg.src;
		}
		
	}
} // scanImgs

document.observe("dom:loaded",function() {
	scanImgs();
});
