function scroll(direction,outer) {
	if (direction == 'up') {
		scrollup()
	} else if (direction == 'down') {
		scrolldown(outer)
	}
}

function scrollup() {
	var margin = document.getElementById('scroll_inner').style.margin
	var now = margin.split('px')
	var mtop = now[0]*1 + 3
	if (mtop < 5) {
		document.getElementById('scroll_inner').style.margin = mtop + 'px 5px 0px 5px'
		timer = setTimeout('scrollup()',10)
	}
}

function scrolldown(outer) {
	var margin = document.getElementById('scroll_inner').style.margin
	var now = margin.split('px')
	var mtop = now[0] - 3
	if (Math.abs(mtop) < document.getElementById('scroll_inner').offsetHeight - document.getElementById(outer).offsetHeight + 15) {
		document.getElementById('scroll_inner').style.margin = mtop + 'px 5px 0px 5px'
		timer = setTimeout('scrolldown(\''+outer+'\')',1)
	}
}