mac = (navigator.appVersion.indexOf("Mac") != -1)
win = (navigator.appVersion.indexOf("Win") != -1)
ns = (navigator.appName=="Netscape")? 1:0 
ie = (navigator.appName=="Microsoft Internet Explorer")? 1:0
ns4 = (document.layers)? 1:0                          ///// Netscape 4
ns5 = (document.getElementById&&!document.all)? 1:0   ///// Netscape 5 en Netscape 6 en Mozilla 
ie4 = (document.all&&!document.getElementById)? 1:0   ///// IE 4
ie5 = (document.all&&document.getElementById)? 1:0    ///// IE 5 en IE 5.5

nav_all_x = new Array("174","275","365","445","570");
nav_title_w = new Array("100","90","80","125","199");

theNav = new Array();

theNav[0] = new Array("encounter","explore","trust","partnership","annual accounts 2002");

theNav[1] = new Array();
theNav[1][0] = new Array("Recommendations of the supervisory board","Report of the supervisory board","managing directors of NIB Capital","organisational chart of NIB Capital");
theNav[1][1] = new Array();
theNav[1][2] = new Array();
theNav[1][3] = new Array();
theNav[1][4] = new Array();


theNav[2] = new Array();
theNav[2][0] = new Array("introduction", "results and financial position", "key figures","operating result","operating income", "operating expense", "results by strategic business unit"," corporate finance","financial markets","principal investments", "corporate center"," NIBC private equity", "net profit");
theNav[2][1] = new Array();
theNav[2][2] = new Array();
theNav[2][3] = new Array();
theNav[2][4] = new Array();
theNav[2][5] = new Array();
theNav[2][6] = new Array();
theNav[2][7] = new Array();
theNav[2][8] = new Array();
theNav[2][9] = new Array();
theNav[2][10] = new Array();
theNav[2][11] = new Array();
theNav[2][12] = new Array();
theNav[2][13] = new Array();

theNav[3] = new Array();
theNav[3][0] = new Array("balance sheet and ratios","risk management","human resources policy", "corporate social responsibility", "compliance", "employees’ council", "outlook");
theNav[3][1] = new Array();
theNav[3][2] = new Array();
theNav[3][3] = new Array();
theNav[3][4] = new Array();
theNav[3][5] = new Array();
theNav[3][6] = new Array();
theNav[3][7] = new Array();
theNav[3][8] = new Array();
theNav[3][9] = new Array();
theNav[3][10] = new Array();
theNav[3][11] = new Array();
theNav[3][12] = new Array();
theNav[3][13] = new Array();

theNav[4] = new Array();
theNav[4][0] = new Array("Partnerships<br> of NIB Capital", "Partnership with clients", "Partnership through European offices of NIB Capital Bank", "Global transportation <br>and energy network of NIB Capital Bank");
theNav[4][1] = new Array("Harcourt Investment Consulting AG", "Integrated Finance Limited", "NIBC Petercam Derivatives N.V.", "Catamount Investment Group");
theNav[4][2] = new Array();
theNav[4][3] = new Array("NIB Capital Bank London","NIB Capital Bank Belgium");
theNav[4][4] = new Array("Merchant Bank Singapore","NIB Capital Bank (N.A.) N.V.","Partnerships in International Shipping");
theNav[4][5] = new Array();
theNav[4][6] = new Array();
theNav[4][7] = new Array();

theNav[5] = new Array();
theNav[5][0] = new Array("Consolidated results","Company results","Additional Information");

theNav[5][1] = new Array("Consolidated Balance Sheet as at 31 December 2002","Consolidated Profit and Loss Account for 2002","Cash Flow Statement for 2002","Accounting Policies","Financial risk management","Notes to the Consolidated Balance Sheet as at 31 December 2002","Notes to the Consolidated Profit and Loss Account for 2002");
theNav[5][2] = new Array("Company Balance Sheet as at 31 December 2002","Company Profit and Loss Account for 2002","Notes to the Company Balance Sheet as at 31 December 2002");
theNav[5][3] = new Array("List of Principal Participating Interests","Other information","Provisions of the articles of association concerning profit appropriation","Principal Subsidiaries, offices and representations");



function writeNav() {
	for (i=0; i<theNav[0].length; i++) {
		document.writeln("<div id='nav_" + i + "_all' onMouseOver='showNav(1," + i + ")' onMouseOut='hideNav(1," + i + ")' style='position:absolute; left:" + nav_all_x[i] + "px; top:0px; clip:auto; z-index:100;'>");
	
		document.writeln("<div id='nav_" + i + "' onMouseOver='showNav(1," + i + ")' style='position:absolute; left:0px; top:0px; height:15px; width:" + nav_title_w[i] + "px; clip:auto; padding-left:9px; padding-right:9px; padding-top:1px; padding-bottom:1px; letter-spacing:1px; color:#2B506A; text-transform:uppercase; background-color:transparant; cursor:hand;'>" + theNav[0][i].toUpperCase() + "</div>");
		
		document.writeln("<div id='nav_" + i + "_holder' style='position:absolute; left:0px; top:15px; clip:auto; visibility:hidden; border-top:1px solid #ffffff;'>");
		for (j=0; j<theNav[i+1][0].length; j++) {
			if (theNav[i+1][j+1].length == 0) {  //HAS NO CHILDREN
				document.writeln("<div id='nav_" + i + "_" + j + "' onMouseOver='showNav(2,\"" + i + "_" + j + "\")' onMouseOut='hideNav(2,\"" + i + "_" + j + "\")' onClick='doNav(\"" + i + "_" + j + "\")' style='width:170px; padding-left:8px; padding-right:8px; padding-top:3px; padding-bottom:2px; text-transform:capitalize; background-position:top right; background-repeat:no-repeat; cursor:hand; color:#2B506A; border-left:1px solid #ffffff; border-right:1px solid #ffffff; border-bottom:1px solid #ffffff; background-color:#D1DBE1;'>");	
			}
			else {  //HAS CHILDREN
				document.writeln("<div id='nav_" + i + "_" + j + "' onMouseOver='showNav(2,\"" + i + "_" + j + "\")' onMouseOut='hideNav(2,\"" + i + "_" + j + "\")' style='width:170px; padding-left:8px; padding-right:8px; padding-top:3px; padding-bottom:2px; text-transform:capitalize; background-image:url(img/icons/nav.gif); background-position:top right; background-repeat:no-repeat; cursor:hand; color:#2B506A; border-left:1px solid #ffffff; border-right:1px solid #ffffff; border-bottom:1px solid #ffffff; background-color:#D1DBE1;'>");
			}
			document.writeln(theNav[i+1][0][j]);
			document.writeln("</div>");
			
			
			document.writeln("<div id='nav_" + i + "_" + j + "_holder'  onMouseOver='showNav(2,\"" + i + "_" + j + "\")' onMouseOut='hideNav(2,\"" + i + "_" + j + "\")' style='position:absolute; left:170px; top:" + (j*18) + "px; clip:auto; visibility:hidden;'>");
			for (k=0; k<theNav[i+1][j+1].length; k++) {
				document.writeln("<div id='nav_" + i + "_" + j + "_" + k + "' onMouseOver='showNav(3,\"" + i + "_" + j + "_" + k + "\")'  onMouseOut='hideNav(3,\"" + i + "_" + j + "_" + k + "\")' onClick='doNav(\"" + i + "_" + j + "_" + k + "\")' style='width:170px; padding-left:3px; padding-right:8px; padding-top:3px; padding-bottom:2px; text-transform:capitalize; background-position:top right; background-repeat:no-repeat; cursor:hand; color:#2B506A; border-right:1px solid #ffffff; border-bottom:1px solid #ffffff; background-color:#EBEFF2;'>");
				document.writeln(theNav[i+1][j+1][k]);
				document.writeln("</div>");
				
			}
			if (theNav[i+1][j+1].length != 0) {  //HAS CHILDREN
				document.writeln("<div style='position:absolute; width:170px; height:1px; clip:rect(0px 170px 1px 0px); background-color:#2B506A'></div>");
			}
			document.writeln("</div>");
			
		}
		document.writeln("<div style='position:absolute; width:170px; height:1px; clip:rect(0px 170px 1px 0px); background-color:#2B506A'></div>");
			
		document.writeln("</div>");
		document.writeln("</div>");
	}
}
function showNav(action,num) {
	if (action == 1) {
		document.getElementById("nav_" + num + "_holder").style.visibility = "visible";
		document.getElementById("nav_" + num).style.color = "#ffffff";
		document.getElementById("nav_" + num).style.backgroundColor = "#2B506A";
	}
	if (action == 2) {
		document.getElementById("nav_" + num + "_holder").style.visibility = "visible";
		//document.getElementById("nav_" + num).style.backgroundImage = "url(img/icons/nav.gif)";
		document.getElementById("nav_" + num).style.backgroundColor = "#2B506A";
		document.getElementById("nav_" + num).style.color = "#FFFFFF";
	}
	if (action == 3) {
		document.getElementById("nav_" + num).style.backgroundColor = "#2B506A";
		document.getElementById("nav_" + num).style.color = "#FFFFFF";
		//document.getElementById("nav_" + num).style.backgroundImage = "url(img/icons/nav.gif)";
	}
}
function hideNav(action,num) {
	if (action == 1) {
		document.getElementById("nav_" + num + "_holder").style.visibility = "hidden";
		document.getElementById("nav_" + num).style.color = "#2B506A";
		document.getElementById("nav_" + num).style.backgroundColor = "";
	}
	if (action == 2) {
		document.getElementById("nav_" + num + "_holder").style.visibility = "hidden";
		//document.getElementById("nav_" + num).style.backgroundImage = "";
		document.getElementById("nav_" + num).style.backgroundColor = "#D1DBE1";
		document.getElementById("nav_" + num).style.color = "#2B506A";
	}
	if (action == 3) {
		document.getElementById("nav_" + num).style.backgroundColor = "#EBEFF2";
		document.getElementById("nav_" + num).style.color = "#2B506A";
		//document.getElementById("nav_" + num).style.backgroundImage = "";
	}
}
function doNav(num) {
	status = num
	
	window.status=num;

	// encounter
	if (num == "0_0") {	document.location.href = "ar02_0_0.html";}
	if (num == "0_1") {	document.location.href = "ar02_0_1.html";}
	if (num == "0_2") {	document.location.href = "ar02_0_2.html";}
	if (num == "0_3") {	document.location.href = "ar02_0_3.html";}

	// explore
	if (num == "1_0") {	document.location.href = "ar02_1_0.html";}
	if (num == "1_1") {	document.location.href = "ar02_1_1.html";}
	if (num == "1_2") {	document.location.href = "ar02_1_2.html";}
	if (num == "1_3") {	document.location.href = "ar02_1_3.html";}
	if (num == "1_4") {	document.location.href = "ar02_1_4.html";}
	if (num == "1_5") {	document.location.href = "ar02_1_5.html";}
	if (num == "1_6") {	document.location.href = "ar02_1_6.html";}
	if (num == "1_7") {	document.location.href = "ar02_1_7.html";}
	if (num == "1_8") {	document.location.href = "ar02_1_8.html";}
	if (num == "1_9") {	document.location.href = "ar02_1_9.html";}
	if (num == "1_10") {document.location.href = "ar02_1_10.html";}
	if (num == "1_11") {document.location.href = "ar02_1_11.html";}
	if (num == "1_12") {document.location.href = "ar02_1_12.html";}

	// trust
	if (num == "2_0") {	document.location.href = "ar02_2_0.html";}
	if (num == "2_1") {	document.location.href = "ar02_2_1.html";}
	if (num == "2_2") {	document.location.href = "ar02_2_2.html";}
	if (num == "2_3") {	document.location.href = "ar02_2_3.html";}
	if (num == "2_4") {	document.location.href = "ar02_2_4.html";}
	if (num == "2_5") {	document.location.href = "ar02_2_5.html";}
	if (num == "2_6") {	document.location.href = "ar02_2_6.html";}

	// partnership
	if (num == "3_0_0") {	document.location.href = "ar02_3_0_0.html";}
	if (num == "3_0_1") {	document.location.href = "ar02_3_0_1.html";}
	if (num == "3_0_2") {	document.location.href = "ar02_3_0_2.html";}
	if (num == "3_0_3") {	document.location.href = "ar02_3_0_3.html";}

	if (num == "3_1") {	document.location.href = "ar02_3_1.html";}

	if (num == "3_2_0") {	document.location.href = "ar02_3_2_0.html";}
	if (num == "3_2_1") {	document.location.href = "ar02_3_2_1.html";}
	
	if (num == "3_3_0") {	document.location.href = "ar02_3_3_0.html";}
	if (num == "3_3_1") {	document.location.href = "ar02_3_3_1.html";}
	if (num == "3_3_2") {	document.location.href = "ar02_3_3_2.html";}


	// annual accounts 2002
	if (num == "4_0_0") {	document.location.href = "ar02_4_0_0.html";}
	if (num == "4_0_1") {	document.location.href = "ar02_4_0_1.html";}
	if (num == "4_0_2") {	document.location.href = "ar02_4_0_2.html";}
	if (num == "4_0_3") {	document.location.href = "ar02_4_0_3.html";}
	if (num == "4_0_4") {	document.location.href = "ar02_4_0_4.html";}
	if (num == "4_0_5") {	document.location.href = "ar02_4_0_5.html";}
	if (num == "4_0_6") {	document.location.href = "ar02_4_0_6.html";}

	if (num == "4_1_0") {	document.location.href = "ar02_4_1_0.html";}
	if (num == "4_1_1") {	document.location.href = "ar02_4_1_1.html";}
	if (num == "4_1_2") {	document.location.href = "ar02_4_1_2.html";}

	if (num == "4_2_0") {	document.location.href = "ar02_4_2_0.html";}
	if (num == "4_2_1") {	document.location.href = "ar02_4_2_1.html";}
	if (num == "4_2_2") {	document.location.href = "ar02_4_2_2.html";}
	if (num == "4_2_3") {	document.location.href = "ar02_4_2_3.html";}

}
function changeUsertype(num) {
	for (i=0; i<=2; i++) {
		document.getElementById("usertype_" + i).src = "img/usertype_inactive.gif";
	}
	document.getElementById("usertype_" + num).src = "img/usertype_active.gif";
	
	
} 

function writeDate() {
	date = new Date();
	day = date.getDate();
	weekday = date.getDay();
	month = date.getMonth();
	year = date.getYear();
	document.writeln(day + "." + month + "." + year);
}
function showBoard(action) {
	switch (action) {
		case 1: document.daboard_left.src = "img/left_pane/01encouter/01_02.gif"; break;
		default : alert("error - image switch" + action);
	}
}
function hideBoard() {
	document.daboard_left.src = "img/fake.gif";
	document.daboard_right.src = "img/fake.gif";
}
function showSpecial(action) {
	switch (action) {
		case 1: document.int_1.src = "img/left_pane/01encouter/01_02.gif"; break;
		case 2: document.int_2.src = "img/left_pane/01encouter/02_02.gif"; break;

		case 3: document.int_1.src = "img/left_pane/02explore/e01_02.gif"; break;
		case 4: document.int_2.src = "img/left_pane/02explore/e02_02.gif"; break;
		case 5: document.int_3.src = "img/left_pane/02explore/e03_02.gif"; break;
		case 6: document.int_4.src = "img/left_pane/02explore/e04_02.gif"; break;
		case 7: document.int_5.src = "img/left_pane/02explore/e05_02.gif"; break;
		case 8: document.int_6.src = "img/left_pane/02explore/e06_02.gif"; break;
		
		case 9: document.int_1.src = "img/left_pane/03trust/t01_02.gif"; break;
		case 10: document.int_2.src = "img/left_pane/03trust/t02_02.gif"; break;
		
		case 11: document.int_1.src = "img/left_pane/04partnership/p01_02.gif"; break;

		default : alert("error - image switch" + action);
	}
}
function hideSpecial(action) {
	
	switch (action) {
		case 1: document.int_1.src = "img/left_pane/01encouter/01_01.gif"; break;
		case 2: document.int_2.src = "img/left_pane/01encouter/02_01.gif"; break;

		case 3: document.int_1.src = "img/left_pane/02explore/e01_01.gif"; break;
		case 4: document.int_2.src = "img/left_pane/02explore/e02_01.gif"; break;
		case 5: document.int_3.src = "img/left_pane/02explore/e03_01.gif"; break;
		case 6: document.int_4.src = "img/left_pane/02explore/e04_01.gif"; break;
		case 7: document.int_5.src = "img/left_pane/02explore/e05_01.gif"; break;
		case 8: document.int_6.src = "img/left_pane/02explore/e06_01.gif"; break;
		
		case 9: document.int_1.src = "img/left_pane/03trust/t01_01.gif"; break;
		case 10: document.int_2.src = "img/left_pane/03trust/t02_01.gif"; break;

		case 11: document.int_1.src = "img/left_pane/04partnership/p01_01.gif"; break;

		default : alert("error- image switch" + action);
	}
}


function showLink(action,name) {
	if (action == 1) {
		document.getElementById(name.id).style.backgroundImage = "url(img/icons/link_active.gif)";
		document.getElementById(name.id).style.backgroundColor = "#ffffff";
		document.getElementById(name.id).style.color = "#872C3F";
	}
	if (action == 2) {
		document.getElementById(name.id).style.backgroundImage = "url(img/icons/link_active.gif)";
		document.getElementById(name.id).style.backgroundColor = "#EBEFF2";
		document.getElementById(name.id).style.color = "#872C3F";
	}
	if (action == 3) {
		document.getElementById(name.id).style.backgroundImage = "url(img/icons/link_active.gif)";
		document.getElementById(name.id).style.backgroundColor = "#EBEFF2";
	}
	if (action == 4) {
		document.getElementById(name.id).style.backgroundImage = "url(img/icons/link_active.gif)";
		document.getElementById(name.id).style.backgroundColor = "#EADADE";
		//document.getElementById(name.id).style.color = "#872C3F";
	}
	
} 
function hideLink(action,name) {
	if (action == 1) {
		document.getElementById(name.id).style.backgroundImage = "url(img/icons/link_inactive.gif)";
		document.getElementById(name.id).style.backgroundColor = "#EBEFF2";
		document.getElementById(name.id).style.color = "#4C4C4C";
	}
	if (action == 2) {
		document.getElementById(name.id).style.backgroundImage = "url(img/icons/link_inactive_white.gif)";
		document.getElementById(name.id).style.backgroundColor = "#2B506A";
		document.getElementById(name.id).style.color = "#ffffff";
	}
	if (action == 3) {
		document.getElementById(name.id).style.backgroundImage = "url(img/icons/link_inactive.gif)";
		document.getElementById(name.id).style.backgroundColor = "#BDCBD4";
	}
	if (action == 4) {
		document.getElementById(name.id).style.backgroundImage = "url(img/icons/link_inactive.gif)";
		document.getElementById(name.id).style.backgroundColor = "#D5B5BC";
		//document.getElementById(name.id).style.color = "#4C4C4C";
	}
}  

function showBlock(name) {
	which = document.getElementById(name + '_text').style.display
	if (which == "" || which == "none") { 
		document.getElementById(name + '_text').style.display = "block"
		document.getElementById(name + '_title').style.backgroundImage = "url(img/icons/min.gif)"
	}
	else {  
		document.getElementById(name + '_text').style.display = "none"
		document.getElementById(name + '_title').style.backgroundImage = "url(img/icons/plus.gif)"
	}
}  




