<!--
function lib_bwcheck_text(){ //Browsercheck (needed)
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw_text=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
	return this
}
var bw_text=new lib_bwcheck_text() //Making browsercheck object

function makeObj_text(obj,nest,menu){ // Object creator (tks: www.dhtmlcentral.com)
	nest = (!nest) ? "":'document.'+nest+'.';
	this.elm = bw_text.ns4?eval(nest+"document.layers." +obj):bw_text.ie4?document.all[obj]:document.getElementById(obj);
   	this.css = bw_text.ns4?this.elm:this.elm.style;
	this.scrollWidth = bw_text.ns4?this.css.document.width:this.elm.offsetWidth;
	this.scrollHeight = bw_text.ns4?this.css.document.height:this.elm.scrollHeight;
	this.x = bw_text.ns4?this.css.left:this.elm.offsetLeft;
	this.y = bw_text.ns4?this.css.top:this.elm.offsetTop;
	this.moveBy = b_moveBy;
	return this;
}
function b_moveBy_text(x,y){this.x=this.x+x; this.y=this.y+y; this.css.left=this.x+px; this.css.top=this.y+px;}

var position_text = 0;		// Controla a posição do scroll de conteúdo
var tScroll_text;			// Timer do scroll

var noScroll_text = true		// Controla o estado do scroll horizontal
var tSide_text;				// Timer do scroll horizontal

function mTop_text(num){		// Move o conteudo para cima
	clearTimeout(tScroll_text);
	if (position_text < 0) {
		position_text+=num;
		oScroll.moveBy(0,num);
		tScroll_text = setTimeout("mTop_text("+num+")", 10);
	}
}
function mDown_text(num){	// Move o conteudo para baixo
	clearTimeout(tScroll_text);
		//alert(position_text)
		//alert(oScroll.scrollHeight-250)
   	if (position_text > ((oScroll.scrollHeight-100)*-1)) {
		position_text-=num;
		oScroll.moveBy(0,-num);
		tScroll_text = setTimeout("mDown_text("+num+")", 10);
	}
}
function mStop_text(){		// Cancela o movimento do conteudo
	clearTimeout(tScroll_text);
}
function init_scroll_text() {	// Inicializa os objetos e scrolls

	px = bw_text.ns4||window.opera?"":"px";
	oScroll = new makeObj_text('divcontent','divbg',1);		// Scroll de conteudo

}

//-->
