function rollover_fading(id, start, end, time) {
    
    var velocity = Math.round(time / 100);
    var timer = 0;
     
    if(start > end) {
        for(i = start; i >= end; i--) {
            setTimeout("change_opacity(" + i + ",'" + id + "')",(timer * velocity));
            timer++;
        }
    } else if(start < end) {
        for(i = start; i <= end; i++)
            {
            setTimeout("change_opacity(" + i + ",'" + id + "')",(timer * velocity));
            timer++;
        }
    }
}

function change_opacity(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 + ")";
} 


