


<!--
/********************************************************************************

********************************************************************************
Browsercheck:*/
ie=document.all?1:0
n=document.layers?1:0


/********************************************************************************

********************************************************************************
Check the document has loaded:*/




/*********************************************************************************
These are the variables you have to set:
*********************************************************************************/

//The speed of the timeout between each scroll.
timSpeed=50

//The height of the container (change this when it scrolls too much or too little)
var contHeight=250

/*********************************************************************************
This is the object constructor function, which applies 
methods and properties to the Cross-browser layer object
*********************************************************************************/
function makeScrollObj(obj,nest){

	nest=(!nest) ? '':'document.'+nest+'.'										
	this.css=(n) ? eval(nest+'document.'+obj):eval('document.all.'+obj+'.style')							
	this.scrollHeight=n?this.css.document.height:eval('document.all.'+obj+'.offsetHeight')
	this.top=b_gettop

	return this

}
//Getting the top for the top method
function b_gettop(){

	var gleft=(n) ? eval(this.css.top):eval(this.css.pixelTop);
	return gleft;
}



//Variables
var scrollTim;

/*********************************************************************************
The scroll function. Checks which way to scroll and checks if the
layer is not already on top or bottom.
*********************************************************************************/
function scroll(speed){

if (loaded==0){

	}else{

	clearTimeout(scrollTim)
	way=speed>0?1:0
	if((!way && oScroll.top()>=-oScroll.scrollHeight+contHeight) || (oScroll.top()<=0 && way)){

//window.status=oScroll.top() + " " + eval(oScroll.scrollHeight+contHeight)

		oScroll.css.top=oScroll.top()+speed
		scrollTim=setTimeout("scroll("+speed+")",timSpeed)

		}
	}
}

//Clears the timeout so the scroll stops, this is called onmouseout.
function noScroll(){

	if (loaded==0){
	
	}else{

	clearTimeout(scrollTim)
	}
}

/*********************************************************************************
Initilizes the page, makes an oScroll Array and calls the object constructor.
Here you can add as many scrollObjects as you want
*********************************************************************************/
function scrollInit(){
	oScroll=new	makeScrollObj('divScroll1','divCont')
	
}



//-->


