function autoLink(){
var L = getBrowserLANG();
switch(L){
case "ja": 
	var dir ="top_j.html"; 
	var stg ="KIKUSUI WEB（日本語）<br>※3秒後に自動でジャンプします。ジャンプしない場合は<a href='"+dir+"'>ここをクリックしてください</a>";
	document.write(stg);
	document.close();
	setTimeout("autoJump('top_j.html')",3000);
	break;  
case "en": 
	var dir ="en/index.html"; 
	var msg= " (English)";
	var stg ="<a href='"+dir+"'>KIKUSUI WEB"+msg+"</a>";
	document.write(stg);
	document.close();
	setTimeout("autoJump('en/index.html')",3000);

	break;  
case "zh": 
	var dir ="cn/index.html"; 
	var msg= " (中文)";
	var stg ="<a href='"+dir+"'>KIKUSUI WEB"+msg+"</a>";
	document.write(stg);
	document.close();
	setTimeout("autoJump('cn/index.html')",3000);
	break;
case "ko": 
	var dir ="kr/index.html"; 
	var msg= " (한국어)";
	var stg ="<a href='"+dir+"'>KIKUSUI WEB"+msg+"</a>";
	document.write(stg);
	document.close();
	setTimeout("autoJump('kr/index.html')",3000);
	break;  
default: 
	var dir ="en/index.html"; 
	var msg= " (English)";
	var stg ="<a href='"+dir+"'>KIKUSUI WEB"+msg+"</a>";
	document.write(stg);
	document.close();
	setTimeout("autoJump('en/index.html')",3000);
	break;  
}
}

function autoJump(u){location.href=u;}

function getBrowserLANG(){
  if(document.all)                  
    return navigator.browserLanguage      //IE用
  else if(document.layers) 
    return navigator.language             //N4用
  else if(document.getElementById) 
    return navigator.language.substr(0,2) //N6,Moz用
}
