$(document).ready(function() {

	//create scroller for each element with "horizontal_scroller" class...
	$('.horizontal_scroller').SetScroller({	velocity: 	 50,
											direction: 	 'horizontal',
											startfrom: 	 'right',
											loop:		 'infinite',
											movetype: 	 'linear',
											onstartup: 	 'play',
											cursor: 	 'pointer'
										});

		
	
	$('#controls').click(function(){   
		
		if($(this).attr('src') == 'images/scroller_button_stop.gif')
		{
			$('#scrollercontrol').PauseScroller();  
			$(this).attr('src','images/scroller_button_play.gif');
		
		}
		else
		{
			$('#scrollercontrol').PlayScroller();  
			$(this).attr('src','images/scroller_button_stop.gif');
		
		}	
		
	});	



	

});

