好库网
$(document).ready(function () {
    $("#li_login").bind("click", function () {
        setIframe("if_show", 315, 413, app_url+"/webpublic/sumForm/login.aspx");
        showDialog("div_show");
    });
    $("#li_reg").bind("click", function () {
        setIframe("if_show", 402, 413, app_url+"/webpublic/sumForm/reg.aspx");
        showDialog("div_show");
    });
    $("#li_forgetpwd").bind("click", function () {
        setIframe("if_show", 271, 413, app_url + "/webpublic/sumForm/forgetPwd.aspx");
        showDialog("div_show");
    });
    $("#top_jiameng").bind("click", function () {
        setIframe("if_show", 392, 413, app_url + "/usercenter/user_dangan.aspx");
        showDialog("div_show");
    });
    $("#bottom_jiameng").bind("click", function () {
        setIframe("if_show", 392, 413, app_url + "/webpublic/sumForm/jiameng.aspx");
        showDialog("div_show");
    });
});
function closeDialog(id) { $.unblockUI(); }
function addToFavorite(d, c) {
  if (document.all) { window.external.AddFavorite(d, c); }
  else if (window.sidebar){ window.sidebar.addPanel(c, d, ""); }
  else { alert("对不起,您的浏览器不支持此操作!请您使用菜单栏或Ctrl+D收藏本站。"); }
}

function redirectPage() {

    $("#div_left").show();
    $("#div_right").show();
    
    var w = document.body.clientWidth;
    var h = screen.height;
    var nowW = 30;
    if (w > 1150 && h > 500) {

        nowW = (((w - 1000) / 2) - 130) / 2;
        if (nowW > 10) { nowW = nowW * 2 - 10; }

        $("#div_left").show();
        go("div_left").style.left = nowW + "px";

        $("#div_right").show();
        go("div_right").style.right = nowW + "px";

        if ($.browser.msie && $.browser.version <= 6.0) {

        }
        else {
            go("div_left").style.top = ((h - 430) / 2) + "px";
            go("div_right").style.top = ((h - 430) / 2) + "px";
        }

    }
    else {
        $("#div_left").hide();
        $("#div_right").hide();
    }
}