var num;
var current;
var next;
var timeout;
$(document).ready(function(){

	num = $('.feature').length;
	current = 0;

	$('.feature').css('display','none');
	$('.feature:eq('+current+')').addClass('shown');
	
	timeout = setTimeout('swapFeature()',10000);
});

function swapFeature() {
	next = current + 1;
	
	if(next > (num-1)) {
		next = 0;
	}
	
	$('#features .shown').removeClass('shown');
	$('#features .feature:eq('+next+')').addClass('shown');
	
	current = next;
	clearTimeout(timeout)
	timeout = setTimeout('swapFeature()',10000);
}