﻿

function domFader() {
	if (navigator.userAgent.match(/Opera (\S+)/)) {
		var operaVersion = parseInt(navigator.userAgent.match(/Opera (\S+)/)[1]);
	}
	if (!document.getElementById||operaVersion <7) return;
	var imgarr=document.getElementsByTagName('img');
	for (i=0;i<imgarr.length;i++){
		if (imgarr[i].className.indexOf('domfade')!=-1){
			imgarr[i].onmouseover=function(){
				this.style.opacity = 1;
				this.style.KhtmlOpacity = 1;
				this.style.filter = 'alpha(opacity=100);';
			}
			imgarr[i].onmouseout=function(){
				this.style.opacity = 0.75;
				this.style.KhtmlOpacity = 0.75;
				this.style.filter = 'alpha(opacity=75);';
			}
		}
	}
}
domFader();