                     title   : 'Close'
                     style   : 'modal-clean-gray'
                     callback: -> modal.destroy()
-              
+
               {winHeight} = @getSingleton('windowController')
               modal.$('.kdmodal-content').css 'max-height', winHeight - 200
               modal.setY (winHeight - modal.getHeight())/2
class MainView extends KDView
  
  viewAppended:->
    
    # @putLoader()
    @addHeader()
    @createMainPanels()

    # @removeLoader()
    @windowController = @getSingleton("windowController")
    @listenWindowResize()

    setTimeout =>
      @putWhatYouShouldKnowLink()
    ,5000

  addBook:->
    @addSubView new BookView

  setViewState:(state)->
    if state is 'background'
      @contentPanel.setClass 'no-shadow'
