function news(category, showCount) { // if showCount is blank then show all

	$(document).ready(function() {
		
		var lt = (showCount) ? ":lt(" + showCount + ")" : "";
		var gt = (showCount) ? ":gt(" + (showCount - 1) + ")" : "";
				
		$('.story:not(.' + category + ')').remove();
		
		
		// Removes elements that have past the expiration date/time
		var curTime = new Date();
		$('.story[exp]').each( function() {
			var expiration, expString, expDate, expTime;
			expString = $(this).attr("exp").split("-");
			expDate = expString[0].split("/");
			expTime = expString[1].split(":");
			expiration = new Date(expDate[2], expDate[0]-1, expDate[1], expTime[0], expTime[1]);
			if (expiration < curTime) {
				$(this).remove();	
			}
		});
		
		
		$('.story.' + category).css("display", "block");
		$('.story.' + category + lt + ' div.content').show()
		$('.story.' + category + gt).addClass("hide")
			
		$('.story h4').click(function() {
			$(this).parent().toggleClass('hide').children('.content').toggle('slow');
		});
		$('.story h4').hover(
			function () {
				$(this).parent().children('h4').toggleClass('over');
			  }, 
			  function () {
				$(this).parent().children('h4').toggleClass('over');
			  }	
		);
	});
	
}

