lastScrollY=0;
var collection;

function floaters() {
	this.items = [];
	this.addItem = function(id){
		this.items[this.items.length]=document.getElementById(id);
	}
	this.play = function(){
		collection = this.items;
		window.setInterval("heartBeat()",10);
	}
}


function heartBeat(){ 
	var diffY;
	if (document.documentElement && document.documentElement.scrollTop)
		diffY = document.documentElement.scrollTop;
	else if (document.body)
		diffY = document.body.scrollTop
	else
		{/*Netscape stuff*/}
		
	percent=.1*(diffY-lastScrollY); 
	if(percent>0)percent=Math.ceil(percent); 
	else percent=Math.floor(percent); 
	
	for(var i=0;i<collection.length;i++){
		collection[i].style.top=parseInt(collection[i].style.top)+percent+"px";
	}

	lastScrollY=lastScrollY+percent; 
}