
var boxHeight = $('highlights').style.height.replace('px','')
var repeatHeight = $('highlights').scrollHeight //get the current height so we know when to wrap

$('highlights').innerHTML = $('highlights').innerHTML + $('highlights').innerHTML  //add a second copy so we can scroll down to the wrap point

var stopScroll = 1
var x
function scrollMe(scroll_direction) {
	clearTimeout(x)
	if(stopScroll==1) {
		return
	}
	if(scroll_direction == 'up'){
		$('highlights').scrollTop=$('highlights').scrollTop+5
		if($('highlights').scrollTop<=repeatHeight) {
			// keep on scrolin' 
			x = setTimeout("scrollMe('up')",40)
		}
		else { //we have hit the wrap point
			$('highlights').scrollTop=0
			x = setTimeout("scrollMe('up')",40)
		}
	}
	if(scroll_direction == 'down'){
		$('highlights').scrollTop=$('highlights').scrollTop-5
		if($('highlights').scrollTop<=repeatHeight) {
			// keep on scrolin' 
			x = setTimeout("scrollMe('down')",40)
		}
		else { //we have hit the wrap point
			$('highlights').scrollTop=0
			x = setTimeout("scrollMe('down')",40)
		}
	}
	
}
x = setTimeout("scrollMe('up')",1000)
// start scrolling after one second
