var Twitter = (typeof(Twitter) != 'undefined') ? Twitter : {};
var timeout = timeout || 10;

Twitter.loadFollowerCount = function(){
	if(typeof(jQuery) != 'undefined'){
		$.getJSON('http://twitter.com/statuses/user_timeline/thinkETG.json?count=1&callback=?',
			function(data){
				$.each(data, function(i, item) {
						var count = item.user.followers_count;
						$('img[alt=Twitter]').after('<br /><span>Join our ' + count + ' followers!</span>')
						$('#twitImage').attr("src", item.user.profile_image_url);
						$('#screenName').text(item.user.screen_name);
						$('#realName').text(item.user.name);
						$('#profileLink').attr("href", "http://www.twitter.com/" + item.user.screen_name);
						$('#twitterContainer').show();
					}
				);
			}
		);
	}else{
		setTimeout(Twitter.loadFollowerCount, timeout);
	}
};

setTimeout(Twitter.loadFollowerCount, timeout);
