var z;

function ZAppearObj(x,x2,obj)
{ 
	var t,t2;
    this.Appear = function() 
    {
        var op = (obj.style.opacity)?parseFloat(obj.style.opacity):0;
        if(op < x)  
        { 
            clearTimeout(t2);
            op += 0.05; 
            obj.style.opacity 		= op; 
			obj.style.MozOpacity 	= op;
			obj.style.filter 		= "progid:DXImageTransform.Microsoft.Alpha(opacity="+op+")";
            obj.style.filter		='alpha(opacity='+op*100+')'; 
            t = setTimeout(arguments.callee,50);
        } 
    };
	
    this.Disappear = function() 
    { 
        var op = (obj.style.opacity)?parseFloat(obj.style.opacity):0;
        if(op > x2)  
        { 
            clearTimeout(t); 
            op -= 0.05; 
            obj.style.opacity 		= op; 
			obj.style.MozOpacity 	= op;
			obj.style.filter 		= "progid:DXImageTransform.Microsoft.Alpha(opacity="+op+")";
            obj.style.filter		='alpha(opacity='+op*100+')'; 
            obj.style.filter='alpha(opacity='+op*100+')'; 
            t2 = setTimeout(arguments.callee,50); 
        } 
    } 
};

function StartAppear(obj,x)
{
	obj.style.opacity = x;
	obj.style.filter='alpha(opacity='+x*100+')';
};