function link(obj) {
	location.href = (obj.id)+'.shtml';
}

//パンくずリスト

function breadcrumb() {
 	if (pageTitle == 'index.shtml') {
		//TOPページなのでパンくずはなし
		return;
	}


	var menuName;
	if (menuImg == 'menu_service') {
		menuName = 'サービスメニュー';
	}
	if (menuImg == 'menu_precedent') {
		menuName = '導入事例';
	}

	var winTitle = document.title;
	
	//ホームは必ず表示
	document.write('<a href="./index.shtml">ホーム</a>'+"\n");
	
	//メニュー関係であればそこまで
	//サーバの文字列を使うと文字化けしたので(Apache2）Titleから文字列を取得する。
	var onlytitle = winTitle.replace("｜駅探", "");
	//console.log("title:"+onlytitle);
	if (pageTitle.indexOf("menu_",0) == 0) {
		document.write(onlytitle);
		document.write("\n");
	} else {
		document.write('<a href="./'+menuImg+'.shtml">'+menuName+'</a>'+"\n");
		document.write(onlytitle);
		document.write("\n");
	}
}

//ヘッダーイメージ
function headerImage() {
 	if (pageTitle == 'index.shtml') {
		//TOPページ
		document.write('<img src="image/top_img.jpg" width="980px" height="365px" style="padding:0px 0 5px;">');
		return;
	}
	
	//メニュー関係であればそこまで
	if (pageTitle.indexOf("menu_",0) == 0) {
		var menu = pageTitle;
		menu = menu.replace(".shtml","");
		document.write('<img src="image/'+menu+'.jpg" width="980px" height="72px" style="margin:0px 0 5px;">');
	} else {
		document.write('<img src="image/'+menuImg+'.jpg" width="980px" height="72px" style="margin:0px 0 5px;">');
	}
	
	

}


