// JavaScript Document

// メニューの初期化
function initMenu(menuID,menuID2) {
	menuClick(menuID);
	menuClick(menuID2,1);
}

// メニューをクリックした時の処理
function menuClick(menuID,toggle) {
	toggleMenu(menuID,"_0.jpg","_o.jpg",toggle);
/*	
	トグル+ウィンドウ閉じる機能
	if (document.nowID == menuID) {
		toggleMenu(menuID,"_0.jpg","_o.jpg",toggle);
		document.nowID = "";
	} else {
		toggleMenu(document.nowID,"_0.gif",".gif",toggle);
		toggleMenu(menuID,"_0.jpg","_o.jpg",toggle);
		document.nowID = menuID;
	}
*/
}

// ウィンドウの開閉
function toggleMenu(menuID,arg1,arg2,toggle) {

	var menu = document.getElementById("j"+menuID);
	if (menu == null) {
		return;
	}
	
	if (menu.toggle) {
		menu.toggle = false;
		menu.style.display = "none";
	} else {
		menu.toggle = true;
		menu.style.display = "block";
	}

	if (toggle != 1) {
		toggleImage(menuID,arg1,arg2);
	}
}

// メニューのイメージをトグルさせる
function toggleImage(menuID,arg1,arg2) {
	var image = document.getElementById(menuID);
	var menu = document.getElementById("j"+menuID);
	
	if (menu.toggle) {
		image.src = "/img/"+menuID+arg1;
	} else {
		image.src = "/img/"+menuID+arg2;
	}
}

// ロールオーバーしたときの動作
function overImage(menuID) {
//	toggleImage(menuID,"_0.gif","_o.gif");
	toggleMenu(menuID,"_0.jpg","_o.jpg");
}

// ロールアウトしたときの動作
function outImage(menuID) {
//	toggleImage(menuID,"_0.gif",".gif");
	toggleMenu(menuID,"_0.jpg",".jpg");
}

function menu()
{
    document.write('<a href="/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn00\',\'\',\'/img/mn00_o.jpg\',0)"><img src="/img/mn00.jpg" alt="トップページ" title="トップページ" name="mn00" width="170" height="30" border="0" id="mn00" /></a>\n');
    document.write('<div class="toggle" onmouseover="overImage(\'mn01\');" onmouseout="outImage(\'mn01\');">\n');
    document.write('<a href="javascript:;"><img src="/img/mn01.jpg" alt="特徴と戦略" title="特徴と戦略" name="mn01" width="172" height="30" border="0" id="mn01" /></a>\n');
    document.write('<div id="jmn01" class="childmenu">\n');
    document.write('<a href="/strategy/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn01_1\',\'\',\'/img/mn01_1_o.gif\',1)"><img src="/img/mn01_1.gif" alt="KRIの特徴" title="KRIの特徴" name="mn01_1" width="172" height="22" border="0" id="mn01_1" /></a>\n');
    document.write('<a href="/strategy/index2.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn01_2\',\'\',\'/img/mn01_2_o.gif\',1)"><img src="/img/mn01_2.gif" alt="ポートフォリオ構築方針" title="ポートフォリオ構築方針" name="mn01_2" width="172" height="22" border="0" id="mn01_2" /></a>\n');
    document.write('<a href="/strategy/index3.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn01_3\',\'\',\'/img/mn01_3_o.gif\',1)"><img src="/img/mn01_3.gif" alt="新規物件の取得戦略" title="新規物件の取得戦略" name="mn01_3" width="172" height="22" border="0" id="mn01_3" /></a>\n');
    document.write('<a href="/strategy/index4.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn01_4\',\'\',\'/img/mn01_4_o.gif\',1)"><img src="/img/mn01_4.gif" alt="既存物件の運営" title="既存物件の運営" name="mn01_4" width="172" height="22" border="0" id="mn01_4" /></a>\n');
    document.write('<a href="/strategy/index5.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn01_5\',\'\',\'/img/mn01_5_o.gif\',1)"><img src="/img/mn01_5.gif" alt="財務戦略" title="財務戦略" name="mn01_5" width="172" height="22" border="0" id="mn01_5" /></a></div>\n');
    document.write('</div>\n');
    document.write('<div class="toggle" onmouseover="overImage(\'mn02\');" onmouseout="outImage(\'mn02\');">\n');
    document.write('<a href="javascript:;"><img src="/img/mn02.jpg" alt="投資法人の概要" title="投資法人の概要" name="mn02" width="172" height="30" border="0" id="mn02" /></a>\n');
    document.write('<div id="jmn02" class="childmenu">\n');
    document.write('<a href="/profile/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn02_1\',\'\',\'/img/mn02_1_o.gif\',1)"><img src="/img/mn02_1.gif" alt="執行役員メッセージ" title="執行役員メッセージ" name="mn02_1" width="172" height="22" border="0" id="mn02_1" /></a>\n');
    document.write('<a href="/profile/index2.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn02_2\',\'\',\'/img/mn02_2_o.gif\',1)"><img src="/img/mn02_2.gif" alt="仕組み" title="仕組み" name="mn02_2" width="172" height="22" border="0" id="mn02_2" /></a>\n');
    document.write('<a href="/profile/index3.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn02_3\',\'\',\'/img/mn02_3_o.gif\',1)"><img src="/img/mn02_3.gif" alt="概要・沿革" title="概要・沿革" name="mn02_3" width="172" height="22" border="0" id="mn02_3" /></a>\n');
    document.write('<a href="/profile/index4.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn02_4\',\'\',\'/img/mn02_4_o.gif\',1)"><img src="/img/mn02_4.gif" alt="出資総額及び主要な投資主" title="出資総額及び主要な投資主" name="mn02_4" width="172" height="22" border="0" id="mn02_4" /></a>\n');
    document.write('<a href="/profile/index5.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn02_5\',\'\',\'/img/mn02_5_o.gif\',1)"><img src="/img/mn02_5.gif" alt="役員の状況" title="役員の状況" name="mn02_5" width="172" height="22" border="0" id="mn02_5" /></a>\n');
    document.write('<a href="/profile/index6.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn02_6\',\'\',\'/img/mn02_6_o.gif\',1)"><img src="/img/mn02_6.gif" alt="資産運用会社の概要" title="資産運用会社の概要" name="mn02_6" width="172" height="22" border="0" id="mn02_6" /></a></div>\n');
    document.write('</div>\n');
    document.write('<div class="toggle" onmouseover="overImage(\'mn03\');" onmouseout="outImage(\'mn03\');">\n');
    document.write('<a href="javascript:;"><img src="/img/mn03.jpg" alt="不動産ポートフォリオ" title="不動産ポートフォリオ" name="mn03" width="172" height="30" border="0" id="mn03" /></a>\n');
    document.write('<div id="jmn03" class="childmenu">\n');
    document.write('<a href="/portfolio/index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn03_1\',\'\',\'/img/mn03_1_o.gif\',1)"><img src="/img/mn03_1.gif" alt="ポートフォリオ一覧" title="ポートフォリオ一覧" name="mn03_1" width="172" height="22" border="0" id="mn03_1" /></a>\n');
    document.write('<a href="/portfolio/index2.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn03_2\',\'\',\'/img/mn03_2_o.gif\',1)"><img src="/img/mn03_2.gif" alt="ポートフォリオマップ" title="ポートフォリオマップ" name="mn03_2" width="172" height="22" border="0" id="mn03_2" /></a>\n');
    document.write('<a href="/portfolio/index3.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn03_3\',\'\',\'/img/mn03_3_o.gif\',1)"><img src="/img/mn03_3.gif" alt="ポートフォリオの構成比率" title="ポートフォリオの構成比率" name="mn03_3" width="172" height="22" border="0" id="mn03_3" /></a>\n');
    document.write('<a href="/cms/operate.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn03_4\',\'\',\'/img/mn03_4_o.gif\',1)"><img src="/img/mn03_4.gif" alt="稼働率" title="稼働率" name="mn03_4" width="172" height="22" border="0" id="mn03_4" /></a></div>\n');
    document.write('</div>\n');
    document.write('<div class="toggle" onmouseover="overImage(\'mn04\');" onmouseout="outImage(\'mn04\');">\n');
    document.write('<a href="javascript:;"><img src="/img/mn04.jpg" alt="IR情報" title="IR情報" name="mn04" width="172" height="30" border="0" id="mn04" /></a>\n');
    document.write('<div id="jmn04" class="childmenu">\n');
    document.write('<a href="/cms/press.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn04_1\',\'\',\'/img/mn04_1_o.gif\',1)"><img src="/img/mn04_1.gif" alt="プレスリリース" title="プレスリリース" name="mn04_1" width="172" height="22" border="0" id="mn04_1" /></a>\n');
    document.write('<a href="/cms/doc.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn04_2\',\'\',\'/img/mn04_2_o.gif\',1)"><img src="/img/mn04_2.gif" alt="開示情報" title="開示情報" name="mn04_2" width="172" height="22" border="0" id="mn04_2" /></a>\n');
    document.write('<a href="/ir/financial/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn04_3\',\'\',\'/img/mn04_3_o.gif\',1)"><img src="/img/mn04_3.gif" alt="財務情報" title="財務情報" name="mn04_3" width="172" height="22" border="0" id="mn04_3" /></a>\n');
    document.write('<a href="/ir/financial/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn04_7\',\'\',\'/img/mn04_7_o.gif\',1)"><img src="/img/mn04_7.gif" alt="業績の推移" title="業績の推移" name="mn04_7" width="172" height="22" border="0" id="mn04_7" /></a>\n');
    document.write('<a href="/ir/financial/index2.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn04_8\',\'\',\'/img/mn04_8_o.gif\',1)"><img src="/img/mn04_8.gif" alt="格付け・投資法人債の状況" title="格付け・投資法人債の状況" name="mn04_8" width="172" height="22" border="0" id="mn04_8" /></a>\n');
    document.write('<a href="/ir/financial/index3.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn04_9\',\'\',\'/img/mn04_9_o.gif\',1)"><img src="/img/mn04_9.gif" alt="借入金の状況" title="借入金の状況" name="mn04_9" width="172" height="22" border="0" id="mn04_9" /></a>\n');
    document.write('<a href="/cms/dist.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn04_4\',\'\',\'/img/mn04_4_o.gif\',1)"><img src="/img/mn04_4.gif" alt="分配金・決算情報" title="分配金・決算情報" name="mn04_4" width="172" height="22" border="0" id="mn04_4" /></a>\n');
    document.write('<a href="/ir/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn04_5\',\'\',\'/img/mn04_5_o.gif\',1)"><img src="/img/mn04_5.gif" alt="投資主総会" title="投資主総会" name="mn04_5" width="172" height="22" border="0" id="mn04_5" /></a>\n');
    document.write('<a href="/ir/investers/index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'mn04_6\',\'\',\'/img/mn04_6_o.gif\',1)"><img src="/img/mn04_6.gif" alt="投資家の皆様へ" title="投資家の皆様へ" name="mn04_6" width="172" height="22" border="0" id="mn04_6" /></a></div>\n');
    document.write('</div>\n');
}