$(document).ready(function() {
	
	$('#content .post').hover(function() {
		$(this).addClass('post-hover');
	}, function() {
		$(this).removeClass('post-hover');
	});
	
	$('#content .issue').hover(function() {
		$(this).addClass('post-hover');
	}, function() {
		$(this).removeClass('post-hover');
	});
	
	$('div.close-button').click(function() {
		$('#breaking').animate({opacity:0}, '1500').fadeOut('fast', function() {
			$(this).remove();
		}); 
	});


	$('a#getfront').click(function() {
		$('#content-loop').show();
		$('#beatblog-posts').hide();
		$('#columnist-posts').hide();
		
		$(this).addClass('current');
		$('a#getbeat').removeClass('current');
		$('a#getview').removeClass('current');
	});
	
	$('a#getbeat').click(function() {
		$('#content-loop').hide();
		$('#beatblog-posts').show();
		$('#columnist-posts').hide();
		
		$(this).addClass('current');
		$('a#getfront').removeClass('current');
		$('a#getview').removeClass('current');
	});
	
	$('a#getview').click(function() {
		$('#content-loop').hide();
		$('#beatblog-posts').hide();
		$('#columnist-posts').show();
		
		$(this).addClass('current');
		$('a#getbeat').removeClass('current');
		$('a#getfront').removeClass('current');
	});
	
});
