Some more info to consider ---

You should be able to run any Javascript function automatically via ColdFusion.Wind ow.onHide

I'd look at the $('.applet').sh ow() and .hide() statements.

Replace them with simple alerts to ensure they are being called, then debug them.

For example, if you have a div with an id of 'myDiv', and you want to show it when the cfwindow is closed, call a javascript...