j$(document).ready(function() {
	var hc = "";
	var ft = "";
	if(isMobile == 0) {
		if (location.pathname.indexOf("event.html") >= 0) {
			hc +='<div id="header_m1"><strong>[ブライダルフェア]</strong></div>';
		} else {
			hc +='<div id="header_m1"><a href="event.html">ブライダルフェア</a></div>';
		}
		if (location.pathname.indexOf("history.html") >= 0) {
			hc +='<div id="header_m2"><strong>[歴史]</strong></div>';
		} else {
			hc +='<div id="header_m2"><a href="history.html">歴史</a></div>';
		}
		if (location.pathname.indexOf("venue") >= 0) {
			hc +='<div id="header_m3"><strong>[会場]</strong></div>';
		} else {
			hc +='<div id="header_m3"><a href="venue.html">会場</a></div>';
		}
		if (location.pathname.indexOf("cuisine") >= 0) {
			hc +='<div id="header_m4"><strong>[料理]</strong></div>';
		} else {
			hc +='<div id="header_m4"><a href="cuisine.html">料理</a></div>';
		}
		if (location.pathname.indexOf("wedding.html") >= 0) {
			hc +='<div id="header_m5"><strong>[ウエディングプラン]</strong></div>';
		} else {
			hc +='<div id="header_m5"><a href="wedding.html">ウエディングプラン</a></div>';
		}
		hc +='<div id="header_m6"><a href="report/index.html" target="_blank">体験者レポート</a></div>';
		if (location.pathname.indexOf("access.html") >= 0) {
			hc +='<div id="header_m7"><strong>[アクセス]</strong></div>';
		} else {
			hc +='<div id="header_m7"><a href="access.html">アクセス</a></div>';
		}
		
		if (location.pathname.indexOf("history.html") >= 0) {
			ft += '| <strong>歴史</strong> ';
		} else {
			ft += '| <a href="history.html">歴史</a> ';
		}
		if (location.pathname.indexOf("venue.html") >= 0) {
			ft += '| <strong>会場</strong> ';
		} else {
			ft += '| <a href="venue.html">会場</a> ';
		}
		if (location.pathname.indexOf("cuisine") >= 0) {
			ft += '| <strong>料理</strong> ';
		} else {
			ft += '| <a href="cuisine.html">料理</a> ';
		}
		if (location.pathname.indexOf("wedding.html") >= 0) {
			ft += '| <strong>ウエディングプラン</strong> ';
		} else {
			ft += '| <a href="wedding.html">ウエディングプラン</a> ';
		}
		if (location.pathname.indexOf("price.html") >= 0) {
			ft += '| <strong>お見積もり例</strong> ';
		} else {
			ft += '| <a href="price.html">お見積もり例</a> ';
		}
		if (location.pathname.indexOf("event.html") >= 0) {
			ft += '| <strong>ブライダルフェア</strong> ';
		} else {
			ft += '| <a href="event.html">ブライダルフェア</a> ';
		}
		if (location.pathname.indexOf("access.html") >= 0) {
			ft += '| <strong>アクセス</strong> ';
		} else {
			ft += '| <a href="access.html">アクセス</a> ';
		}
		if (location.pathname.indexOf("document.html") >= 0) {
			ft += '| <strong>資料請求</strong> ';
		} else {
			ft += '| <a href="requestform/mail.cgi">資料請求</a> ';
		}
		if (location.pathname.indexOf("banquet.html") >= 0) {
			ft += '| <strong>一般宴会</strong> ';
		} else {
			ft += '| <a href="banquet.html">一般宴会</a> ';
		}
		if (location.pathname.indexOf("company.html") >= 0) {
			ft += '| <strong>会社案内</strong> ';
		} else {
			ft += '| <a href="company.html">会社案内</a> ';
		}
		if (location.pathname.indexOf("privacy.html") >= 0) {
			ft += '| <strong>プライバシーポリシー</strong> ';
		} else {
			ft += '| <a href="privacy.html">プライバシーポリシー</a> ';
		}
		if (location.pathname.indexOf("index.html") >= 0) {
			ft += '| <strong>HOME</strong> |<br /> ';
		} else {
			ft += '| <a href="index.html">HOME</a> |<br />';
		}
		ft += '〒565-0826 大阪府吹田市千里万博公園9-1 迎賓館　TEL.06-6877-3330　OPEN　平日/11:00〜19:00　土・日・祝日/10:00〜19:00　水曜定休<br />';
		ft += 'Copyright 2000-2011 geihinkan All rights reserved.';
	} else {
		if (location.pathname.indexOf("event.html") >= 0) {
			hc +='<div id="header_m1" class="header_selected"><strong>フェア</strong></div>';
		} else {
			hc +='<a href="event.html"><div id="header_m1" class="header_link">フェア</div></a>';
		}
		if (location.pathname.indexOf("history.html") >= 0) {
			hc +='<div id="header_m2" class="header_selected"><strong>歴史</strong></div>';
		} else {
			hc +='<a href="history.html"><div id="header_m2" class="header_link">歴史</div></a>';
		}
		if (location.pathname.indexOf("venue") >= 0) {
			hc +='<div id="header_m3" class="header_selected"><strong>会場</strong></div>';
		} else {
			hc +='<a href="venue.html"><div id="header_m3" class="header_link">会場</div></a>';
		}
		if (location.pathname.indexOf("cuisine") >= 0) {
			hc +='<div id="header_m4" class="header_selected"><strong>料理</strong></div>';
		} else {
			hc +='<a href="cuisine.html"><div id="header_m4" class="header_link">料理</div></a>';
		}
		if (location.pathname.indexOf("wedding.html") >= 0) {
			hc +='<div id="header_m5" class="header_selected"><strong>プラン</strong></div>';
		} else {
			hc +='<a href="wedding.html"><div id="header_m5" class="header_link">プラン</div></a>';
		}
		if (location.pathname.indexOf("index.html") >= 0) {
			hc +='<div id="header_m6" class="header_selected"><strong>トップ</strong></div>';
		} else {
			hc +='<a href="index.html"><div id="header_m6" class="header_link">トップ</div></a>';
		}
		hc +='<a href="report/index.html" target="_blank"><div id="header_m7" class="header_link">レポート</div></a>';
		if (location.pathname.indexOf("eventform") >= 0) {
			hc +='<div id="header_m8" class="header_selected"><strong>ご予約</strong></div>';
		} else {
			hc +='<a href="eventform/index.html"><div id="header_m8" class="header_link">ご予約</div></a>';
		}
		
		if (location.pathname.indexOf("price.html") >= 0) {
			ft += '| <strong>お見積もり例</strong> ';
		} else {
			ft += '| <a href="price.html">お見積もり例</a> ';
		}
		if (location.pathname.indexOf("access.html") >= 0) {
			ft += '| <strong>アクセス</strong> ';
		} else {
			ft += '| <a href="access.html">アクセス</a> ';
		}
		if (location.pathname.indexOf("document.html") >= 0) {
			ft += '| <strong>資料請求</strong> ';
		} else {
			ft += '| <a href="requestform/mail.cgi">資料請求</a> ';
		}
		if (location.pathname.indexOf("banquet.html") >= 0) {
			ft += '| <strong>一般宴会</strong> ';
		} else {
			ft += '| <a href="banquet.html">一般宴会</a> ';
		}
		if (location.pathname.indexOf("company.html") >= 0) {
			ft += '| <strong>会社案内</strong> ';
		} else {
			ft += '| <a href="company.html">会社案内</a> ';
		}
		if (location.pathname.indexOf("privacy.html") >= 0) {
			ft += '| <strong>プライバシーポリシー</strong> ';
		} else {
			ft += '| <a href="privacy.html">プライバシーポリシー</a> ';
		}
		if (location.pathname.indexOf("index.html") >= 0) {
			ft += '| <strong>HOME</strong> |<br /> ';
		} else {
			ft += '| <a href="index.html">HOME</a> |<br />';
		}
		ft += '<br /><div id="footer_address"><address>〒565-0826 大阪府吹田市千里万博公園9-1 迎賓館<br />TEL.06-6877-3330<br />OPEN　平日/11:00〜19:00　土・日・祝日/10:00〜19:00　水曜定休</address><br />';
		ft += 'Copyright 2000-2011 geihinkan All rights reserved.</div>';
	}
	j$('#header_lnavi').append(hc);
	j$('#footer').append(ft);
});
