$(function(){
	$('.safety-block').each(function(i){
	    if($(this).children().length > 1){	
			var cycle = this;
			$(this).cycle({
				fx: 'scrollLeft',
				continuous: 1,
				after: function(currSlideElement, nextSlideElement, options, forwardFlag){
					$(cycle).cycle('pause');
				}
			}).cycle('pause');
			$('a.next-slide', this).each(function(i){
				$(this).click(function(){
					$(cycle).cycle('resume');
					return false;
				});
			});
		}else{
			$('a.next-slide', this).each(function(i){
				$(this).hide();
			});
		}
	});
});