 
       return
 
+    return
+
+  scrollByHash = (hash) ->
+    if hash
+      excluded = $.inArray(hash, @options.scrolling.exclude) > -1
+
+      if not excluded
+        data = @roof.outline.getScrollDataByHash hash
+
+        @scrollTo data.target, data.offset
+
+    return
+
+  activateSection = (section) ->
+    section = $ section
+    id      = section.data 'id'
+    alias   = section.data 'alias'
+
+    if alias or id
+      @roof.outline.activateItemById alias or id
+
+      updateLocationHash.call @, alias or id
+
+    return
+
+  updateLocationHash = (id) ->
+    window.location.hash = "/#{id}" if id
+
     return
    return

  onSectionEnter: (section, direction) =>
    @activateSection section

    return

  onScrollComplete: (section) =>
    @activateSection section

    return



    true

  index: ->
    if @body.attr 'id' is 'index'
      true
