$(function() { 
	$('.comment-fields textarea').autoResize();
	
	// highlight any new comment added
	if (window.location.hash.match(/comment-body-/)) {
		$(window.location.hash).closest('.comment').effect('highlight', {}, 4000);
	}
	
	$('.article-navigation a.previous-article, .article-navigation .left-arrow').hover(function() {
			$(this).closest('div.article-navigation').addClass('prev-hover'); },
		function() {
			$(this).closest('div.article-navigation').removeClass('prev-hover');
	});
	$('.article-navigation a.next-article, .article-navigation .right-arrow').hover(function() {
			$(this).closest('div.article-navigation').addClass('next-hover'); },
		function() {
			$(this).closest('div.article-navigation').removeClass('next-hover');
	});
	$('.show-retweets').click(function() {
		var id = $(this).attr('href').substring(1);
		$('.child-of-' + id).show();
		$(this).hide();
		return false;
	});
	$('.star').click(function() {
		$(this).toggleClass('starred');
		return false;
	});

});

// Player callbacks
function playPaused() {}
function playEnded() {}



