     @showSingleSlide imageId
     
   showAlbumList: ->
-    $("#frame.browser .spinner").show()
+    @showSpinner()
     $.get "/albums?artist=#{@artist}&section=#{@section}&category=#{@category}",(html) =>
       @displayScreen "albumList",html
       @setDraggable $("#albumList .images .img")
-      $("#frame.browser .spinner").hide()
+      @hideSpinner()
+      
   
   #- Album List -#
   

    @album = el.closest("tr").data 'album'
    @showManager 'album'
  
  '#albumList .images .img click': (el) ->
    imageId = el.data 'id'
    album = el.closest("tr").data 'album'
    @showAlbumSlides imageId,album
  
    
  #- Slideshow -#

  '.prev click': ->
    currentIndex = $("#slideshow img:visible").index()
    @showSlide currentIndex-1  

  '.next click': ->
    currentIndex = $("#slideshow img:visible").index()
    @showSlide currentIndex+1

  '.add click': (el) ->
    imageElement = $("#slideshow img:visible")
    imageId = imageElement.data('id')
    imageMeta = $("#slideshow img:visible").data('image')
    @imageCookie.add imageId
    @showImageInDropbox imageId,imageMeta
    el.hide()
    
  '.footer .info click': ->
    $("#tagging").hide()
    if $("#tagging").is(":visible")
      $("#info").hide()
    else
      @showInfo $("#slideshow img:visible:first").data 'image'
      $("#tagging").hide()
      $("#info").show()

      
  showInfo: (meta) ->
    $("#info .name span").text meta.title
    $("#info .author span").text meta.artist
    $("#info .year span").text meta.year
  
  '.footer .tag click':  ->
    $("#info").hide()
    if $("#info").is(":visible")
      $("#tagging").hide()
    else
      $("#info").hide()
      $("#tagging").show()
  
    
  showAlbumSlides: (imageId, album) ->
    imageIds = []

        $("#dropbox .active").show()
      stop: ->
        $("#dropbox .active").hide()
    }

  addImageToDropbox: (el) ->
    imageId = el.data 'id'
    imageMeta = el.data 'image'
    if not @imageCookie.contains imageId
      @imageCookie.add imageId
      @showImageInDropbox imageId,imageMeta
    else
      alert 'already here' #todo - something better

  showImageInDropbox: (imageId, imageMeta) ->
    if imageMeta?
      $("#dropbox .imagelist").append @view('dropboximage',{ image: imageMeta })
    else
      @model.getImage imageId, {}, @callback('showImageInDropbox', imageId)  
      
  '#dropbox .cancel click': (el) -> #TODO: fix
    @imageCookie.clear()
    $("#dropbox .imagelist").html("")
    
  '#dropbox .edit click': (el) ->
    @showManager 'dropbox'
    
  '#dropbox li .close click': (el) ->
    imageId = el.parent().data 'id'
    @imageCookie.remove imageId
    el.parent().remove()


  
      
  
  ## GENERAL DISPLAY
