Hide/Show in IE

Hide/Show in IE

Is there some problem with hide/show in IE 6?
I also tried using the .css function..I am new to jquery..
My code looks like this and works fine in Firefox:
  1. // JavaScript Document
    function accordion(){
       
    $('#menutitle ul').css('display','none');
    $('#menutitle a').click(function()
    {
        var temp=$(this).next();
        if(temp.is(':visible'))
        {
            temp.slideUp("fast");
            return false;
        }
        else
        {
            $('#menutitle ul').css('display','none');
            temp.slideDown("fast");
        }
    }
    );



       
    }

    $(document).ready(function(){
        accordion();
    });