 $(document).ready(function(){	
	$('.scroll-panel').clone().insertAfter('.scroll-panel');
	var currentPosition = 0;
	var $scrollPanels = $('.scroll-panel');
	$('.scroll-panel').each(function(i){
		$scrollPanels.eq(i).css({
			'float': 'none',
			'position': 'absolute',
			'left': currentPosition });
		currentPosition = currentPosition + 2751;	
	});		
	$('#scroll-viewer').css({
		'height': '213px',
		'width': '748px' }) 

	var panel_interval;
	panel_rotate();
	panel_interval = setInterval(panel_rotate,100000);
	$('#scroll-viewer').hover(function() {
		clearInterval(panel_interval);
		}, function() {
		panel_interval = setInterval(panel_rotate,100000);
		panel_rotate();
	});
});	
function panel_rotate() {	
	var $scrollPanels = $('.scroll-panel');
	$scrollPanels.animate({left: '-=2751px'}, 50000, 'linear');
	$scrollPanels.eq(0).animate({ 'left': '2751px' }, 0);
	$scrollPanels.animate({left: '-=2751px'}, 50000, 'linear');
	$scrollPanels.eq(1).animate({ 'left': '2751px' }, 0);
}