// Tree format definition
// [optional ID], caption, URL, target frame, format specifier
var TREE1_NODES = [
    ['Home', './', null,
		[ 'String or Nothing', 'http://www.string-or-nothing.com/default.aspx', null ],
		[ 'About',             '/about.asp', null ],
		[ 'Contact',           '/contact.asp', null ],
		[ 'Login',             '/login.asp', null ],
		[ 'How-To',            '/how-to.asp', null ]
	],
    ['Yarn Reviews', './yarn-reviews.asp', null,
		[ 'Recent Reviews',     './yarn-rev-recent.asp', null ],
		[ 'Recent Yarns',       './yarn-recent.asp', null ],
		[ 'Search',             './yarn-search.asp', null ],
		[ 'Submit a Yarn',      './new-yarn.asp', null ],
		[ 'Submit a Review',    './new-yarn-review.asp', null ]
	],
    ['Patterns', './knit-patterns.asp', null,
		[ 'Sweaters',         './sweater-patterns.asp', null ],
		[ 'Socks',            './sock-patterns.asp', null ],
		[ 'Accessories',      './accessories-patterns.asp', null ],
		[ 'Graphed',          './graph-patterns.asp', null ]
	],
    ['Community', './community.asp', null ,
		[ 'Advice',            './advice.asp', null ],
		[ 'Glossary',          './glossary.asp', null ],
		[ 'Polls',             './polls.asp', null ]
	]
];

// Part 2 - Tree format
var TREE1_FORMAT = [
    0,                // 0. x coordinate
    0,                // 1. y coordinate
    true,             // 2. button images flag
    [                 // 3. button images:
      "img/c.gif",    //    collapsed,
      "img/e.gif",    //    expanded,
      "img/b.gif"     //    blank
    ],
    [ 16, 16, 0],     // 4. button images size: width,
                      // height, and indentation for
                      // childless nodes
    true,             // 5. folder images flag
    [                 // 6. folder images:
        "img/fc.gif", //    closed,
        "img/fe.gif", //    opened,
        "img/d.gif"   //    document
    ],
    [ 16, 16],        // 7. folder images size: width, height
    [ 0, 16, 32 ],    // 8. indentation for each level
    "white",          // 9. background color for the whole
                      // tree
    "clsNode",        // 10. default CSS class for nodes
    [ "cl1", "cl2" ], // 11. CSS classes for each level
    false,            // 12. single branch mode flag
    [ 0, 0 ],         // 13. item padding and spacing
	true,			  // 14. boolean, explorer-like mode flag: if true then tree will have lines and joins - like in most of computer appplications like Explorer or other file managers;
                      // 15. # array of strings, list of images for explorer-like mode, e.g.:
	[ "img/folder.gif", "img/folderopen.gif", "img/page.gif", "img/minus.gif", "img/minusbottom.gif", "img/plus.gif", "img/plusbottom.gif", "img/line.gif", "img/join.gif", "img/joinbottom.gif" ],
	[ 19, 16 ],       //16. array of integer, width and height of images for explorer-like mode,
	true,			  // 17.boolean, state saving feature flag: if true then tree will automatically store to and restore from cookies its state;
	true, 			  // 18. boolean, relative positioning flag: if true then tree will be positioned relatively to its container, and options #0 and #1 will be relative to that container;
	[ 130, 300 ],	  // 19. array of integers, initial width and height of the tree in relative positioning mode;
	true,			  // 20.  boolean, resizable background for relative positioning mode: if true then width and height specified in the previous option will grow as tree expands and shkink when it collapses;
	false,			  // 21. boolean, selected node highlighting mode flag: if true then selected node (i.e. node that was clicked by user) will be highlighted;
	[ '' ],			  // 22. array of strings, attributes for selected node: first element defines background color for unhighlighted nodes, second - same for selected node, and third element specifies CSS class for selected node:
	150,			  // 23. integer, text wrapping margin in pixels; actually, this is width of the tree - it will never exceed specified value; 0 means "do not wrap" or "no width limit";
	'top'			  // 24. string, one of the following: "top", "middle", "bottom"; if previous option is not zero, then this one specifies vertical alignment for icons and buttons.
];
