$(function(){
	
	tweetr();
	
	var height = $('#page').height();
	
	//$('#section1').css('height', height);
	$('#sidebar').css('min-height', height);
	
		
	$("#navigation ul li").hover(function(){
    	
    	$('ul:first',this).css('visibility', 'visible');
    
    }, function(){
    
        $(this).removeClass("hover");
        $('ul:first',this).css('visibility', 'hidden');
    
    });
    
    
    function tweetr()
    {
    	var username='misschristineny'; // set user name
			var format='json'; // set format, you really don't have an option on this one
			var url='http://api.twitter.com/1/statuses/user_timeline/'+username+'.'+format+'?callback=?'; // make the url
			//var temp = "Tweet140 is down for the count. It was fun while it lasted, but this game must come to an end. Our wings are tired, it's time to drift ..."
				$.getJSON(url,function(tweet){ // get the tweets
					$("#last-tweet").html(tweet[0].text); // get the first tweet in the response and place it inside the div
					//$("#last-tweet").append("<div class='birdy'></div>");
				});
    }
    return false;
    
});
