
var t,t2,obj,op;

function appear(x)
{
	op = (obj.style.opacity)?parseFloat(obj.style.opacity):parseInt(obj.style.filter)/100;
	if(op < x) 
	{
		clearTimeout(t2);
		op += 0.05;
		
		obj.style.opacity = op;
		obj.style.filter='alpha(opacity='+op*100+')';
		t=setTimeout('appear('+x+')',20);
	}
}

function disappear(x)
{
	clearTimeout(t);
	obj.style.opacity = 0.5;
	obj.style.filter='alpha(opacity=50)';
} 
var len = document.images.length;
for(var i=0; i<len; i++){
     var image = window.document.images[i];	
      if(image.className.match(/fade/i)){
		image.style.opacity = 0.5;
		image.style.filter='alpha(opacity=50)';		
      }
}