
function winWid(){ return (ns4||ns6)?window.innerWidth:document.body.clientWidth; }
function winHei(){ return (ns4||ns6)?window.innerHeight:document.body.clientHeight; }
function winOfy(){ return (ns4||ns6)?window.pageYOffset:document.body.scrollTop; }

function toplink()
{
rt=(!ns4)?'<div id="bttl" style="position:absolute;">':'<layer name="bttl">';
rt+='<a href="JavaScript:scrollTo(0,0)"><img src="images/Top.gif" width="31" height="12" alt="To top of page" border="0"></a>';
rt+=(!ns4)?'</div>':'</layer>';
document.write(rt);
mtoplink();
}

function mtoplink(){
	with(eval(bttll))
	{
		left=(winOfy()>0)?0:-500;
		top=(winOfy()>0)?winHei()+winOfy()-110:-500;
	}
	setTimeout('mtoplink()',updatespeed);
}

var ns4=(document.layers)?1:0;
var ie4=(document.all)?1:0;
var ns6=(document.getElementById&&!document.all)?1:0;
if(ie4)	bttll="document.all['bttl'].style";
if(ns4) bttll="document.layers['bttl']";
if(ns6) bttll="document.getElementById('bttl').style";
var updatespeed=0;
toplink();