
function ScrollBanners() {

    bodyHeight = document.getElementById('divBody').offsetHeight;
    scrollHeight = document.body.scrollTop;

    if (document.getElementById('rightBanner') != null) {
        h = document.getElementById('rightBanner').offsetHeight;
        x = bodyHeight - h;
        if (scrollHeight <= x) document.getElementById('rightBanner').style.top = (10+scrollHeight) + "px";
    }

    if (document.getElementById('leftBanner') != null) {
        h = document.getElementById('leftBanner').offsetHeight;
        x = bodyHeight - h;
        if (scrollHeight <= x) document.getElementById('leftBanner').style.top = (10+scrollHeight) + "px";
    }

}
