/* Author: 

*/

$(document).ready(function() {
	$('#main article').hover(function() { $(this).find('footer').slideDown(100); }, function() { $(this).find('footer').slideUp(100); });

	$.getJSON("http://api.twitter.com/1/users/show.json?screen_name=briansloane&callback=?",
	  function (data,textStatus) {
	  	console.log(data.statuses_count);
		$("#tweet_count").html(data.statuses_count).fadeIn();
	});
	  
	$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?format=json&id=81483739@N00&jsoncallback=?",
			function(data){			
				randomNum = Math.floor(Math.random()*11);
					var imgEl = $('<img>', {
						src: data.items[randomNum].media.m.replace('_m','')
					}).css( {
						"width": "330px",
						"display": "none"
					}).appendTo('#flickrs a').fadeIn();

			}
	);
});

