function scrollToRight(num, aWidth){
	scroller = document.getElementById("scrollContent"+num);
	scroller.style.width = aWidth;
	stopScrolling = false;
	width = aWidth - 850;	
	if(scroller.style.left == ""){
		scroller.style.left = "-5px";
		moveLeft();	
	}else if(parseInt(scroller.style.left) > width - (width * 2)){	
		scroller.style.left = parseInt(scroller.style.left) - 5 +"px";		
		moveLeft();	
	}	
}
function moveLeft(){	
	negWidth = width - (width * 2);	
	var left = parseInt(scroller.style.left);	
	scroller.style.left = left - 5 +"px";	
	scrollerStop = left < negWidth;	
	if(!scrollerStop){
		if(!stopScrolling){
			setTimeout(moveLeft, 23);
		}
	}	
}

function scrollToLeft(num, aWidth){		
	scroller = document.getElementById("scrollContent"+num);	
	stopScrolling = false;	
	if(scroller.style.left != "" || (parseInt(scroller.style.left) < 0)){
		scroller.style.left = parseInt(scroller.style.left) + 5 +"px";		
		moveRight();	
	}	
}
function moveRight(){	
	var left = parseInt(scroller.style.left);	
	scroller.style.left = left + 5 +"px";	
	scrollerStop = left > 0;	
	if(!scrollerStop){
		if(!stopScrolling){
			setTimeout(moveRight, 23);	
		}
	}	
}
function scrollStop(){
	stopScrolling = true;
}
