function scrollL() {
	var margin = document.getElementById('scroll_inner').style.margin
	var now = margin.split('px')
	var mnow = parseInt(now[3])
	
	if (!isNaN(mnow) ) {
		var mleft = mnow + scrSpd
	} else {
		var mleft = parseInt(margin) + scrSpd
	}
	
	if (mleft < scrSpd) {
		document.getElementById('scroll_inner').style.margin = '0px 0px 0px '+mleft + 'px'
		timer = setTimeout('scrollL()',10)
	}
}

function scrollR() {
	var margin = document.getElementById('scroll_inner').style.margin
	var now = margin.split('px')
	var mnow = parseInt(now[3])
	
	if (!isNaN(mnow) ) {
		var mleft = mnow - scrSpd
	} else {
		var mleft = parseInt(margin) - scrSpd
	}
	
	if (Math.abs(mleft) < document.getElementById('scroll_inner').offsetWidth - document.getElementById('scroll_outer').offsetWidth) {
		document.getElementById('scroll_inner').style.margin = '0px 0px 0px '+mleft + 'px'
		timer = setTimeout('scrollR()',1)
	}
}
