
Event.observe(window, "load", function(){
    var captions = ['申込(初ての方)',
                    '申込(会員様用)',
                    '予約の確認',
                    '予約の変更',
                    '予約キャンセル',
                    '会員情報変更'
    ];
    var urls = [sslPath + 'reserve/newReserve.php',
                sslPath + 'reserve/memberReserve.php',
                sslPath + 'reserve/confirmReserve.php',
                sslPath + 'reserve/reserveModify.php',
                sslPath + 'reserve/cancelReserve.php',
                sslPath + 'reserve/memberInfUpdate.php'
    ];

    new Control.CypopupMenu("enterSample", captions, urls, 'sMenu');

    captions.clear();
    urls.clear();

    captions = ['日次業務総合トップ',
                '窓口予約',
                '来院管理(来院登録等)',
                '予約統計グラフ',
                '会員情報'

    ];





    urls = [basePath + 'regist/dailyTop.php',
                basePath + 'regist/reserveCenter.php',
                basePath + 'browse/dialy.php',
                basePath + 'browse/statist.php',
                basePath + 'member/memEnter.php'
    ];
    new Control.CypopupMenu("dailySample", captions, urls, 'sMenu');

    captions.clear();
    urls.clear();

    captions = ['設定業務総合トップ',
                '基本設定',
                '応答メールメッセージ',
                '予約初期条件設定',
                '年間カレンダー登録',
                'オペレータ登録',
                '営業時間臨時変更'
    ];
    urls = [basePath + 'edit/editTop.php',
                basePath + 'edit/preferences.php',
                basePath + 'edit/mailsentence.php?mode=newAppCnf',
                basePath + 'edit/configCalender.php',
                basePath + 'edit/setYearPlan.php',
                basePath + 'edit/operatorMente.php',
                basePath + 'edit/spotTimeSet.php'
    ];
    new Control.CypopupMenu("configSample", captions, urls, 'sMenu');

    var b_path;
    var s_path;

    if(window.location.host == "localhost"){
        b_path = 'http://localhost/reserve/';
        s_path = 'https://localhost/reserve/';
        t_path = 'http://localhost/myTop/'
    }
    else{
        t_path = 'http://cybercivil.net/';
        b_path = 'http://cybercivil.net/reserve/';
        s_path = 'https://sv77.wadax.ne.jp/~cybercivil-net/reserve/';
    }
    var tmenus = [['top',  t_path + 'index.html'],
                  ['index', b_path + 'index.html'],
                  ['request', s_path + 'request_asp.php'],
                  ['faq'  , s_path + 'faq.html']
                 ];
    tMemuLinkSet(tmenus);

    captions.clear();
    urls.clear();

    captions = ['予約のお申し込み',
                '日次業務のご紹介',
                '各種設定業務のご紹介'
    ];
    urls = [b_path + 'expEntry.php',
            b_path + 'expDaily.php',
            b_path + 'expConfig.html'
    ];

    new Control.CypopupMenu("duty", captions, urls, 'topMenu120');

    captions.clear();
    urls.clear();

    captions = ['ＡＳＰレンタル導入とは',
                '弊社のプライバシーポリシー',
                '特定商取引に関る法律に基く表記'
    ];
    urls = [b_path + 'intro_asp.html',
            b_path + 'privacy.html',
            b_path + 'tokusyou.html'
    ];

    new Control.CypopupMenu("introduction", captions, urls, 'topMenu120');
},false);

