// Navigation Toolbar internal definitions by Ascanio Orlandini - e*[comm]^3
// Version 0.9n

// Browser check vars
userAgent = navigator.userAgent.toLowerCase();
userAgentVersion = navigator.appVersion.toLowerCase();
n4 = document.layers;
ie = document.all;
w3c= document.documentElement;
sf = userAgent.indexOf("safari")>0;
dhtml = ((n4||ie||w3c||sf) && userAgent.indexOf("aol")<0);


// My simple Tree object
function Tree(parent, next, child, idx, lang, data, link) {
 	this.parent = parent;
 	this.next = next;
 	this.child = child;
 	this.data = data;
 	this.link = link;
 	this.idx = idx;
 	this.lang = lang;
}

// My simple Table object
function Table(lines, columns) {
 	this.lines=lines;
 	this.columns=columns;
 	this.cell = new Array();
 	this.setCell = setCell;
 	this.getCell = getCell;
 	this.getButton = getButton;
}

function setCell(line, column, content) {
 	this.cell[line*this.columns+column]=content;
}

function getCell(line, column) {
	return Number(this.cell[line*this.columns+column]);
}

function getButton(idx) {
 	for(i=0; i<this.lines*this.columns; i++)
 		if(this.cell[i]==idx) break;
 	return ("b"+Math.floor(i/this.columns)+i%this.columns);
}

var LHGT = new Array(); // Height of every line
var DEFCL = new Array(); // Default color for every line
var SELCL = new Array(); // Selected color for every line
var b = new Array();	// The Arrey of the objects of the Tree structure
