// scroll stuff
var scrollTimer;
function startScrollUp()
{
    clearInterval(scrollTimer);
    scrollTimer = setInterval("scrollUp()", 2);
}
function startScrollDown()
{
    clearInterval(scrollTimer);
    scrollTimer = setInterval("scrollDown()", 2);
}
function stopScrolling()
{
    clearInterval(scrollTimer);
}
function scrollUp()
{
    var contentDiv = document.getElementById("contentDiv");
    var upBtn = document.getElementById("btn_up");
    var dnBtn = document.getElementById("btn_down");
    contentDiv.scrollTop -= 15;
    if (contentDiv.scrollTop == 0)
    {
        upBtn.style.display = "none";
    }
    else
    {
        upBtn.style.display = "inline";
    }
    dnBtn.style.display = "inline";
}
function scrollDown()
{
    var contentDiv = document.getElementById("contentDiv");
    var upBtn = document.getElementById("btn_up");
    var dnBtn = document.getElementById("btn_down");
    contentDiv.scrollTop += 15;
    if ((contentDiv.scrollTop + parseInt(contentDiv.style.height)) + parseInt(contentDiv.style.paddingTop) + parseInt(contentDiv.style.paddingBottom) >= contentDiv.scrollHeight )
    {
        dnBtn.style.display = "none";
    }
    else
    {
        dnBtn.style.display = "inline";
    }
    upBtn.style.display = "inline";
}
function hideScrollers()
{
    var contentDiv = document.getElementById("contentDiv");
    var upBtn = document.getElementById("btn_up");
    var dnBtn = document.getElementById("btn_down");
    if ((contentDiv.scrollTop + parseInt(contentDiv.style.height)) + parseInt(contentDiv.style.paddingTop) + parseInt(contentDiv.style.paddingBottom) >= contentDiv.scrollHeight )
    {
        dnBtn.style.display = "none";
    }
    else
    {
        dnBtn.style.display = "inline";
    }
    if (contentDiv.scrollTop == 0)
    {
        upBtn.style.display = "none";
    }
    else
    {
        upBtn.style.display = "inline";
    }
}
window.onload = hideScrollers;

 
