
function Rollover() {
	if (navigator.userAgent.match(/Opera (\S+)/)) {
		var operaVersion = parseInt(navigator.userAgent.match(/Opera (\S+)/)[1]);
	}
	if (!document.getElementById||operaVersion <7) return;
	imgarr = document.getElementsByTagName('img');
	doRolloversFor(imgarr);
	
	imgarr = document.getElementsByTagName('input');
	doRolloversFor(imgarr);
	
}

function doRolloversFor(arr) {
	var imgPreload=new Array();
	var imgSrc=new Array();
	var imgClass=new Array();
	for (i=0;i<arr.length;i++){
		if (arr[i].className.indexOf('rollover')!=-1){
			imgSrc[i]=arr[i].getAttribute('src');
			imgPreload[i]=new Image();
			imgPreload[i].src = imgSrc[i].replace('.gif','_over.gif');
			imgarr[i].setAttribute('xsrc', imgSrc[i]);
			imgarr[i].onmouseover=function(){
				this.setAttribute('src',this.getAttribute('src').replace('.gif','_over.gif'))
			}
			imgarr[i].onmouseout=function(){
				this.setAttribute('src',this.getAttribute('xsrc'))
			}
		}
	}
}
