I have this script (attached) I am using on a website already. It's good. I need to modify it so it can work separately on two related websites. So, whatever style you choose on one site doesn't influence the style on the other website.
I checked the attached javascript file. It seems to be coded perfect. I would appreciate if you can send me links to the websites so as to understand what exactly is the the issue.