
window.onload = function() {

//Font
	var a = document.getElementsByTagName("p").length;
	var b = document.getElementsByTagName("a").length;

	document.getElementById("size_small").onclick = function() {
		for(i = 0; i < a; i++) {
			document.getElementsByTagName("p")[i].style.fontSize = "80%";
		};
		for(i = 0; i < b; i++) {
			document.getElementsByTagName("a")[i].style.fontSize = "80%";
		};
		document.getElementById("current").style.fontSize = "80%";
	};
	document.getElementById("size_medium").onclick = function() {
		for(i = 0; i < a; i++) {
			document.getElementsByTagName("p")[i].style.fontSize = "100%";
		};
		for(i = 0; i < b; i++) {
			document.getElementsByTagName("a")[i].style.fontSize = "100%";
		};
		document.getElementById("current").style.fontSize = "100%";
	};
	document.getElementById("size_large").onclick = function() {
		for(i = 0; i < a; i++) {
			document.getElementsByTagName("p")[i].style.fontSize = "120%";
		};
		for(i = 0; i < b; i++) {
			document.getElementsByTagName("a")[i].style.fontSize = "120%";
		};
		document.getElementById("current").style.fontSize = "120%";
	};

//Dropdown
	document.getElementById("navi_box1").innerHTML = "<ul id='navi_list1'><li class='navi_cell1'><a href='../../../medical/service/medical/index.html'>在宅医療機器</a></li><li class='navi_cell2'><a href='../../../medical/goods/original/index.html'>介護ベッド関連</a></li><li class='navi_cell1'><a href='http://kaigo-takuhai.com/special/10point/tokozure/index.html'>床ずれ防止</a></li><li class='navi_cell2'><a href='http://kaigo-takuhai.com/special/10point/wheelchair/index.html'>車いす ・ 移動関連</a></li><li class='navi_cell1'><a href='http://kaigo-takuhai.com/special/10point/bath/index.html'>入浴関連</a></li><li class='navi_cell2'><a href='http://kaigo-takuhai.com/special/10point/toilet/index.html'>トイレ関連</a></li><li class='navi_cell1'><a href='../../../medical/child/index.html'>小児用福祉機器</a></li></ul>";
	document.getElementById("navi_box2").innerHTML = "<ul id='navi_list2'><li class='navi_cell1'><a href='../../../interior/products/index.php'>ベッド</a></li><li class='navi_cell2'><a href='../../../interior/products/category/FRCL/'>電動リクライニングベッド</a></li><li class='navi_cell1'><a href='../../../interior/products/category/MATT/'>マットレス</a></li><li class='navi_cell2'><a href='../../../interior/products/category/BEDL/'>寝装品（シーツ等）</a></li><li class='navi_cell1'><a href='../../../interior/products/category/SOFA/'>ソファー<br>（応援セット）</a></li><li class='navi_cell2'><a href='../../../interior/products/category/DINI/'>ダイニング<br>（食堂セット）</a></li><li class='navi_cell1'><a href='../../../interior/products/category/DSSE/'>その他の家具類</a></li><li class='navi_cell2'><a href='../../../interior/products/category/MASS/'>マッサージ機 ・ チェア</a></li></ul>";
	document.getElementById("navi_box3").innerHTML = "<ul id='navi_list3'><li class='navi_cell1'><a href='../../company/greeting.html'>社長挨拶</a></li><li class='navi_cell2'><a href='../../company/about.html'>会社概要</a></li><li class='navi_cell1'><a href='../../company/history.html'>沿革</a></li><li class='navi_cell2'><a href='../../company/history/interior.html'>インテリア健康事業のはじまり</a></li><li class='navi_cell1'><a href='../../company/history/medical.html'>メディカルサービス事業のはじまり</a></li><li class='navi_cell2'><a href='../../company/office_all.html'>事業所一覧</a></li><li class='navi_cell1'><a href='../../company/show.html'>ショールーム・ショップ</a></li><li class='navi_cell2'><a href='../../company/training.html'>総合研修センター</a></li><li class='navi_cell1'><a href='../../company/related.html'>関連会社</a></li><li class='navi_cell2'><a href='../../company/financial.html'>決算情報</a></li><li class='navi_cell1'><a href='../../company/link.html'>リンク</a></li><li class='navi_cell2'><a href='../../recruit.html'>採用情報</a></li></ul>";
	document.getElementById("navi_box4").innerHTML = "<ul id='navi_list4'><li class='navi_cell1'><a href='http://www.bederabi.com/contact/index.html'>一般ベッド・家具・寝装品<br />健康機・インテリア用品全般</a></li><li class='navi_cell2'><a href='../../../medical/contact/index.html'>介護ベッド・医療機器・車いす<br />福祉用品全般</a></li><li class='navi_cell1'><a href='http://www.francebed-hd.co.jp/inquiry/index.html'>IR情報</a></li><li class='navi_cell2'><a href='../../catalog/catalog2.php'>法人のお客様</a></li></ul>";
	document.getElementById("navi_box5").innerHTML = "<ul id='navi_list5'><li class='navi_cell1'><a href='../../../interior/houjin/case/index.html'>ホテル・<br>旅館宿泊施設</a></li><li class='navi_cell2'><a href='../../../interior/houjin/rental/index.html'>マンション・<br>住宅施設</a></li><li class='navi_cell1' style='padding:4px 0 ;'>病院医療・福祉施設</li></ul>";

	document.getElementById("navi1").onmouseover = function() {
		document.getElementById("navi_list1").style.visibility = "visible"
	};
	document.getElementById("navi1").onmouseout = function() {
		document.getElementById("navi_list1").style.visibility = "hidden"
	};
	document.getElementById("navi2").onmouseover = function() {
		document.getElementById("navi_list2").style.visibility = "visible"
	};
	document.getElementById("navi2").onmouseout = function() {
		document.getElementById("navi_list2").style.visibility = "hidden"
	};
	document.getElementById("navi3").onmouseover = function() {
		document.getElementById("navi_list3").style.visibility = "visible"
	};
	document.getElementById("navi3").onmouseout = function() {
		document.getElementById("navi_list3").style.visibility = "hidden"
	};
	document.getElementById("navi4").onmouseover = function() {
		document.getElementById("navi_list4").style.visibility = "visible"
	};
	document.getElementById("navi4").onmouseout = function() {
		document.getElementById("navi_list4").style.visibility = "hidden"
	};
	document.getElementById("navi5").onmouseover = function() {
		document.getElementById("navi_list5").style.visibility = "visible"
	};
	document.getElementById("navi5").onmouseout = function() {
		document.getElementById("navi_list5").style.visibility = "hidden"
	};
};