added download of flash representation. unfortunately it is only a raw flash version of the document and no build in document viewer.
added support for user agent detection