n = document.layers?1:0
var speed = 50
var loop, timer
var tflag = 0;

function Initialization(){
	if(navigator.appName.charAt(0) == "N"){
		if(navigator.appVersion.charAt(0)<=4){
			if(document.getElementById){
				document.getElementById('divText').style.top = 0;
			}
	
			if(document.all){
				document.all('divText').style.top = 0;
			}
		}
	}
}

function goDown(move,leayer){
	var cell;

	if(tflag == 2){
		clearTimeout(timer)
	}

	tflag = 3;

	if(!n){
		cell = document.getElementById(leayer);

		if(parseInt(cell.style.top) >- cell.offsetHeight + 173){
			cell.style.top = parseInt(cell.style.top) - parseInt(move);
			if(loop){
				timer = setTimeout("goDown(("+move+"),'divText')",speed);
			}
		}
	}else{
		if(parseInt(document.layers.topic.layers.divCont.layers.divText.top) >= document.layers.topic.layers.divCont.layers.divText.document.height+173){
			document.layers.topic.layers.divCont.layers.divText.top = parseInt(document.layers.topic.layers.divCont.layers.divText.top) - parseInt(move);
			if(loop){
				timer=setTimeout("goDown(("+move+"),'divText')",speed)
			}
		}
	}
}

function goUp(moves,leayer){
	var cell;

	if(tflag == 3){
		clearTimeout(timer)
	}

	tflag = 2;

	if(!n){
		cell = document.getElementById(leayer);

		if(parseInt(cell.style.top) < 0){
			cell.style.top = parseInt(cell.style.top) + parseInt(moves);
			if(loop){
				timer = setTimeout("goUp(("+moves+"),'divText')",speed);
			}
		}
	}else{
		if(parseInt(document.layers.topic.layers.divCont.layers.divText.top) < 0){
			document.layers.topic.layers.divCont.layers.divText.top = parseInt(document.layers.topic.layers.divCont.layers.divText.top) + parseInt(moves);
			if(loop){
				timer=setTimeout("goUp(("+moves+"),'divText')",speed);
			}
		}
	}
}

function noScroll(){
	loop = false;
	clearTimeout(timer);
}
