function showMenu(activeMenu) {
    var html;
    if (activeMenu != 'home') {
        html  = "    <img src=\"/images/navi.gif\" border=\"0\" usemap=\"#Map\" id=\"Image1\" />\n";
        html += "    <map name=\"Map\" id=\"Map\">\n";
        html += "      <area shape=\"rect\" coords=\"615,0,660,21\" href=\"/\" alt=\"ホーム\" onmouseover=\"MM_swapImage('Image1','','/images/navi-home-on.gif',1)\" onmouseout=\"MM_swapImgRestore()\" />\n";
        html += "      <area shape=\"rect\" coords=\"671,0,713,21\" href=\"/link.html\" alt=\"リンク\" onmouseover=\"MM_swapImage('Image1','','/images/navi-link-on.gif',1)\" onmouseout=\"MM_swapImgRestore()\" />\n";
        html += "      <area shape=\"rect\" coords=\"725,-1,790,21\" href=\"/contact.php\" alt=\"お問い合せ\" onmouseover=\"MM_swapImage('Image1','','/images/navi-otoiawase-on.gif',1)\" onmouseout=\"MM_swapImgRestore()\" />\n";
        html += "      <area shape=\"rect\" coords=\"0,-1,392,70\" href=\"/\" alt=\"社団法人　全日本不動産協会　愛媛県本部\" />\n";
        html += "    </map>\n";
        document.getElementById('navi').innerHTML = html;
    }

    
    html  = "    <img src=\"/images/title-menu.gif\" />\n";
    if (activeMenu!='home') {
        html += "    <a href=\"http://www.zennet.jp/top.html\" target=\"_blank\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('物件検索','','/images/mainmenu-bukken-on.gif',1)\"><img src=\"/images/mainmenu-bukken.gif\" name=\"物件検索\" width=\"189\" height=\"68\" border=\"0\" id=\"物件検索\" /></a>\n";
        html += "    <a href=\"http://tokyo.zennichi.or.jp/tohonbu/kaigyo/flash/index.html\" target=\"_blank\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image15','','/images/mainmenu-korekara-on.jpg',1)\"><img src=\"/images/mainmenu-korekara.jpg\" name=\"Image15\" width=\"189\" height=\"65\" border=\"0\" id=\"Image15\" /></a>\n";
    }
    if (activeMenu=='home') {
        html += "    <a href=\"/\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('ホーム','','/images/mainmenu-home-on.jpg',1)\"><img src=\"/images/mainmenu-home-p.jpg\" alt=\"ホーム\" name=\"ホーム\" width=\"183\" height=\"50\" border=\"0\" id=\"ホーム\" /></a>\n";
    } else {
        html += "    <a href=\"/\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('ホーム','','/images/mainmenu-home-on.jpg',1)\"><img src=\"/images/mainmenu-home.jpg\" alt=\"ホーム\" name=\"ホーム\" width=\"183\" height=\"50\" border=\"0\" id=\"ホーム\" /></a>\n";
    }
    if (activeMenu=='society') {
        html += "    <a href=\"/society.html\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('協会について','','/images/mainmenu-kyoukai-on.jpg',1)\"><img src=\"/images/mainmenu-kyoukai-p.jpg\" alt=\"協会について\" name=\"協会について\" width=\"183\" height=\"49\" border=\"0\" id=\"協会について\" /></a>\n";
    } else {
        html += "    <a href=\"/society.html\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('協会について','','/images/mainmenu-kyoukai-on.jpg',1)\"><img src=\"/images/mainmenu-kyoukai.jpg\" alt=\"協会について\" name=\"協会について\" width=\"183\" height=\"49\" border=\"0\" id=\"協会について\" /></a>\n";
    }
    if (activeMenu=='menberintro') {
        html += "    <a href=\"/menberintro.html\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('会員の紹介','','/images/mainmenu-introduction-on.jpg',1)\"><img src=\"/images/mainmenu-introduction-p.jpg\" alt=\"会員の紹介\" name=\"会員の紹介\" width=\"183\" height=\"49\" border=\"0\" id=\"会員の紹介\" /></a>\n";
    } else {
        html += "    <a href=\"/menberintro.html\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('会員の紹介','','/images/mainmenu-introduction-on.jpg',1)\"><img src=\"/images/mainmenu-introduction.jpg\" alt=\"会員の紹介\" name=\"会員の紹介\" width=\"183\" height=\"49\" border=\"0\" id=\"会員の紹介\" /></a>\n";
    }
    if (activeMenu=='admission') {
        html += "    <a href=\"/admission.html\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('入会のご案内','','/images/mainmenu-entry-on.jpg',1)\"><img src=\"/images/mainmenu-entry-p.jpg\" alt=\"入会のご案内\" name=\"入会のご案内\" width=\"183\" height=\"49\" border=\"0\" id=\"入会のご案内\" /></a>\n";
    } else {
        html += "    <a href=\"/admission.html\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('入会のご案内','','/images/mainmenu-entry-on.jpg',1)\"><img src=\"/images/mainmenu-entry.jpg\" alt=\"入会のご案内\" name=\"入会のご案内\" width=\"183\" height=\"49\" border=\"0\" id=\"入会のご案内\" /></a>\n";
    }
    if (activeMenu=='qa') {
        html += "    <a href=\"/qa.html\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('不動産Q&amp;A','','/images/mainmenu-qa-on.jpg',1)\"><img src=\"/images/mainmenu-qa-p.jpg\" alt=\"不動産Q＆A\" name=\"不動産Q&amp;A\" width=\"183\" height=\"51\" border=\"0\" id=\"不動産Q&amp;A\" /></a>\n";
    } else {
        html += "    <a href=\"/qa.html\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('不動産Q&amp;A','','/images/mainmenu-qa-on.jpg',1)\"><img src=\"/images/mainmenu-qa.jpg\" alt=\"不動産Q＆A\" name=\"不動産Q&amp;A\" width=\"183\" height=\"51\" border=\"0\" id=\"不動産Q&amp;A\" /></a>\n";
    }
    html += "    <a href=\"/member/\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('会員専用ページ','','/images/mainmenu-kaiin-sp-on.jpg',1)\"><img src=\"/images/mainmenu-kaiin-sp.jpg\" alt=\"会員専用ページ\" name=\"会員専用ページ\" width=\"183\" height=\"67\" border=\"0\" id=\"会員専用ページ\" /></a>\n";
    html += "    <div id=\"access\">\n";
    html += "      <div class=\"style01\">\n";
    html += "        <a href=\"/outline.html#accessmap\"><img src=\"/images/side-banner-honbu.png\" alt=\"愛媛県本部\" width=\"83\" height=\"20\" border=\"0\" /></a>\n";
    html += "      </div>\n";
    html += "      〒790-0963<br />\n";
    html += "      松山市小坂2丁目6番34号<br />\n";
    html += "      TEL 089-933-9789<br />\n";
    html += "      FAX 089-933-8410<br />\n";
    html += "      <div style=\"margin-top:10px;margin-bottom:10px;\"><a href=\"/outline.html#accessmap\"><img src=\"/images/side-banner-access-map.png\" border=\"0\"/></a></div>\n";
    html += "    </div>\n";
    if (activeMenu=='hoshou') {
        html += "    <a href=\"/hoshou.html\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('不動産保証協会について','','/images/bt_kyokai_on.jpg',1)\"><img src=\"/images/bt_kyokai_off-2.jpg\" alt=\"不動産保証協会について\" name=\"不動産保証協会について\" width=\"184\" height=\"45\" border=\"0\" id=\"不動産保証協会について\" /></a>\n";
    } else {
        html += "    <a href=\"/hoshou.html\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('不動産保証協会について','','/images/bt_kyokai_on.jpg',1)\"><img src=\"/images/bt_kyokai_off.jpg\" alt=\"不動産保証協会について\" name=\"不動産保証協会について\" width=\"184\" height=\"45\" border=\"0\" id=\"不動産保証協会について\" /></a>\n";
    }
    html += "    <div style=\"margin-top:10px;\"><a href=\"http://www.zennichi-jloan.jp/\" target=\"_blank\"><img src=\"/images/bn_jutakukouza.gif\" alt=\"（社）全日本不動産協会認定 住宅ローンアドバイザー養成講座\" width=\"182\" height=\"100\" border=\"0\" /></a></div>\n";
    document.getElementById('mainmenu').innerHTML = html;
    
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    JavaScriptLoader(gaJsHost + 'google-analytics.com/ga.js',doGoogleTrack);
    
}
function doGoogleTrack(){
    var ele = document.createElement("script");
    ele.type = "text/javascript";
    ele.text = 'try {var pageTracker = _gat._getTracker("UA-7022015-1");pageTracker._trackPageview();} catch(err) {}';
    //ele.text = 'var pageTracker = _gat._getTracker("UA-7022015-1");pageTracker._trackPageview();';
    document.body.appendChild(ele);
    
}
function JavaScriptLoader(src, callback){
    var sc = document.createElement('script');
    sc.type = 'text/javascript';
    if (window.ActiveXObject) {
        sc.onreadystatechange = function(){
            if (sc.readyState == 'complete') callback(sc.readyState);
            if (sc.readyState == 'loaded') callback(sc.readyState);
        };
    } else {
        sc.onload = function(){
            callback('onload');
        };
    }
    sc.src = src;
    document.body.appendChild(sc);
}

