How to check if accordion was activated programmatically or clicked?

How to check if accordion was activated programmatically or clicked?


Hello,
I am having trouble determining if an accordion was activated by a
click or programmatically. I have done some reading and found out that
the event passed to 'change' function should contain
event.originalEvent, however the 'accordionchange' event does not
contain it. I have analyzed (with firebug) event objects passed when
clicking and activating programmatically and could not find any
difference between them.
Is there any way to determine how the event was triggered?
I am using jQuery 1.3.2 with jQuery UI 1.7.1 and Firefox 3.0.10 under
Ubuntu 9.04.