 
   messageTimeout: null
   swipe: false
+  panel: 1
 
   drawBarCharts: ->
     $('[data-behavior~=line_graph]').each ()->

  showFeedList: ->
    $('[data-behavior~=feeds_target]').addClass('in')

  showPanel: (panel, state = true) ->
    if panel == 1
      $('body').addClass('nothing-selected').removeClass('feed-selected entry-selected')
      if feedbin.swipe
        $('.app-wrap').animate({scrollLeft: 0}, {duration: 250})
    else if panel == 2
      $('body').addClass('feed-selected').removeClass('nothing-selected entry-selected')
      if feedbin.swipe
        offset = $('.entries-column')[0].offsetLeft
        $('.app-wrap').animate({scrollLeft: offset}, {duration: 250})
    else if panel == 3
      $('body').addClass('entry-selected').removeClass('nothing-selected feed-selected')
      if feedbin.swipe
        offset = $('.entry-column')[0].offsetLeft


    state: ->
      $(window).on 'popstate', (event) ->
        if feedbin.panel > 1
          newPanel = feedbin.panel - 1
          feedbin.showPanel(newPanel, false)

    renameFeed: ->
      $(document).on 'dblclick', '[data-behavior~=renamable]', (event) ->
