// JavaScript Document
function floatButton () {
if (document.all) {
document.all.topButton.style.left=document.body.scrollLeft+document.body.clientWidth-document.all.topButton.offsetWidth-5
document.all.topButton.style.top=document.body.scrollTop+document.body.clientHeight-document.all.topButton.offsetHeight-2
	if(document.body.scrollTop <= 0)
		document.all.topButton.style.visibility = 'hidden';
	else
		document.all.topButton.style.visibility = 'visible';
}
else if (document.layers) {
topButton.left=pageXOffset+window.innerWidth/2-topButton.document.width/2
topButton.top=pageYOffset+window.innerHeight-topButton.document.height-5
setTimeout("floatButton()",90)
}
else if (document.getElementById) {
document.getElementById('topButton').style.top = (window.pageYOffset + window.innerHeight - 75) + 'px';
document.getElementById('topButton').style.left= (window.innerWidth - 130) + 'px';
	if(document.body.scrollTop <= 0)
		document.getElementById('topButton').style.visibility = 'hidden';
	else
		document.getElementById('topButton').style.visibility = 'visible';
}
}
if (document.all)
window.onscroll = floatButton;
else
setInterval ('floatButton()', 90);
function initButton () {
if (document.all) {
document.all.topButton.style.pixelLeft = document.body.clientWidth - document.all.topButton.offsetWidth-5;
document.all.topButton.style.top=document.body.scrollTop+document.body.clientHeight-document.all.topButton.offsetHeight-4
	if(document.body.scrollTop <= 0)
		document.all.topButton.style.visibility = 'hidden';
	else
		document.all.topButton.style.visibility = 'visible';
}
else if (document.layers) {
document.topButton.left = window.innerWidth - document.topButton.clip.width - 15;
document.topButton.top=pageYOffset+window.innerHeight-topButton.document.height-8
document.topButton.visibility ='show';
}
else if (document.getElementById) {
document.getElementById('topButton').style.left = (window.innerWidth - 100) + 'px';
	if(document.body.scrollTop <= 0)
		document.getElementById('topButton').style.visibility = 'hidden';
	else
		document.getElementById('topButton').style.visibility = 'visible';
 }
}

document.write('<span ID="topButton" STYLE="position: absolute; visibility: hidden; width: 110px; height: 21px;">');

document.write('&nbsp;<A class="sitetop" valign="top" title="Go to Top" HREF="javascript: window.scrollTo(0,0); void 0" ONMOUSEOVER="window.status = \'Go to Top\'; return true;" ONMOUSEOUT="window.status = \'\'; return true;">Top</A>&nbsp;');

document.write('</span>');

window.onload=initButton

function hov(loc,cls){
   if(loc.className)
      loc.className=cls;}
