
var node1Code0 = "<img src='email.jpg' width='16' height='11' border='0' style='margin-right:3px'><a class='treeNode1 commonLink' href='mailto:";
var node1Code1 = "@mailhec.net?subject=MBAT Sport'>"
var node1Code2 = "</a>";
var node2Code0 = "<img src='word.jpg' width='16' height='14' border='0' style='margin-right:3px'><a class='treeNode1 commonLink' href='javascript:openExternal(\"rulesDocs/";
var node2Code1 = "\")'>Rules</a>";
var node2Code1men = "\")'>Rules - Men</a>";
var node2Code1women = "\")'>Rules - Women</a>";
var node3Code0 = "<img src='excel.jpg' width='16' height='14' border='0' style='margin-right:3px'><a class='treeNode1 commonLink' href='javascript:openExternal(\"schedules/";
var node3Code1 = "\")'>Schedule</a>";

// Part 1 - Tree nodes definition
var TREE1_NODES = [
    ['Basketball',null, null,
		[node1Code0+'patrick.schuler'+node1Code1+'Patrick Schuler'+node1Code2, null, null],
    	[node2Code0+'basketball.doc'+node2Code1, null, null],
		[node3Code0+'basketball.xls'+node3Code1, null, null]
	],
	['Tennis',null, null,
		[node1Code0+'arnaud.van-der-straten'+node1Code1+'Arnaud Van der Straten'+node1Code2, null, null],
    	[node2Code0+'tennis.doc'+node2Code1, null, null],
		[node3Code0+'tennis.xls'+node3Code1, null, null]
	],
	['Football',null, null,
		[node1Code0+'Oliver.floth'+node1Code1+'Oliver Floth'+node1Code2, null, null],
    	[node2Code0+'mensFootball.doc'+node2Code1men, null, null],
		[node2Code0+'womensFootball.doc'+node2Code1women, null, null],
		[node3Code0+'footballMen.xls\")\')>Schedule - Men</a>', null, null],
		[node3Code0+'footballWomen.xls\")\'>Schedule - Women</a>', null, null]
	],
	['Rugby',null, null,
		[node1Code0+'michael.adams'+node1Code1+'Michael Adams'+node1Code2, null, null],
    	[node2Code0+'mensRugby.doc'+node2Code1men, null, null],
		[node2Code0+'womensRugby.doc'+node2Code1women, null, null],
		[node3Code0+'rugbyMen.xls\")\')>Schedule - Men</a>', null, null],
		[node3Code0+'rugbWomen.xls\")\'>Schedule - Women</a>', null, null]
	],
	['Volleyball',null, null,
		[node1Code0+'christophe.dutay'+node1Code1+'Christophe Dutay'+node1Code2, null, null],
    	[node2Code0+'volleyball.doc'+node2Code1, null, null],
		[node3Code0+'volleyballIndoor.xls'+node3Code1, null, null]
	],
    ['Table Tennis',null, null,
		[node1Code0+'arnaud.laferte'+node1Code1+'Arnaud Laferté'+node1Code2, null, null],
    	[node2Code0+'tableTennis.doc'+node2Code1, null, null],
		[node3Code0+'tableTennis.xls'+node3Code1, null, null]
	],
	['Badminton',null, null,
		[node1Code0+'gorakhnath.sirsikar'+node1Code1+'Gorakh Sirsikar'+node1Code2, null, null],
    	[node2Code0+'badminton.doc'+node2Code1, null, null],
		["<img src='pdf.jpg' width='16' height='14' border='0' style='margin-right:3px'><a class='treeNode1 commonLink' href='javascript:openExternal(\"schedules/"+'badminton.pdf'+node3Code1, null, null]
	],
	['Beach Volleyball',null, null,
		[node1Code0+'leonardo.innocenti'+node1Code1+'Leonardo Innocenti'+node1Code2, null, null],
    	[node2Code0+'beachVolleyball.doc'+node2Code1, null, null],
		[node3Code0+'volleyballBeach.xls'+node3Code1, null, null]
	],
	['Track and Field',null, null,
		[node1Code0+'julien.bischoff'+node1Code1+'Julien Bischoff'+node1Code2, null, null],
    	[node2Code0+'trackAndField.doc'+node2Code1, null, null],
		[node3Code0+'trackAndField.xls'+node3Code1, null, null]
	],
	['Golf',null, null,
		[node1Code0+'roberto.ochoa'+node1Code1+'Roberto Ochoa'+node1Code2, null, null],
    	[node2Code0+'golf.doc'+node2Code1, null, null],
		[node3Code0+'golf.xls'+node3Code1, null, null]
	],
	['Cross Country',null, null,
		[node1Code0+'david.rigault'+node1Code1+'David Rigault'+node1Code2, null, null],
    	[node2Code0+'crossCountry.doc'+node2Code1, null, null],
		[node3Code0+'crossCountry.xls'+node3Code1, null, null]
	],
	['Salsa Dancing',null, null,
		[node1Code0+'diana.moncoqut'+node1Code1+'Diana Moncoqut'+node1Code2, null, null],
    	[node2Code0+'salsaDancing.doc'+node2Code1, null, null],
		[node3Code0+'salsa.xls'+node3Code1, null, null]
	],
	['Ultimate Frisbee',null, null,
		[node1Code0+'peter.gawlick'+node1Code1+'Peter Gawlick'+node1Code2, null, null],
    	[node2Code0+'ultimateFrisbee.doc'+node2Code1, null, null],
		[node3Code0+'ultimateFrisbee.xls'+node3Code1, null, null]
	],
];

// Part 2 - Tree format
var TREE1_FORMAT = [
    10,                        //  0. x coordinate
    10,                        //  1. y coordinate
    false,                      //  2. button images flag
    [                          //  3. button images:
        "/mbat/2006/_system/graphics/tree/fc.gif",           //     collapsed,
        "/mbat/2006/_system/graphics/tree/fe.gif",           //     expanded,
        "/mbat/2006/_system/graphics/tree/fd.gif"            //     blank
    ],
    [ 16, 16, 0],              //  4. button images size:
                               //     width, height, and
                               //     indentation for
                               //     childless nodes
    true,                      //  5. folder images flag
    [                          //  6. folder images:
        "/mbat/2006/_system/graphics/tree/iconClosed.gif",          //     closed,
        "/mbat/2006/_system/graphics/tree/iconOpen.gif",          //     opened,
       	"/mbat/2006/_system/graphics/tree/b.gif"            //     document
    ],
    [ 14, 14],                 //  7. folder images size:
                               //     width, height
    [ 0, 0, 32 ],             //  8. indentation for each
                               //     level
    "white",                   //  9. background color for
                               //     the whole tree
    "treeNode",                 // 10. default CSS class for
                               //     nodes
    [ "treeNode", "treeNode1 commonLink" ],          // 11. CSS classes for each
                               //     level
    false,                     // 12. single branch mode flag
    [ 0, 1 ],                  // 13. item padding and
                               //     spacing
// ---- additional formatting options ----
    false,                      // 14. explorer-like mode flag
    [                          // 15. images for
                               //     explorer-like mode:
        "img/folder.gif",      // folder,
        "img/folderopen.gif",  // opened folder,
        "img/page.gif",        // page,
        "img/minus.gif",       // button in opened state,
        "img/minusbottom.gif", // same without bottom line,
        "img/plus.gif",        // button in closed state,
        "img/plusbottom.gif",  // same without bottom line,
        "img/line.gif",        // vertical line,
        "img/join.gif",        // three-way join,
        "img/joinbottom.gif"   // two-way join
    ],
    [ 19, 16 ],                // 16. images' size for
                               //     explorer-like mode
    false,                     // 17. state saving feature
                               //     flag
    true,                      // 18. relative positioning
                               //     flag
    [ 0, 0],              // 19. initial width and - NO EFFECT IF NEXT OPTION IS TRUE
                               //     height for relative
                               //     positioning mode
    true,                     // 20. resizable background
                               //     for relative
                               //     positioning mode
    false,                      // 21. selected node                              //     highlighting mode flag
    [                          // 22. attributes for selected
                               //     node:
        "white",               //     background color for
                               //     unselected nodes,
        "white",             //     same for selected node,
        "treeNodeExpanded",         //     CSS class(es) for
                               //     selected node(es),
        "treeNodeExpanded"          //     optional CSS class(es)
                               //     for expanded node(es)
    ],
    0,                       // 23. text wrapping margin
                               //     ("0" means "do not
                               //     wrap")
    "top"                      // 24. vertical alignment for
                               //     buttons and icons
                               //     (applies to trees with
                               //     non-zero text wrapping
                               //     and explorer-like mode
                               //     set to false
];

