document.on("dom:loaded", function() {
  if(typeof(my_user) == "undefined") return

  if(my_user.splash_screen) {
    $(document.body).insert({
      top: "<div id='splash'><a id='hide_splash' href='/disable_splash'><img src='/images/splash.jpg'/></a></div>"
    })
    $('container').hide()
    
    document.on("click", "#hide_splash", function(e,link) {
      Event.stop(e)
      new Ajax.Request(link.href, { method: 'get' })
      $('container').show()
      $('splash').fade()
      window.location.hash = ""
    })
  }
})

document.on("dom:loaded", function() {
  return // Disabling splash screen until the UI is more stable to create a new one. FIXME
  if(typeof(my_user) == "undefined") return

  if(my_user.splash_screen) {
    $(document.body).insert({
      top: "<div id='splash'><a id='hide_splash' href='/disable_splash'><img src='/images/splash.jpg'/></a></div>"
    })
    $('container').hide()
    
    document.on("click", "#hide_splash", function(e,link) {
      Event.stop(e)
      new Ajax.Request(link.href, { method: 'get' })
      $('container').show()
      $('splash').fade()
      window.location.hash = ""
    })
  }
})

Disable splash screen for now