//script

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 = rtop
	return this
}

function rtop() {
	return (n) ? eval(this.css.top) : eval(this.css.pixelTop)
}

function jobscroll(speed) {
	var way=speed>0?1:0
	if ((!way && jScroll.top()>-jScroll.scrollHeight+contHeight) || (jScroll.top()<0 && way)) {
		jScroll.css.top=jScroll.top()+speed
		scrollTim=setTimeout("jobscroll("+speed+")",timSpeed)
	}
}

function scroll(speed) {
	var way=speed>0?1:0
	if ((!way && oScroll.top()>-oScroll.scrollHeight+contHeight) || (oScroll.top()<0 && way)) {
		oScroll.css.top=oScroll.top()+speed
		scrollTim=setTimeout("scroll("+speed+")",timSpeed)
	}
}

function noScroll() {
	clearTimeout(scrollTim)
}

function scrollInit() {
    oScroll=new makeScrollObj('divScroll1','divCont')
	oScroll.css.visibility=(n) ? 'show' : 'visible'

}

// end functions

var n=document.layers?1:0
var scrspeed=2


var timSpeed=10,contHeight=100,scrollTim,active=0
var jScroll,oScroll
