function twitter10() {
	var self=this;				// a reference to this object so it's not disposed of
	
	this.scrolling 		= true;
	this.current_tweet 	= 0;
	this.tweets 		= null;
	this.avgheight		= 50;	// px
	this.animatedelay	= 150;
	var numtweets 		= 0;
		
	this.scroll = function() {	// called by set interval
		if (!self.scrolling) return true;	// otherwise setInterval stops
		
		this_tweet = self.tweets[self.current_tweet];
		next_tweet = self.tweets[self.next_counter()];
		
		jQuery('#tweet_container .tweet_item:first').animate(
			{'margin-top' : self.avgheight+'px'}, self.animatedelay, 'linear', function() {
				jQuery('#tweet_container .tweet_item:last').remove();
				jQuery('#tweet_container').prepend('<div class="tweet_item" >'+jQuery(next_tweet).html()+'</div>');
				jQuery('#tweet_container .tweet_item:eq(1)').css('margin-top','0');
			}
		);
		return true;
	};
	
	
	this.init = function() {
		this.tweets = jQuery('.tweet_item');
		this.numtweets = this.tweets.length;
		// console.log("twitter10.init - " + this.numtweets + " tweets");
		
		if (this.numtweets<3) return;
		
		tweet1 = this.tweets[0];
		tweet2 = this.tweets[1];
		tweet3 = this.tweets[2];
		this.current_tweet = 2;

		// stop scrolling on mouseover
		jQuery('#tweet_container').mouseout(function(e) { self.scrolling = true; });
		jQuery('#tweet_container').mouseover(function(e) { self.scrolling = false; });

		var current_html = '';
		current_html += '<div class="tweet_item" >' + jQuery(tweet1).html() + '</div>';
		current_html += '<div class="tweet_item" >' + jQuery(tweet2).html() + '</div>';
		current_html += '<div class="tweet_item" >' + jQuery(tweet3).html() + '</div>';
		jQuery('#tweet_container').html(current_html);
		jQuery('#twitter_callout').css('visibility','visible');
		
		setInterval(self.scroll, 5000);
		// console.log("twitter10 init complete");
	};


	this.next_counter = function() {
		this.current_tweet++;
		if (this.current_tweet >= this.tweets.length) this.current_tweet = 0;
		return this.current_tweet;
	};
	
}
	
