	var top, pos, bottom, height, limit;
	
	function scroll(diff) {			
		if(diff < 0 && pos == 0) return bottomScroller();
		if(diff > 0 && pos == limit) return resetScroller();
		if(diff < 0) pos--;
		if(diff > 0) pos++;			
		top += diff;
		bottom = top + height;
		page = document.getElementById("scroller");
		page.style.top = (-top) + "px";						
		page.style.clip = "rect(" + top + "px,204px," + bottom + "px,0px)";			
	}
	
	function resetScroller(){
		pos = 0;
		top = 0;
		bottom = 504;
		height = 504;
		page = document.getElementById("scroller");
		page.style.top = "0px";
		page.style.clip = "rect(0px, 204px, " + bottom + "px, 0px)";
		return true;
	}
	
	function bottomScroller(){
		for(var i=0;i<limit;i++) scroll(168);
		return true;
	}
