 $.Controller 'Dreamcatcher.Controllers.ImageBank.Slideshow',
 
-  model: Dreamcatcher.Models.Image
-  
   init: ->
     $(document).keyup (event) ->
       switch event.keyCode

    $('#slideshow-back').hide()
    $('#frame.browser').show()
    
  changeSlide: (difference) ->
    @index += difference
    $('#gallery').animate {
      left: (index * 720) + 'px'
    }
  
  getOriginal: (image) ->
    return "/images/uploads/originals/#{image.id}.#{image.format}"
  
  '.gradient-left click': (el) ->
    @changeSlide -1

    $('#gallery .tagging').toggle()

  '.controls .download click': (el) ->
    window.open @getOriginal @images[@index]
  
  '.controls .comment click': (el) ->
    $('.controls .commentsPanel').toggle()
