window.onload does not quite seem to do the trick.
My only other idea is to do:
where myfunction goes through DOM tree and detects any changes (well at least element additions - new elements with unknown id's).
What do you guys think?
p.s. I'm reassigning IDs anyway so should be doable...