/**
 * treemenu sidebox 
 *
 * @package templateSystem
 * @copyright Copyright 2007 Andrew Berezin eCommerce-Service.com
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2004 Medreces medreces@yandex.ru
 * @copyright Portions Copyright http://www.softcomplex.com/products/tigra_menu_tree/
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: treemenu.js 1.0 23.05.2007 11:24 Andrew Berezin andrew@ecommerce-service.com $
 */
/*
    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 + '/empty.gif',  // vertical line  line.gif

//    '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 + '/1x1Blank.png', // node icon normal
    'icon_20' : tree_icons_dir + '/1x1Blank.png', // node icon selected
    'icon_24' : tree_icons_dir + '/1x1Blank.png', // node icon opened
    'icon_28' : tree_icons_dir + '/1x1Blank.png', // node icon selected opened

    'icon_0'  : tree_icons_dir + '/1x1Blank.png', // leaf icon normal
    'icon_4'  : tree_icons_dir + '/1x1Blank.png', // leaf icon selected

    'icon_2'  : tree_icons_dir + '/1x1Blank.png', // junction for leaf
    'icon_3'  : tree_icons_dir + '/1x1Blank.png',       // junction for last leaf
    'icon_18' : tree_icons_dir + '/expand.gif', // junction for closed node
    'icon_19' : tree_icons_dir + '/expand.gif',       // junctioin for last closed node  dash.gif
    'icon_26' : tree_icons_dir + '/collapse.gif',// junction for opened node
    'icon_27' : tree_icons_dir + '/collapse.gif',       // junctioin for last opended node 1x1Blank.png

    'icon_66' : tree_icons_dir + '/1x1Blank.png', 
    'icon_82' : tree_icons_dir + '/1x1Blank.png', 

    'icon_90' : tree_icons_dir + '/1x1Blank.png',

    'icon_146' : tree_icons_dir + '/expandh.gif', // good onMouseOver
    'icon_210' : tree_icons_dir + '/1x1Blank.png', //  onMouseOver
    'icon_147' : tree_icons_dir + '/expandh.gif', //  onMouseOver dash.gif

    'icon_154' : tree_icons_dir + '/collapseh.gif', // good onMouseOver
    'icon_218' : tree_icons_dir + '/1x1Blank.png', //  onMouseOver
    'icon_155' : tree_icons_dir + '/collapseh.gif', //  onMouseOver

    'icon_194' : tree_icons_dir + '/1x1Blank.png', // junction for leaf  onMouseOver
    'icon_130' : tree_icons_dir + '/1x1Blank.png', // junction for leaf  onMouseOver
    'icon_131' : tree_icons_dir + '/1x1Blank.png' // junction for leaf  onMouseOver 
};

var style_el = 'boxText';