Flash and ajaxtabs (rel link)

So I’m using a javascript applet to load a portion of a page from an external HTML file when you click a link. I’m using the script found here.

The code works like this:


[embed external .js file in head]

<a href="page to be loaded" rel="ajaxcontentarea">text of link</a>

...

<div id="ajaxcontentarea"> page loads here </div>

So, this is all well and good, until I try to invoke it with Flash. How do I tell the external script to do its thing? I’ve seen a couple different ideas; one involving ExternalInterface in actionscript, the other invoking a javascript function which in tern invokes the one I need. I can’t figure out how to get either method to work. Any ideas?