﻿var Blend={	up:{},down:{},
start:function(){setInterval("Blend.exec()",10);},
exec:function(){
	for(var e in this.up){
		var o=this.up[e];
		if(F.ie){
			if(o.filters.Alpha.opacity>=100){delete this.up[e];	continue;}
			o.filters.Alpha.opacity+=2;
		}
		else{
			if(parseFloat(o.style.MozOpacity)>=1){delete this.up[e];continue;}
			o.style.MozOpacity=parseFloat(o.style.MozOpacity)+0.02;
		}
	}
	for(var e in this.down){
		var o=this.down[e];
		if(F.ie){
			if(o.filters.Alpha.opacity<=60){delete this.down[e];	continue;}
			o.filters.Alpha.opacity-=2;
		}
		else{
			if(parseFloat(o.style.MozOpacity)<=0.6){delete this.down[e];continue;}
			o.style.MozOpacity=parseFloat(o.style.MozOpacity)-0.02;
		}
	}
}
};
var imgs=F.id("thumbs").getElementsByTagName("IMG");
for(var i=0;i<imgs.length;i++){
	if(!F.ie) imgs[i].style.MozOpacity=0.6;
	imgs[i].onmouseover=function(){
		if(!this.guid) this.guid=Date.parse(new Date());
		for(var e in Blend.up){
			if(e==this.guid) continue;
			Blend.down[e]=Blend.up[e];
			delete Blend.up[e];
		}
		Blend.up[this.guid]=this;
	}
	imgs[i].onmouseout=function(){
		if(!this.guid) this.guid=Date.parse(new Date());
		delete Blend.up[this.guid];
		Blend.down[this.guid]=this;
	}
}
Blend.start();
