According to line 4 the value of the variable 'activecontent' is the href of the link, not the link itself. So I think this code wouldn't be doing what you want which is presumably to remove the 'hide' class from the link. Unless I'm reading it incorrectly this will result in a javascript error in it's current form.