$(function() {
  $('.news_article .news_content').hide();
  
  $($('.news_article .news_content')[0]).show();
  $($('.news_article .closed')[0]).attr('class', 'open');
  
  $('a.open, a.closed').click(function() {
    var that = this;
    $(this).parent().children('div.news_content').toggle('slow', function() {
      if($(that).attr('class') === 'closed') {
        $(that).attr('class', 'open');
      } else if ($(that).attr('class') === 'open') {
         $(that).attr('class', 'closed');
      }
    });
  })
})
