When I use the SIMILE documented way of manipulating the timeline through JS, I can't use its methods.
For example, trying to move around the timeline as per: http://code.google.com/p/simile-widgets/wiki/Timeline_Moving_the_Timelin...
timeline = document.getElementById('yourTimeline');
Replacing 'yourtimeline' with the ID of the timeline in the DOM (timeline), and I try using the getBand function, I get a "getBand is not a function" error.
I did some digging around and ended up adding a timeline property within Drupal.timeline and inside the createWidget function revised this line:
var timeline = Timeline.create(document.getElementById(args.id), bandInfos, args.orientation);
to this:
// We assign a global scope variable here to be used by our local script.
Drupal.timeline.timeline = Timeline.create(document.getElementById(args.id), bandInfos, args.orientation);
// assign the same to the local timeline variable so that we don't break the original function.
var timeline = Drupal.timeline.timeline;
And just used Drupal.timeline.timeline and everything worked. Not sure if this is a total solution or what the "correct" way of doing it was, but, should get the ball rolling at least.
Keep up the good work guys, thanks!