/*
<!-- Original:  Richard Cleaver (richard@cleaver.org.uk) -->
<!-- Web Site:  http://www.cleaver.org.uk -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
*/
function floatButton () {
if (document.all) {
/*
document.all.topButton.style.pixelTop = document.body.scrollTop;
*/
document.all.topButton.style.pixelTop = document.body.scrollTop + 35;
}
else if (document.layers) {
document.topButton.top = window.pageYOffset + 35;
}
else if (document.getElementById) {
document.getElementById('topButton').style.top = window.pageYOffset + 'px';
   }
}


function Test (){
if (document.all)
window.onscroll = floatButton;
else
setInterval ('floatButton()', 100);
}


function initButton () {
if (document.all) {
/*
document.all.topButton.style.pixelLeft = document.body.clientWidth - document.all.topButton.offsetWidth;
*/
document.all.topButton.style.pixelLeft = 10;
document.all.topButton.style.visibility = 'visible';
}
else if (document.layers) {
document.topButton.left = 10;
document.topButton.visibility = 'show';
}
else if (document.getElementById) {
document.getElementById('topButton').style.left = (window.innerWidth - 35) + 'px';
document.getElementById('topButton').style.visibility = 'visible';
   }
Test ();
}
//  End -->