/*
    Feel free to use your custom icons for the tree. Make sure they are all of the same size.
    User icons collections are welcome, we'll publish them giving all regards.
*/

var TREE_TPL = {
    'target'  : '_self',    // name of the frame links will be opened in
                            // other possible values are: _blank, _parent, 
                            // _search, _self and _top

    'icon_e'  : tree_icons_dir + '/empty.gif', // empty image
    'icon_l'  : tree_icons_dir + '/line.gif',  // vertical line

    'icon_32' : tree_icons_dir + '/base.gif',   // root leaf icon normal
    'icon_36' : tree_icons_dir + '/base.gif',   // root leaf icon selected

    'icon_48' : tree_icons_dir + '/empty.gif',   // root icon normal
    'icon_52' : tree_icons_dir + '/empty.gif',   // root icon selected
    'icon_56' : tree_icons_dir + '/empty.gif',   // root icon opened
    'icon_60' : tree_icons_dir + '/empty.gif',   // root icon selected

    'icon_89' : tree_icons_dir + '/base.gif',   // root icon normal
//    'icon_52' : tree_icons_dir + '/base.gif',   // root icon selected
//    'icon_56' : tree_icons_dir + '/base.gif',   // root icon opened
//    'icon_60' : tree_icons_dir + '/base.gif',   // root icon selected

    'icon_16' : tree_icons_dir + '/folder.gif', // node icon normal
    'icon_20' : tree_icons_dir + '/folderopen.gif', // node icon selected
    'icon_24' : tree_icons_dir + '/folderopen.gif', // node icon opened
    'icon_28' : tree_icons_dir + '/folderopen.gif', // node icon selected opened

    'icon_0'  : tree_icons_dir + '/page.gif', // leaf icon normal
    'icon_4'  : tree_icons_dir + '/page.gif', // leaf icon selected

    'icon_2'  : tree_icons_dir + '/joinbottom.gif', // junction for leaf
    'icon_3'  : tree_icons_dir + '/join.gif',       // junction for last leaf
    'icon_18' : tree_icons_dir + '/plusbottom.gif', // junction for closed node
    'icon_19' : tree_icons_dir + '/plus.gif',       // junctioin for last closed node
    'icon_26' : tree_icons_dir + '/minusbottom.gif',// junction for opened node
    'icon_27' : tree_icons_dir + '/minus.gif',       // junctioin for last opended node

    'icon_66' : tree_icons_dir + '/jointop.gif', // верхний уголок
    'icon_82' : tree_icons_dir + '/plusup.gif', // верхняя категория - плюс
    'icon_90' : tree_icons_dir + '/minusup.gif',// верхняя категория - минус
    'icon_91' : tree_icons_dir + '/minus.gif',

    'icon_146' : tree_icons_dir + '/movernode.gif', // "плюс" в середине на onMouseOver
    'icon_210' : tree_icons_dir + '/movernodeup.gif', // "плюс" сверху на onMouseOver
    'icon_147' : tree_icons_dir + '/movernodebottom.gif', // "плюс" снизу на onMouseOver

    'icon_154' : tree_icons_dir + '/movernode.gif', // "минус" на onMouseOver
    'icon_218' : tree_icons_dir + '/movernodeup.gif', // "минус" сверху на onMouseOver
    'icon_155' : tree_icons_dir + '/movernodebottom.gif', // "минус" снизу на onMouseOver

    'icon_194' : tree_icons_dir + '/moverjointop.gif', // junction for leaf в середине на onMouseOver
    'icon_130' : tree_icons_dir + '/moverjoinbottom.gif', // junction for leaf в середине на onMouseOver
    'icon_131' : tree_icons_dir + '/moverjoin.gif' // junction for leaf снизу на onMouseOver
};

var style_el = 'boxText';