var xOpoznienie;
var staryKolor = "#F3F9F1";
var nowyKolor = "#36FF00";
var predkosc = 50;
var szerokosc = 5;

function zacznijPrzewijac(direction, divID, elementID){
	document.getElementById(elementID).style.backgroundColor = nowyKolor;
	xOpoznienie = setInterval("przewijaj"+direction+"('"+divID+"')", predkosc);
}
function zakonczPrzewijac(which){
	document.getElementById(which).style.backgroundColor = staryKolor;
	clearInterval(xOpoznienie);
}

function przewijajGora(which){
	document.getElementById(which).scrollTop = document.getElementById(which).scrollTop - szerokosc;
}
function przewijajDol(which){
	document.getElementById(which).scrollTop = document.getElementById(which).scrollTop + szerokosc;
}
