Nested iframes

I have change the object for the postMessage handler to parent (from top), so the script will work also for a document which is itself embedded in an iframe.