use onload/onerror handlers for better css support
support drags on other windows when in an iframe