     @currentView = type
     @saveState()
 
-  updateScreen: (previousType, previousName, currentType, currentName, currentHtml) ->
+  updateScreen: (previousType, previousName, currentType, currentName, currentHtml, show) ->
     @hideAllViews()
     
     $(".backArrow .content").text(previousName) if previousName

    imageMeta = imageElement.data 'image'

    title = imageMeta.title
    album = imageMeta.album
    album = " / "+album if album.length > 0
    header = title + album
    $("h1").text(title)
    @showInfo imageMeta


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

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

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

  '.footer .add click': (el) ->
    imageElement = $("#slideshow img:visible")
    imageId = imageElement.data('id')
    imageMeta = imageElement.data('image') #todo: refactor?
    @imageCookie.add imageId
    @showImageInDropbox imageId,imageMeta
    el.hide()
    
  showInfo: (meta) ->
    $("#info .name span").text meta.title
    $("#info .author span").text meta.artist
    $("#info .year span").text meta.year
  
  showTags: (meta) ->
    #todo
    
  showInfoTag: (type) ->
    $("#infoTags").show() if not $("#infoTags").is(':visible')
    target = $("##{type}")
    if target.is(":visible") 
      target.hide() 
    else
      meta = $("#slideshow img:visible:first").data 'image'
      @showTags meta if type = 'tagging'
      @showInfo meta if type = 'info'
      target.show()  
    
  '.footer .info click': ->
    @showInfoTag 'info'
  
  '.footer .tag click': ->
    @showInfoTag 'tagging'

    
  showAlbumSlides: (imageId, album) ->
    imageIds = []
