// 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,   null, 	 1, "e",	" ",			"/index.html");
b[2]= new Tree( null,	   3,   null,	 2, "e",	"Products", 	"/e_products.html");
b[3]= new Tree( null,	   4,   null, 	 3, "e",	"Support", 		"/e_support.html");
b[4]= new Tree( null,	   5,   null, 	 4, "e",	"Where to Buy", "/sales/index.html");
b[5]= new Tree( null,	   6,   null, 	 5, "e",	"Media&Press",	"/news/media.html");
b[6]= new Tree( null,	null,  null, 	 6, "e",	"Partners",		"/partners/partners.html");
b[7]= new Tree(    1,	  34, 	null, 	 7, "e",	"Home Page", 	"/index.html"); 		// Same as idx 1
b[8]= new Tree(    2,	  41, 	null, 	 8, "e",	"ViDock 2",		"/vidock2/index.html");
b[9]= new Tree(    1,	  30,	null, 	 9,	"e",	"Contacts",		"/e_v_contacts.html");
b[10]=new Tree(    2,	   8, 	null,	10,	"e",	"Overview",		"/e_products.html");
b[11]=new Tree(    2,	  38,	null,	11,	"e",	"VTBook",		"/vtbook/index.html");
b[12]=new Tree(    3,	  13,	null,	12,	"e",	"Intro",		"/support/index.html");
b[13]=new Tree(    3, 	  14,	null,	13,	"e",	"Downloads",	"/support/downloads.html");
b[14]=new Tree(    3,	  15,	null,	14,	"e",	"FAQ",			"/support/faq.html");
b[15]=new Tree(    3,	  25, 	null, 	15, "e",	"Feedback",		"/support/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",	"Where to Buy", "/sales/index.html");
b[18]=new Tree(    5,	  40, 	null, 	18, "e",	"Intro", 		"/e_media.html");
b[19]=new Tree(    6,	  26, 	null, 	19, "e",	"Intro",		"/e_partner.html");
b[20]=new Tree(   11,	null, 	null, 	20, "e",	"Accessories", 	"/vtbook/accessories");
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(    3,	null,	null,	25,	"e",	"Classics",		"/classics/index.html");
b[26]=new Tree(    6,	  16,	null,	26,	"e",	"Partner",		"/partners/partner.html");
b[27]=new Tree(   4,	  28,	null, 	27,	"e",	"Asia/FE",		"/sales/asia_fe.html");
b[28]=new Tree(   4,	  29,	null,	28,	"e",	"Oceania",		"/sales/oceania.html");
b[29]=new Tree(   4,	null,	null,	29,	"e",	"ME/Africa",	"/sales/me_africa.html");
b[30]=new Tree(    1,	null,	null,  30, "e",    "Site Map",     "/site/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,	  27,	null,	33,	"e",	"Europe",	    "/sales/europe.html");
b[34]=new Tree(    1,	   9, 	null, 	34, "e", 	"News",			"/news/news.html");
b[35]=new Tree(   15,	  24, 	null, 	35, "e",	"FAQ",			"/e_su_cl_faq.html");			// Not used
b[36]=new Tree(    2,	null,	null,	36, "e",    "VTBook",     	"/vtbook/index.html"); 			// Not used	
b[37]=new Tree(    4,     33,	null,	37,	"e",	"Americas",		"/sales/americas.html");
b[38]=new Tree(    2,	  20,	null,	38,	"e",	"VT&nbsp;MultiDisplay",		"/vtmd/index.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","/news/pressrel.html");
b[41]=new Tree(    2,    11,   null,   41, "e",   "ViBook",        "/vibook/index.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
