 
 layoutPage = (layer, size) ->
 
-	split = detectHeaderFooter(layer)
+	split = pageLayout(layer)
 
 	return layer unless split.body
 

		size: size
		name: "scroll"

	scroll.propagateEvents = false

	constraints = layer.constraintValues

##############################################################
# Layout helpers

pageLayout = (layer) ->

	# This function tries to detect a stack of:
	# 1) header / body / footer
