// JavaScript Document

var t=0;
var time;
function move_up(div,amm) {
	var divTop = document.getElementById(div).style.top;
	if (t>-1550){
		document.getElementById(div).style.top = t + "px";
		t=t-amm;
		time = window.setTimeout("move_up('scroller','2')",50);
	} else {
		window.clearTimeout(time);
	}
}
function move_down(div,amm) {
	var divTop = document.getElementById(div).style.top;
	if (t<0){
		document.getElementById(div).style.top = t + "px";
		k = amm;
		k = Number(k);
		t = t+k;
		time = window.setTimeout("move_down('scroller','2')",50);
	} else {
		window.clearTimeout(time);
	}
}
function stopani(ex) {
	if(ex=='exit'){
		window.clearTimeout(time);
	}
}
