window.addEvent('domready',function() {
      var foo = $('tweets-here');
      if (foo) {
	$('tweets-here').set('html','');
	var myTwitterGitter = new TwitterGitter('fit4performance',{
		count: 4,
		onComplete: function(tweets,user) {
			tweets.each(function(tweet,i) {
				new Element('div',{
					html: '<a href="http://twitter.com/fit4performance" target="_blank"><img src="' + user.profile_image_url.replace("\\",'') + '" align="left" alt="' + user.name + '" /></a> <a href="http://twitter.com/fit4performance" target="_blank"><strong>' + user.name + '</strong></a><br />' + tweet.text + '<br /><span>' + tweet.created_at + ' via ' + tweet.source.replace("\\",'') + '</span><br clear="all"/>',
					'class': 'tweet clear'
				}).inject('tweets-here');
			});
		}
	}).retrieve();
     }
});
