
//////////////////////////////////////////////////////////////////////////////////////////////
// Settings for key(from HTML), title(alt), link-path, image-path(part of filename), width, height
//////////////////////////////////////////////////////////////////////////////////////////////

/* First menu --------------------------- */
FIRST_MENU = new Array();
FIRST_MENU[1] = new Array("a", "Services &amp; Solutions",   "/english/service/index.html", "/images/enavi_01", 188, 25);
FIRST_MENU[2] = new Array("b", "Corporate Opinion",  "/english/opinion/index.html", "/images/enavi_02", 188, 25);
FIRST_MENU[3] = new Array("c", "Investor Relations", "/ir/english/index.html", "/images/enavi_03", 188, 25);
FIRST_MENU[4] = new Array("d", "Company", "/english/company/index.html", "/images/enavi_04", 191, 25);


/* Side navi(set title and link-path) --------------------------- */
SIDE_MENU = new Array();

//
// Business Outline
//
SIDE_MENU[1] = new Array();
SIDE_MENU[1][0] = new Array("Business Outline", "/images/ernv01", 170, 28);  // title image
SIDE_MENU[1][1] = new Array("a-1", "Knowledge Solutions for Financial Business", "/english/b_outline/k_financial.html");
SIDE_MENU[1][2] = new Array("a-2", "Management Consulting", "/english/b_outline/m_consulting.html");
SIDE_MENU[1][3] = new Array("a-3", "Systems Consulting", "/english/b_outline/s_consulting.html");
SIDE_MENU[1][4] = new Array("a-4", "IT Solutions for Manufacturing and Media Business", "/english/b_outline/it_manufacturing.html");
SIDE_MENU[1][5] = new Array("a-5", "IT Solutions for Financial Business", "/english/b_outline/it_financial.html");
SIDE_MENU[1][6] = new Array("a-6", "IT Solutions for Distribution Business", "/english/b_outline/it_distribution.html");
SIDE_MENU[1][7] = new Array("a-7", "IT Solutions for Social and Public Services", "/english/b_outline/it_social.html");
SIDE_MENU[1][8] = new Array("a-8", "Joint-use System Services", "/english/b_outline/joint.html");
SIDE_MENU[1][9] = new Array("a-9", "Outsourcing Services", "/english/b_outline/outsourcing.html");
SIDE_MENU[1][10] = new Array("a-10", "Related Business", "/english/b_outline/related.html");

//
// Corporate Opinion
//
SIDE_MENU[2] = new Array();
SIDE_MENU[2][0] = new Array("Corporate Opinion", "/images/ernv02", 170, 28);  // title image
SIDE_MENU[2][1] = new Array("b-1", "NRI Papers", "/english/opinion/papers/index.html");
SIDE_MENU[2][2] = new Array("b-2", "lakyara", "/english/opinion/lakyara/index.html");
SIDE_MENU[2][3] = new Array("b-3", "NRI Knowledge Insight", "/english/opinion/k_insight/index.html");
SIDE_MENU[2][4] = new Array("b-4", "NRI Net Research", "/english/opinion/nr/index.html");
SIDE_MENU[2][5] = new Array("b-5", "NRI Information Technology Report", "/english/opinion/itreport/index.html");

//
// Investor Relations
//
SIDE_MENU[3] = new Array();
SIDE_MENU[3][0] = new Array("Investor Relations", "/images/ernv03", 170, 28);  // title image
SIDE_MENU[3][1] = new Array("c-1", "Financial Results", "/ir/english/financial/index.html");
SIDE_MENU[3][2] = new Array("c-2", "Shares and Shareholders Information", "/ir/english/stock/index.html");
SIDE_MENU[3][3] = new Array("c-3", "IR Presentation", "/ir/english/presentation/index.html");
SIDE_MENU[3][4] = new Array("c-4", "IR Library", "/ir/english/library/index.html");
SIDE_MENU[3][5] = new Array("c-5", "IR Calendar", "/ir/english/calendar.html");
SIDE_MENU[3][6] = new Array("c-6", "Approach to Disclosure", "/ir/english/policy/index.html");
SIDE_MENU[3][7] = new Array("c-7", "Disclaimer Clauses", "/ir/english/site/notice.html");

//
// Company
//
SIDE_MENU[4] = new Array();
SIDE_MENU[4][0] = new Array("Company", "/images/ernv04", 170, 28);  // title image
SIDE_MENU[4][1] = new Array("d-1", "News Releases", "/english/news/index.html");
SIDE_MENU[4][2] = new Array("d-2", "Message From the President", "/english/company/message.html");
SIDE_MENU[4][3] = new Array("d-3", "Corporate Philosophy", "/english/company/c_philosophy.html");
SIDE_MENU[4][4] = new Array("d-4", "Origin of the NRI Group", "/english/company/origin.html");
SIDE_MENU[4][5] = new Array("d-5", "NRI's Unique Strengths", "/english/company/solution.html");
SIDE_MENU[4][6] = new Array("d-6", "Overview of Business", "/english/company/outline.html");
SIDE_MENU[4][7] = new Array("d-7", "Human Resources Development", "/english/company/p_training.html");
SIDE_MENU[4][8] = new Array("d-8", "Social Responsibilities", "/english/company/contribution.html");
SIDE_MENU[4][9] = new Array("d-9", "Directors", "/english/company/directors.html");
SIDE_MENU[4][10] = new Array("d-10", "Organizational Structure", "/english/company/org.html");
SIDE_MENU[4][11] = new Array("d-11", "History", "/english/company/history.html");
SIDE_MENU[4][12] = new Array("d-12", "NRI Group Alliances", "/english/company/group2.html");
SIDE_MENU[4][13] = new Array("d-13", "Global Network", "/english/company/map/index.html");
SIDE_MENU[4][14] = new Array("d-14", "Affiliated Organization", "/english/company/affiliate.html");



///////////////////////////////////////////////////////////////////////
// Function
///////////////////////////////////////////////////////////////////////

/*
 * Function for "show first navi"
 */
function first_navi() {
	var str = '';
	
	for (i = 1; i < FIRST_MENU.length; i++) {
		var offImagePath = FIRST_MENU[i][3] + 'off.gif';  // hover out image path
		var onImagePath  = FIRST_MENU[i][3] + 'on.gif';  // hover image path
		var imagePath = ''; // default image path
		if (i == menu1) {  // for turn over
			imagePath = onImagePath;
		} else {
			imagePath = offImagePath;
		}
		str += '<a href="' + FIRST_MENU[i][2] + '">';
		str += '<img src="' + imagePath + '" alt="' + FIRST_MENU[i][1] + '" width="' + FIRST_MENU[i][4] + '" height="' + FIRST_MENU[i][5] + '"';
		if (i != menu1) {  // for not turn over (has mouse event)
			str += ' onmouseover="this.src=\'' + onImagePath +'\'" onmouseout="this.src=\'' + offImagePath + '\'"';
		}
		str += ' border="0"></a>';
	}
	
	document.open();
	document.write(str);
	document.close();
}



/*
 * Function for show side navi
 */
function side_navi() {
	var str = '';
	
	if (menu1 == 0) return;
	
	str += '<table width="170" border="0" cellspacing="0" cellpadding="0">';
	// title image
	str += '<tr><td colspan="6">';
	str += '<a href="' + FIRST_MENU[menu1][2] + '">';
	str += '<img src="' + SIDE_MENU[menu1][0][1] + '.gif" alt="' + SIDE_MENU[menu1][0][0] + '" width="' + SIDE_MENU[menu1][0][2] + '" height="' + SIDE_MENU[menu1][0][3] + '" border="0">';
	str += '</a>';
	str += '</td></tr>';
	str += '<tr>';
	str += '<td width="1" class="mfr"><img src="/images/spacer.gif" alt="" width="1" height="1"></td>';
	str += '<td width="165">';
	
	// menu start
	str += '<table width="165" border="0" cellspacing="0" cellpadding="0">';
	
	for (i = 1; i < SIDE_MENU[menu1].length; i++) {
		if (i > 1) { // append spacer
			str += '<tr>';
			if (SIDE_MENU[menu1][i][3] == "non-dot") {  // for "no dot line menu"
				str += '<td colspan="2">';
			} else {
				str += '<td colspan="2" class="rnv_dot">';
			}
			str += '<img src="/images/spacer.gif" alt="" width="1" height="1"></td></tr>';
		}
		
		if (i == menu3) {  // for turn over
			str += '<tr class="rnv_bg">';
		} else {
			str += '<tr>';
		}
		
		str += '<td><img src="/images/spacer.gif" alt="" width="6" height="1"></td>';
		
		// text part
		var height = '23';
		if (SIDE_MENU[menu1][i][3] == '2-line') {  // for 2 lines, set height
			height = '40';
		}
		str += '<td width="159" height="' + height + '" class="a2">';
		if (SIDE_MENU[menu1][i][2] == "") {  // for no link
			str += SIDE_MENU[menu1][i][1];
		} else {
			str += '<a href="' + SIDE_MENU[menu1][i][2] + '">' + SIDE_MENU[menu1][i][1] + '</a>';
		}
		str += '</td>';
		str += '</tr>';
	}
	str += '</table>';
	// menu end
	
	str += '</td>';
	str += '<td width="1" class="mfr"><img src="/images/spacer.gif" alt="" width="1" height="1"></td>';
	str += '<td width="3" class="rnv_r"><img src="/images/spacer.gif" alt="" width="3" height="1"></td>';
	str += '</tr>';
	str += '<tr>';
	str += '<td colspan="6"><img src="/images/rnv_ft.gif" alt="" width="170" height="11"></td>';
	str += '</tr>';
	str += '</table><br>';
	document.open();
	document.write(str);
	document.close();
}


//////////////////////////////
//      DO NOT CHANGE       //
//////////////////////////////

// Menu number
var menu1 = 0;  // First level
var menu3 = 0;  // Third level

/*
 * Format
 *
 * arg1 - First menu number
 * arg3 - Side menu number(turn over)
 */
function init(arg1, arg3) {
	for (i = 1; i < FIRST_MENU.length; i++) {
		if (FIRST_MENU[i][0] == arg1) {
			menu1 = i;
			break;
		}
	}
	
	if (menu1 == 0) return;
	
	for (i = 1; i < SIDE_MENU[menu1].length; i++) {
		if (SIDE_MENU[menu1][i][0] == arg3) {
			menu3 = i;
			break;
		}
	}
}
