Help with hiding a menu options in Superfish with IE

Help with hiding a menu options in Superfish with IE

Hi, I have a menu using Superfish, I need to remove certain menu item depending on the access level of the user. I did it by calling this function from code behind:

foreach (string menuValue in menuValues)
            {
                StringBuilder script = new StringBuilder();
                script.Append(string.Format("var menu = $get('{0}');", menuValue));
                script.Append("if(menu != null) { menu.style.display = 'none'; }");
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), string.Format("HideMenu{0}", menuValue), script.ToString(), true);
            }


The problem is that in IE the li that I set to display none still appears as a blank space. It is ok in Firefox I need it to run on IE especially on IE6. I also tried visibility:hidden and had the same result.

Thanks.