
function makeScrollObjIe(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
}

function makeScrollObjNS(obj,nest){ //Layer6,Layer5
	//nest=(!nest) ? '':'document.getElementById(Layer5).'
	//alert("nest = " + nest);										
	this.css=(n) ? eval('document.getElementById(Layer5).document.getElementById(Layer6)'):eval('document.getElementById(Layer6).style')							
	this.scrollHeight=n?this.css.document.height:eval('document.getElementById('+obj+').offsetHeight')							
	this.top=b_gettop										
	return this
}


function b_gettop(){
	var gleft=(n) ? eval(this.css.top):eval(this.css.pixelTop);
	return gleft;
}

var scrollTim;
var active=0;

function scroll(speed,nada){
	clearTimeout(scrollTim)
	way=speed>0?1:0
	if((!way && oScroll[active].top()>-oScroll[active].scrollHeight+contHeight) || (oScroll[active].top()<0 && way)){
		oScroll[active].css.top=oScroll[active].top()+speed
		scrollTim=setTimeout("scroll("+speed+")",timSpeed)
	}
}

function noScroll(){
	clearTimeout(scrollTim)
}

function scrollInit(){
	oScroll=new Array()
	if (ie){
		oScroll[0]=new	makeScrollObjIe('Layer6','Layer5')
	}else{
		oScroll[0]=new	makeScrollObjNS('Layer6','Layer5')
	}
	oScroll[0].css.visibility='visible'
}


