
var floater;
var theTop = 0;
var old = theTop;


function init()
{
	floater = new getObj('floater');
	movefloater();
}


function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
	this.obj = getObjNN4(document,name);
	this.style = this.obj;
  }
}


function movefloater()
{
	
	if (window.innerHeight)					// Netscape 4.x
	{	pos = window.pageYOffset}
	
	else if (document.documentElement && document.documentElement.scrollTop)
	{	pos = document.documentElement.scrollTop}
	
	else if (document.body)					// IE
	{	pos = document.body.scrollTop}

	if (pos < theTop) pos = theTop;
	else pos += 0;

	if (pos != old)
	{
	
		pos = (.1 *(pos-old))+old;
		floater.style.top = pos+"px";
	}
	
	old = pos;
	temp = setTimeout('movefloater()',5);
}
