var GridFade=function(){
	this.cellFade=function(elId,op){
		if(typeof(op)=='undefined'){var op=100;}
		var self=this;
		var timeoutFunc=function(){  self.cellFade(elId,op); }
		
		op=(op-4);
		var el=document.getElementById(elId);
		el.style.opacity=op/100;
		el.style.filter='alpha(opacity = '+op+')';
		var timeout=setTimeout (timeoutFunc, 80 ); // edit this line to change speeed
		if(op<=0){
		   clearTimeout(timeout);	
		}
	}
}
window.onload=function(){
	d=new GridFade();
	dbg=$('messageDiv');
	var cells = $$("#scr td"); 
	cells.each(function(eee){
		eee.observe('mouseover',function(event){
				d.cellFade(Event.element(event).id)
		});
	});
}
