﻿//Type.registerNamespace('AjaxControlToolkit');
//window.onload = menuResize;
//window.onresize = menuResize;

//var space = 195; var w = 200;
//function menuResize() {
//    var clientBounds = $common.getClientBounds();
//    var menu = document.getElementById("menu_frame");
//    var menuBounds = $common.getBounds(menu);
//    
//    if (clientBounds.height >= space + 5 &&
//        clientBounds.height - space != menuBounds.height) {
//        
//        menuBounds.height = clientBounds.height - space;
//        menuBounds.width = w;
//        $common.setSize(document.getElementById("menu_frame"), menuBounds);
//    }
//}

function resetScroll(){

    // スクロール位置をチェック（IE用）
    if(document.all){
　　    Scr_y = document.documentElement.scrollTop || document.body.scrollTop;; //縦スクロール位置取得
    }
    // スクロール位置をチェック（NN用）
    else if(document.layers || document.getElementById){
　　    Scr_y = pageYOffset;  //縦スクロール位置取得
    }
    Scr_y= Math.ceil(Scr_y*0.2); //Math.ceil()は値を切り上げ（7.24なら8）となります。
   
    if(Scr_y==0){return;} // 変数 Scr_y が 0 になったら停止します。
    scrollBy(0,-Scr_y);
    setTimeout("resetScroll()",10);
}

function callOpener(url) {
    if(!window.opener || window.opener.closed){
        var win = window.parent.open(url,'booknest');
        win.focus();
　　} else{　
            if (window.opener.location.toString().indexOf(url) == -1) {
                window.opener.location = url;
            }
            window.opener.focus();
　　}
}