jQuery(document).ready(function($) {

   // Handle this new unread option button...
   
   // 7. Unread discussion
   $('a.UnreadDiscussion').popup({
      confirm: true,
      followConfirm: false,
      deliveryType: 'BOOL', // DELIVERY_TYPE_BOOL
      afterConfirm: function(json, sender) {
         var row = $(sender).parents('li.DiscussionRow');
         inform(json.StatusMessage);
         if (json.State)
            $(row).addClass('New');
         if (json.LinkText)
            $(sender).text(json.LinkText);
      }
   });

});
