treeType setting added
Merge onClick events & removing fileManager()

Remove triggering fileManager() onLoad, this is the only place it's used
Set the class, style and onClick events to replicate what that function
was doing
fileManager() gone, new openCloseDir() function

The fileManager function was only being called once onLoad of files.php
This was really only adding onClick events and setting classNames and
style.displays, no need to do this really with JS, merged into files.php
as it's creating the tree
openCloseDir function now available to deal with open & close of dirs
This is less code, less JS to run on boot and paves the way towards
multiple treeTypes
Focus on editor in 4ms

Wasn't focusing after switch, this solves the issue
Move display of UL list into include file

This is so we can use for other purposes shortly, such as different
treeTypes
Move treeType setting

Move nearer root setting, makes logical sense to be near each other,
plus we only update settings down to tabWidth from settings screen,
would be out of this updated section otherwise.
treeType setting now updated, with quotes
treeType added as a setting

root setting text input a bit smaller to allow for this new dropdown
treeType dropdown added with 3 options for full, branch & branchReload
Only create full tree if treeType is 'full'

No need to do any of this if not, so wrapped in an if condition to
exclude otherwise
Get a specific dir if treeType is a branch type

Boot user out if not logged in
If the treeType is branch or branchReload, scan the dir at the specific
location, sort into dir and files arrays, nat case sort them and merge.
This is then finalArray and can be used to create the UL list
Keep root level out of get-tree.php

This is so we can call get-tree.php and just get the UL list at a dir
location
Now working with branch loading!

Only include settings file if we don't have ICEcoder settings available
Need 4 x vars for fileCounts etc available here
Contain tree within DIV which we can get the innerHTML of later for
branch injection
Need .$location when determining if a dir or not and also as part of the
path
If it's a folder and we have a treeType of branch or branchReload, add
true as the 2nd param, false otherwise
If we have a location, we're branch injecting, so get the target DOM
elem, create a new UL, set the style of it, remove whatever UL may be
there before, take the DIV innerHTML with the UL and /UL tags chopped
off, make it the innerHTML of our UL and finally inject into the DOM at
the right position.
4 x vars moved to get-tree.php

Need to make use of these for branch injection too
openCloseDir changes onClick & gets dir branch

Change onclick event by setting 2nd param to false so it doesn't reload
Broke setting of node.nextSibling down into 2 new items, may revise this
If we're due to load, pass that through to get-tree.php in the
fileControl iFrame to begin the process