Is there a reason you're firing a click event, rather than calling some common handler function?