var boxWidth = $('highlights').style.width.replace('px','');
var repeatWidth = $('highlights').scrollWidth; //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 = 0;
var x;
var lastimg;
var direction = 1;
function scrollMe() {
	//alert("scroll");
	clearTimeout(x);
	if(!lastimg){
	    //alert("");
		lastimg = document.getElementById('onload'); 	
		x = setTimeout("scrollMe()", 500);
		return;
	}
	else if(!repeatWidth){
		repeatWidth = $('highlights').scrollWidth;
		//alert(repeatHeight);
	}
	if(stopScroll==1) {
		return;
	}
	$('highlights').scrollLeft++;
	//alert($('highlights').scrollLeft+" "+repeatWidth);
	//if($('highlights').scrollLeft % 50 == 0) alert($('highlights').scrollLeft+" "+repeatWidth);
	if ($('highlights').scrollLeft <= repeatWidth) {
		// keep on scrolin' 
		x = setTimeout("scrollMe()",20);
	}
	else { //we have hit the wrap point
	    //alert("wrap");
		$('highlights').scrollLeft = 0;
		x = setTimeout("scrollMe()",20);
	}
}
x = setTimeout("scrollMe()",1000);