onfimg = new Array('idea','intro','enviro','research','history','news','system','ligu','super','auro','sun','kc','nucleic','extract','ste','pulp');
overimg = new Array();
outimg = new Array();
function swapImg(btn,ino,mode) {
	if (document.images) {
		if (mode) {
			document.images[btn].src = overimg[ino].src;
		} else {
			document.images[btn].src = outimg[ino].src;
		}
	}
}

function header(fld){
	var str="../english/";
	if(fld==1){
		str = "../../english/";
	}else if(fld==2){
		str = "../../../english/";
	}else if(fld==3){
		str = "../../../../english/";
	}else if(fld==4){
		str = "../../../../../english/";
	}
	document.write("<table width=\"756\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"45\">");
	document.write("<tr>");
	document.write("<td rowspan=\"2\" valign=\"top\"><a href=\"" + str + "index.html\">");
	document.write("<img src=\"" + str + "images/logo.jpg\" width=\"198\" height=\"45\" alt=\"NIPPON PAPER CHEMICALS CO.,LTD.\" border=\"0\">");
	document.write("</a>");
	document.write("</td>");
	document.write("<td width=\"645\" background=\"/images/top_01.gif\" valign=\"top\">");
	document.write("<img src=\"" + str + "images/trans.gif\" width=\"1\" height=\"18\" alt=\"\">");
	document.write("</td>");
	document.write("<td width=\"112\" rowspan=\"2\" valign=\"top\"><img src=\"" + str + "images/home_site.jpg\" width=\"112\" height=\"45\" usemap=\"#Map\" border=\"0\">");
	document.write("</td>");
	document.write("</tr>");
	document.write("<tr valign=\"top\">");
	document.write("<td width=\"645\" valign=\"top\">");
	document.write("<a href=\"" + str + "company/index.html\">");
	document.write("<img src=\"" + str + "images/menu_company.gif\" width=\"74\" height=\"27\" alt=\"AboutUs\" border=\"0\">");
	document.write("</a>");
	document.write("<a href=\"" + str + "product/index.html\">");
	document.write("<img src=\"" + str + "images/menu_product.gif\" width=\"66\" height=\"27\" alt=\"Products\" border=\"0\">");
	document.write("</a>");
	document.write("<a href=\"" + str + "form/index.html\">");
	document.write("<img src=\"" + str + "images/menu_inquiry.gif\" width=\"87\" height=\"27\" alt=\"ContactUs\" border=\"0\">");
	document.write("</a>");
	document.write("<a href=\"" + str + "list.html\">");
	document.write("<img src=\"" + str + "images/menu_links.gif\" width=\"76\" height=\"27\" alt=\"Links\" border=\"0\">");
	document.write("</a>");
	document.write("<a href=\"/index.html\">");
	document.write("<img src=\"" + str + "images/menu_japanese.gif\" width=\"75\" height=\"27\" alt=\"JAPANESE\" border=\"0\">");
	document.write("</a>");
	document.write("<img src=\"" + str + "images/menu_blank.gif\" width=\"68\" height=\"27\" alt=\"\">");
	document.write("</td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("<map name=\"Map\">");
	document.write("<area shape=\"rect\" coords=\"18,10,51,20\" href=\"" + str + "index.html\" alt=\"Home\" title=\"Home\">");
	document.write("<area shape=\"rect\" coords=\"59,10,108,21\" href=\"" + str + "site_map.html\" alt=\"Sitemap\" title=\"Sitemap\">");
	document.write("</map>");
	for (i in onfimg) {
		overimg[i] = new Image();
		outimg[i]  = new Image();
		if (i<6) {
			overimg[i].src = str + 'company/images/menu_'+onfimg[i]+'_02.gif';
			outimg[i].src  = str + 'company/images/menu_'+onfimg[i]+'_01.gif';
		} else {
			overimg[i].src = str + 'product/images/menu_'+onfimg[i]+'_02.gif';
			outimg[i].src  = str + 'product/images/menu_'+onfimg[i]+'_01.gif';
		}
	}
}