function scroll(id)
{
	xajax.$(id).style.overflow = 'hidden';
	getElementsByClassName('up','a',xajax.$(id))[0].style.display = 'block';
	getElementsByClassName('down', 'a', xajax.$(id))[0].style.display = 'block';
	img1 = new Image();
	img1.src = kmf_dir_static + '/gfx/up_h.gif';
	img2 = new Image();
	img2.src = kmf_dir_static + '/gfx/down_h.gif';
}
function up(id)
{
	var scroll = getElementsByClassName('scroll', 'div', xajax.$(id))[0];
	if (scroll.style.top=='') scroll.style.top = '0px';
	scroll.style.top = Math.min(0,parseInt(scroll.style.top)+14) + 'px';
}
function down(id)
{
	var height = xajax.$(id).offsetHeight;
	var scroll = getElementsByClassName('scroll', 'div', xajax.$(id))[0];
	if (scroll.style.top=='') scroll.style.top = '0px';
	if (scroll.offsetHeight > height) {
		scroll.style.top = Math.max(-(scroll.offsetHeight-height),parseInt(scroll.style.top)-14) + 'px';
	}
}
var scrollInt;
function upOn(id)
{
	scrollInt=window.setInterval("up('"+id+"')",100);
}
function downOn(id)
{
	scrollInt=window.setInterval("down('"+id+"')",100);
}
function scrollOff()
{
	window.clearInterval(scrollInt);
}
