var nextComment=0;var totalComments=5;var timer=null;function switchComment(id){if(id!=null){nextComment=id;}
setComment(nextComment);nextComment=nextComment+1;if(nextComment==totalComments){nextComment=0;}}
function setComment(itemComment){clearTimeout(timer);$(".tweet-element").fadeOut(1000);$("ul.bullets li").removeClass('active');$("#comment-button-"+itemComment).addClass('active');$("#tweet-"+itemComment).fadeIn(1000,function(){timer=setTimeout("switchComment()",4500);});}
function manualComment(itemComment){nextComment=itemComment+1;if(nextComment==totalComments){nextComment=0;}
setComment(itemComment);}
