I am trying to change the rel attribute on my page with jquery. I want to apply a "rel=expand[thumb1]" to a link when it is clicked and and a rel=collapse[thumb1] to the link when another link is clicked. Does anyone know how to do this?

I basically want the rel to =collapse[thumb1] unless is is active. If it is active I want the rel to = expand[thumb1] Does that make sense?

I have some messed up code here that doesnt work. I dont know if it would help or not. It is changing the rel, but I can figure how to change it again once it is no longer active. http://dl.dropbox.com/u/14080718/Final/UITabs11.html