     current = @getCurrent()
     current.css 'opacity', 1
     current.addClass 'current'
-    
+  ###
+  
   changeSlide: (difference) ->
     if @index + difference is -1
       return

  getCurrent: ->
    $("#gallery .imageContainer:eq(#{@index})")
  
  dimCurrent: ->
    current = @getCurrent()
    current.css 'opacity', 0.3

      $('#slideshow-back').fadeOut 'fast'
      $('#frame.browser').show()
    
    #@dimCurrent()
    @index += difference
    
    $('#gallery').animate {
      left: (@index * -820 + 280) + 'px'
    }, 'fast'
    
    #@highlightCurrent()
    
  getOriginal: (image) ->
    return "/images/uploads/originals/#{image.id}.#{image.format}"
