 if typeof document.documentElement.style.transform == "string"
   PARALLAX_PREFIX = ""
 
-HEADER_PARALLAX = undefined
+HEADER_PARALLAX = null
 
 if PARALLAX_PREFIX?
   PARALLAX_CSS = "transform"


  HEADER_PARALLAX = ->
    header = $("#profile--header:not(.profile--no-header) img")[0]
    return unless header?
    top = (document.documentElement || document.body).scrollTop * HEADER_PARALLAX_INERTIA
    header.style[PARALLAX_CSS] = "translate3d(0px, #{top}px, 0px)";

  $(window).on "scroll", (event) ->
    HEADER_PARALLAX()

$(document).ready ->
  HEADER_PARALLAX() if HEADER_PARALLAX?

  reportDialog "user", target, -> btn.button "reset"

# parallax
PARALLAX_PREFIX = null
if typeof document.documentElement.style.webkitTransform == "string"
  PARALLAX_PREFIX = "webkit"
if typeof document.documentElement.style.mozTransform == "string"
