function
changeOpacity(opacity, id)
{
    var object          = document.getElementById(id).style;
    object.opacity      = (opacity / 100);
    object.MozOpacity   = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter       = "alpha(opacity=" + opacity + ")";
}

// Blend in a div container with the given id:
function
blendIn(container_id, millisec)
{
    var speed   = Math.round(millisec / 100);
    var timer   = 0;

    // Change the opacity of the container to zero:
    changeOpacity(0, container_id);

    // Fade in the container:
    for(var i=0; i<=100; i++) {
        setTimeout("changeOpacity(" + i + ",'" + container_id + "')", timer * speed);
        timer++;
    }
}


