// JavaScript Document

var t=0;
var time;
function move_up(div,amm) {
	var divTop = document.getElementById(div).style.top;
	if (t>-540){
		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);
	}
}



var t=0;
var time;
function move_up2(div,amm) {
	var divTop = document.getElementById(div).style.top;
	if (t>-110){
		document.getElementById(div).style.top = t + "px";
		t=t-amm;
		time = window.setTimeout("move_up2('scroller2','2')",50);
	} else {
		window.clearTimeout(time);
	}
}
function move_down2(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_down2('scroller2','2')",50);
	} else {
		window.clearTimeout(time);
	}
}
function stopani(ex) {
	if(ex=='exit'){
		window.clearTimeout(time);
	}
}


var t=0;
var time;
function move_up3(div,amm) {
	var divTop = document.getElementById(div).style.top;
	if (t>-310){
		document.getElementById(div).style.top = t + "px";
		t=t-amm;
		time = window.setTimeout("move_up3('scroller3','2')",50);
	} else {
		window.clearTimeout(time);
	}
}
function move_down3(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_down3('scroller3','2')",50);
	} else {
		window.clearTimeout(time);
	}
}
function stopani(ex) {
	if(ex=='exit'){
		window.clearTimeout(time);
	}
}

