$(document).ready(function(){
var timer, tabs = $('a[data-toggle="tab"]');
if(tabs) {
var i = 1, tabs_count = tabs.length-1;
timer = setInterval(function(){
$(tabs[i]).tab('show');
if(i === tabs_count){
i = 0;
} else {
i++;
}
}, 1000);
}
$('li').click(function(e){
clearInterval(timer);
});
});