/*
 * ============================================================================
 *                   The ProQuality Inc.
 *         Rapid Efficent Low cost And Xtreme (RELAX)
 *	           Advanced Solutions Framework (ASF)
 *                  Cristian Teodorescu
 *                      Version 6.0
 * ============================================================================
 * 
 *    Copyright (C) 1999 The ProQuality Inc. Foundation. All rights reserved.
 * 
 * The use of this software in any form is strictly prohibited unless you have 
 * purchased a licence from ProQuality Inc. or you have a software agreement with 
 * ProQuality Inc.
 * 
 * Redistributions of source code must retain copyright statements
 * and notices. Redistributions must also contain a copy of this
 * document.
 *
  THIS SOFTWARE IS PROVIDED BY PROQUALITY AND CONTRIBUTORS ``AS IS'' AND
  ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL PROQUALITY OR ITS
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  DAMAGE.
    
 *
 */
// Tree format definition
var TREE2_FORMAT = [
	//  0. left position
	0,
	//  1. top position
	0,
	//  2. show buttons ("+" and "-" images)
	false,
	//  3. button images: collapsed state, expanded state, blank image
	["", "", "images/blank.gif"],
	//  4. size of buttons: width, height, indent amount for childless nodes
	[0, 0, 0],
	//  5. show icons ("folder" and "document")
	false,
	//  6. icon images: closed folder, opened folder, document
	["", "", ""],
	//  7. size of icons: width, height
	[0, 0],
	//  8. indent amount for each level of the tree
	[0, 16, 32, 48, 64, 80, 96, 112, 128],
	//  9. background color for the tree
	"",
	// 10. default CSS class for nodes
	"treeNode",
	// 11. individual CSS classes for levels of the tree
	[],
	// 12. "single branch" mode
	false,
	// 13. padding and spacing values for all nodes
	[0, 0],
	// 14. "explorer-like" mode
	true,
	// 15. images for "explorer-like" mode
	["/base/images/e_folder_closed.gif", "/base/images/e_folder_opened.gif", "/base/images/e_document.gif", "/base/images/e_middle_button_expanded.gif", "/base/images/e_bottom_button_expanded.gif", "/base/images/e_middle_button_collapsed.gif", "/base/images/e_bottom_button_collapsed.gif", "/base/images/e_vertical_line.gif", "/base/images/e_middle_join.gif", "/base/images/e_bottom_join.gif"],
	// 16. size of images for "explorer-like" mode: width, height
	[19, 16],
	// 17. store tree state into cookies
	false,
	// 18. relative positioning mode
	true,
	// 19. initial space for the relatively positioned tree: width, height
	[200, 50],
	// 20. resize container of the relatively positioned tree
	true,
	// 21. change background-color and style for selected node
	false,
	// 22. background color for unselected node, background color for selected node, class for selected node
	["", "", ""],
	// 23. text wrapping margin
	0,
	// 24. vertical alignment for buttons and icons
	"middle"
];
var TREE1_FORMAT =
[
//0. left position
	0,
//1. top position
	0,
//2. show +/- buttons
	true,
//3. couple of button images (collapsed/expanded/blank)
	["/base/images/c.gif", "/base/images/e.gif", "/base/images/b.gif"],
//4. size of images (width, height,ident for nodes w/o children)
	[16,16,16],
//5. show folder image
	false,
//6. folder images (closed/opened/document)
	[],
//7. size of images (width, height)
	[16,16],
//8. identation for each level [0/*first level*/, 16/*second*/, 32/*third*/,...]
	[0,16,32,48,64,80,96,112,124],
//9. tree background color ("" - transparent)
	"",
//10. default style for all nodes
	"clsNode",
//11. styles for each level of menu (default style will be used for undefined levels)
	[],//["clsNodeL0","clsNodeL1","clsNodeL2","clsNodeL3","clsNodeL4"],
//12. true if only one branch can be opened at same time
	false,
//13. item pagging and spacing
	[0,0],
/************** PRO EXTENSIONS ********************/
//14. draw explorer like tree ( identation will be ignored )
	true,
//15. Set of explorer images ("/base/images/folder.gif", "/base/images/folderopen.gif", "/base/images/page.gif", "/base/images/minus.gif", "/base/images/minusbottom.gif", "/base/images/plus.gif", "/base/images/plusbottom.gif", "/base/images/line.gif", "/base/images/join.gif", "/base/images/joinbottom.gif")
	["/base/images/folder.gif", "/base/images/folderopen.gif", "/base/images/page.gif", "/base/images/minus.gif", "/base/images/minusbottom.gif", "/base/images/plus.gif", "/base/images/plusbottom.gif", "/base/images/line.gif", "/base/images/join.gif", "/base/images/joinbottom.gif"],
//16. Explorer images width/height
	[19,16],
//17. if true state will be saved in cookies
	false,
//18. if true - relative position will be used. (tree will be opened in place where init() was called)
	true,
//19. width and height of initial rectangle for relative positioning
	[180,150],
//20. resize background //works only under IE4+, NS6+ for relatiive positioning
	true,
//21. support bgcolor changing for selected node
	true,
//22. background color for non-selected and selected node
	["white","#EEEEEE", "clsNodeSelected"],
	// 23. text wrapping margin
	0,
	// 24. vertical alignment for buttons and icons
	"middle"
];