[jQuery] script killing IE

[jQuery] script killing IE


I have this script that is absolutely killing IE, but works fine in
FF. I wish I could post the working model, but it's behind our
firewall.
Here's the script:
$(function(){
    bindResults = function(){
        $('#sbmsdata_1 a').click(function(){
            $('#sbmsdata_1 img').attr('src','/images/sbms/folderclosed.gif');
            $('img', $(this).parent().prev()).attr('src','/images/sbms/
folderopen.gif');
            var linkval = $(this).attr('href');
            $(this).blur();
            $('#sbmsitems').load(linkval, function(){
                $('a', this).click(function(){
                    $(this).blur();
                    return false;
                });
            });
            return false;
        });
    }
    var openfolder = 'none';
    loadSubjects = function(scope){
        $('a', scope).click(function(){
            $('img','#sbmsdata_0').attr('src','/images/sbms/folderclosed.gif');
            var linkval = $(this).attr('href');
            $.post(linkval, function(j){
                $('table#sbmsdata_1').remove();
                $('#sbmsitems').empty();
                $(placement).append(j);
                bindResults();
            });
            $(this).blur();
            var placement = $(this).parent();
            $('img', $(this).parent().prev()).attr('src','/images/sbms/
folderopen.gif');
            $(this).unbind();
            $(this).click(function(){
                $('img','#sbmsdata_0').attr('src','/images/sbms/
folderclosed.gif');
                $('table#sbmsdata_1').remove();
                $('#sbmsitems').empty();
                $(this).unbind();
                $(this).blur();
                loadSubjects($(this).parent());
                return false;
            });
            if (openfolder != 'none'){
                $('a', openfolder).unbind();
                loadSubjects(openfolder);
            }
            openfolder = $(this).parent();
            return false;
        });
    }
    loadSubjects('#sbmssubjects');
});