Hi Dominic
You need to tell MathJax to typeset your newly loaded content, within your openDialog function, using
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
I use a similar setup. When readers click on the "Answer" links on each of my pages (which creates a DIV on the fly), it calls the above code.
Regards
Murray