var scrollingId = 'bannerscrolling';
function floatButton () {
    var scrollPos;
    if (typeof window.pageYOffset != 'undefined') {
       scrollPos = window.pageYOffset;
    }
    else if (typeof document.compatMode != 'undefined' &&
         document.compatMode != 'BackCompat') {
       scrollPos = document.documentElement.scrollTop;
    }
    else if (typeof document.body != 'undefined') {
       scrollPos = document.body.scrollTop;
    }
    
    /*if (document.all && (scrollPos + document.body.clientHeight >= (document.body.scrollHeight - 100))) {
        //return;
    }*/
    if (document.getElementById) {
        document.getElementById(scrollingId).style.top = (scrollPos + 50) + 'px';
    }
}

function initScrolling () {
    if (!document.getElementById(scrollingId)) {
        return;
    }
    if (document.getElementById) {
        window.onscroll = floatButton;
        document.getElementById(scrollingId).style.visibility = 'visible';
   }
}