     UserInterface.init()
   , false
 
-  window.addEventListener "popstate", (e) ->
-    Mode.reload()
-  , false
-
   window.addEventListener "resize", (e) ->
     UserInterface.resize()
   , false

    slide = Slide.current()
    slide.pushHistory()
    slide.updateProgress()

  @reload: ->
    Slide.current() || Slide.first().goto()
    if window.location.search.substr(1) is 'full'
      Mode.enterSlideMode()
      #Slide.current().updateProgress()
    else
      Mode.enterListMode()
      Slide.current()?.scrollTo()

  # private



  @current: ->
    id = window.location.hash.substr(1)
    if id? && id.length > 0
      Slide.fromSlideId(id)
    else
      Slide.first()

  nextSection: ->
    next = @nextSectionId()
