How to check if accordion was activated programmatically or clicked?

How to check if accordion was activated programmatically or clicked?


Hello,
how to check whether an accordion was activated programmatically
through the .activate() method or through a click event? I have
created an accordion and set a function to handle the change, it gets
passed an event of 'accordionchange' type, however I cannot tell what
original event triggered it.
I'm using jQuery 1.3.2 and jQuery UI 1.7.1