function doAjaxRefresh() {
	
	$.ajax({
		url: "pages/twitter.php",
		cache: false,
		success: function(html){
			$("#twitter_content").html(html);
		}
	});
	
	$.ajax({
		url: "pages/lastfm.php",
		cache: false,
		success: function(html){
			$("#lastfm_content").html(html);
		}
	});
}
	
	
$(document).everyTime(10000, doAjaxRefresh, 0, true);

$(document).ready(function() {

	$.ajax({
		  url: "pages/flickr.php",
		  cache: false,
		  success: function(html){
			$("#flickr_content").html(html);
		  }
	});
	
	$("#lastfm_content").hide();
	setTimeout( function() { $("#lastfm_content").fadeIn(6000); }, 0 ); ;
	doAjaxRefresh();
	
	$("#twitter_content").hide();
	setTimeout( function() { $("#twitter_content").fadeIn(6500); }, 0 ); ;
	doAjaxRefresh();
	
	$("#flickr_content").hide();
	setTimeout( function() { $("#flickr_content").fadeIn(7000); }, 0 ); ;
	doAjaxRefresh();
	
});


/*	$(".webcam").hide();
	setTimeout( function() { $("#webcam_one").fadeIn(4000); }, 2000 ); 
	setTimeout( function() { $("#webcam_two").fadeIn(4000); }, 2500 ); 
	setTimeout( function() { $("#webcam_three").fadeIn(4000); }, 3000 ); 
	setTimeout( function() { $("#webcam_four").fadeIn(4000); }, 3500 ); */
