Delta component

I have a part of a script that I found on another question.

function OnTriggerEnter(other:Collider)
{
if(other.name==“Player”) //Player entered the trigger
Camera.main.GetComponent(MotionBlur).enabled=true;
}

Im using it to trigger a component (In my case an image effect) to enable itself and disable when I touch an object.
So my question now is,
How do I go about setting up the script so that, when you touch an object the Component slowly fades in, stay on for a minute, then slowly fade out again.

Any one have any ideas of how i would go about this. My guess is it will deal with some kinda delta?
Please please help somebody, I really have no idea how to script on my own.

You will use Lerp to ease the values of the blur in. A good way to do this is to set all the values like normal in the inspector. In the script make a var for each float value of the image effect. Then in start set those values to 0.

private var fading:boolean;
private var canFadeIn:boolean=true;
private var blurSpread:float; 
private var orgBlueSpread:float;
private var blur:Blur;

function Start()
{
    blur=Camera.main.transform.GetComponent(Blur);
    orgBlurSpread=blur.blurSpread;
    blur.blurSpread=0;
}
function OnTriggerEnter(other:Collider)
{
    if(!fading)
    {
        if(canFadeIn)Fade(false);
        else Fade(true);
    }
}
function Fade(out:boolean)
{
    fading=true;
    var t:float=0;
    var lerpTime:float=1.5;
    var start:float;
    var target:float;
    if(out)
    {
        start=orgBlurSpread;
        target=0;
        canFadeIn=true
    }
    else
    {
        start=0;
        target=orgBlurSpread;
        canFadeIn=false
    }
    while(t<1)
    {
        blur.blurSpread=Mathf.Lerp(start,target,t);
        t+=Time.deltaTime/lerpTime;
        yield;
    }
    fading=false;
}