-delayedFadeIn = ->
-  $("#js-navbar").fadeIn "2000"
-
 $(document).ready ->
   # Initialize Foundation
   $(this).foundation()


  # Parse link and load selected data with smooth transitions
  $.address.change (event) ->
    console.log event.value
    href = event.value.replace /^\//, ""
    container = $("#js-container")
    footer = $("#js-footer")
    # arrow = $("#js-scroll-arrow")

    if href is ""
      $("html, body").animate
        scrollTop: 0,

              scrollTop: $(this).position().top,
              500
          footer.fadeIn "500"

delayedFadeIn = ->
  $("#js-navbar").fadeIn "2000"

# $(window).resize ->
  # Hexagon height is 175px, Navbar height is 45px
