
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='http://www.minnanoegao.jp/child/' target='_blank'>小児用福祉機器</a></li><li class='navi_cell2'><a href='http://www.francebed.co.jp/medical/case/'>病状別で選ぶ福祉用具</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/index.php'>ベッド</a></li><li class='navi_cell1'><a href='interior/products/category/FRCL/'>電動リクライニングベッド</a></li><li class='navi_cell2'><a href='interior/products/category/MATT/'>マットレス</a></li><li class='navi_cell1'><a href='interior/products/category/BEDL/'>寝装品（シーツ等）</a></li><li class='navi_cell2'><a href='interior/products/category/DOQU/'>羽毛ふとん</a></li><li class='navi_cell1'><a href='interior/products/category/BEDP/'>ベッドパッド</a></li><li class='navi_cell2'><a href='interior/products/category.php?cate=PILL'>まくら</a></li><li class='navi_cell1'><a href='interior/products/category/SOFA/'>ソファー<br>（応援セット）</a></li><li class='navi_cell2'><a href='interior/products/category/SFBD/'>ソファーベッド</a></li><li class='navi_cell1'><a href='interior/products/category/DINI/'>ダイニング<br>（食堂セット）</a></li><li class='navi_cell2'><a href='interior/products/category/DSSE/'>その他の家具類</a></li><li class='navi_cell1'><a href='interior/products/category/MASS/'>マッサージ機 ・ <br>チェア</a></li></ul>";

document.getElementById("navi_box3").innerHTML = "<ul id='navi_list3'><li class='navi_cell1'><a href='hotel/product/index.html'>製品情報</a></li><li class='navi_cell2'><a href='hotel/works/index.html'>納入施工例</a></li><li class='navi_cell1'><a href='hotel/worklist/index.html'>納入施工一覧</a></li><li class='navi_cell2'><a href='hotel/planning/index.html'>設計・施工</a></li><li class='navi_cell1'><a href='hotel/rental/index.html'>レンタル</a></li><li class='navi_cell2'><a href='hotel/contact/index.html'>お問い合わせ</a></li></ul>";
	
document.getElementById("navi_box5").innerHTML = "<ul id='navi_list5'><li class='navi_cell1'><a href='iryofukushi/products/'>製品情報</a></li><li class='navi_cell2'><a href='iryofukushi/planning/'>プランニング</a></li><li class='navi_cell1'><a href='iryofukushi/anzen/'>安全対策</a></li><li class='navi_cell2'><a href='iryofukushi/linen/'>リネンサプライ</a></li><li class='navi_cell1'><a href='iryofukushi/shoplist/'>お問い合わせ</a></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("navi5").onmouseover = function() {
		document.getElementById("navi_list5").style.visibility = "visible"
	};
	document.getElementById("navi5").onmouseout = function() {
		document.getElementById("navi_list5").style.visibility = "hidden"
	};
};
