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

// Let's fix the opening bug in NN4 Macintosh
if (LHGT == null) window.location.reload()
else {


// Globals
MAXL=2; //Number of lines
MAXC=6; //Number of columns
TOP=15;   // Top position of the toolbar (seems to be relative to last object in IE and absolute in NN)
LEFT=30;  // Left position of the toolbar
INDNT=00;  // Indenting for every new line
LHGT[0]=28;  // Height of every line (formerly 25)
LHGT[1]=15;  // formerly 20
LHGT[2]=15;  // formerly 20 
BWITH=130; // Button width for every button

BH=0;	//Enabler of the back-lighting function of the path
CURR=0; //Global variable for current page: IF 0 try to have selfknowledge
CLEARNU=false; // If set to true clears empty buttons

DEFCL[0]="EEEEEE"; // Default color for every line
DEFCL[1]="DDDDDD";
DEFCL[2]="DDDDDD";

SELCL[0]="AAAAAA"; // Selected color for every line
SELCL[1]="999999";
SELCL[2]="999999";

var BKIMG = new Array(MAXL); // Background image for every cell
var SBKIMG = new Array(MAXL); // Selected background image for every cell

for(i=0; i<MAXL; i++) {	// Make it bidimensional...
	BKIMG[i]  = new Array(MAXC);
	SBKIMG[i] = new Array(MAXC);
}
	
BKIMG[0][0]="/site/gfx/pic_ntb_00_low.jpg"; // Background image for line 1 (formerly: z-g-1.gif)
BKIMG[0][1]="/site/gfx/pic_ntb_01_low.gif"; // Background image for line 1 (formerly: z-g-2.gif)
BKIMG[0][2]="/site/gfx/pic_ntb_02_low.gif"; // Background image for line 1 (formerly: z-g-2.gif)
BKIMG[0][3]="/site/gfx/pic_ntb_03_low.gif"; // Background image for line 1 (formerly: z-g-2.gif)
BKIMG[0][4]="/site/gfx/pic_ntb_04_low.gif"; // Background image for line 1 (formerly: z-g-2.gif)
BKIMG[0][5]="/site/gfx/pic_ntb_05_low.gif"; // Background image for line 1 (formerly: z-g-2.gif)

BKIMG[1][0]="/site/gfx/pic_ntb_10_low.jpg"; // Background image for line 2 (formerly: z-g-1.gif)
BKIMG[1][1]="/site/gfx/pic_ntb_11_low.jpg"; // Background image for line 2 (formerly: z-g-2.gif)
BKIMG[1][2]="/site/gfx/pic_ntb_12_low.jpg"; // Background image for line 2 (formerly: z-g-2.gif)
BKIMG[1][3]="/site/gfx/pic_ntb_13_low.jpg"; // Background image for line 2 (formerly: z-g-2.gif)
BKIMG[1][4]="/site/gfx/pic_ntb_14_low.jpg"; // Background image for line 2 (formerly: z-g-2.gif)
BKIMG[1][5]="/site/gfx/pic_ntb_15_low.jpg"; // Background image for line 2 (formerly: z-g-2.gif)

SBKIMG[0][0]="/site/gfx/pic_ntb_00_high.jpg"; // Selected background image for line 1 ( formerly: z-g-2.gif)
SBKIMG[0][1]="/site/gfx/pic_ntb_01_high.jpg"; // Selected background image for line 1 ( formerly: z-g-3.gif)
SBKIMG[0][2]="/site/gfx/pic_ntb_02_high.jpg"; // Selected background image for line 1 ( formerly: z-g-4.gif)
SBKIMG[0][3]="/site/gfx/pic_ntb_03_high.jpg"; // Selected background image for line 1 ( formerly: z-g-4.gif)
SBKIMG[0][4]="/site/gfx/pic_ntb_04_high.jpg"; // Selected background image for line 1 ( formerly: z-g-4.gif)
SBKIMG[0][5]="/site/gfx/pic_ntb_05_high.jpg"; // Selected background image for line 1 ( formerly: z-g-4.gif)

SBKIMG[1][0]="/site/gfx/pic_ntb_10_low.jpg"; // Selected background image for line 1 ( formerly: z-g-3.gif)
SBKIMG[1][1]="/site/gfx/pic_ntb_11_low.jpg"; // Selected background image for line 1 ( formerly: z-g-3.gif)
SBKIMG[1][2]="/site/gfx/pic_ntb_12_low.jpg"; // Selected background image for line 1 ( formerly: z-g-3.gif)
SBKIMG[1][3]="/site/gfx/pic_ntb_13_low.jpg"; // Selected background image for line 1 ( formerly: z-g-3.gif)
SBKIMG[1][4]="/site/gfx/pic_ntb_14_low.jpg"; // Selected background image for line 1 ( formerly: z-g-3.gif)
SBKIMG[1][5]="/site/gfx/pic_ntb_15_low.jpg"; // Selected background image for line 1 ( formerly: z-g-3.gif)

BKGL1="/site/gfx/pic_ntb_1_left.jpg";
BKGR1="/site/gfx/pic_ntb_1_right.jpg";

EBKIMG   = "/site/gfx/pic_ntb_white_1x33.gif"; // Empty picture required by w3g browser to clear the button

css72dpi="/site/z-s-vt_12pt.css"
css96dpi="/site/z-s-vt_10pt.css"


// Filling my tree...
//		parent	next	child	idx	lang	data	link
b[0]= new Tree( null, 	null, 	null, 	0, 	" ",	" ", 	"");				// Empty element, handle with care!!

b[1]= new Tree( null,	2, 	7, 	1, 	"e",	" ",		"/index.html");
b[2]= new Tree( null,	3,	10,	2, 	"e",	"Products", 	"/e_products.html");
b[3]= new Tree( null,	4,	12, 	3, 	"e",	"Support", 	"/e_support.html");
b[4]= new Tree( null,	5, 	17, 	4, 	"e",	"Sales", 	"/e_sales.html");
b[5]= new Tree( null,	6, 	18, 	5, 	"e",	"Media&Press",	"/e_media.html");
b[6]= new Tree( null,	null, 	19, 	6, 	"e",	"Partner",	"/e_partner.html");
b[7]= new Tree( 1,	34, 	null, 	7, 	"e",	"Home Page", 	"/index.html"); 		// Same as idx 1
b[8]= new Tree( 1,	9, 	null, 	8, 	"e",	"About Us",	"/e_v_about.html");
b[9]= new Tree( 1,	30,	null, 	9,      "e",	"Contacts",	"/e_v_contacts.html");
b[10]=new Tree( 2,	36, 	null,	10,	"e",	"Overview",	"/e_products.html");
b[11]=new Tree( 2,	25,	20,	11,	"e",	"MPDD+",	"/e_pr_mpdd.html");
b[12]=new Tree( 3, 	13,	null,	12,	"e",	"Intro",	"/e_support.html");
b[13]=new Tree( 3,	14,	null,	13,	"e",	"Downloads",	"/e_su_downloads.html");
b[14]=new Tree( 3, 	15,	null,	14,	"e",	"FAQ",		"/e_su_faq.html");	// same page as idx 2
b[15]=new Tree( 3,	null, 	null, 	15, 	"e",	"Feedback",	"/e_su_feedback.html");
b[16]=new Tree( 6,	39, 	null, 	16, 	"e",	"Sales Team", 	"/e_pa_salesteam.html");
b[17]=new Tree( 4,	37, 	null, 	17, 	"e",	"Intro", 	"/e_sales.html");
b[18]=new Tree( 5,	40, 	null, 	18, 	"e",	"Intro", 	"/e_media.html");
b[19]=new Tree( 6,	16, 	null, 	19, 	"e",	"Intro",	"/e_partner.html");
b[20]=new Tree( 11,	21, 	null, 	20, 	"e",	"Intro", 	"/e_pr_mpdd.html");	// same page as idx 3
b[21]=new Tree( 11,	22, 	null, 	21, 	"e",	"Tech", 	"/e_pr_mpdd_techspecs.html");
b[22]=new Tree( 11,	null, 	null, 	22, 	"e",	"Manual",	"/e_pr_mpdd_manual.html");
b[23]=new Tree( 15,	35, 	null, 	23, 	"e",	"Intro", 	"/e_su_classics.html");
b[24]=new Tree( 15,	null, 	null, 	24, 	"e",	"Downloads", 	"/e_su_cl_downloads.html");
b[25]=new Tree( 2,	null,	26,	25,	"e",	"Classics",	"/e_pr_classics.html");
b[26]=new Tree( 25,	27,	null,	26,	"e",	"Intro",	"/e_pr_classics.html");
b[27]=new Tree( 25,	28,	null, 	27,	"e",	"MP760",	"/e_pr_cl_mp760.html");
b[28]=new Tree( 25,	29,	null,	28,	"e",	"MP860",	"/e_pr_cl_mp860.html");
b[29]=new Tree( 25,	null,	null,	29,	"e",	"MP960",	"/e_pr_cl_mp960.html");
b[30]=new Tree( 1,     null,  null,   30,     "e",    "Site Map",     "/e_map.html");
b[31]=new Tree( 5,	32, 	null, 	31, 	"e",	"Materials", 	"/e_me_pics.html");
b[32]=new Tree( 5,	null, 	null, 	32, 	"e",	"Ads",		"/e_me_ads.html");
b[33]=new Tree( 4,	null,	null,	33,	"e",	"Distributors",	"/e_sa_distributors.html");
b[34]=new Tree( 1,	9, 	null, 	34, 	"e", 	"News",		"/e_v_news.html");
b[35]=new Tree( 15,	24, 	null, 	35, 	"e",	"FAQ",		"/e_su_cl_faq.html");
b[36]=new Tree( 2,     38,     null,  36,     "e",    "VTBook",     "/e_pr_vtbook.html");		
b[37]=new Tree( 4,     33,     null,	37,	"e",	"Dealers",	"/e_sa_dealers.html");
b[38]=new Tree( 2,	11,	null,	38,	"e",	"MPDD Pro",	"/e_pr_mpddpro.html");
b[39]=new Tree( 6,	null,	null,	39,	"e",	"Betatest",	"/e_pa_betatester.html");	
b[40]=new Tree( 5,	31,	null,	40,	"e",	"Press Release",	"/e_me_pressrel.html");	

// for(i=25; i<101; i++) b[i]=new Tree(null, null, null, i, "", "", "");

// Here can go localized toolbar

// Filling my Table... This tabale object takes care of what Tree idx is in what cell at startup time!!
var t = new Table(MAXL, MAXC);
//t.setCell(0,0,b[1].idx);
//t.setCell(0,1,b[2].idx);
//t.setCell(0,2,b[3].idx);
//t.setCell(0,3,b[13].idx);

} // Closing the else condition openend at the top

