A catch All JavaScript for Radio button Toggle Effect

Today another developer disabled my working code because his was not working (We were working on the same file) He put functionality in a Java bean. We are using a Primefaces framework which is mostly all JQuery. I had a simple radio button toggle a show and hide of a few fieldsets. Now the show and hide is buried in the Java bean and I cannot find out how to make my code work. Using Firebug I think the bean is using a Visible attribute. I have included the Javascript I was using with uses a fadeIn and fadeOut for the effect on the toggle. I also have included part of the xHtml code which I stripped out all the extra stuff. Somehow I need to keep the same behavior using a general attribute so I do not affect the Java Bean. I have no idea how to do this but I know it can be done as I have spoken to another developer but he does not have the time to assist me. I hope someone can shed some light on this for me. Thanks.

Moderator please close this topic. Thank you.