 var speed2 = 30

var loop2, timer2

function makeObj2(obj,nest){
    nest=(!nest) ? "":'document.'+nest+'.'
	this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
  	this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
	this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
	this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
	this.up=goUp2;this.down=goDown2;
	this.moveIt2=moveIt2; this.x=0; this.y=0;
    this.obj = obj + "Object"
    eval(this.obj + "=this")
    return this
}

var px = bw.ns4||window.opera?"":"px";

function moveIt2(x,y){
	this.x = x
	this.y = y
	this.css.left = this.x+px
	this.css.top = this.y+px
}

function goDown2(move){
	if (this.y>-this.scrollHeight+oCont2.clipHeight){
		this.moveIt2(0,this.y-move)
			if (loop2) setTimeout(this.obj+".down("+move+")",speed2)

	}
}

function goUp2(move){
	if (this.y<0){
		this.moveIt2(0,this.y-move)
		if (loop2) setTimeout(this.obj+".up("+move+")",speed2)
	}
}

function scroll2(speed2){
	if (scrolltextLoaded2){
		loop2 = true;
		if (speed2>0) oScroll2.down(speed2)
		else oScroll2.up(speed2)
	}
}

function noScroll2(){
	loop2 = false
	if (timer2) clearTimeout(timer2)
}

var scrolltextLoaded2 = false
function scrolltextInit2(){
	oCont2 = new makeObj2('divScrollTextCont1')
	oScroll2 = new makeObj2('divText1','divScrollTextCont1')
	oScroll2.moveIt2(0,0)
	oCont2.css.visibility = "visible"
	scrolltextLoaded2 = true
}

//if (bw.bw) onload = scrolltextInit2
