﻿//タイトルを取得、
//該当するタイトルであればif文のものを表示
myDomain=document.title;

//階層が異なるため、絶対パスで読み込む
//新規で作成したナビは必ずサーバにアップ
//注意！　本番アップ前は絶対パスを変更
domain="http://www.vantec-gl.com/english/";
domain+="company/";


//一度変数に格納
//ごあいさつ
message="<li><a href='"+domain+"message/index.html' onMouseOver='MM_swapImage(\"LEFTNAVI2\",\"\",\""+domain+"img/leftnavi2_o.gif\",1)' onMouseOut='MM_swapImgRestore()'><img src='"+domain+"img/leftnavi2.gif' alt='Message from President' name='LEFTNAVI2' width='160' height='33' ></a></li>";

message_o="<li><img src='"+domain+"img/leftnavi2_o2.gif' alt='Message from President' name='LEFTNAVI2' width='160' height='33' ></li>";

//会社概要
profile="<li><a href='"+domain+"profile/index.html' onMouseOver='MM_swapImage(\"LEFTNAVI1\",\"\",\""+domain+"img/leftnavi1_o.gif\",1)' onMouseOut='MM_swapImgRestore()'><img src='"+domain+"img/leftnavi1.gif' alt='Company profile' name='LEFTNAVI1' width='160' height='33' ></a></li>";

profile_o="<li><img src='"+domain+"img/leftnavi1_o2.gif' alt='Company profile' name='LEFTNAVI1' width='160' height='33' ></li>";

//グループ経営理念
philosophy="<li><a href='"+domain+"philosophy/index.html' onMouseOver='MM_swapImage(\"LEFTNAVI3\",\"\",\""+domain+"img/leftnavi3_o.gif\",1)' onMouseOut='MM_swapImgRestore()'><img src='"+domain+"img/leftnavi3.gif' alt='Group Mission, Vision and Code of Conduct' name='LEFTNAVI3' width='160' height='33' ></a></li>";

philosophy_o="<li><img src='"+domain+"img/leftnavi3_o2.gif' alt='Group Mission, Vision and Code of Conduct' name='LEFTNAVI3' width='160' height='33' ></li>";


//沿革
oistory="<li><a href='"+domain+"history/index.html' onMouseOver='MM_swapImage(\"LEFTNAVI4\",\"\",\""+domain+"img/leftnavi4_o.gif\",1)' onMouseOut='MM_swapImgRestore()'><img src='"+domain+"img/leftnavi4.gif' alt='History' name='LEFTNAVI4' width='160' height='33' ></a></li>";

oistory_o="<li><img src='"+domain+"img/leftnavi4_o2.gif' alt='History' name='LEFTNAVI4' width='160' height='33' ></li>";

//グループ一覧
group="<li><a href='"+domain+"group/index.html' onMouseOver='MM_swapImage(\"LEFTNAVI_GROUP\",\"\",\""+domain+"img/leftnavi6_o.gif\",1)' onMouseOut='MM_swapImgRestore()'><img src='"+domain+"img/leftnavi6.gif' alt='Group Companies' name='LEFTNAVI_GROUP' width='160' height='33' ></a></li>";

group_o="<li><img src='"+domain+"group/img/leftnavi_o2.gif' alt='Group Companies' name='LEFTNAVI6' width='160' height='25' ></li>";

//グループ一覧（国内・国外）
group_oo="<li><a href='"+domain+"group/index.html' onMouseOver='MM_swapImage(\"LEFTNAVI6_0\",\"\",\""+domain+"group/img/leftnavi_o.gif\",1)' onMouseOut='MM_swapImgRestore()'><img src='"+domain+"group/img/leftnavi.gif' alt='Group Companies' name='LEFTNAVI6_0' width='160' height='25' ></li>";

domestic="<li><a href='"+domain+"group/domestic/index.html' onMouseOver='MM_swapImage(\"LEFTNAVI6_1\",\"\",\""+domain+"group/img/leftnavi1_o.gif\",1)' onMouseOut='MM_swapImgRestore()'><img src='"+domain+"group/img/leftnavi1.gif' alt='domestic' name='LEFTNAVI6_1' width='160' height='19' ></a></li>";

domestic_o="<li><img src='"+domain+"group/img/leftnavi1_o2.gif' alt='domestic' name='LEFTNAVI6_1' width='160' height='19' border='0' ></li>";

overseas="<li><a href='"+domain+"group/overseas/index.html' onMouseOver='MM_swapImage(\"LEFTNAVI6_2\",\"\",\""+domain+"group/img/leftnavi2_o.gif\",1)' onMouseOut='MM_swapImgRestore()'><img src='"+domain+"group/img/leftnavi2.gif' alt='overseas' name='LEFTNAVI6_2' width='160' height='30' ></a></li>";

overseas_o="<li><img src='"+domain+"group/img/leftnavi2_o2.gif' alt='overseas' name='LEFTNAVI6_2' width='160' height='30' ></li>";

//会社案内
pamphlet="<li><a href='"+domain+"pamphlet/index.html' onMouseOver='MM_swapImage(\"LEFTNAVI7\",\"\",\""+domain+"img/leftnavi7_o.gif\",1)' onMouseOut='MM_swapImgRestore()'><img src='"+domain+"img/leftnavi7.gif' alt='Corporate Brochure' name='LEFTNAVI7' width='160' height='33' ></a></li>";

pamphlet_o="<li><img src='"+domain+"img/leftnavi7_o2.gif' alt='Corporate Brochure' name='LEFTNAVI7' width='160' height='33' ></li>";



//コンプライアンス
compliance="<li><a href='"+domain+"compliance/index.html' onMouseOver='MM_swapImage(\"LEFTNAVI9\",\"\",\""+domain+"img/leftnavi9_o.gif\",1)' onMouseOut='MM_swapImgRestore()'><img src='"+domain+"img/leftnavi9.gif' alt='Compliance' name='LEFTNAVI9' width='160' height='33' ></a></li>";

compliance_o="<li><img src='"+domain+"img/leftnavi9_o2.gif' alt='Compliance' name='LEFTNAVI9' width='160' height='33' ></li>";



//リスク管理
risk="<li><a href='"+domain+"risk/index.html' onMouseOver='MM_swapImage(\"LEFTNAVI10\",\"\",\""+domain+"img/leftnavi10_o.gif\",1)' onMouseOut='MM_swapImgRestore()'><img src='"+domain+"img/leftnavi10.gif' alt='Risk management' name='LEFTNAVI10' width='160' height='33' ></a></li>";

risk_o="<li><img src='"+domain+"img/leftnavi10_o2.gif' alt='Risk management' name='LEFTNAVI10' width='160' height='33' ></li>";

//===============================================================

//ごあいさつ
if(myDomain=="VANTEC CORPORATION (Message from President)"){
	document.write(message_o);
	}
else{
	document.write(message);
	}
	
	
//会社概要
if(myDomain=="VANTEC CORPORATION (Company profile)"||myDomain=="VANTEC CORPORATION （Head Office）"){
	document.write(profile_o);
	}

else{
	document.write(profile);
	}
	
	

//グループ経営理念
if(myDomain=="VANTEC CORPORATION (Group Mission, Code of Conduct and Slogan)"){
	document.write(philosophy_o);
	}
else{
	document.write(philosophy);
	}	
	

	
	
//沿革
if(myDomain=="VANTEC CORPORATION (History)"){
	document.write(oistory_o);
	}
else{
	document.write(oistory);
	}
		
//グループ一覧
if(myDomain=="VANTEC CORPORATION (Group Companies)"){
	document.write(group_o);
	document.write(domestic);
	document.write(overseas);
	}

//グループ一覧（国内）
else if(myDomain=="VANTEC CORPORATION (Group Companies(domestic))"){
	document.write(group_oo);
	document.write(domestic_o);
	document.write(overseas);
	}
//グループ一覧（国外）	
else if(myDomain=="VANTEC CORPORATION (Group Companies(overseas))"){
	document.write(group_oo);
	document.write(domestic);
	document.write(overseas_o);
	}	

		
else{
	document.write(group);
	}		

//会社案内
if(myDomain=="VANTEC CORPORATION (Corporate Brochure)"){
	document.write(pamphlet_o);
	}
	
else{
	document.write(pamphlet);
	}

	
//コンプライアンス
if(myDomain=="VANTEC CORPORATION (Compliance)"){
	document.write(compliance_o);
	}
	
else{
	document.write(compliance);
	}




//リスク管理
if(myDomain=="VANTEC CORPORATION (Risk management)"){
	document.write(risk_o);
	}
else{
	document.write(risk);
	}


