// JavaScript Document
var speed=50 
var loop, timer 
 
function ConstructObject(obj,cont){ 
    this.el=document.getElementById(obj) 
    this.css=document.getElementById(obj).style 
    this.scrollHeight=this.el.offsetHeight 
    this.clipHeight=document.getElementById(cont).offsetHeight
    this.up=MoveAreaUp 
    this.MoveArea=MoveArea; this.y; 
    this.obj = obj + "Object" 
    eval(this.obj + "=this") 
    return this 
} 
function MoveArea(y){ 
    this.y=y 
    this.css.top=this.y +"px" 
} 

function MoveAreaUp(move){ 

	if(this.y>-this.scrollHeight){ 
    this.MoveArea(this.y+move) 
		} 
	else
		{
			this.MoveArea(this.clipHeight)
		} 
    if(loop) timer=setTimeout(this.obj+".up("+move+")",speed) 
} 
 
function PerformScroll(speed){ 
		CeaseScroll()
		loop=true; 
		objScroller.up(speed) 
} 
 
function CeaseScroll(){ 
    loop=false 
    if(timer) clearTimeout(timer) 
} 
var initialised; 
function initscroll(obj,cont){ 
	
    objScroller=new ConstructObject(obj,cont) 
    objScroller.MoveArea(0) 
    objScroller.css.visibility='visible' 
    PerformScroll(-1); 
} 
