<!--

J_top = "http://" + location.hostname + "/index_j.htm";
E_top = "http://" + location.hostname + "/"; 

if(IsTopPage()==false){
document.write('<form name="language" style="display:inline;">');
document.write('<select name=s01 onChange="ShowPage()">');
document.write('<option>- Please Select -</option>');
document.write('<option value=' + E_top + '>English</option>');
document.write('<option value=' + J_top + '>Japanese</option>');
document.write('</select>');
document.write('</form>');
}
else{
document.write('<form name="language" style="display:inline;">');
document.write('<select name=s01 onChange="ShowPage()">');
document.write('<option>- 選択してください -</option>');
document.write('<option value=' + E_top + '>English</option>');
document.write('<option value=' + J_top + '>Japanese</option>');
document.write('</select>');
document.write('</form>');
}

/* ---------------------------------------------
 言語の選択1
--------------------------------------------- */
function IsTopPage() {
	if(location.pathname.indexOf("/index_j.htm") > -1 || location.href.indexOf("/jp/") > -1 ){
		return true;
	} else {
		return false;
	}
}

/* ---------------------------------------------
 言語の選択2
--------------------------------------------- */
function ShowPage(){
	listn = document.language.s01.selectedIndex;
	url = document.language.s01.options[listn].value;
	window.location = url;
}

/* ---------------------------------------------
 トップページ　判断
--------------------------------------------- */
function TopJudge() {
	if(location.href.indexOf("/en/") > -1 || location.href.indexOf("/jp/") > -1){
		return true;
	}else{
		return false;
	}
}

-->
