anchor.diff:    
     clearGlobalNotification: ->
       @n = 0
  -    
  +  
     addGlobalNotification: ->
       @n += 1
  +    @setGlobalNotification()
  +    
  +  subtractGlobalNotification: (num) ->
  +    @n -= num
  +    if @n < 0
  +      @clearGlobalNotification()
  +    @setGlobalNotification()
  +    
  +  setGlobalNotification: ->
       $.titleAlert "(#{@n}) message(s)",
         requireBlur: true
         stopOnFocus: true
  
positive.code:     @trigger.html("#{notice}#{@room_name}")
  
    clearNotifications: ->
      $.cookie "chatroom:notifications:#{@room_id}", 0, 
        expires: 365
        path: "/"
      @notifications = 0
      @parent.clearGlobalNotification()
      @refreshGraphics()
      
    addNotification: ->
      unless @active
        @notifications += 1
        $.cookie "chatroom:notifications:#{@room_id}", @notifications, 
          expires: 365
          path: "/"
  
negative.code:       @addNotification()
        if @seeded
          @appendMessage(data.timestamp,data.content,data.user_name,data.user_path)
          @correctContainerScroll(@isReadingHistory())
      
      $(window).bind 'focus', =>
        if @active
          @clearNotifications()
    
    finalize: =>
      # Prepare the frames for interaction.
  