var timeoutT;
function OverLens(id, height, width, Animate, Delay, Step)
{
    var t=false;

    var image = document.getElementById(id);
    if(Animate == "True")
    {
    
        if(height> image.height)
        {
            t=true;
            image.height = image.height + Step;
        }
        if(width> image.width)
        {
            t=true;
            image.width= image.width + Step;
        }        
    }
    else
    {
        image.height=height;
        image.width=width;
    }
    if(t)
        timeoutT = setTimeout("OverLens('"+id+"', '"+height+"', '"+width+"', '"+Animate+"', "+Delay+", "+Step+")", Delay);
    
}

function OutLens(id, height, width)
{
    clearTimeout(timeoutT);
    var image = document.getElementById(id);
    image.height=height;
    image.width=width;    
}
