bw1=new checkBrowser() ;
var speed1=10 ;
var loop1, timer1 ;

function makeObj1(obj,nest){
    nest=(!nest) ? '':'document.'+nest+'.'
	this.el=bw1.dom?document.getElementById(obj):bw1.ie4?document.all[obj]:bw1.ns4?eval(nest+'document.'+obj):0;
  	this.css=bw1.dom?document.getElementById(obj).style:bw1.ie4?document.all[obj].style:bw1.ns4?eval(nest+'document.'+obj):0;
	this.scrollHeight=bw1.ns4?this.css.document.height:this.el.offsetHeight ;
	this.clipHeight=bw1.ns4?this.css.clip.height:this.el.offsetHeight ;
	this.up=goUp1;this.down=goDown1;
	this.moveIt=moveIt; this.x; this.y;
    this.obj = obj + "Object" ;
    eval(this.obj + "=this") ;
    return this ;
}
function moveIt(x,y){
	this.x=x;this.y=y
	this.css.left=this.x
	this.css.top=this.y
}

//Makes the object go up
function goDown1(move1){
	if(this.y>-this.scrollHeight+oCont1.clipHeight){
		this.moveIt(0,this.y-move1)
			if(loop1) setTimeout(this.obj+".down("+move1+")",speed1)
	}
}
//Makes the object go down
function goUp1(move1){
	if(this.y<0){
		this.moveIt(0,this.y-move1)
		if(loop1) setTimeout(this.obj+".up("+move1+")",speed1)
	}
}

//Calls the scrolling functions. Also checks whether the page is loaded1 or not.
function scroll1(speed1){
	if(loaded1){
		loop1=true;
		if(speed1>0) oScroll1.down(speed1)
		else oScroll1.up(speed1)
	}
}

//Stops the scrolling (called on mouseout)
function noScroll1(){
	loop1=false
	if(timer1) clearTimeout(timer1)
}
//Makes the object
var loaded1;

function scrollNavInit(){
	oCont1=new makeObj1('divCont1')
	oScroll1=new makeObj1('divText1','divCont1')
	oScroll1.moveIt(0,0)
	oCont1.css.visibility='visible'
	loaded1=true;
}
//Call the init on page load

