$(function (){ 	

	var speed = 4000;
	var run = setInterval('rotate2()', speed);		

	var item_width = $('.seo-sngl').outerWidth(); 
	var left_value = item_width * (-1); 
		
	$('.seo-sngl:first').before($('.seo-sngl:last'));
	$('.seo-hldr').css({'left' : left_value});

	$('.seo-prev').click(function() {           
		var left_indent = parseInt($('.seo-hldr').css('left')) + item_width;         
		$('.seo-hldr:not(:animated)').animate({'left' : left_indent}, 400,function(){          	
			$('.seo-sngl:first').before($('.seo-sngl:last'));
			$('.seo-hldr').css({'left' : left_value});		
		});
       
		return false;			
	});
 
	$('.seo-next').click(function() {
		var left_indent = parseInt($('.seo-hldr').css('left')) - item_width;
		$('.seo-hldr:not(:animated)').animate({'left' : left_indent}, 400, function () {
			$('.seo-sngl:last').after($('.seo-sngl:first'));
			$('.seo-hldr').css({'left' : left_value});		
		});				 

		return false;		
	});        
	
	$('div.block').hover(		
		function() {
			clearInterval(run);
		}, 
		function() {
			run = setInterval('rotate2()', speed);	
		}
	); 
	
});

function rotate2() {
	//$('.seo-next').click();
}
