function tl_over(divId) {
    setTimelineBackground(divId, "#FFEEDD");
}
function tl_out(divId) {
    setTimelineBackground(divId, "#E0D0B8");
}
function setTimelineBackground(divId, color) {
    var headerDiv = document.getElementById('tl_hdr_' + divId);
    var lineDiv = document.getElementById('tl_line_' + divId);
    var topDiv = document.getElementById('tl_top_' + divId);
    var bottomDiv = document.getElementById('tl_bottom_' + divId);
    headerDiv.style.background = color;
    lineDiv.style.background = color;
    topDiv.style.background = color;
    bottomDiv.style.background = color;
}
function installTimelineHover(num) {
    for(var i = 0; i < num; i++) {
        setHandlers(document.getElementById('tl_hdr_' + i), i);
        setHandlers(document.getElementById('tl_line_' + i), i);
        setHandlers(document.getElementById('tl_top_' + i), i);
        setHandlers(document.getElementById('tl_bottom_' + i), i);
    }
}
function setHandlers(div, id) {
    div.onmouseover = function() { tl_over(id); }
    div.onmouseout = function() { tl_out(id); }
}
