$(function(){
	$.ajaxSetup ({ cache:true });
	$.getJSON("http://twitter.com/statuses/user_timeline/webcloud.json?count=1&callback=?",
		function(data){
			$.each(data, function(i, item){
				$('#twitter').append('' + item.text + '');
			});
		});

	$.getJSON("http://webcloud.tumblr.com/api/read/json?num=1&type=quote&callback=?",
			function(data){
				$.each(data.posts, function(i, item){
					var url = this['url'];
					var quote = this['quote-text'];
					var date = this['date'];
 					$('#tumblr').append('' + quote + '');
				});
 			});
		});

jQuery.fn.smartFocus = function(text) {
	$(this).val(text).focus(function(){
		if($(this).val() == text){
			$(this).val('');
		}
		}).blur(function(){
		if( $(this).val() == '' ){
			$(this).val(text);
		}
	});
};