$(window).load(function(){
            if ($("#pl").height() < $("#slh").height()) {
                $("#side_links").height($("#pl").height() - 70);
                $(".slhb").css("display", "block");
                $(".slht").css("display", "block");
                
                diff = $("#side_links").height() - 35 - $("#slh").height();
                        
                $(".slhb_down").click(function(){
                    t = parseInt($("#slh").css("top").substr(0, $("#slh").css("top").length - 2)) - 120;
                    if (t < diff) {
                        t = diff;
                    }
                    $("#slh").animate({top: t}, 500);
                });
                $(".slhb_up").click(function(){
                    t = parseInt($("#slh").css("top").substr(0, $("#slh").css("top").length - 2)) + 120;
                    if (t > 0) {
                        t = 0;
                    }
                    $("#slh").animate({top: t}, 500);
                });
            } else {
                $("#side_links").height($("#pl").height());
            }
    });