   translate.refresh()
 
 topBar = new TopBar
+topBar.el.appendTo 'body'
 
 User.fetch()
-topBar.el.appendTo 'body'
-stack.el.appendTo 'body'
 Route.setup()
 
 # Pass host to Classifier instance

  
  default: 'home'


api = new Api
  project: 'spacewarp'
# if window.location.origin is 'http://0.0.0.0:9294'
#   # Configure connection to Api
#   api = new Api
#     project: 'spacewarp'
#     host: "https://dev.zooniverse.org"
#     # host: "http://0.0.0.0:3000"
#     path: '/proxy'
# else
#   new Analytics
#     account: "UA-1224199-43"
    
#   # Configure connection to Api
#   api = new Api
#     project: 'spacewarp'
#     host: "https://api.zooniverse.org"
#     path: '/proxy'

languageManager = new LanguageManager
languageManager.on 'language-fetched', (e, languageStrings) ->

# Lazy loading of Guide images
$('img.lazy').lazyload({threshold : 200, effect: 'fadeIn'})

module.exports = {stack, api, topBar}
