//HEADER

function header(pagestatus){

	//HEADER TOP

	//HEADER BOTTOM




	//BUTTON
	document.write('<div id="general">\n');

	if ( pagestatus == "gaiyou" ) {
		document.write('<div class="menutop">\n');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="775">\n');
		document.write('<tr>\n');
		document.write('<td width="214"><a href="kaisyagaiyou.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu1\');" onMouseOut="ua_hLayer(\'sousmenu1\')"><img src="/image/kaisyagaiyou-over.gif" width="214" height="24" border="0" alt=""></a></td>\n');
		document.write('<td width="214"><a href="bukken.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu2\');" onMouseOut="ua_hLayer(\'sousmenu2\')"><img src="/image/bukkenzyouhou.gif" width="214" height="24" border="0" alt=""></a></td>\n');
		document.write('<td width="214"><a href="toiawase.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu3\');" onMouseOut="ua_hLayer(\'sousmenu3\')"><img src="/image/otoiawase.gif" width="214" height="24" border="0" alt=""></a></td>\n');
		document.write('<td width="214"><a href="showroom.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu4\');" onMouseOut="ua_hLayer(\'sousmenu4\')"><img src="/image/top.gif" width="214" height="24" border="0" alt=""></td>\n');
		document.write('</tr>\n');
		document.write('</table>\n');
		document.write('</div>\n');



	} else if ( pagestatus == "bukken" ) {
		document.write('<div class="menutop">\n');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="775">\n');
		document.write('<tr>\n');
		document.write('<td width="214"><a href="kaisyagaiyou.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu1\');" onMouseOut="ua_hLayer(\'sousmenu1\')"><img src="/image/kaisyagaiyou.gif" width="214" height="24" border="0" alt=""></a></td>\n');
		document.write('<td width="214"><a href="bukken.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu2\');" onMouseOut="ua_hLayer(\'sousmenu2\')"><img src="/image/bukkenzyouhou-over.gif" width="214" height="24" border="0" alt=""></a></td>\n');
		document.write('<td width="214"><a href="toiawase.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu3\');" onMouseOut="ua_hLayer(\'sousmenu3\')"><img src="/image/otoiawase.gif" width="214" height="24" border="0" alt=""></a></td>\n');
		document.write('<td width="214"><a href="showroom.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu4\');" onMouseOut="ua_hLayer(\'sousmenu4\')"><img src="/image/top.gif" width="214" height="24" border="0" alt=""></td>\n');
		document.write('</tr>\n');
		document.write('</table>\n');
		document.write('</div>\n');



	} else if ( pagestatus == "toiawase" ) {
		document.write('<div class="menutop">\n');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="775">\n');
		document.write('<tr>\n');
		document.write('<td width="214"><a href="kaisyagaiyou.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu1\');" onMouseOut="ua_hLayer(\'sousmenu1\')"><img src="/image/kaisyagaiyou.gif" width="214" height="24" border="0" alt=""></a></td>\n');
		document.write('<td width="214"><a href="bukken.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu2\');" onMouseOut="ua_hLayer(\'sousmenu2\')"><img src="/image/bukkenzyouhou.gif" width="214" height="24" border="0" alt=""></a></td>\n');
		document.write('<td width="214"><a href="toiawase.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu3\');" onMouseOut="ua_hLayer(\'sousmenu3\')"><img src="/image/otoiawase-over.gif" width="214" height="24" border="0" alt=""></a></td>\n');
		document.write('<td width="214"><a href="showroom.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu4\');" onMouseOut="ua_hLayer(\'sousmenu4\')"><img src="/image/top.gif" width="214" height="24" border="0" alt=""></td>\n');
		document.write('</tr>\n');
		document.write('</table>\n');
		document.write('</div>\n');



	} else if ( pagestatus == "top" ) {
		document.write('<div class="menutop">\n');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="775">\n');
		document.write('<tr>\n');
		document.write('<td width="214"><a href="kaisyagaiyou.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu1\');" onMouseOut="ua_hLayer(\'sousmenu1\')"><img src="/image/kaisyagaiyou.gif" width="214" height="24" border="0" alt=""></a></td>\n');
		document.write('<td width="214"><a href="bukken.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu2\');" onMouseOut="ua_hLayer(\'sousmenu2\')"><img src="/image/bukkenzyouhou.gif" width="214" height="24" border="0" alt=""></a></td>\n');
		document.write('<td width="214"><a href="toiawase.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu3\');" onMouseOut="ua_hLayer(\'sousmenu3\')"><img src="/image/otoiawase.gif" width="214" height="24" border="0" alt=""></a></td>\n');
		document.write('<td width="214"><a href="showroom.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu4\');" onMouseOut="ua_hLayer(\'sousmenu4\')"><img src="/image/top.gif" width="214" height="24" border="0" alt=""></td>\n');
		document.write('</tr>\n');
		document.write('</table>\n');
		document.write('</div>\n');



	} else if ( pagestatus == "home" ) {
		document.write('<div class="menutop">\n');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="775">\n');
		document.write('<tr>\n');
		document.write('<td width="214"><a href="kaisyagaiyou.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu1\');" onMouseOut="ua_hLayer(\'sousmenu1\')"><img src="/image/kaisyagaiyou.gif" width="214" height="24" border="0" alt=""></a></td>\n');
		document.write('<td width="214"><a href="bukken.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu2\');" onMouseOut="ua_hLayer(\'sousmenu2\')"><img src="/image/bukkenzyouhou.gif" width="214" height="24" border="0" alt=""></a></td>\n');
		document.write('<td width="214"><a href="toiawase.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu3\');" onMouseOut="ua_hLayer(\'sousmenu3\')"><img src="/image/otoiawase.gif" width="214" height="24" border="0" alt=""></a></td>\n');
		document.write('<td width="214"><a href="showroom.html" target="_top" onMouseOver="ua_sLayer(\'sousmenu4\');" onMouseOut="ua_hLayer(\'sousmenu4\')"><img src="/image/top.gif" width="214" height="24" border="0" alt=""></td>\n');
		document.write('</tr>\n');
		document.write('</table>\n');
		document.write('</div>\n');


	}
	document.write('</div>\n');

	var str = navigator.userAgent.toUpperCase();
	if (str.indexOf("WIN") >= 0){
		var aName   = navigator.appName.toUpperCase();
		var appVer  = navigator.appVersion;
		if (aName.indexOf("MICROSOFT") >= 0){
			appVer  = navigator.userAgent;
			s = appVer.indexOf("MSIE ",0) + 5;
			e = appVer.indexOf(";",s);
			version = eval(appVer.substring(s,e));
			if(version >= 5){
				slideNvaigation_01();
			}else{
				slideNvaigation_02();
			}
		}else{
			slideNvaigation_02();
		}
	}else{
		slideNvaigation_02();
	}
}
function slideNvaigation_01(){
	//MENU
	document.write('<div class="sousmenu">\n');

	document.write('<div id="sousmenu2" style="width:213px;" onMouseOver="ua_sLayer(\'sousmenu2\');" onMouseOut="ua_hLayer(\'sousmenu2\')"><img src="/image/dot.gif" width="2" height="4" border="0" alt=""><br>\n');
	document.write('<img src="/image/dot.gif" width="3" height="2" border="0" alt=""><a href="http://www.happy-h.co.jp/syueki.html" target="_top">収益・1棟売り物件情報</a><br><img src="/image/dot.gif" width="2" height="4" border="0" alt=""><br>\n');



	document.write('</div>\n');

	document.write('<div id="sousmenu3" style="width:213px;" onMouseOver="ua_sLayer(\'sousmenu3\');" onMouseOut="ua_hLayer(\'sousmenu3\')"><img src="/image/dot.gif" width="2" height="4" border="0" alt=""><br>\n');
	document.write('<img src="/image/dot.gif" width="3" height="2" border="0" alt=""><a href="http://www.happy-h.co.jp/toiawase-form.html" target="_top">問い合わせフォーム</a><br><img src="/image/dot.gif" width="2" height="4" border="0" alt=""><br>\n');
	document.write('<img src="/image/dot.gif" width="3" height="2" border="0" alt=""><a href="http://www.happy-h.co.jp/toiawase-hogo.html" target="_top">個人情報保護について</a><br><img src="/image/dot.gif" width="2" height="4" border="0" alt=""><br>\n');
	document.write('</div>\n');




	document.write('</div>\n');
}


