
		function loadTweets() {
			
			$.getJSON("http://twitter.com/statuses/user_timeline.json?screen_name=biggrouplondon&count=6&callback=?", function(tweetdata) {		
				// Grab a reference to the ul element which will display the tweets

				if (tweetdata.length>1) {
					var tl = $("ul#tweets ");
					var tweetcounter = 1;
					// For each item returned in tweetdata
					$.each(tweetdata, function(i,tweet) {
						// Append the info in li tags to the ul, converting any links to HTML <a href=.. code and convert the tweeted date
						// to a more readable Twitter format
						tl.append("<li><p>" + urlToLink(tweet.text) + "</p><p class='date'>" + relTime(tweet.created_at) + "</p></li>");
						if (tweetcounter>=4) return false();
						tweetcounter++;
					});
				}	else {
				
					//twitter feed fail//
					$("ul#tweets ").append('<li><p>Use your @MasterCard from 1st March - 31st May &amp; register online for your chance to win a Passport to Fun http://t.co/KExpLoA</p><p class="date">12:17 PM Mar 4th</p></li><li><p>Would you like to be part of the excitement, the glamour and the tension of the 2011 Olivier Awards? Click here - http://bit.ly/fChFKQ</p><p class="date">8:50 AM Feb 25th</p></li><li><p>Glad to hear our colleague Jayne &amp; family are safe in Christchurch NZ, with all phones down, social media has become #1 point of contact!</p><p class="date">1:00 AM Feb 23rd</p></li><li><p>Countdown to the Olivier Awards with MasterCard - Celebrating the best in London Theatre - 13th March 2011 http://twitpic.com/429n70</p><p class="date">8:41 AM Feb 21st</p></li>');
				
				}
					
				Cufon.replace('ul#tweets li p', { fontFamily: 'DINPro-Light', hover: true});
				
			});	
		}

		// Converts any links in text to their HTML <a href=""> equivalent
		function urlToLink(text) {
		  var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
		  return text.replace(exp,"<a href='$1' target='_blank' title='Opens a new window'>$1</a>"); 
		}

		// Takes a time value and converts it to "from now" and then returns a relevant text interpretation of it
		function relTime(time_value) {
			time_value = time_value.replace(/(\+[0-9]{4}\s)/ig,"");
			var parsed_date = Date.parse(time_value);
			var relative_to = (arguments.length > 1) ? arguments[1] : new Date();
			var timeago = parseInt((relative_to.getTime() - parsed_date) / 1000);			
			if (timeago < 60) return 'less than a minute ago';
			else if(timeago < 120) return 'about a minute ago';
			else if(timeago < (45*60)) return (parseInt(timeago / 60)).toString() + ' minutes ago';
			else if(timeago < (90*60)) return 'about an hour ago';
			else if(timeago < (24*60*60)) return 'about ' + (parseInt(timeago / 3600)).toString() + ' hours ago';
			else if(timeago < (48*60*60)) return '1 day ago';
			else return (parseInt(timeago / 86400)).toString() + ' days ago';
		}
