$(document).ready(function() {
	var firstPane = $('#allNewsPane');
	$(firstPane).show();
	$('#tabs li').click(function() {
		if (!$(this).hasClass('activeTab')) {
			$('#tabs > li').removeClass('activeTab');
			$(this).toggleClass('activeTab');
		}
		var currentTab = $(this).attr('id');
		var nextPane = $('#' + currentTab + 'Pane');
		if (firstPane.index() != nextPane.index()) {
			$(firstPane).slideUp('fast', function() {
				nextPane.slideDown('fast',function() {
					if (nextPane.attr('id') != firstPane.attr('id')) {
					firstPane.hide('fast');
					}
					firstPane = nextPane;
				});
			});
		}
		return false
	});
});
