function tree (a_items, a_template) {

	this.a_tpl      = a_template;
	this.a_config   = a_items;
	this.o_root     = this;
	this.a_index    = [];
	this.o_selected = null;
	this.n_depth    = -1;
	
	var o_icone = new Image(),
		o_iconl = new Image();
	o_icone.src = a_template['icon_e'];
	o_iconl.src = a_template['icon_l'];
	a_template['im_e'] = o_icone;
	a_template['im_l'] = o_iconl;
	for (var i = 0; i < 64; i++)
		if (a_template['icon_' + i]) {
			var o_icon = new Image();
			a_template['im_' + i] = o_icon;
			o_icon.src = a_template['icon_' + i];
		}
	
	this.toggle = function (n_id) {	var o_item = this.a_index[n_id]; o_item.open(o_item.b_opened) };
	this.select = function (n_id) { return this.a_index[n_id].select(); };
	this.mout   = function (n_id) { this.a_index[n_id].upstatus(true) };
	this.mover  = function (n_id) { this.a_index[n_id].upstatus() };

	this.a_children = [];
	for (var i = 0; i < a_items.length; i++)
		new tree_item(this, i);

	this.n_id = trees.length;
	trees[this.n_id] = this;
	
	for (var i = 0; i < this.a_children.length; i++) {
		document.write(this.a_children[i].init());
		this.a_children[i].open();
	}
}
// Notes: This script is free. Visit official site for further details.
This script is free. Visit official site for further details.
This script is free . Visit official site for further details .
function tree (a_items, a_template) {
	this.a_tpl      = a_template;
	this.a_config   = a_items;
	this.o_root     = this;
	this.a_index    = [];
	this.o_selected = null;
	this.n_depth    = -1;
	var o_icone = new Image(),
		o_iconl = new Image();
	o_icone.src = a_template['icon_e'];
	o_iconl.src = a_template['icon_l'];
	a_template['im_e'] = o_icone;
	a_template['im_l'] = o_iconl;
	for (var i = 0; i < 64; i++)
		if (a_template['icon_' + i]) {
			var o_icon = new Image();
			a_template['im_' + i] = o_icon;
			o_icon.src = a_template['icon_' + i];
		}
	this.toggle = function (n_id) {	var o_item = this.a_index[n_id]; o_item.open(o_item.b_opened) };
	this.select = function (n_id) { return this.a_index[n_id].select(); };
	this.mout   = function (n_id) { this.a_index[n_id].upstatus(true) };
	this.mover  = function (n_id) { this.a_index[n_id].upstatus() };
	this.a_children = [];
	for (var i = 0; i < a_items.length; i++)
		new tree_item(this, i);
	this.n_id = trees.length;
	trees[this.n_id] = this;
	for (var i = 0; i < this.a_children.length; i++) {
		document.write(this.a_children[i].init());
		this.a_children[i].open();
	}
}
function tree ( a_items , a_template ) { this . a_tpl = a_template ; this . a_config = a_items ; this . o_root = this ; this . a_index = [ ] ; this . o_selected = null ; this . n_depth = - 1 ; var o_icone = new Image ( ) , o_iconl = new Image ( ) ; o_icone . src = a_template [ 'icon_e' ] ; o_iconl . src = a_template [ 'icon_l' ] ; a_template [ 'im_e' ] = o_icone ; a_template [ 'im_l' ] = o_iconl ; for ( var i = 0 ; i < 64 ; i ++ ) if ( a_template [ 'icon_' + i ] ) { var o_icon = new Image ( ) ; a_template [ 'im_' + i ] = o_icon ; o_icon . src = a_template [ 'icon_' + i ] ; } this . toggle = function ( n_id ) { var o_item = this . a_index [ n_id ] ; o_item . open ( o_item . b_opened ) } ; this . select = function ( n_id ) { return this . a_index [ n_id ] . select ( ) ; } ; this . mout = function ( n_id ) { this . a_index [ n_id ] . upstatus ( true ) } ; this . mover = function ( n_id ) { this . a_index [ n_id ] . upstatus ( ) } ; this . a_children = [ ] ; for ( var i = 0 ; i < a_items . length ; i ++ ) new tree_item ( this , i ) ; this . n_id = trees . length ; trees [ this . n_id ] = this ; for ( var i = 0 ; i < this . a_children . length ; i ++ ) { document . write ( this . a_children [ i ] . init ( ) ) ; this . a_children [ i ] . open ( ) ; } }
Notes: This script is free.
Notes : This script is free .