var t = new NlsTree("docs");

function CustIconSet(path) {
    this.pnb = path+"arrowright.gif";
    this.pb  = path+"arrowright.gif";
    this.mnb = path+"arrowdown.gif";
    this.mb  = path+"arrowdown.gif";
    this.opf = path+"folderopen.gif";
    this.clf = path+"folder.gif";
    this.chd = path+"leaf.gif";
    this.rot = path+"root.gif";
    this.lnb = path+"blank.gif";
    this.lb  = path+"blank.gif";
    this.lin = path+"blank.gif";
    this.bln = path+"blank.gif";
    return this;
}

function init() {
    
    t.useIconSet(new CustIconSet("../nlstree/img/"));
    t.opt.enbScroll=true;
    t.opt.width="220px";
    t.opt.height="450px";
    t.opt.trg="contentIfrm";
    t.opt.evDblClick=true;
    
    t.add(1, 0, "NlsTree Professional", "cover.htm", "../nlstree/img/mydoc.gif, ../nlstree/img/mydocopen.gif", true, false, null, "NlsTree Professional");
    t.add(59, 1, "What's New In NlsTree Pro", "new.htm", "");
    t.add(2, 1, "1. Introduction", "intro.htm", "", false);
    t.add(3, 1, "2. Installation", "install.htm", "../nlstree/img/folder.gif", false);
    t.add(4, 1, "3. NlsTree Object Model", "objmodel.htm", "../nlstree/img/folder.gif", false);
    t.add(5, 1, "4. My First Tree Instance", "firsttree.htm", "", true);
    t.add(6, 1, "5. Using NlsTree Options", "options.htm", "", false);
    t.add(7, 1, "6. Customizing Tree Icons", "icons.htm", "", false);
    t.add(8, 1, "7. Customizing Styles", "styles.htm", "../nlstree/img/folder.gif", false);
    t.add(9, 1, "8. Multiple Instances", "multi.htm", "../nlstree/img/folder.gif", false);
    t.add(10, 1, "9. Incremental Loading", "incrload.htm", "../nlstree/img/folder.gif", false);
    t.add(11, 1, "10. XML", "xml.htm", "../nlstree/img/folder.gif", false);
    t.add(67, 1, "11. Load from HTML", "loadfromhtml.htm", "../nlstree/img/folder.gif", false);
    t.add(12, 1, "12. NlsTree Event", "events.htm", "../nlstree/img/folder.gif", false);
    t.add(13, 1, "13. Context Menu Plug-In", "context.htm", "", false);
    t.add(47, 1, "14. Drag and Drop Plug-In", "dragdrop.htm", "", false);
    t.add(14, 1, "15. References", "reference.htm", "", false);
    t.add(61, 1, "NlsTree Professional Demo...", "../demo/options.htm", "", false);
    t.setNodeTarget(61, "_top");
    
    t.add(15, 2, "1.1. NlsTree Features", "intro.htm#11", "", false);
    t.add(16, 2, "1.2. Browser Compatibility", "intro.htm#12", "", false);
    
    t.add(17, 5, "4.1. Creating NlsTree Instance", "firsttree.htm#1", "", false);
    t.add(18, 5, "4.2. Adding Node to the Tree", "firsttree.htm#2", "", false);
    t.add(19, 5, "4.3. Displaying NlsTree", "firsttree.htm#3", "", false);

    t.add(21, 19, "4.4.1. Inline Script", "firsttree.htm#31", "", false);
    t.add(22, 19, "4.4.2. Using innerHTML property", "firsttree.htm#32", "", false);
    t.add(53, 19, "4.4.3. The renderAttributes() method", "firsttree.htm#33", "", false);
    t.add(58, 5, "4.4. Custom Node", "firsttree.htm#4", "", false);

    t.add(65, 6, "5.1. Dimension and Scrollbar", "options.htm#1", "", false);
    t.add(23, 6, "5.2. Show Tree Icons", "options.htm#2", "", false);
    t.add(54, 6, "5.3. Node's Icon Behaviour", "options.htm#3", "", false);
    t.add(24, 6, "5.4. Show Checkbox", "options.htm#4", "", false);
    t.add(25, 6, "5.5. Node Sorting", "options.htm#5", "", false);
    t.add(26, 6, "5.6. Select Row Option", "options.htm#6", "", false);
    t.add(27, 6, "5.7. Live Edit", "options.htm#7", "", false);
    t.add(28, 6, "5.8. Target Window", "options.htm#8", "", false);
    t.add(44, 6, "5.9. Single Node Expand", "options.htm#9", "", false);
    t.add(51, 6, "5.10. Single Click vs Double Click to Expand/Collapse", "options.htm#10", "", false);
    t.add(52, 6, "5.11. Maintain Node State", "options.htm#11", "", false);
    t.add(62, 6, "5.12. Hide Root Node", "options.htm#12", "", false);
    t.add(63, 6, "5.13. Multiple Nodes Selection", "options.htm#13", "", false);
    t.add(64, 6, "5.14. Render on Demand", "options.htm#14", "", false);
    
    t.add(29, 7, "6.1. Global Icon Set", "icons.htm#1", "", false);
    t.add(30, 7, "6.2. Node Level Icon", "icons.htm#2", "", false);
    
    t.add(55, 11, "10.1. Output XML from NlsTree", "xml.htm#1", "", false);
    t.add(56, 11, "10.2. Construct Tree From XML (Client)", "xml.htm#2", "", false);
    t.add(57, 11, "10.3. Add New Nodes From XML (Client)", "xml.htm#3", "", false);
    t.add(66, 11, "10.4. XML Tag Attributes", "xml.htm#4", "", false);

    t.add(31, 13, "12.1. Using NlsTree Context Menu", "context.htm#1", "", false);
    t.add(32, 13, "12.2. Global Context Menu", "context.htm#2", "", false);
    t.add(33, 13, "12.3. Node Level Context Menu", "context.htm#3", "", false);

    t.add(34, 31, "12.1.1 Creating Context Menu", "context.htm#11", "", false);
    t.add(35, 31, "12.1.2 Adding Menu Item", "context.htm#12", "", false);
    t.add(36, 31, "12.1.3 Menu Click Event", "context.htm#13", "", false);
    t.add(46, 31, "12.1.4 Disabling Menu Item", "context.htm#14", "", false);
    t.add(45, 31, "12.1.5 Disabling Context Menu", "context.htm#15", "", false);
    t.add(37, 31, "12.1.6 Properties and Functions", "context.htm#16", "", false);

    t.add(38, 14, "14.1 NlsTree API", "reference.htm#1", "", false);
    t.add(39, 14, "14.2 IMPORTANT GLOBAL VARIABLE AND METHODS", "reference.htm#2", "", false);

    t.add(40, 38, "14.1.1 NlsTree Class", "reference.htm#11", "", false);
    t.add(41, 38, "14.1.2 StdOpt Class", "reference.htm#12", "", false);
    t.add(42, 38, "14.1.3 StdIco Class", "reference.htm#13", "", false);
    t.add(43, 38, "14.1.4 NlsNode Class", "reference.htm#14", "", false);

    t.add(48, 47, "13.1 Activate Drag and Drop", "dragdrop.htm#1", "", false);
    t.add(49, 47, "13.2 Default NlsTree Pro Drag and Drop Operation", "dragdrop.htm#2", "", false);
    t.add(60, 47, "13.3 Enable/Disable Drag Drop on Specific Node", "dragdrop.htm#3", "", false);
    t.add(50, 47, "13.4 Customizing your own Drag Drop Operation", "dragdrop.htm#4", "", false);
}

