// Using jQuery with twitter_update_list
// www.mclelun.com
var jqt_vCurrent = 0;
var jqt_vTotal = 0;
var jqt_vDuration = 3000;
var jqt_intInterval = 0;

jQuery(document).ready(function() {	
	jqt_vTotal = $("#twitter_update_list").children().size() -1;
	jqt_intInterval = setInterval(jqt_fnLoop, jqt_vDuration);
	jqt_fnLoop();
});

function jqt_fnLoop(){
	jqt_vCurrent == jqt_vTotal ? jqt_vCurrent = 0 : jqt_vCurrent++;
	$("#twitter_update_list").find("li").each(function(i) { 
		if(i == jqt_vCurrent){
			$(this).animate({ opacity: 'show' }, 500);
		} else {
			$(this).animate({ opacity: 'hide' }, 300);
		}
	});
}





