// Quick tips - vertical center alignment
$(document).ready(function(){
	var screenshotHeight = $('.oneimage').height();
	var quickTipHeight = $('.quickTip').height();

	var nudgeDown = (screenshotHeight / 2) - (quickTipHeight / 2);
	$('.oneimage .quickTip').css("top",nudgeDown + "px");
	
});

$(document).ready(function(){
	var screenshotHeight = $('.twoimages').height();
	var quickTipHeight = $('.quickTip').height();

	var nudgeDown = (screenshotHeight / 2) - (quickTipHeight / 2);
	$('.twoimages .quickTip').css("top",nudgeDown + "px");
	
});


// Sliding sections

$(document).ready(function(){
	$(".expand a").click(function(){
		$(this).parent().next().slideToggle("slow");
	});
});


$(document).ready(function(){
	$("#stickyNote").draggable();
});




// Twitter - remove @replies
//$(document).ready(function(){
//	 $("#twitter_update_list li span").each(function(){
//		var tweet = $(this).text();
//		tweet = $.trim(tweet);
//		var isRT;
//		if (tweet.charAt(0) == "R" && tweet.charAt(1) == "T") { isRT = true; }
//		if (tweet.charAt(0) == "@" || isRT) {
//			$(this).parent().remove();
//		}
//	});
//});

$(document).ready(function(){
	$(".miniFeed li:last-child, .twitterfeed li:last-child").addClass("last");
});
