
var hposi;
var hposi2;

function setpath(filepath){

if(filepath == 0){ hposi = ""; }
else if(filepath == 1){ hposi = "../"; hposi2 = ""; }
else if(filepath == 2){ hposi = "../../"; hposi2 = "../"; }
else if(filepath == 3){ hposi = "../../../"; hposi2 = "../../"; }
}

//
btn = new Array();

	btn[0] = new Image; btn[0].src = "../cmnimg/btn_eng01.gif";
	btn[1] = new Image; btn[1].src = "../cmnimg/btn_eng02.gif";
	btn[2] = new Image; btn[2].src = "../cmnimg/btn_jpn01.gif";
	btn[3] = new Image; btn[3].src = "../cmnimg/btn_jpn02.gif";

function chg_btn(imgname,imgstate){  
	document.images[imgname].src=btn[imgstate].src;
}

//
function getLayOj(obj){ 
    if(document.getElementById){
						return document.getElementById(obj).style   //NN6 and IE6
			}
    if(document.layers){
						return document.layers[obj]     //NN4.x
			}
    if(document.all){
					   return document.all(obj).style  //IE4or5
		  }
}

  function showLAYER(oj){
    if(document.layers){    //NN4.x
 			oj.visibility='show'
		} 
 		else{
			oj.visibility='visible' 
		}
		return false;
	} //NN6,IE
  function hideLAYER(oj){
			oj.visibility='hidden' 
			return false;
	 } //NN,IE
  function getVISIBLE(oj){
    if(document.layers){    //NN
	  if(oj.visibility=='show')   return 'visible'
      if(oj.visibility=='hide')   return 'hidden'
      if(oj.visibility=='inherit')return 'inherit'
    }
    if(document.all){       //IE
      if(oj.visibility=='')return 'inherit'
      return oj.visibility
    }
    return ''
  }

var timectl

function timehide(str){
if(str == 0) {
		clearTimeout(timectl);
		timectl = setTimeout("hideLAYER(getLayOj('submenu01'));",100);
	} else if(str == 1) {
		clearTimeout(timectl);	
		showLAYER(getLayOj('submenu01'));
	} 
}

function fishNavi(categori,posiinfo){	//

if(categori == 5 || categori == 7 ){ hposi2 = "../plastic_english/"; }

document.write("<div style='position:absolute;'>");
document.write("<table border='0' cellspacing='0' cellpadding='0' id='navi_plas03' class='navi_plas03' style='height:26px;'><tr>");
if(categori == 1 ){ document.write("<td valign='top' class='plas03'>Quality  &  Environment</td>"); }
	else { document.write("<td valign='top'><a href='"+hposi2+"iso/index.html'>Quality  &  Environment</a></td>"); }
if(categori == 2 ){ document.write("<td valign='top' class='plas03'>Technology</td>"); }
	else { document.write("<td valign='top'><a href='"+hposi2+"tech/index.html'>Technology</a></td>"); }
if(categori == 4 ){ document.write("<td valign='top' class='plas03'>Products</td>"); }
	else { document.write("<td valign='top'><a href='"+hposi2+"products/index.html'>Products</a></td>"); }
document.write("<td valign='top'><a href='javascript:void(0);' onMouseOver='timehide(1);' onMouseOut ='timehide(0);'>Mail</a></td>");
if(categori == 9 ){ document.write("<td valign='top' class='plas03'>HOKUMO AMERICA</td>"); }
	else { document.write("<td valign='top'><a href='"+hposi+"hac/english.html' target='_blank'>HOKUMO AMERICA</a></td>"); }
if(categori == 6 ){ document.write("<td valign='top' class='plas03'>Company</td>"); }
	else { document.write("<td valign='top'><a href='"+hposi2+"company/index.html'>Company</a></td>"); }
if(categori == 8 ){ document.write("<td valign='top' class='plas03'>HOME</td>"); }
	else { document.write("<td valign='top'><a href='"+hposi2+"index.html'>HOME</a></td>"); }
document.write("</tr></table></div>");
document.write("<div id='submenu01' style='position:absolute; z-index:4;  visibility: hidden;'>");
document.write("<div id='navi_plas02' class='navi_plas02' style='position:absolute; left:302px; top:-36px; width:80px; height:40px;'>");
document.write("<div><a href='mailto:hizumehac@bardstown.com' onMouseOver='timehide(1);' onMouseOut ='timehide(0);'>JAPANESE</a></div>");
document.write("<div><a href='mailto:sojimahac@bardstown.com' onMouseOver='timehide(1);' onMouseOut ='timehide(0);'>ENGLISH</a></div>");
document.write("</div></div>");

document.write("<div><img src='"+hposi+"cmnimg/bar_green.gif' width='670' height='24' alt='' galleryimg='no'></div>");

}

var hiduke=new Date();
var d=hiduke.getFullYear();
var year;

if(d <= 2007){ year = "2007";}
else if(d >= 2008){ year="2007-"+d; }

function credit01(){

document.write("<div class='footer_credit' style='position:absolute;'>Copyright&#169; "+year+" HOKUMO CO.,LTD. All Rights Reserved.</div>");
document.write("<div><img src='"+hposi+"cmnimg/bar_white.gif' width='770' height='24' alt='' galleryimg='no'></div>");
}

