I.E problem who would have guessed it!

I.E problem who would have guessed it!

Okay fine in FF but I.E don't work I really do hate I.E :/

Anyway just seeing if you can help me

here is the code:

$("#accessmenu_close_hide").click(function(){
      
      if(document.getElementById("accessmenu_close_hide_link").innerHTML == '<img src="images/lock_48.png" width="20" border="0" height="20">')
        {
         $("#accessmenu_close_hide").animate({ marginRight: "10px" }, 0400 );
           $("#accessmenu_close_hide_link").html('<img src="images/lock_open_48.png" width="20" height="20" border="0" />');
         $("#accessmenu").fadeIn("normal");
        }else{
         $("#accessmenu_close_hide").animate({ marginRight: "-2px" }, 0400 );
         $("#accessmenu_close_hide_link").html('<img src="images/lock_48.png" width="20" height="20" border="0" />');
         $("#accessmenu").fadeOut("normal")
      
      };
      });


Thank you

Shaun