// JavaScript Document
//「''」の間にhtmlを記述していく。このファイル内でjsを使う場合、左右の「'」を除いた内部jsの「'」の直前に「\」を追加すること。


var subdir = "";
if (location.pathname.indexOf("/obishin") == 0){
        subdir = "/obishin";
}

if (location.pathname.indexOf("/cgi-bin/") == 0){
        if (location.host.indexOf("www.obishin.co.jp") == 0){
                subdir = "";
        }else{
                subdir = "/obishin";
        }
}

function expand_img_ch2(t){
        var t_oya = t.parentNode;
        if (t_oya.className=='hide') {
                document.getElementById("bus_btn_js").src = subdir + "/common/images/btn_openB.gif";
        } else if (t_oya.className=='show') {
                document.getElementById("bus_btn_js").src = subdir + "/common/images/btn_closeB.gif";
        }
}


cntstr  = '<div class="show">';
cntstr += '<p id="btn_open" class="trigger" onclick="expand(this),expand_img_ch2(this)" onkeypress="expand(this),expand_img_ch2(this)">';
cntstr += '<img id="bus_btn_js" src="' + subdir + '/common/images/btn_openB.gif" alt="メニューを全て表示する"  /></p>';
cntstr += '<div class="target clearfix">';
cntstr += '<dl>';
cntstr += '<dt id="naviTitle_shien">経営支援</dt>';
cntstr += '<dd>';
cntstr += '<ul>';
cntstr += '<li><a href="' + subdir + '/business/loan/loan.html">創業者支援制度</a></li>';
cntstr += '<li><a href="' + subdir + '/business/service/school.html">おびしん地域経営塾</a></li>';
cntstr += '</ul>';
cntstr += '</dd>';
cntstr += '</dl>';
cntstr += '<dl>';
cntstr += '<dt id="naviTitle_banking">インターネットバンキング</dt>';
cntstr += '<dd>';
cntstr += '<ul>';
cntstr += '<li><a href="' + subdir + '/webfb/index.html">WEB-FB</a></li>';
cntstr += '<li><a href="' + subdir + '/webbk/index.html">WEBバンキング</a></li>';
cntstr += '<li><a href="' + subdir + '/business/fb.html">ファームバンキングサービス</a></li>';
cntstr += '<li><a href="' + subdir + '/pay-easy/pay-easy.html">Pay-easy</a></li>';
cntstr += '</ul>';
cntstr += '</dd>';
cntstr += '</dl>';
cntstr += '<dl>';
cntstr += '<dt id="naviTitle_kenkyu">地域経済情報について</dt>';
cntstr += '<dd>';
cntstr += '<ul>';
cntstr += '<li><a href="' + subdir + '/business/service/area/info.html">十勝管内経済情報</a></li>';
cntstr += '<li><a href="' + subdir + '/business/collaboration/index.html">帯広畜産大学との共同研究</a></li>';
cntstr += '<li><a href="' + subdir + '/business/service/sake.html">とかち酒文化再現プロジェクト</a></li>';
cntstr += '</ul>';
cntstr += '</dd>';
cntstr += '</dl>';
cntstr += '</div><!--/target-->';
cntstr += '</div><!--/show-->';

document.open();
document.write(cntstr);
document.close;

