         parent.tile.value =
             type: 'branch'
             children:
-                left: createTile parent, 'vertical', true
-                right: createTile parent, 'vertical', false
+                left: createTile parent, orientation, true
+                right: createTile parent, orientation, false
             content:
                 dom:
                     parent.tile.value.content.dom
                     .attr 'class', 'tael-node-branch'
             layout:
-                split: 'horizontal'
+                split: orientation
                 divider_location: 0.5
     
     parent =

        # child tile.
        parent.tile.value.child = createTile parent, 'siblingless', true
    
    addLeavesToLeaf = (parent) ->
        # Create two tiles; convert the 'leaf' tile into a 'branch' tile
        # before inserting the two new 'leaf' tiles into the newly-classified
        # 'branch' tile.

        when 'container'
            addLeafToContainer parent
        when 'leaf'
            addLeavesToLeaf parent, orientation
        when 'branch'
            error.throw "Branch tiles cannot spawn new children post-creation."

module.exports = ->
    new_tiles = [
        [0, 'siblingless'],
        [1, 'horizontal'],
        [3, 'vertical']
    ]

    for tile in new_tiles
        newTile tiles, tile[0], tile[1]

