Merge with master.
authorRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Wed, 26 Mar 2014 15:32:58 +0000 (16:32 +0100)
committerRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Wed, 26 Mar 2014 15:32:58 +0000 (16:32 +0100)
543 files changed:
.gitignore
.gitmodules
README.md
apps/apiclient/settings.py
apps/apiclient/urls.py
apps/catalogue/admin.py
apps/catalogue/constants.py
apps/catalogue/ebook_utils.py
apps/catalogue/feeds.py [new file with mode: 0644]
apps/catalogue/forms.py
apps/catalogue/helpers.py
apps/catalogue/locale/pl/LC_MESSAGES/django.mo
apps/catalogue/locale/pl/LC_MESSAGES/django.po
apps/catalogue/management/__init__.py [changed mode: 0755->0644]
apps/catalogue/management/commands/__init__.py [changed mode: 0755->0644]
apps/catalogue/management/commands/assign_from_redmine.py [changed mode: 0755->0644]
apps/catalogue/management/commands/fix_rdf_about.py [deleted file]
apps/catalogue/management/commands/fixdc.py [new file with mode: 0644]
apps/catalogue/management/commands/import_wl.py [changed mode: 0755->0644]
apps/catalogue/management/commands/merge_books.py [changed mode: 0755->0644]
apps/catalogue/migrations/0003_from_hg.py
apps/catalogue/migrations/0009_auto__add_field_book__on_track.py [new file with mode: 0644]
apps/catalogue/migrations/0009_auto__add_imagechange__add_unique_imagechange_tree_revision__add_image.py [deleted file]
apps/catalogue/migrations/0010_auto__add_field_book_dc_cover_image.py [new file with mode: 0644]
apps/catalogue/migrations/0011_auto__add_project__add_field_book_project.py [new file with mode: 0644]
apps/catalogue/migrations/0012_auto__add_imagepublishrecord__add_imagechange__add_unique_imagechange_.py [new file with mode: 0644]
apps/catalogue/models/__init__.py
apps/catalogue/models/book.py
apps/catalogue/models/image.py
apps/catalogue/models/project.py [new file with mode: 0755]
apps/catalogue/tasks.py
apps/catalogue/templates/catalogue/activity.html
apps/catalogue/templates/catalogue/base.html
apps/catalogue/templates/catalogue/book_detail.html
apps/catalogue/templates/catalogue/book_list/book.html
apps/catalogue/templates/catalogue/book_list/book_list.html
apps/catalogue/templates/catalogue/book_list/chunk.html
apps/catalogue/templates/catalogue/book_text.html [new file with mode: 0644]
apps/catalogue/templates/catalogue/chunk_edit.html
apps/catalogue/templates/catalogue/document_list.html
apps/catalogue/templates/catalogue/document_upload.html
apps/catalogue/templates/catalogue/image_detail.html
apps/catalogue/templates/catalogue/image_short.html
apps/catalogue/templates/catalogue/my_page.html
apps/catalogue/templates/catalogue/user_list.html
apps/catalogue/templates/catalogue/wall.html
apps/catalogue/templatetags/book_list.py
apps/catalogue/templatetags/catalogue.py
apps/catalogue/templatetags/common_tags.py [new file with mode: 0755]
apps/catalogue/test_utils.py [new file with mode: 0644]
apps/catalogue/tests/__init__.py [changed mode: 0755->0644]
apps/catalogue/tests/book.py [new file with mode: 0644]
apps/catalogue/tests/files/chunk1.xml
apps/catalogue/tests/files/expected.xml
apps/catalogue/tests/gallery.py [new file with mode: 0644]
apps/catalogue/tests/publish.py [new file with mode: 0644]
apps/catalogue/tests/xml_updater.py [new file with mode: 0644]
apps/catalogue/urls.py
apps/catalogue/views.py
apps/compress/__init__.py [deleted file]
apps/compress/conf/__init__.py [deleted file]
apps/compress/conf/settings.py [deleted file]
apps/compress/filter_base.py [deleted file]
apps/compress/filters/__init__.py [deleted file]
apps/compress/filters/csstidy/__init__.py [deleted file]
apps/compress/filters/jsmin/__init__.py [deleted file]
apps/compress/filters/jsmin/jsmin.py [deleted file]
apps/compress/filters/yui/__init__.py [deleted file]
apps/compress/management/__init__.py [deleted file]
apps/compress/management/commands/__init__.py [deleted file]
apps/compress/management/commands/synccompress.py [deleted file]
apps/compress/models.py [deleted file]
apps/compress/signals.py [deleted file]
apps/compress/templates/compress/css.html [deleted file]
apps/compress/templates/compress/css_ie.html [deleted file]
apps/compress/templates/compress/js.html [deleted file]
apps/compress/templates/compress/js_ie.html [deleted file]
apps/compress/templatetags/__init__.py [deleted file]
apps/compress/templatetags/compressed.py [deleted file]
apps/compress/utils.py [deleted file]
apps/compress/versioning/__init__.py [deleted file]
apps/compress/versioning/base.py [deleted file]
apps/compress/versioning/hash/__init__.py [deleted file]
apps/compress/versioning/mtime/__init__.py [deleted file]
apps/cover/__init__.py [new file with mode: 0644]
apps/cover/forms.py [new file with mode: 0755]
apps/cover/locale/pl/LC_MESSAGES/django.mo [new file with mode: 0644]
apps/cover/locale/pl/LC_MESSAGES/django.po [new file with mode: 0644]
apps/cover/migrations/0001_initial.py [new file with mode: 0644]
apps/cover/migrations/0002_auto__chg_field_image_download_url.py [new file with mode: 0644]
apps/cover/migrations/0003_auto__chg_field_image_source_url.py [new file with mode: 0644]
apps/cover/migrations/__init__.py [new file with mode: 0644]
apps/cover/models.py [new file with mode: 0644]
apps/cover/templates/cover/add_image.html [new file with mode: 0755]
apps/cover/templates/cover/image_detail.html [new file with mode: 0755]
apps/cover/templates/cover/image_list.html [new file with mode: 0755]
apps/cover/tests.py [new file with mode: 0644]
apps/cover/urls.py [new file with mode: 0644]
apps/cover/utils.py [new file with mode: 0755]
apps/cover/views.py [new file with mode: 0644]
apps/django_cas/__init__.py [deleted file]
apps/django_cas/backends.py [deleted file]
apps/django_cas/decorators.py [deleted file]
apps/django_cas/middleware.py [deleted file]
apps/django_cas/models.py [deleted file]
apps/django_cas/views.py [deleted file]
apps/dvcs/models.py
apps/dvcs/tests.py [deleted file]
apps/dvcs/urls.py [deleted file]
apps/filebrowser/LICENSE [deleted file]
apps/filebrowser/__init__.py [deleted file]
apps/filebrowser/base.py [deleted file]
apps/filebrowser/decorators.py [deleted file]
apps/filebrowser/fb_settings.py [deleted file]
apps/filebrowser/fields.py [deleted file]
apps/filebrowser/forms.py [deleted file]
apps/filebrowser/functions.py [deleted file]
apps/filebrowser/locale/ca/LC_MESSAGES/django.mo [deleted file]
apps/filebrowser/locale/ca/LC_MESSAGES/django.po [deleted file]
apps/filebrowser/locale/de/LC_MESSAGES/django.mo [deleted file]
apps/filebrowser/locale/de/LC_MESSAGES/django.po [deleted file]
apps/filebrowser/locale/es/LC_MESSAGES/django.mo [deleted file]
apps/filebrowser/locale/es/LC_MESSAGES/django.po [deleted file]
apps/filebrowser/locale/fr/LC_MESSAGES/django.mo [deleted file]
apps/filebrowser/locale/fr/LC_MESSAGES/django.po [deleted file]
apps/filebrowser/locale/it/LC_MESSAGES/django.mo [deleted file]
apps/filebrowser/locale/it/LC_MESSAGES/django.po [deleted file]
apps/filebrowser/locale/nl/LC_MESSAGES/django.mo [deleted file]
apps/filebrowser/locale/nl/LC_MESSAGES/django.po [deleted file]
apps/filebrowser/locale/ru/LC_MESSAGES/django.mo [deleted file]
apps/filebrowser/locale/ru/LC_MESSAGES/django.po [deleted file]
apps/filebrowser/locale/sr/LC_MESSAGES/django.mo [deleted file]
apps/filebrowser/locale/sr/LC_MESSAGES/django.po [deleted file]
apps/filebrowser/locale/sr_Latn/LC_MESSAGES/django.mo [deleted file]
apps/filebrowser/locale/sr_Latn/LC_MESSAGES/django.po [deleted file]
apps/filebrowser/locale/zh_CN/LC_MESSAGES/django.mo [deleted file]
apps/filebrowser/locale/zh_CN/LC_MESSAGES/django.po [deleted file]
apps/filebrowser/locale/zh_TW/LC_MESSAGES/django.mo [deleted file]
apps/filebrowser/locale/zh_TW/LC_MESSAGES/django.po [deleted file]
apps/filebrowser/media/filebrowser/css/filebrowser.css [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_delete.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_delete_hover.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb_hover.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_rename.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_rename_hover.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_select.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_select_disabled.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_select_hover.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_show.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_show_hover.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_showversions.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_showversions_hover.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_type_.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_type_code.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_type_document.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_type_folder.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_type_image.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_type_sound.gif [deleted file]
apps/filebrowser/media/filebrowser/img/filebrowser_type_video.gif [deleted file]
apps/filebrowser/media/filebrowser/img/tableheader_arrow_down.gif [deleted file]
apps/filebrowser/media/filebrowser/img/tableheader_arrow_up.gif [deleted file]
apps/filebrowser/media/filebrowser/img/tableheader_arrows.gif [deleted file]
apps/filebrowser/media/filebrowser/js/AddFileBrowser.js [deleted file]
apps/filebrowser/media/filebrowser/js/FB_CKEditor.js [deleted file]
apps/filebrowser/media/filebrowser/js/FB_FileBrowseField.js [deleted file]
apps/filebrowser/media/filebrowser/js/FB_TinyMCE.js [deleted file]
apps/filebrowser/media/filebrowser/js/TinyMCEAdmin.js [deleted file]
apps/filebrowser/media/filebrowser/js/jquery-1.3.2.min.js [deleted file]
apps/filebrowser/media/filebrowser/uploadify/Uploadify v2.1.0 Manual.pdf [deleted file]
apps/filebrowser/media/filebrowser/uploadify/cancel.png [deleted file]
apps/filebrowser/media/filebrowser/uploadify/check.php [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/FileTarget.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/HMAC.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/MD5.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/MD5Stream.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA1.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA224.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA256.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/WSSEUsernameToken.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/IllegalStateError.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Address.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Email.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Phone.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/VCard.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/VCardParser.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/BitString.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/JPGEncoder.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/PNGEncoder.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/DynamicURLLoader.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/IURIResolver.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/MimeTypeMap.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/URI.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/URIEncodingBitmap.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/RFC2817Socket.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Database.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Definition.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Dict.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/DictionaryServer.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/MatchStrategy.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Response.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/ConnectedEvent.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DatabaseEvent.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionEvent.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DictionaryServerEvent.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DisconnectedEvent.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/ErrorEvent.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchEvent.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchStrategiesEvent.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/NoMatchEvent.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/CompleteResponseEvent.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/SocketHelper.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSON.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONDecoder.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONEncoder.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONParseError.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONToken.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenType.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenizer.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/ArrayUtil.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/DateUtil.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/DictionaryUtil.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/IntUtil.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/NumberFormatter.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/StringUtil.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/XMLUtil.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/ServiceBase.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/URLLoaderBase.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/ServiceEvent.as [deleted file]
apps/filebrowser/media/filebrowser/uploadify/example/_notes/dwsync.xml [deleted file]
apps/filebrowser/media/filebrowser/uploadify/example/cancel.png [deleted file]
apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/dwsync.xml [deleted file]
apps/filebrowser/media/filebrowser/uploadify/example/css/default.css [deleted file]
apps/filebrowser/media/filebrowser/uploadify/example/css/uploadify.css [deleted file]
apps/filebrowser/media/filebrowser/uploadify/example/index.php [deleted file]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/dwsync.xml [deleted file]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/check.php [deleted file]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/expressInstall.swf [deleted file]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/jquery-1.3.2.min.js [deleted file]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/jquery.uploadify.v2.1.0.min.js [deleted file]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/swfobject.js [deleted file]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/uploadify.php [deleted file]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/uploadify.swf [deleted file]
apps/filebrowser/media/filebrowser/uploadify/expressInstall.swf [deleted file]
apps/filebrowser/media/filebrowser/uploadify/jquery-1.3.2.min.js [deleted file]
apps/filebrowser/media/filebrowser/uploadify/jquery.uploadify.v2.1.0.js [deleted file]
apps/filebrowser/media/filebrowser/uploadify/jquery.uploadify.v2.1.0.min.js [deleted file]
apps/filebrowser/media/filebrowser/uploadify/swfobject.js [deleted file]
apps/filebrowser/media/filebrowser/uploadify/uploadify.allglyphs.swf [deleted file]
apps/filebrowser/media/filebrowser/uploadify/uploadify.css [deleted file]
apps/filebrowser/media/filebrowser/uploadify/uploadify.fla [deleted file]
apps/filebrowser/media/filebrowser/uploadify/uploadify.php [deleted file]
apps/filebrowser/media/filebrowser/uploadify/uploadify.swf [deleted file]
apps/filebrowser/models.py [deleted file]
apps/filebrowser/templates/filebrowser/append.html [deleted file]
apps/filebrowser/templates/filebrowser/custom_field.html [deleted file]
apps/filebrowser/templates/filebrowser/include/_response.html [deleted file]
apps/filebrowser/templates/filebrowser/include/breadcrumbs.html [deleted file]
apps/filebrowser/templates/filebrowser/include/filelisting.html [deleted file]
apps/filebrowser/templates/filebrowser/include/filter.html [deleted file]
apps/filebrowser/templates/filebrowser/include/paginator.html [deleted file]
apps/filebrowser/templates/filebrowser/include/tableheader.html [deleted file]
apps/filebrowser/templates/filebrowser/include/toolbar.html [deleted file]
apps/filebrowser/templates/filebrowser/index.html [deleted file]
apps/filebrowser/templates/filebrowser/makedir.html [deleted file]
apps/filebrowser/templates/filebrowser/rename.html [deleted file]
apps/filebrowser/templates/filebrowser/upload.html [deleted file]
apps/filebrowser/templates/filebrowser/versions.html [deleted file]
apps/filebrowser/templatetags/__init__.py [deleted file]
apps/filebrowser/templatetags/fb_tags.py [deleted file]
apps/filebrowser/templatetags/fb_versions.py [deleted file]
apps/filebrowser/urls.py [deleted file]
apps/filebrowser/views.py [deleted file]
apps/fileupload/__init__.py [new file with mode: 0644]
apps/fileupload/forms.py [new file with mode: 0644]
apps/fileupload/locale/pl/LC_MESSAGES/django.mo [new file with mode: 0644]
apps/fileupload/locale/pl/LC_MESSAGES/django.po [new file with mode: 0644]
apps/fileupload/models.py [new file with mode: 0644]
apps/fileupload/static/fileupload/css/bootstrap-image-gallery.min.css [new file with mode: 0644]
apps/fileupload/static/fileupload/css/bootstrap.min.css [new file with mode: 0644]
apps/fileupload/static/fileupload/css/jquery.fileupload-ui.css [new file with mode: 0644]
apps/fileupload/static/fileupload/css/style.css [new file with mode: 0644]
apps/fileupload/static/fileupload/img/glyphicons-halflings-white.png [new file with mode: 0644]
apps/fileupload/static/fileupload/img/glyphicons-halflings.png [new file with mode: 0644]
apps/fileupload/static/fileupload/img/loading.gif [new file with mode: 0644]
apps/fileupload/static/fileupload/img/progressbar.gif [new file with mode: 0644]
apps/fileupload/static/fileupload/js/bootstrap-image-gallery.min.js [new file with mode: 0644]
apps/fileupload/static/fileupload/js/bootstrap.min.js [new file with mode: 0644]
apps/fileupload/static/fileupload/js/canvas-to-blob.min.js [new file with mode: 0644]
apps/fileupload/static/fileupload/js/csrf.js [new file with mode: 0644]
apps/fileupload/static/fileupload/js/jquery.fileupload-fp.js [new file with mode: 0644]
apps/fileupload/static/fileupload/js/jquery.fileupload-ui.js [new file with mode: 0644]
apps/fileupload/static/fileupload/js/jquery.fileupload.js [new file with mode: 0644]
apps/fileupload/static/fileupload/js/jquery.iframe-transport.js [new file with mode: 0644]
apps/fileupload/static/fileupload/js/jquery.ui.widget.js [new file with mode: 0644]
apps/fileupload/static/fileupload/js/load-image.min.js [new file with mode: 0644]
apps/fileupload/static/fileupload/js/locale-en.js [new file with mode: 0644]
apps/fileupload/static/fileupload/js/locale-pl.js [new file with mode: 0755]
apps/fileupload/static/fileupload/js/main.js [new file with mode: 0644]
apps/fileupload/static/fileupload/js/tmpl.min.js [new file with mode: 0644]
apps/fileupload/templates/fileupload/picture_form.html [new file with mode: 0644]
apps/fileupload/templatetags/__init__.py [new file with mode: 0644]
apps/fileupload/templatetags/upload_tags.py [new file with mode: 0644]
apps/fileupload/urls.py [new file with mode: 0644]
apps/fileupload/views.py [new file with mode: 0644]
apps/toolbar/admin.py
apps/toolbar/fixtures/initial_toolbar.yaml
apps/wiki/admin.py
apps/wiki/locale/pl/LC_MESSAGES/django.mo
apps/wiki/locale/pl/LC_MESSAGES/django.po
apps/wiki/templates/admin/wiki/theme/change_list.html
apps/wiki/templates/wiki/document_details.html
apps/wiki/templates/wiki/document_details_base.html
apps/wiki/templates/wiki/tabs/gallery_view.html
apps/wiki/templates/wiki/tabs/history_view.html
apps/wiki/templates/wiki/tabs/search_view.html
apps/wiki/templates/wiki/tabs/summary_view.html
apps/wiki/tests/xslt/auto/auto_test.js [new file with mode: 0644]
apps/wiki/tests/xslt/auto/data/akap.html [new file with mode: 0644]
apps/wiki/tests/xslt/auto/data/big.xml [new file with mode: 0644]
apps/wiki/tests/xslt/auto/data/unknown_tag.html [new file with mode: 0644]
apps/wiki/tests/xslt/auto/data/unknown_tag.xml [new file with mode: 0644]
apps/wiki/urls.py
apps/wiki/views.py
apps/wiki_img/templates/wiki_img/document_details_base.html
apps/wiki_img/templates/wiki_img/tabs/history_view.html
apps/wiki_img/urls.py
apps/wiki_img/views.py
lib/librarian
manage.py [new file with mode: 0755]
npm-shrinkwrap.json [new file with mode: 0644]
package.json [new file with mode: 0644]
redakcja/localsettings.sample
redakcja/manage.py [deleted file]
redakcja/settings/__init__.py
redakcja/settings/common.py
redakcja/settings/compress.py
redakcja/settings/integration_test.py [new file with mode: 0644]
redakcja/settings/test.py
redakcja/static/contextmenu/images/cut.png [new file with mode: 0755]
redakcja/static/contextmenu/images/door.png [new file with mode: 0755]
redakcja/static/contextmenu/images/page_white_copy.png [new file with mode: 0755]
redakcja/static/contextmenu/images/page_white_delete.png [new file with mode: 0755]
redakcja/static/contextmenu/images/page_white_edit.png [new file with mode: 0755]
redakcja/static/contextmenu/images/page_white_paste.png [new file with mode: 0755]
redakcja/static/contextmenu/index.html [new file with mode: 0644]
redakcja/static/contextmenu/jquery.contextMenu.css [new file with mode: 0755]
redakcja/static/contextmenu/jquery.contextMenu.js [new file with mode: 0755]
redakcja/static/contextmenu/jquery.ui.position.js [new file with mode: 0755]
redakcja/static/contextmenu2/images/cut.png [new file with mode: 0644]
redakcja/static/contextmenu2/images/door.png [new file with mode: 0644]
redakcja/static/contextmenu2/images/page_white_copy.png [new file with mode: 0644]
redakcja/static/contextmenu2/images/page_white_delete.png [new file with mode: 0644]
redakcja/static/contextmenu2/images/page_white_edit.png [new file with mode: 0644]
redakcja/static/contextmenu2/images/page_white_paste.png [new file with mode: 0644]
redakcja/static/contextmenu2/index.html [new file with mode: 0644]
redakcja/static/contextmenu2/jquery.contextMenu.css [new file with mode: 0644]
redakcja/static/contextmenu2/jquery.contextMenu.js [new file with mode: 0644]
redakcja/static/css/book.css [new file with mode: 0644]
redakcja/static/css/book_list.css [new file with mode: 0644]
redakcja/static/css/filelist.css
redakcja/static/css/gallery.css
redakcja/static/css/history.css
redakcja/static/css/jquery.autocomplete.css
redakcja/static/css/master.css
redakcja/static/css/summary.css
redakcja/static/filebrowser/css/filebrowser.css [deleted file]
redakcja/static/filebrowser/img/filebrowser_icon_delete.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_icon_delete_hover.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_icon_imagegenerator.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_icon_makethumb.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_icon_makethumb_hover.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_icon_rename.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_icon_rename_hover.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_icon_select.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_icon_select_disabled.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_icon_select_hover.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_icon_show.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_icon_show_hover.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_icon_showversions.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_icon_showversions_hover.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_type_.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_type_code.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_type_document.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_type_folder.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_type_image.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_type_sound.gif [deleted file]
redakcja/static/filebrowser/img/filebrowser_type_video.gif [deleted file]
redakcja/static/filebrowser/img/tableheader_arrow_down.gif [deleted file]
redakcja/static/filebrowser/img/tableheader_arrow_up.gif [deleted file]
redakcja/static/filebrowser/img/tableheader_arrows.gif [deleted file]
redakcja/static/filebrowser/js/AddFileBrowser.js [deleted file]
redakcja/static/filebrowser/js/FB_CKEditor.js [deleted file]
redakcja/static/filebrowser/js/FB_FileBrowseField.js [deleted file]
redakcja/static/filebrowser/js/FB_TinyMCE.js [deleted file]
redakcja/static/filebrowser/js/TinyMCEAdmin.js [deleted file]
redakcja/static/filebrowser/js/jquery-1.3.2.min.js [deleted file]
redakcja/static/filebrowser/uploadify/Uploadify v2.1.0 Manual.pdf [deleted file]
redakcja/static/filebrowser/uploadify/cancel.png [deleted file]
redakcja/static/filebrowser/uploadify/check.php [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/air/logging/FileTarget.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/crypto/HMAC.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/crypto/MD5.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/crypto/MD5Stream.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/crypto/SHA1.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/crypto/SHA224.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/crypto/SHA256.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/crypto/WSSEUsernameToken.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/errors/IllegalStateError.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Address.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Email.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Phone.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/fileformats/vcard/VCard.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/fileformats/vcard/VCardParser.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/images/BitString.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/images/JPGEncoder.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/images/PNGEncoder.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/net/DynamicURLLoader.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/net/IURIResolver.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/net/MimeTypeMap.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/net/URI.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/net/URIEncodingBitmap.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/net/proxies/RFC2817Socket.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/Database.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/Definition.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/Dict.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/DictionaryServer.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/MatchStrategy.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/Response.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/ConnectedEvent.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DatabaseEvent.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionEvent.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DictionaryServerEvent.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DisconnectedEvent.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/ErrorEvent.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchEvent.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchStrategiesEvent.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/NoMatchEvent.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/util/CompleteResponseEvent.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/util/SocketHelper.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSON.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONDecoder.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONEncoder.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONParseError.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONToken.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenType.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenizer.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/utils/ArrayUtil.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/utils/DateUtil.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/utils/DictionaryUtil.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/utils/IntUtil.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/utils/NumberFormatter.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/utils/StringUtil.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/utils/XMLUtil.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/webapis/ServiceBase.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/webapis/URLLoaderBase.as [deleted file]
redakcja/static/filebrowser/uploadify/com/adobe/webapis/events/ServiceEvent.as [deleted file]
redakcja/static/filebrowser/uploadify/example/_notes/dwsync.xml [deleted file]
redakcja/static/filebrowser/uploadify/example/cancel.png [deleted file]
redakcja/static/filebrowser/uploadify/example/css/_notes/dwsync.xml [deleted file]
redakcja/static/filebrowser/uploadify/example/css/default.css [deleted file]
redakcja/static/filebrowser/uploadify/example/css/uploadify.css [deleted file]
redakcja/static/filebrowser/uploadify/example/index.php [deleted file]
redakcja/static/filebrowser/uploadify/example/scripts/_notes/dwsync.xml [deleted file]
redakcja/static/filebrowser/uploadify/example/scripts/check.php [deleted file]
redakcja/static/filebrowser/uploadify/example/scripts/expressInstall.swf [deleted file]
redakcja/static/filebrowser/uploadify/example/scripts/jquery-1.3.2.min.js [deleted file]
redakcja/static/filebrowser/uploadify/example/scripts/jquery.uploadify.v2.1.0.min.js [deleted file]
redakcja/static/filebrowser/uploadify/example/scripts/swfobject.js [deleted file]
redakcja/static/filebrowser/uploadify/example/scripts/uploadify.php [deleted file]
redakcja/static/filebrowser/uploadify/example/scripts/uploadify.swf [deleted file]
redakcja/static/filebrowser/uploadify/expressInstall.swf [deleted file]
redakcja/static/filebrowser/uploadify/jquery-1.3.2.min.js [deleted file]
redakcja/static/filebrowser/uploadify/jquery.uploadify.v2.1.0.js [deleted file]
redakcja/static/filebrowser/uploadify/jquery.uploadify.v2.1.0.min.js [deleted file]
redakcja/static/filebrowser/uploadify/swfobject.js [deleted file]
redakcja/static/filebrowser/uploadify/uploadify.allglyphs.swf [deleted file]
redakcja/static/filebrowser/uploadify/uploadify.css [deleted file]
redakcja/static/filebrowser/uploadify/uploadify.fla [deleted file]
redakcja/static/filebrowser/uploadify/uploadify.php [deleted file]
redakcja/static/filebrowser/uploadify/uploadify.swf [deleted file]
redakcja/static/icons/clock.png [new file with mode: 0644]
redakcja/static/icons/ok.png [new file with mode: 0644]
redakcja/static/icons/revert.png [new file with mode: 0644]
redakcja/static/icons/revert_.png [new file with mode: 0755]
redakcja/static/icons/stop.png [new file with mode: 0644]
redakcja/static/icons/user.png [new file with mode: 0644]
redakcja/static/img/arrow-down.png [new file with mode: 0644]
redakcja/static/img/arrow-up.png [new file with mode: 0644]
redakcja/static/img/logo-220.png [new file with mode: 0644]
redakcja/static/img/sample_cover.png
redakcja/static/js/book_text/book.js [new file with mode: 0644]
redakcja/static/js/book_text/jquery.eventdelegation.js [new file with mode: 0644]
redakcja/static/js/book_text/jquery.highlightfade.js [new file with mode: 0644]
redakcja/static/js/book_text/jquery.scrollto.js [new file with mode: 0644]
redakcja/static/js/catalogue/book_list.js [new file with mode: 0644]
redakcja/static/js/lib/jquery-1.4.2.min.js [deleted file]
redakcja/static/js/lib/jquery-1.7.2.min.js [new file with mode: 0644]
redakcja/static/js/lib/jquery/jquery.autocomplete.js
redakcja/static/js/lib/jquery/jquery.imgareaselect.js
redakcja/static/js/wiki/base.js
redakcja/static/js/wiki/loader.js
redakcja/static/js/wiki/view_annotations.js
redakcja/static/js/wiki/view_editor_wysiwyg.js
redakcja/static/js/wiki/view_gallery.js
redakcja/static/js/wiki/view_search.js
redakcja/static/js/wiki/view_summary.js
redakcja/static/js/wiki/wikiapi.js
redakcja/static/xsl/wl2html_client.xsl
redakcja/templates/404.html
redakcja/templates/admin/index.html [deleted file]
redakcja/templates/registration/head_login.html
redakcja/templates/registration/login.html
redakcja/urls.py
redakcja/wsgi.py [new file with mode: 0755]
requirements-test.txt
requirements.txt
scripts/fix_pd.py [new file with mode: 0755]
tests/__init__.py [new file with mode: 0644]
tests/integration/__init__.py [new file with mode: 0644]
tests/integration/base.py [new file with mode: 0644]
tests/integration/smoke_test.py [new file with mode: 0644]

index 0d55584..318e02d 100644 (file)
@@ -3,6 +3,9 @@ dev.sqlite
 requirements.pybundle
 *~
 *.orig
+/redakcja/media
+/static
+.sass-cache
 
 # Python garbage
 *.pyc
@@ -26,5 +29,8 @@ nbproject/*
 .project
 .pydevproject
 .settings
-platforma/static/compressed
-platforma/static/compressed/*
+
+node_modules
+
+/static_test
+chromedriver.log
\ No newline at end of file
index 56b9c42..004f6f3 100644 (file)
@@ -1,3 +1,3 @@
 [submodule "lib/librarian"]
        path = lib/librarian
-       url = git://github.com/fnp/librarian.git
+       url = git://git.nowoczesnapolska.org.pl/librarian.git
index 47fad0c..93ffb1c 100644 (file)
--- a/README.md
+++ b/README.md
@@ -38,3 +38,14 @@ Wdrożenie
 
        fab production deploy
 
+Testy
+====
+
+    $ pip install -r requirements-test.txt
+    $ python redakcja/manage.py test --settings=settings.test
+
+JavaScript (wymagany node.js i xsltproc):
+
+    $ npm install
+    $ ./node_modules/.bin/mocha -u tdd $(find -name *_test.js)
+    
\ No newline at end of file
index 5fbf18e..f1eb34a 100755 (executable)
@@ -5,7 +5,7 @@ WL_CONSUMER_KEY = getattr(settings, 'APICLIENT_WL_CONSUMER_KEY', None)
 WL_CONSUMER_SECRET = getattr(settings, 'APICLIENT_WL_CONSUMER_SECRET', None)
 
 WL_API_URL = getattr(settings, 'APICLIENT_WL_API_URL', 
-        'http://www.wolnelektury.pl/api/')
+        'http://wolnelektury.pl/api/')
 
 WL_REQUEST_TOKEN_URL = getattr(settings, 'APICLIENT_WL_REQUEST_TOKEN_URL', 
         WL_API_URL + 'oauth/request_token/')
index 87d9997..55cc466 100755 (executable)
@@ -1,4 +1,4 @@
-from django.conf.urls.defaults import *
+from django.conf.urls import patterns, url
 
 urlpatterns = patterns('apiclient.views',
     url(r'^oauth/$', 'oauth', name='apiclient_oauth'),
index 8ba803e..53e8a25 100644 (file)
@@ -3,10 +3,13 @@ from django.contrib import admin
 from catalogue import models
 
 class BookAdmin(admin.ModelAdmin):
+    list_display = ['title', 'public', '_published', '_new_publishable', 'project']
+    list_filter = ['public', '_published', '_new_publishable', 'project']
     prepopulated_fields = {'slug': ['title']}
     search_fields = ['title']
 
 
+admin.site.register(models.Project)
 admin.site.register(models.Book, BookAdmin)
 admin.site.register(models.Chunk)
 admin.site.register(models.Chunk.tag_model)
index d75d6b4..0c84232 100644 (file)
@@ -1,5 +1,8 @@
 # -*- coding: utf-8 -*-
-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
 TRIM_BEGIN = " TRIM_BEGIN "
 TRIM_END = " TRIM_END "
 
index 1fcf8d3..d9c9922 100644 (file)
@@ -13,7 +13,8 @@ class RedakcjaDocProvider(DocProvider):
 
     def by_slug(self, slug):
         return StringIO(Book.objects.get(dc_slug=slug
-                    ).materialize(publishable=self.publishable))
+                    ).materialize(publishable=self.publishable
+                    ).encode('utf-8'))
 
 
 def serve_file(file_path, name, mime_type):
diff --git a/apps/catalogue/feeds.py b/apps/catalogue/feeds.py
new file mode 100644 (file)
index 0000000..4884a4c
--- /dev/null
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+from django.contrib.syndication.views import Feed
+from django.shortcuts import get_object_or_404
+from catalogue.models import Book, Chunk
+
+class PublishTrackFeed(Feed):
+    title = u"Planowane publikacje"
+    link = "/"
+
+    def description(self, obj):
+        tag, published = obj
+        return u"Publikacje, które dotarły co najmniej do etapu: %s" % tag.name
+
+    def get_object(self, request, slug):
+        published = request.GET.get('published')
+        if published is not None:
+            published = published == 'true'
+        return get_object_or_404(Chunk.tag_model, slug=slug), published
+
+    def item_title(self, item):
+        return item.title
+
+    def items(self, obj):
+        tag, published = obj
+        books = Book.objects.filter(public=True, _on_track__gte=tag.ordering
+                ).order_by('-_on_track', 'title')
+        if published is not None:
+            books = books.filter(_published=published)
+        return books
index 26d14aa..83b1652 100644 (file)
@@ -20,7 +20,7 @@ class DocumentCreateForm(forms.ModelForm):
 
     class Meta:
         model = Book
-        exclude = ['parent', 'parent_number']
+        exclude = ['parent', 'parent_number', 'project']
 
     def __init__(self, *args, **kwargs):
         super(DocumentCreateForm, self).__init__(*args, **kwargs)
@@ -72,7 +72,7 @@ class ChunkForm(forms.ModelForm):
     """
     user = forms.ModelChoiceField(queryset=
         User.objects.annotate(count=Count('chunk')).
-        order_by('-count', 'last_name', 'first_name'), required=False,
+        order_by('last_name', 'first_name'), required=False,
         label=_('Assigned to')) 
 
     class Meta:
@@ -130,6 +130,7 @@ class BookForm(forms.ModelForm):
 
     class Meta:
         model = Book
+        exclude = ['project']
 
     def __init__(self, *args, **kwargs):
         ret = super(BookForm, self).__init__(*args, **kwargs)
index df64ade..d340b46 100644 (file)
@@ -1,5 +1,11 @@
 from datetime import date
 from functools import wraps
+from os.path import join
+from os import listdir, stat
+from shutil import move, rmtree
+from django.conf import settings
+import re
+import filecmp
 
 from django.db.models import Count
 
@@ -36,3 +42,107 @@ def parse_isodate(isodate):
         return date(*[int(p) for p in isodate.split('-')])
     except (AttributeError, TypeError, ValueError):
         raise ValueError("Not a date in ISO format.")
+
+
+class GalleryMerger(object):
+    def __init__(self, dest_gallery, src_gallery):
+        self.dest = dest_gallery
+        self.src = src_gallery
+        self.dest_size = None
+        self.src_size = None
+        self.num_deleted = 0
+
+    @staticmethod
+    def path(gallery):
+        return join(settings.MEDIA_ROOT, settings.IMAGE_DIR, gallery)
+
+    @staticmethod
+    def get_prefix(name):
+        m = re.match(r"^([0-9])-", name)
+        if m:
+            return int(m.groups()[0])
+        return None
+
+    @staticmethod
+    def set_prefix(name, prefix, always=False):
+        m = not always and re.match(r"^([0-9])-", name)
+        return "%1d-%s" % (prefix, m and name[2:] or name)
+
+    @property
+    def was_merged(self):
+        "Check if we have gallery size recorded"
+        return self.dest_size is not None
+
+    def merge(self):
+        if not self.dest:
+            return self.src
+        if not self.src:
+            return self.dest
+
+        files = listdir(self.path(self.dest))
+        files.sort()
+        self.dest_size = len(files)
+        files_other = listdir(self.path(self.src))
+        files_other.sort()
+        self.src_size = len(files_other)
+
+        if files and files_other:
+            print "compare %s with %s" % (files[-1], files_other[0])
+            if filecmp.cmp(
+                    join(self.path(self.dest), files[-1]),
+                    join(self.path(self.src), files_other[0]),
+                    False
+                    ):
+                files_other.pop(0)
+                self.num_deleted = 1
+
+        prefixes = {}
+        renamed_files = {}
+        renamed_files_other = {}
+        last_pfx = -1
+
+        # check if all elements of my files have a prefix
+        files_prefixed = True
+        for f in files:
+            p = self.get_prefix(f)
+            if p:
+                if p > last_pfx: last_pfx = p
+            else:
+                files_prefixed = False
+                break
+
+        # if not, add a 0 prefix to them
+        if not files_prefixed:
+            prefixes[0] = 0
+            for f in files:
+                renamed_files[f] = self.set_prefix(f, 0, True)
+
+        # two cases here - either all are prefixed or not.
+        files_other_prefixed = True
+        for f in files_other:
+            pfx = self.get_prefix(f)
+            if pfx is not None:
+                if not pfx in prefixes:
+                    last_pfx += 1
+                    prefixes[pfx] = last_pfx
+                renamed_files_other[f] = self.set_prefix(f, prefixes[pfx])
+            else:
+                # ops, not all files here were prefixed.
+                files_other_prefixed = False
+                break
+
+        # just set a 1- prefix to all of them
+        if not files_other_prefixed:
+            for f in files_other:
+                renamed_files_other[f] = self.set_prefix(f, 1, True)
+
+        # finally, move / rename files.
+        for frm, to in renamed_files.items():
+            move(join(self.path(self.dest), frm),
+                        join(self.path(self.dest), to))
+        for frm, to in renamed_files_other.items():
+            move(join(self.path(self.src), frm),
+                        join(self.path(self.dest), to))            
+
+        rmtree(join(self.path(self.src)))
+        return self.dest
index d933b5a..64f78b4 100644 (file)
Binary files a/apps/catalogue/locale/pl/LC_MESSAGES/django.mo and b/apps/catalogue/locale/pl/LC_MESSAGES/django.mo differ
index 99241c4..d98440f 100644 (file)
@@ -7,15 +7,18 @@ msgid ""
 msgstr ""
 "Project-Id-Version: Platforma Redakcyjna\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-12-21 12:44+0100\n"
-"PO-Revision-Date: 2011-12-21 12:45+0100\n"
+"POT-Creation-Date: 2014-03-26 16:13+0100\n"
+"PO-Revision-Date: 2014-03-26 16:14+0100\n"
 "Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
-"Language-Team: Fundacja Nowoczesna Polska <fundacja@nowoczesnapolska.org.pl>\n"
+"Language-Team: Fundacja Nowoczesna Polska <fundacja@nowoczesnapolska.org."
+"pl>\n"
 "Language: pl\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
+"|| n%100>=20) ? 1 : 2);\n"
+"X-Generator: Poedit 1.5.4\n"
 
 #: forms.py:39
 msgid "Text file must be UTF-8 encoded."
@@ -33,13 +36,11 @@ msgstr "Plik ZIP"
 msgid "Directories are documents in chunks"
 msgstr "Katalogi zawierają dokumenty w częściach"
 
-#: forms.py:76
-#: forms.py:164
+#: forms.py:76 forms.py:165
 msgid "Assigned to"
 msgstr "Przypisane do"
 
-#: forms.py:97
-#: forms.py:111
+#: forms.py:97 forms.py:111
 msgid "Chunk with this slug already exists"
 msgstr "Część z tym slugiem już istnieje"
 
@@ -47,83 +48,76 @@ msgstr "Część z tym slugiem już istnieje"
 msgid "Append to"
 msgstr "Dołącz do"
 
-#: views.py:165
+#: views.py:166
 #, python-format
 msgid "Slug already used for %s"
 msgstr "Slug taki sam jak dla pliku %s"
 
-#: views.py:167
+#: views.py:168
 msgid "Slug already used in repository."
 msgstr "Dokument o tym slugu już istnieje w repozytorium."
 
-#: views.py:173
+#: views.py:174
 msgid "File should be UTF-8 encoded."
 msgstr "Plik powinien mieć kodowanie UTF-8."
 
-#: models/book.py:21
-#: models/chunk.py:23
-#: models/image.py:21
+#: views.py:552 models/book.py:56
+msgid "books"
+msgstr "książki"
+
+#: views.py:554
+msgid "scan gallery"
+msgstr "galeria skanów"
+
+#: models/book.py:28 models/chunk.py:23 models/image.py:21
 msgid "title"
 msgstr "tytuł"
 
-#: models/book.py:22
-#: models/chunk.py:24
-#: models/image.py:22
+#: models/book.py:29 models/chunk.py:24 models/image.py:22
 msgid "slug"
 msgstr "slug"
 
-#: models/book.py:23
-#: models/image.py:23
+#: models/book.py:30 models/image.py:23
 msgid "public"
 msgstr "publiczna"
 
-#: models/book.py:24
+#: models/book.py:31
 msgid "scan gallery name"
 msgstr "nazwa galerii skanów"
 
-#: models/book.py:27
+#: models/book.py:35
 msgid "parent"
 msgstr "rodzic"
 
-#: models/book.py:28
+#: models/book.py:36
 msgid "parent number"
 msgstr "numeracja rodzica"
 
-#: models/book.py:44
-#: models/chunk.py:21
-#: models/publish_log.py:17
+#: models/book.py:55 models/chunk.py:21 models/publish_log.py:17
 msgid "book"
 msgstr "książka"
 
-#: models/book.py:45
-msgid "books"
-msgstr "książki"
-
-#: models/book.py:220
+#: models/book.py:255
 msgid "No chunks in the book."
 msgstr "Książka nie ma części."
 
-#: models/book.py:224
+#: models/book.py:259
 msgid "Not all chunks have publishable revisions."
 msgstr "Niektóre części nie są gotowe do publikacji."
 
-#: models/book.py:233
-#: models/image.py:80
+#: models/book.py:266 models/image.py:80
 msgid "Invalid XML"
 msgstr "Nieprawidłowy XML"
 
-#: models/book.py:235
-#: models/image.py:82
+#: models/book.py:268 models/image.py:82
 msgid "No Dublin Core found."
 msgstr "Brak sekcji Dublin Core."
 
-#: models/book.py:237
-#: models/image.py:84
+#: models/book.py:270 models/image.py:84
 msgid "Invalid Dublin Core"
 msgstr "Nieprawidłowy Dublin Core"
 
-#: models/book.py:240
-#: models/image.py:88
+#: models/book.py:273 models/image.py:88
 msgid "rdf:about is not"
 msgstr "rdf:about jest różny od"
 
@@ -143,9 +137,7 @@ msgstr "część"
 msgid "chunks"
 msgstr "części"
 
-#: models/image.py:20
-#: models/image.py:34
-#: models/publish_log.py:45
+#: models/image.py:20 models/image.py:34 models/publish_log.py:45
 msgid "image"
 msgstr "obraz"
 
@@ -157,19 +149,32 @@ msgstr "obrazy"
 msgid "There is no publishable revision"
 msgstr "Żadna wersja nie została oznaczona do publikacji."
 
-#: models/publish_log.py:18
-#: models/publish_log.py:46
+#: models/project.py:13
+msgid "name"
+msgstr "nazwa"
+
+#: models/project.py:14
+msgid "notes"
+msgstr "notatki"
+
+#: models/project.py:19 templates/catalogue/book_list/book_list.html:64
+msgid "project"
+msgstr "projekt"
+
+#: models/project.py:20
+msgid "projects"
+msgstr "projekty"
+
+#: models/publish_log.py:18 models/publish_log.py:46
 msgid "time"
 msgstr "czas"
 
-#: models/publish_log.py:19
-#: models/publish_log.py:47
-#: templates/catalogue/wall.html:18
+#: models/publish_log.py:19 models/publish_log.py:47
+#: templates/catalogue/wall.html:19
 msgid "user"
 msgstr "użytkownik"
 
-#: models/publish_log.py:24
-#: models/publish_log.py:33
+#: models/publish_log.py:24 models/publish_log.py:33
 msgid "book publish record"
 msgstr "zapis publikacji książki"
 
@@ -177,8 +182,7 @@ msgstr "zapis publikacji książki"
 msgid "book publish records"
 msgstr "zapisy publikacji książek"
 
-#: models/publish_log.py:34
-#: models/publish_log.py:48
+#: models/publish_log.py:34 models/publish_log.py:48
 msgid "change"
 msgstr "zmiana"
 
@@ -198,7 +202,7 @@ msgstr "zapis publikacji obrazu"
 msgid "image publish records"
 msgstr "zapisy publikacji obrazów"
 
-#: templates/catalogue/activity.html:10
+#: templates/catalogue/activity.html:6 templates/catalogue/activity.html:12
 #: templatetags/catalogue.py:29
 msgid "Activity"
 msgstr "Aktywność"
@@ -207,81 +211,89 @@ msgstr "Aktywność"
 msgid "Platforma Redakcyjna"
 msgstr "Platforma Redakcyjna"
 
-#: templates/catalogue/book_append_to.html:9
+#: templates/catalogue/book_append_to.html:4
+#: templates/catalogue/book_append_to.html:11
 msgid "Append book"
 msgstr "Dołącz książkę"
 
-#: templates/catalogue/book_detail.html:14
-#: templates/catalogue/book_edit.html:9
-#: templates/catalogue/chunk_edit.html:13
-#: templates/catalogue/image_detail.html:14
+#: templates/catalogue/book_detail.html:18
+#: templates/catalogue/book_edit.html:13
+#: templates/catalogue/chunk_edit.html:16
+#: templates/catalogue/image_detail.html:18
 msgid "Save"
 msgstr "Zapisz"
 
-#: templates/catalogue/book_detail.html:21
+#: templates/catalogue/book_detail.html:25
+msgid "Edit gallery"
+msgstr "Edytuj galerię"
+
+#: templates/catalogue/book_detail.html:28
 msgid "Append to other book"
 msgstr "Dołącz do innej książki"
 
-#: templates/catalogue/book_detail.html:27
+#: templates/catalogue/book_detail.html:34
 msgid "Chunks"
 msgstr "Części"
 
-#: templates/catalogue/book_detail.html:42
-#: templates/catalogue/image_detail.html:32
-#: templatetags/wall.py:78
+#: templates/catalogue/book_detail.html:49
+#: templates/catalogue/image_detail.html:36 templatetags/wall.py:78
 msgid "Publication"
 msgstr "Publikacja"
 
-#: templates/catalogue/book_detail.html:44
-#: templates/catalogue/image_detail.html:34
+#: templates/catalogue/book_detail.html:58
+#: templates/catalogue/image_detail.html:38
 msgid "Last published"
 msgstr "Ostatnio opublikowano"
 
-#: templates/catalogue/book_detail.html:54
+#: templates/catalogue/book_detail.html:68
 msgid "Full XML"
 msgstr "Pełny XML"
 
-#: templates/catalogue/book_detail.html:55
+#: templates/catalogue/book_detail.html:69
 msgid "HTML version"
 msgstr "Wersja HTML"
 
-#: templates/catalogue/book_detail.html:56
+#: templates/catalogue/book_detail.html:70
 msgid "TXT version"
 msgstr "Wersja TXT"
 
-#: templates/catalogue/book_detail.html:57
+#: templates/catalogue/book_detail.html:71
 msgid "PDF version"
 msgstr "Wersja PDF"
 
-#: templates/catalogue/book_detail.html:58
+#: templates/catalogue/book_detail.html:72
 msgid "EPUB version"
 msgstr "Wersja EPUB"
 
-#: templates/catalogue/book_detail.html:71
-#: templates/catalogue/image_detail.html:53
+#: templates/catalogue/book_detail.html:85
+#: templates/catalogue/image_detail.html:57
 msgid "Publish"
 msgstr "Opublikuj"
 
-#: templates/catalogue/book_detail.html:75
-#: templates/catalogue/image_detail.html:57
+#: templates/catalogue/book_detail.html:89
+#: templates/catalogue/image_detail.html:61
 msgid "Log in to publish."
 msgstr "Zaloguj się, aby opublikować."
 
-#: templates/catalogue/book_detail.html:78
-#: templates/catalogue/image_detail.html:60
+#: templates/catalogue/book_detail.html:92
+#: templates/catalogue/image_detail.html:64
 msgid "This book can't be published yet, because:"
 msgstr "Ta książka nie może jeszcze zostać opublikowana. Powód:"
 
-#: templates/catalogue/book_detail.html:87
-#: templates/catalogue/image_detail.html:68
+#: templates/catalogue/book_detail.html:102
+#: templates/catalogue/image_detail.html:72
 msgid "Comments"
 msgstr "Komentarze"
 
-#: templates/catalogue/book_html.html:13
+#: templates/catalogue/book_edit.html:5
+msgid "Edit book"
+msgstr "Edytuj książkę"
+
+#: templates/catalogue/book_html.html:13 templates/catalogue/book_text.html:15
 msgid "Table of contents"
 msgstr "Spis treści"
 
-#: templates/catalogue/book_html.html:14
+#: templates/catalogue/book_html.html:14 templates/catalogue/book_text.html:17
 msgid "Edit. note"
 msgstr "Nota red."
 
@@ -289,115 +301,137 @@ msgstr "Nota red."
 msgid "Infobox"
 msgstr "Informacje"
 
-#: templates/catalogue/chunk_add.html:5
-#: templates/catalogue/chunk_edit.html:19
+#: templates/catalogue/book_text.html:7
+msgid "Redakcja"
+msgstr ""
+
+#: templates/catalogue/chunk_add.html:5 templates/catalogue/chunk_add.html:9
+#: templates/catalogue/chunk_edit.html:22
 msgid "Split chunk"
 msgstr "Podziel część"
 
-#: templates/catalogue/chunk_add.html:10
+#: templates/catalogue/chunk_add.html:14
 msgid "Insert empty chunk after"
 msgstr "Wstaw pustą część po"
 
-#: templates/catalogue/chunk_add.html:13
+#: templates/catalogue/chunk_add.html:17
 msgid "Add chunk"
 msgstr "Dodaj część"
 
-#: templates/catalogue/chunk_edit.html:6
-#: templates/catalogue/book_list/book.html:7
-#: templates/catalogue/book_list/chunk.html:5
+#: templates/catalogue/chunk_edit.html:5 templates/catalogue/chunk_edit.html:9
+#: templates/catalogue/book_list/book.html:8
+#: templates/catalogue/book_list/chunk.html:6
 msgid "Chunk settings"
 msgstr "Ustawienia części"
 
-#: templates/catalogue/chunk_edit.html:11
+#: templates/catalogue/chunk_edit.html:14
 msgid "Book"
 msgstr "Książka"
 
 #: templates/catalogue/document_create_missing.html:5
+#: templates/catalogue/document_create_missing.html:9
 msgid "Create a new book"
 msgstr "Utwórz nową książkę"
 
-#: templates/catalogue/document_create_missing.html:11
+#: templates/catalogue/document_create_missing.html:15
 msgid "Create book"
 msgstr "Utwórz książkę"
 
-#: templates/catalogue/document_upload.html:8
-msgid "Bulk documents upload"
+#: templates/catalogue/document_list.html:7
+msgid "Book list"
+msgstr "Lista książek"
+
+#: templates/catalogue/document_upload.html:5
+msgid "Bulk document upload"
 msgstr "Hurtowe dodawanie dokumentów"
 
 #: templates/catalogue/document_upload.html:11
-msgid "Please submit a ZIP with UTF-8 encoded XML files. Files not ending with <code>.xml</code> will be ignored."
-msgstr "Proszę wskazać archiwum ZIP z plikami XML w kodowaniu UTF-8. Pliki nie kończące się na <code>.xml</code> zostaną zignorowane."
+msgid "Bulk documents upload"
+msgstr "Hurtowe dodawanie dokumentów"
+
+#: templates/catalogue/document_upload.html:14
+msgid ""
+"Please submit a ZIP with UTF-8 encoded XML files. Files not ending with "
+"<code>.xml</code> will be ignored."
+msgstr ""
+"Proszę wskazać archiwum ZIP z plikami XML w kodowaniu UTF-8. Pliki nie "
+"kończące się na <code>.xml</code> zostaną zignorowane."
 
-#: templates/catalogue/document_upload.html:17
-#: templates/catalogue/upload_pdf.html:13
-#: templatetags/catalogue.py:36
+#: templates/catalogue/document_upload.html:20
+#: templates/catalogue/upload_pdf.html:16 templatetags/catalogue.py:36
 msgid "Upload"
 msgstr "Załaduj"
 
-#: templates/catalogue/document_upload.html:24
-msgid "There have been some errors. No files have been added to the repository."
+#: templates/catalogue/document_upload.html:27
+msgid ""
+"There have been some errors. No files have been added to the repository."
 msgstr "Wystąpiły błędy. Żadne pliki nie zostały dodane do repozytorium."
 
-#: templates/catalogue/document_upload.html:25
+#: templates/catalogue/document_upload.html:28
 msgid "Offending files"
 msgstr "Błędne pliki"
 
-#: templates/catalogue/document_upload.html:33
+#: templates/catalogue/document_upload.html:36
 msgid "Correct files"
 msgstr "Poprawne pliki"
 
-#: templates/catalogue/document_upload.html:44
+#: templates/catalogue/document_upload.html:47
 msgid "Files have been successfully uploaded to the repository."
 msgstr "Pliki zostały dodane do repozytorium."
 
-#: templates/catalogue/document_upload.html:45
+#: templates/catalogue/document_upload.html:48
 msgid "Uploaded files"
 msgstr "Dodane pliki"
 
-#: templates/catalogue/document_upload.html:55
+#: templates/catalogue/document_upload.html:58
 msgid "Skipped files"
 msgstr "Pominięte pliki"
 
-#: templates/catalogue/document_upload.html:56
+#: templates/catalogue/document_upload.html:59
 msgid "Files skipped due to no <code>.xml</code> extension"
 msgstr "Pliki pominięte z powodu braku rozszerzenia <code>.xml</code>."
 
-#: templates/catalogue/image_detail.html:22
+#: templates/catalogue/image_detail.html:26
 msgid "Editor"
 msgstr "Edytor"
 
-#: templates/catalogue/image_detail.html:24
+#: templates/catalogue/image_detail.html:28
 msgid "Proceed to the editor."
 msgstr "Przejdź do edytora."
 
+#: templates/catalogue/image_list.html:7
+msgid "Image list"
+msgstr "Lista obrazów"
+
 #: templates/catalogue/image_short.html:4
 msgid "Image settings"
 msgstr "Ustawienia obrazu"
 
 #: templates/catalogue/image_table.html:19
-#: templates/catalogue/book_list/book_list.html:24
+#: templates/catalogue/book_list/book_list.html:27
 msgid "Search in book titles"
 msgstr "Szukaj w tytułach książek"
 
 #: templates/catalogue/image_table.html:24
-#: templates/catalogue/book_list/book_list.html:29
+#: templates/catalogue/book_list/book_list.html:32
 msgid "stage"
 msgstr "etap"
 
 #: templates/catalogue/image_table.html:26
 #: templates/catalogue/image_table.html:37
-#: templates/catalogue/book_list/book_list.html:31
-#: templates/catalogue/book_list/book_list.html:42
+#: templates/catalogue/book_list/book_list.html:34
+#: templates/catalogue/book_list/book_list.html:45
+#: templates/catalogue/book_list/book_list.html:66
 msgid "none"
 msgstr "brak"
 
 #: templates/catalogue/image_table.html:35
-#: templates/catalogue/book_list/book_list.html:40
+#: templates/catalogue/book_list/book_list.html:43
 msgid "editor"
 msgstr "redaktor"
 
 #: templates/catalogue/image_table.html:46
-#: templates/catalogue/book_list/book_list.html:51
+#: templates/catalogue/book_list/book_list.html:56
 msgid "status"
 msgstr "status"
 
@@ -413,42 +447,46 @@ msgstr[2] "%(c)s obrazów"
 msgid "No images found."
 msgstr "Nie znaleziono obrazów."
 
-#: templates/catalogue/my_page.html:13
+#: templates/catalogue/my_page.html:15 templatetags/catalogue.py:27
+msgid "My page"
+msgstr "Moja strona"
+
+#: templates/catalogue/my_page.html:24
 msgid "Your last edited documents"
 msgstr "Twoje ostatnie edycje"
 
-#: templates/catalogue/my_page.html:22
-#: templates/catalogue/user_page.html:13
+#: templates/catalogue/my_page.html:33 templates/catalogue/user_page.html:16
 msgid "Recent activity for"
 msgstr "Ostatnia aktywność dla:"
 
-#: templates/catalogue/upload_pdf.html:8
+#: templates/catalogue/upload_pdf.html:5
+#: templates/catalogue/upload_pdf.html:11
 msgid "PDF file upload"
-msgstr ""
+msgstr "Ładowanie pliku PDF"
 
-#: templates/catalogue/user_list.html:7
+#: templates/catalogue/user_list.html:6 templates/catalogue/user_list.html:11
 #: templatetags/catalogue.py:32
 msgid "Users"
 msgstr "Użytkownicy"
 
-#: templates/catalogue/wall.html:28
+#: templates/catalogue/wall.html:29
 msgid "not logged in"
 msgstr "nie zalogowany"
 
-#: templates/catalogue/wall.html:33
+#: templates/catalogue/wall.html:34
 msgid "No activity recorded."
 msgstr "Nie zanotowano aktywności."
 
-#: templates/catalogue/book_list/book.html:6
-#: templates/catalogue/book_list/book.html:25
+#: templates/catalogue/book_list/book.html:7
+#: templates/catalogue/book_list/book.html:28
 msgid "Book settings"
 msgstr "Ustawienia książki"
 
-#: templates/catalogue/book_list/book_list.html:19
+#: templates/catalogue/book_list/book_list.html:22
 msgid "Show hidden books"
 msgstr "Pokaż ukryte książki"
 
-#: templates/catalogue/book_list/book_list.html:75
+#: templates/catalogue/book_list/book_list.html:90
 #, python-format
 msgid "%(c)s book"
 msgid_plural "%(c)s books"
@@ -456,39 +494,54 @@ msgstr[0] "%(c)s książka"
 msgstr[1] "%(c)s książki"
 msgstr[2] "%(c)s książek"
 
-#: templates/catalogue/book_list/book_list.html:80
+#: templates/catalogue/book_list/book_list.html:95
 msgid "No books found."
 msgstr "Nie znaleziono książek."
 
-#: templatetags/book_list.py:84
-#: templatetags/book_list.py:145
+#: templates/catalogue/book_list/book_list.html:101
+msgid "Set stage"
+msgstr "Ustaw etap"
+
+#: templates/catalogue/book_list/book_list.html:102
+msgid "Set user"
+msgstr "Przypisz redaktora"
+
+#: templates/catalogue/book_list/book_list.html:104
+msgid "Project"
+msgstr "Projekt"
+
+#: templates/catalogue/book_list/book_list.html:105
+msgid "Mark publishable"
+msgstr "Oznacz do publikacji"
+
+#: templates/catalogue/book_list/book_list.html:106
+msgid "Mark not publishable"
+msgstr "Odznacz do publikacji"
+
+#: templates/catalogue/book_list/book_list.html:107
+msgid "Other user"
+msgstr "Inny użytkownik"
+
+#: templatetags/book_list.py:84 templatetags/book_list.py:152
 msgid "publishable"
 msgstr "do publikacji"
 
-#: templatetags/book_list.py:85
-#: templatetags/book_list.py:146
+#: templatetags/book_list.py:85 templatetags/book_list.py:153
 msgid "changed"
 msgstr "zmienione"
 
-#: templatetags/book_list.py:86
-#: templatetags/book_list.py:147
+#: templatetags/book_list.py:86 templatetags/book_list.py:154
 msgid "published"
 msgstr "opublikowane"
 
-#: templatetags/book_list.py:87
-#: templatetags/book_list.py:148
+#: templatetags/book_list.py:87 templatetags/book_list.py:155
 msgid "unpublished"
 msgstr "nie opublikowane"
 
-#: templatetags/book_list.py:88
-#: templatetags/book_list.py:149
+#: templatetags/book_list.py:88 templatetags/book_list.py:156
 msgid "empty"
 msgstr "puste"
 
-#: templatetags/catalogue.py:27
-msgid "My page"
-msgstr "Moja strona"
-
 #: templatetags/catalogue.py:30
 msgid "All"
 msgstr "Wszystkie"
@@ -501,6 +554,10 @@ msgstr "Obrazy"
 msgid "Add"
 msgstr "Dodaj"
 
+#: templatetags/catalogue.py:38
+msgid "Covers"
+msgstr "Okładki"
+
 #: templatetags/wall.py:49
 msgid "Related edit"
 msgstr "Powiązana zmiana"
@@ -570,9 +627,6 @@ msgstr "Komentarz"
 #~ msgid "Describe the reason for reverting."
 #~ msgstr "Opisz powód przywrócenia."
 
-#~ msgid "name"
-#~ msgstr "nazwa"
-
 #~ msgid "theme"
 #~ msgstr "motyw"
 
@@ -687,9 +741,6 @@ msgstr "Komentarz"
 #~ msgid "Last edited by"
 #~ msgstr "Ostatnio edytowane przez"
 
-#~ msgid "Link to gallery"
-#~ msgstr "Link do galerii"
-
 #~ msgid "Summary"
 #~ msgstr "Podsumowanie"
 
old mode 100755 (executable)
new mode 100644 (file)
index e69de29..f7731d7
@@ -0,0 +1,122 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+from collections import defaultdict
+from django.db import transaction
+from lxml import etree
+
+
+class XmlUpdater(object):
+    """A base class for massive XML updates.
+
+    In a subclass, override `fix_tree` and/or use `fixes_field` decorator.
+    Attributes:
+    * commit_desc: commits description
+    * retain_publishable: set publishable if head is (default: True)
+    * only_first_chunk: process only first chunks of books (default: False)
+    """
+    commit_desc = "auto-update"
+    retain_publishable = True
+    only_first_chunk = False
+
+    _element_fixers = defaultdict(list)
+
+    def __init__(self):
+        self.counters = defaultdict(lambda: 0)
+
+    @classmethod
+    def fixes_elements(cls, xpath):
+        """Decorator, registering a function as a fixer for given field type.
+
+        Any decorated function will be called like
+            f(element, change=..., verbose=...)
+        providing changeset as context.
+
+        :param xpath: element lookup, e.g. ".//{namespace-uri}tag-name"
+        :returns: True if anything changed
+        """
+        def wrapper(fixer):
+            cls._element_fixers[xpath].append(fixer)
+            return fixer
+        return wrapper
+
+    def fix_tree(self, tree, verbose):
+        """Override to provide general tree-fixing mechanism.
+
+        :param tree: the parsed XML tree
+        :param verbose: verbosity level
+        :returns: True if anythig changed
+        """
+        return False
+
+    def fix_chunk(self, chunk, user, verbose=0, dry_run=False):
+        """Runs the update for a single chunk."""
+        if verbose >= 2:
+            print chunk.get_absolute_url()
+        old_head = chunk.head
+        src = old_head.materialize()
+        try:
+            tree = etree.fromstring(src)
+        except:
+            if verbose:
+                print "%s: invalid XML" % chunk.get_absolute_url()
+            self.counters['Bad XML'] += 1
+            return
+
+        dirty = False
+        # Call the general fixing function.
+        if self.fix_tree(tree, verbose=verbose):
+            dirty = True
+        # Call the registered fixers.
+        for xpath, fixers in self._element_fixers.items():
+            for elem in tree.findall(xpath):
+                for fixer in fixers:
+                    if fixer(elem, change=old_head, verbose=verbose):
+                        dirty = True
+
+        if not dirty:
+            self.counters['Clean'] += 1
+            return
+
+        if not dry_run:
+            new_head = chunk.commit(
+                etree.tostring(tree, encoding=unicode),
+                author=user,
+                description=self.commit_desc
+            )
+            if self.retain_publishable:
+                if old_head.publishable:
+                    new_head.set_publishable(True)
+        if verbose >= 2:
+            print "done"
+        self.counters['Updated chunks'] += 1
+
+    def run(self, user, verbose=0, dry_run=False, books=None):
+        """Runs the actual update."""
+        if books is None:
+            from catalogue.models import Book
+            books = Book.objects.all()
+
+        # Start transaction management.
+        transaction.commit_unless_managed()
+        transaction.enter_transaction_management()
+        transaction.managed(True)
+
+        for book in books:
+            self.counters['All books'] += 1
+            chunks = book.chunk_set.all()
+            if self.only_first_chunk:
+                chunks = chunks[:1]
+            for chunk in chunks:
+                self.counters['All chunks'] += 1
+                self.fix_chunk(chunk, user, verbose, dry_run)
+
+        transaction.commit()
+        transaction.leave_transaction_management()
+
+    def print_results(self):
+        """Prints the counters."""
+        for item in sorted(self.counters.items()):
+            print "%s: %d" % item
old mode 100755 (executable)
new mode 100644 (file)
index e69de29..e6f146f
@@ -0,0 +1,43 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+import sys
+from optparse import make_option
+from django.contrib.auth.models import User
+from django.core.management.base import BaseCommand
+from catalogue.models import Book
+
+
+class XmlUpdaterCommand(BaseCommand):
+    """Base class for creating massive XML-updating commands.
+
+    In a subclass, provide an XmlUpdater class in the `updater' attribute.
+    """
+    option_list = BaseCommand.option_list + (
+        make_option('-q', '--quiet', action='store_false', dest='verbose',
+            default=True, help='Less output'),
+        make_option('-d', '--dry-run', action='store_true', dest='dry_run',
+            default=False, help="Don't actually touch anything"),
+        make_option('-u', '--username', dest='username', metavar='USER',
+            help='Assign commits to this user (required, preferably yourself).'),
+    )
+    args = "[slug]..."
+
+    def handle(self, *args, **options):
+        verbose = options.get('verbose')
+        dry_run = options.get('dry_run')
+        username = options.get('username')
+
+        if username:
+            user = User.objects.get(username=username)
+        else:
+            print 'Please provide a username.'
+            sys.exit(1)
+
+        books = Book.objects.filter(slug__in=args) if args else None
+
+        updater = self.updater()
+        updater.run(user, verbose=verbose, dry_run=dry_run, books=books)
+        updater.print_results()
diff --git a/apps/catalogue/management/commands/fix_rdf_about.py b/apps/catalogue/management/commands/fix_rdf_about.py
deleted file mode 100755 (executable)
index c252c20..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-# -*- coding: utf-8 -*-
-
-from optparse import make_option
-
-from django.contrib.auth.models import User
-from django.core.management.base import BaseCommand
-from django.db import transaction
-
-from catalogue.models import Book
-
-
-class Command(BaseCommand):
-    option_list = BaseCommand.option_list + (
-        make_option('-q', '--quiet', action='store_false', dest='verbose',
-            default=True, help='Less output'),
-        make_option('-d', '--dry-run', action='store_true', dest='dry_run',
-            default=False, help="Don't actually touch anything"),
-    )
-    help = 'Updates the rdf:about metadata field.'
-
-    def handle(self, *args, **options):
-        from lxml import etree
-
-        verbose = options.get('verbose')
-        dry_run = options.get('dry_run')
-
-        # Start transaction management.
-        transaction.commit_unless_managed()
-        transaction.enter_transaction_management()
-        transaction.managed(True)
-
-        all_books = 0
-        nonxml = 0
-        nordf = 0
-        already = 0
-        done = 0
-
-        for b in Book.objects.all():
-            all_books += 1
-            if verbose:
-                print "%s: " % b.title,
-            chunk = b[0]
-            old_head = chunk.head
-            src = old_head.materialize()
-
-            try:
-                t = etree.fromstring(src)
-            except:
-                nonxml += 1
-                if verbose:
-                    print "invalid XML"
-                continue
-            desc = t.find(".//{http://www.w3.org/1999/02/22-rdf-syntax-ns#}Description")
-            if desc is None:
-                nordf += 1
-                if verbose:
-                    print "no RDF found"
-                continue
-
-            correct_about = b.correct_about()
-            attr_name = "{http://www.w3.org/1999/02/22-rdf-syntax-ns#}about"
-            if desc.get(attr_name) == correct_about:
-                already += 1
-                if verbose:
-                    print "already correct"
-                continue
-            desc.set(attr_name, correct_about)
-            if not dry_run:
-                new_head = chunk.commit(etree.tostring(t, encoding=unicode),
-                    author_name='platforma redakcyjna',
-                    description='auto-update rdf:about'
-                    )
-                # retain the publishable status
-                if old_head.publishable:
-                    new_head.set_publishable(True)
-            if verbose:
-                print "done"
-            done += 1
-
-        # Print results
-        print "All books: ", all_books
-        print "Invalid XML: ", nonxml
-        print "No RDF found: ", nordf
-        print "Already correct: ", already
-        print "Books updated: ", done
-
-        transaction.commit()
-        transaction.leave_transaction_management()
-
diff --git a/apps/catalogue/management/commands/fixdc.py b/apps/catalogue/management/commands/fixdc.py
new file mode 100644 (file)
index 0000000..3f997d0
--- /dev/null
@@ -0,0 +1,54 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+from librarian import RDFNS, WLURI, ValidationError
+from librarian.dcparser import BookInfo
+from catalogue.management import XmlUpdater
+from catalogue.management.commands import XmlUpdaterCommand
+
+
+class FixDC(XmlUpdater):
+    commit_desc = "auto-fixing DC"
+    retain_publishable = True
+    only_first_chunk = True
+
+    def fix_wluri(elem, change, verbose):
+        try:
+            WLURI.strict(elem.text)
+        except ValidationError:
+            correct_field = unicode(WLURI.from_slug(
+                                WLURI(elem.text.strip()).slug))
+            try:
+                WLURI.strict(correct_field)
+            except ValidationError:
+                # Can't make a valid WLURI out of it, leave as is.
+                return False
+            if verbose:
+                print "Changing %s from %s to %s" % (
+                        elem.tag, elem.text, correct_field
+                    )
+            elem.text = correct_field
+            return True
+    for field in BookInfo.FIELDS:
+        if field.validator == WLURI:
+            XmlUpdater.fixes_elements('.//' + field.uri)(fix_wluri)
+
+    @XmlUpdater.fixes_elements(".//" + RDFNS("Description"))
+    def fix_rdfabout(elem, change, verbose):
+        correct_about = change.tree.book.correct_about()
+        attr_name = RDFNS("about")
+        current_about = elem.get(attr_name)
+        if current_about != correct_about:
+            if verbose:
+                print "Changing rdf:about from %s to %s" % (
+                        current_about, correct_about
+                    )
+            elem.set(attr_name, correct_about)
+            return True
+
+
+class Command(XmlUpdaterCommand):
+    updater = FixDC
+    help = 'Fixes obvious errors in DC: rdf:about and WLURI format.'
old mode 100755 (executable)
new mode 100644 (file)
index 1816af9..d836067 100644 (file)
@@ -7,7 +7,6 @@ import re
 import urllib
 
 from django.db import models
-from mercurial import hg, ui
 from south.db import db
 from south.v2 import DataMigration
 
@@ -160,6 +159,8 @@ class Migration(DataMigration):
         except:
             print 'repository not configured, skipping'
         else:
+            from mercurial import hg, ui
+
             print 'migrate from', hg_path
             repo = hg.repository(ui.ui(), hg_path)
             tip = repo['tip']
diff --git a/apps/catalogue/migrations/0009_auto__add_field_book__on_track.py b/apps/catalogue/migrations/0009_auto__add_field_book__on_track.py
new file mode 100644 (file)
index 0000000..f0509c4
--- /dev/null
@@ -0,0 +1,128 @@
+# encoding: utf-8
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        
+        # Adding field 'Book._on_track'
+        db.add_column('catalogue_book', '_on_track', self.gf('django.db.models.fields.IntegerField')(db_index=True, null=True, blank=True), keep_default=False)
+
+
+    def backwards(self, orm):
+        
+        # Deleting field 'Book._on_track'
+        db.delete_column('catalogue_book', '_on_track')
+
+
+    models = {
+        'auth.group': {
+            'Meta': {'object_name': 'Group'},
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
+            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
+        },
+        'auth.permission': {
+            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
+            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
+        },
+        'auth.user': {
+            'Meta': {'object_name': 'User'},
+            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
+            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
+            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
+        },
+        'catalogue.book': {
+            'Meta': {'ordering': "['title', 'slug']", 'object_name': 'Book'},
+            '_new_publishable': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_on_track': ('django.db.models.fields.IntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+            '_published': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_short_html': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+            '_single': ('django.db.models.fields.NullBooleanField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+            'dc_slug': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '128', 'null': 'True', 'blank': 'True'}),
+            'gallery': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
+            'parent_number': ('django.db.models.fields.IntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+            'public': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}),
+            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '128', 'db_index': 'True'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'})
+        },
+        'catalogue.bookpublishrecord': {
+            'Meta': {'ordering': "['-timestamp']", 'object_name': 'BookPublishRecord'},
+            'book': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'publish_log'", 'to': "orm['catalogue.Book']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
+        },
+        'catalogue.chunk': {
+            'Meta': {'ordering': "['number']", 'unique_together': "[['book', 'number'], ['book', 'slug']]", 'object_name': 'Chunk'},
+            '_changed': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_hidden': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_short_html': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+            'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']"}),
+            'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'created_chunk'", 'null': 'True', 'to': "orm['auth.User']"}),
+            'gallery_start': ('django.db.models.fields.IntegerField', [], {'default': '1', 'null': 'True', 'blank': 'True'}),
+            'head': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['catalogue.ChunkChange']", 'null': 'True', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'number': ('django.db.models.fields.IntegerField', [], {}),
+            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
+            'stage': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.ChunkTag']", 'null': 'True', 'blank': 'True'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
+            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
+        },
+        'catalogue.chunkchange': {
+            'Meta': {'ordering': "('created_at',)", 'unique_together': "(['tree', 'revision'],)", 'object_name': 'ChunkChange'},
+            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
+            'author_email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
+            'author_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
+            'created_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
+            'data': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
+            'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'merge_parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'merge_children'", 'null': 'True', 'blank': 'True', 'to': "orm['catalogue.ChunkChange']"}),
+            'parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'children'", 'null': 'True', 'blank': 'True', 'to': "orm['catalogue.ChunkChange']"}),
+            'publishable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'revision': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
+            'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'change_set'", 'symmetrical': 'False', 'to': "orm['catalogue.ChunkTag']"}),
+            'tree': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'change_set'", 'to': "orm['catalogue.Chunk']"})
+        },
+        'catalogue.chunkpublishrecord': {
+            'Meta': {'object_name': 'ChunkPublishRecord'},
+            'book_record': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.BookPublishRecord']"}),
+            'change': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'publish_log'", 'to': "orm['catalogue.ChunkChange']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
+        },
+        'catalogue.chunktag': {
+            'Meta': {'ordering': "['ordering']", 'object_name': 'ChunkTag'},
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
+            'ordering': ('django.db.models.fields.IntegerField', [], {}),
+            'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '64', 'unique': 'True', 'null': 'True', 'blank': 'True'})
+        },
+        'contenttypes.contenttype': {
+            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
+            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+        }
+    }
+
+    complete_apps = ['catalogue']
diff --git a/apps/catalogue/migrations/0009_auto__add_imagechange__add_unique_imagechange_tree_revision__add_image.py b/apps/catalogue/migrations/0009_auto__add_imagechange__add_unique_imagechange_tree_revision__add_image.py
deleted file mode 100644 (file)
index 4de5212..0000000
+++ /dev/null
@@ -1,251 +0,0 @@
-# encoding: utf-8
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-class Migration(SchemaMigration):
-
-    def forwards(self, orm):
-        
-        # Adding model 'ImageChange'
-        db.create_table('catalogue_imagechange', (
-            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
-            ('author', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, blank=True)),
-            ('author_name', self.gf('django.db.models.fields.CharField')(max_length=128, null=True, blank=True)),
-            ('author_email', self.gf('django.db.models.fields.CharField')(max_length=128, null=True, blank=True)),
-            ('revision', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
-            ('parent', self.gf('django.db.models.fields.related.ForeignKey')(default=None, related_name='children', null=True, blank=True, to=orm['catalogue.ImageChange'])),
-            ('merge_parent', self.gf('django.db.models.fields.related.ForeignKey')(default=None, related_name='merge_children', null=True, blank=True, to=orm['catalogue.ImageChange'])),
-            ('description', self.gf('django.db.models.fields.TextField')(default='', blank=True)),
-            ('created_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now, db_index=True)),
-            ('publishable', self.gf('django.db.models.fields.BooleanField')(default=False)),
-            ('tree', self.gf('django.db.models.fields.related.ForeignKey')(related_name='change_set', to=orm['catalogue.Image'])),
-            ('data', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
-        ))
-        db.send_create_signal('catalogue', ['ImageChange'])
-
-        # Adding M2M table for field tags on 'ImageChange'
-        db.create_table('catalogue_imagechange_tags', (
-            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
-            ('imagechange', models.ForeignKey(orm['catalogue.imagechange'], null=False)),
-            ('imagetag', models.ForeignKey(orm['catalogue.imagetag'], null=False))
-        ))
-        db.create_unique('catalogue_imagechange_tags', ['imagechange_id', 'imagetag_id'])
-
-        # Adding unique constraint on 'ImageChange', fields ['tree', 'revision']
-        db.create_unique('catalogue_imagechange', ['tree_id', 'revision'])
-
-        # Adding model 'ImagePublishRecord'
-        db.create_table('catalogue_imagepublishrecord', (
-            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
-            ('image', self.gf('django.db.models.fields.related.ForeignKey')(related_name='publish_log', to=orm['catalogue.Image'])),
-            ('timestamp', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
-            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
-            ('change', self.gf('django.db.models.fields.related.ForeignKey')(related_name='publish_log', to=orm['catalogue.ImageChange'])),
-        ))
-        db.send_create_signal('catalogue', ['ImagePublishRecord'])
-
-        # Adding model 'ImageTag'
-        db.create_table('catalogue_imagetag', (
-            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
-            ('name', self.gf('django.db.models.fields.CharField')(max_length=64)),
-            ('slug', self.gf('django.db.models.fields.SlugField')(db_index=True, max_length=64, unique=True, null=True, blank=True)),
-            ('ordering', self.gf('django.db.models.fields.IntegerField')()),
-        ))
-        db.send_create_signal('catalogue', ['ImageTag'])
-
-        # Adding model 'Image'
-        db.create_table('catalogue_image', (
-            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
-            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, blank=True)),
-            ('image', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
-            ('title', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
-            ('slug', self.gf('django.db.models.fields.SlugField')(unique=True, max_length=50, db_index=True)),
-            ('public', self.gf('django.db.models.fields.BooleanField')(default=True, db_index=True)),
-            ('_short_html', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
-            ('_new_publishable', self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True)),
-            ('_published', self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True)),
-            ('_changed', self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True)),
-            ('stage', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.ImageTag'], null=True, blank=True)),
-            ('head', self.gf('django.db.models.fields.related.ForeignKey')(default=None, to=orm['catalogue.ImageChange'], null=True, blank=True)),
-            ('creator', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='created_image', null=True, to=orm['auth.User'])),
-        ))
-        db.send_create_signal('catalogue', ['Image'])
-
-
-    def backwards(self, orm):
-        
-        # Removing unique constraint on 'ImageChange', fields ['tree', 'revision']
-        db.delete_unique('catalogue_imagechange', ['tree_id', 'revision'])
-
-        # Deleting model 'ImageChange'
-        db.delete_table('catalogue_imagechange')
-
-        # Removing M2M table for field tags on 'ImageChange'
-        db.delete_table('catalogue_imagechange_tags')
-
-        # Deleting model 'ImagePublishRecord'
-        db.delete_table('catalogue_imagepublishrecord')
-
-        # Deleting model 'ImageTag'
-        db.delete_table('catalogue_imagetag')
-
-        # Deleting model 'Image'
-        db.delete_table('catalogue_image')
-
-
-    models = {
-        'auth.group': {
-            'Meta': {'object_name': 'Group'},
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
-            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
-        },
-        'auth.permission': {
-            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
-            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
-            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
-        },
-        'auth.user': {
-            'Meta': {'object_name': 'User'},
-            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
-            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
-            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
-            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
-            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
-            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
-            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
-            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
-            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
-            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
-            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
-        },
-        'catalogue.book': {
-            'Meta': {'ordering': "['title', 'slug']", 'object_name': 'Book'},
-            '_new_publishable': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
-            '_published': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
-            '_short_html': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
-            '_single': ('django.db.models.fields.NullBooleanField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
-            'dc_slug': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '128', 'null': 'True', 'blank': 'True'}),
-            'gallery': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
-            'parent_number': ('django.db.models.fields.IntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
-            'public': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}),
-            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '128', 'db_index': 'True'}),
-            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'})
-        },
-        'catalogue.bookpublishrecord': {
-            'Meta': {'ordering': "['-timestamp']", 'object_name': 'BookPublishRecord'},
-            'book': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'publish_log'", 'to': "orm['catalogue.Book']"}),
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
-            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
-        },
-        'catalogue.chunk': {
-            'Meta': {'ordering': "['number']", 'unique_together': "[['book', 'number'], ['book', 'slug']]", 'object_name': 'Chunk'},
-            '_changed': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
-            '_hidden': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
-            '_short_html': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
-            'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']"}),
-            'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'created_chunk'", 'null': 'True', 'to': "orm['auth.User']"}),
-            'gallery_start': ('django.db.models.fields.IntegerField', [], {'default': '1', 'null': 'True', 'blank': 'True'}),
-            'head': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['catalogue.ChunkChange']", 'null': 'True', 'blank': 'True'}),
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'number': ('django.db.models.fields.IntegerField', [], {}),
-            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
-            'stage': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.ChunkTag']", 'null': 'True', 'blank': 'True'}),
-            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
-            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
-        },
-        'catalogue.chunkchange': {
-            'Meta': {'ordering': "('created_at',)", 'unique_together': "(['tree', 'revision'],)", 'object_name': 'ChunkChange'},
-            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
-            'author_email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
-            'author_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
-            'created_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
-            'data': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
-            'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'merge_parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'merge_children'", 'null': 'True', 'blank': 'True', 'to': "orm['catalogue.ChunkChange']"}),
-            'parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'children'", 'null': 'True', 'blank': 'True', 'to': "orm['catalogue.ChunkChange']"}),
-            'publishable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
-            'revision': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
-            'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'change_set'", 'symmetrical': 'False', 'to': "orm['catalogue.ChunkTag']"}),
-            'tree': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'change_set'", 'to': "orm['catalogue.Chunk']"})
-        },
-        'catalogue.chunkpublishrecord': {
-            'Meta': {'object_name': 'ChunkPublishRecord'},
-            'book_record': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.BookPublishRecord']"}),
-            'change': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'publish_log'", 'to': "orm['catalogue.ChunkChange']"}),
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalogue.chunktag': {
-            'Meta': {'ordering': "['ordering']", 'object_name': 'ChunkTag'},
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
-            'ordering': ('django.db.models.fields.IntegerField', [], {}),
-            'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '64', 'unique': 'True', 'null': 'True', 'blank': 'True'})
-        },
-        'catalogue.image': {
-            'Meta': {'ordering': "['title']", 'object_name': 'Image'},
-            '_changed': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
-            '_new_publishable': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
-            '_published': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
-            '_short_html': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
-            'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'created_image'", 'null': 'True', 'to': "orm['auth.User']"}),
-            'head': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['catalogue.ImageChange']", 'null': 'True', 'blank': 'True'}),
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'image': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
-            'public': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}),
-            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50', 'db_index': 'True'}),
-            'stage': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.ImageTag']", 'null': 'True', 'blank': 'True'}),
-            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
-            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
-        },
-        'catalogue.imagechange': {
-            'Meta': {'ordering': "('created_at',)", 'unique_together': "(['tree', 'revision'],)", 'object_name': 'ImageChange'},
-            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
-            'author_email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
-            'author_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
-            'created_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
-            'data': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
-            'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'merge_parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'merge_children'", 'null': 'True', 'blank': 'True', 'to': "orm['catalogue.ImageChange']"}),
-            'parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'children'", 'null': 'True', 'blank': 'True', 'to': "orm['catalogue.ImageChange']"}),
-            'publishable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
-            'revision': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
-            'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'change_set'", 'symmetrical': 'False', 'to': "orm['catalogue.ImageTag']"}),
-            'tree': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'change_set'", 'to': "orm['catalogue.Image']"})
-        },
-        'catalogue.imagepublishrecord': {
-            'Meta': {'ordering': "['-timestamp']", 'object_name': 'ImagePublishRecord'},
-            'change': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'publish_log'", 'to': "orm['catalogue.ImageChange']"}),
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'image': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'publish_log'", 'to': "orm['catalogue.Image']"}),
-            'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
-            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
-        },
-        'catalogue.imagetag': {
-            'Meta': {'ordering': "['ordering']", 'object_name': 'ImageTag'},
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
-            'ordering': ('django.db.models.fields.IntegerField', [], {}),
-            'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '64', 'unique': 'True', 'null': 'True', 'blank': 'True'})
-        },
-        'contenttypes.contenttype': {
-            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
-            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
-            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
-        }
-    }
-
-    complete_apps = ['catalogue']
diff --git a/apps/catalogue/migrations/0010_auto__add_field_book_dc_cover_image.py b/apps/catalogue/migrations/0010_auto__add_field_book_dc_cover_image.py
new file mode 100644 (file)
index 0000000..aebbed9
--- /dev/null
@@ -0,0 +1,144 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+    depends_on = (
+        ("cover", "0001_initial"),
+    )
+
+    def forwards(self, orm):
+        # Adding field 'Book.dc_cover_image'
+        db.add_column('catalogue_book', 'dc_cover_image',
+                      self.gf('django.db.models.fields.related.ForeignKey')(to=orm['cover.Image'], null=True, on_delete=models.SET_NULL, blank=True),
+                      keep_default=False)
+
+
+    def backwards(self, orm):
+        # Deleting field 'Book.dc_cover_image'
+        db.delete_column('catalogue_book', 'dc_cover_image_id')
+
+
+    models = {
+        'auth.group': {
+            'Meta': {'object_name': 'Group'},
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
+            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
+        },
+        'auth.permission': {
+            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
+            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
+        },
+        'auth.user': {
+            'Meta': {'object_name': 'User'},
+            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
+            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
+            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
+        },
+        'catalogue.book': {
+            'Meta': {'ordering': "['title', 'slug']", 'object_name': 'Book'},
+            '_new_publishable': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_on_track': ('django.db.models.fields.IntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+            '_published': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_short_html': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+            '_single': ('django.db.models.fields.NullBooleanField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+            'dc_cover_image': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cover.Image']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
+            'dc_slug': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '128', 'null': 'True', 'blank': 'True'}),
+            'gallery': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
+            'parent_number': ('django.db.models.fields.IntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+            'public': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}),
+            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '128'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'})
+        },
+        'catalogue.bookpublishrecord': {
+            'Meta': {'ordering': "['-timestamp']", 'object_name': 'BookPublishRecord'},
+            'book': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'publish_log'", 'to': "orm['catalogue.Book']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
+        },
+        'catalogue.chunk': {
+            'Meta': {'ordering': "['number']", 'unique_together': "[['book', 'number'], ['book', 'slug']]", 'object_name': 'Chunk'},
+            '_changed': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_hidden': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_short_html': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+            'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']"}),
+            'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'created_chunk'", 'null': 'True', 'to': "orm['auth.User']"}),
+            'gallery_start': ('django.db.models.fields.IntegerField', [], {'default': '1', 'null': 'True', 'blank': 'True'}),
+            'head': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['catalogue.ChunkChange']", 'null': 'True', 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'number': ('django.db.models.fields.IntegerField', [], {}),
+            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
+            'stage': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.ChunkTag']", 'null': 'True', 'blank': 'True'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
+            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
+        },
+        'catalogue.chunkchange': {
+            'Meta': {'ordering': "('created_at',)", 'unique_together': "(['tree', 'revision'],)", 'object_name': 'ChunkChange'},
+            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
+            'author_email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
+            'author_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
+            'created_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
+            'data': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
+            'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'merge_parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'merge_children'", 'null': 'True', 'blank': 'True', 'to': "orm['catalogue.ChunkChange']"}),
+            'parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'children'", 'null': 'True', 'blank': 'True', 'to': "orm['catalogue.ChunkChange']"}),
+            'publishable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'revision': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
+            'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'change_set'", 'symmetrical': 'False', 'to': "orm['catalogue.ChunkTag']"}),
+            'tree': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'change_set'", 'to': "orm['catalogue.Chunk']"})
+        },
+        'catalogue.chunkpublishrecord': {
+            'Meta': {'object_name': 'ChunkPublishRecord'},
+            'book_record': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.BookPublishRecord']"}),
+            'change': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'publish_log'", 'to': "orm['catalogue.ChunkChange']"}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
+        },
+        'catalogue.chunktag': {
+            'Meta': {'ordering': "['ordering']", 'object_name': 'ChunkTag'},
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
+            'ordering': ('django.db.models.fields.IntegerField', [], {}),
+            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '64', 'unique': 'True', 'null': 'True', 'blank': 'True'})
+        },
+        'contenttypes.contenttype': {
+            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
+            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+        },
+        'cover.image': {
+            'Meta': {'object_name': 'Image'},
+            'author': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+            'download_url': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
+            'file': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'license_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+            'license_url': ('django.db.models.fields.URLField', [], {'max_length': '255', 'blank': 'True'}),
+            'source_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
+        }
+    }
+
+    complete_apps = ['catalogue']
\ No newline at end of file
diff --git a/apps/catalogue/migrations/0011_auto__add_project__add_field_book_project.py b/apps/catalogue/migrations/0011_auto__add_project__add_field_book_project.py
new file mode 100644 (file)
index 0000000..6f30cb4
--- /dev/null
@@ -0,0 +1,159 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        # Adding model 'Project'
+        db.create_table(u'catalogue_project', (
+            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
+            ('notes', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
+        ))
+        db.send_create_signal('catalogue', ['Project'])
+
+        # Adding field 'Book.project'
+        db.add_column(u'catalogue_book', 'project',
+                      self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.Project'], null=True),
+                      keep_default=False)
+
+
+    def backwards(self, orm):
+        # Deleting model 'Project'
+        db.delete_table(u'catalogue_project')
+
+        # Deleting field 'Book.project'
+        db.delete_column(u'catalogue_book', 'project_id')
+
+
+    models = {
+        u'auth.group': {
+            'Meta': {'object_name': 'Group'},
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
+            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
+        },
+        u'auth.permission': {
+            'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
+            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
+        },
+        u'auth.user': {
+            'Meta': {'object_name': 'User'},
+            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
+            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
+            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
+        },
+        'catalogue.book': {
+            'Meta': {'ordering': "['title', 'slug']", 'object_name': 'Book'},
+            '_new_publishable': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_on_track': ('django.db.models.fields.IntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+            '_published': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_short_html': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+            '_single': ('django.db.models.fields.NullBooleanField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+            'dc_cover_image': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['cover.Image']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
+            'dc_slug': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '128', 'null': 'True', 'blank': 'True'}),
+            'gallery': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
+            'parent_number': ('django.db.models.fields.IntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Project']", 'null': 'True'}),
+            'public': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}),
+            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '128'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'})
+        },
+        'catalogue.bookpublishrecord': {
+            'Meta': {'ordering': "['-timestamp']", 'object_name': 'BookPublishRecord'},
+            'book': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'publish_log'", 'to': "orm['catalogue.Book']"}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"})
+        },
+        'catalogue.chunk': {
+            'Meta': {'ordering': "['number']", 'unique_together': "[['book', 'number'], ['book', 'slug']]", 'object_name': 'Chunk'},
+            '_changed': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_hidden': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_short_html': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+            'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']"}),
+            'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'created_chunk'", 'null': 'True', 'to': u"orm['auth.User']"}),
+            'gallery_start': ('django.db.models.fields.IntegerField', [], {'default': '1', 'null': 'True', 'blank': 'True'}),
+            'head': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['catalogue.ChunkChange']", 'null': 'True', 'blank': 'True'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'number': ('django.db.models.fields.IntegerField', [], {}),
+            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
+            'stage': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.ChunkTag']", 'null': 'True', 'blank': 'True'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
+            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'})
+        },
+        'catalogue.chunkchange': {
+            'Meta': {'ordering': "('created_at',)", 'unique_together': "(['tree', 'revision'],)", 'object_name': 'ChunkChange'},
+            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
+            'author_email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
+            'author_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
+            'created_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
+            'data': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
+            'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'merge_parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'merge_children'", 'null': 'True', 'blank': 'True', 'to': "orm['catalogue.ChunkChange']"}),
+            'parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'children'", 'null': 'True', 'blank': 'True', 'to': "orm['catalogue.ChunkChange']"}),
+            'publishable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'revision': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
+            'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'change_set'", 'symmetrical': 'False', 'to': "orm['catalogue.ChunkTag']"}),
+            'tree': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'change_set'", 'to': "orm['catalogue.Chunk']"})
+        },
+        'catalogue.chunkpublishrecord': {
+            'Meta': {'object_name': 'ChunkPublishRecord'},
+            'book_record': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.BookPublishRecord']"}),
+            'change': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'publish_log'", 'to': "orm['catalogue.ChunkChange']"}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
+        },
+        'catalogue.chunktag': {
+            'Meta': {'ordering': "['ordering']", 'object_name': 'ChunkTag'},
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
+            'ordering': ('django.db.models.fields.IntegerField', [], {}),
+            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '64', 'unique': 'True', 'null': 'True', 'blank': 'True'})
+        },
+        'catalogue.project': {
+            'Meta': {'ordering': "['name']", 'object_name': 'Project'},
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
+            'notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
+        },
+        u'contenttypes.contenttype': {
+            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
+            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+        },
+        u'cover.image': {
+            'Meta': {'object_name': 'Image'},
+            'author': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+            'download_url': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
+            'file': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'license_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+            'license_url': ('django.db.models.fields.URLField', [], {'max_length': '255', 'blank': 'True'}),
+            'source_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
+        }
+    }
+
+    complete_apps = ['catalogue']
\ No newline at end of file
diff --git a/apps/catalogue/migrations/0012_auto__add_imagepublishrecord__add_imagechange__add_unique_imagechange_.py b/apps/catalogue/migrations/0012_auto__add_imagepublishrecord__add_imagechange__add_unique_imagechange_.py
new file mode 100644 (file)
index 0000000..599e103
--- /dev/null
@@ -0,0 +1,270 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        # Adding model 'ImagePublishRecord'
+        db.create_table(u'catalogue_imagepublishrecord', (
+            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('image', self.gf('django.db.models.fields.related.ForeignKey')(related_name='publish_log', to=orm['catalogue.Image'])),
+            ('timestamp', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
+            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
+            ('change', self.gf('django.db.models.fields.related.ForeignKey')(related_name='publish_log', to=orm['catalogue.ImageChange'])),
+        ))
+        db.send_create_signal('catalogue', ['ImagePublishRecord'])
+
+        # Adding model 'ImageChange'
+        db.create_table(u'catalogue_imagechange', (
+            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('author', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, blank=True)),
+            ('author_name', self.gf('django.db.models.fields.CharField')(max_length=128, null=True, blank=True)),
+            ('author_email', self.gf('django.db.models.fields.CharField')(max_length=128, null=True, blank=True)),
+            ('revision', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
+            ('parent', self.gf('django.db.models.fields.related.ForeignKey')(default=None, related_name='children', null=True, blank=True, to=orm['catalogue.ImageChange'])),
+            ('merge_parent', self.gf('django.db.models.fields.related.ForeignKey')(default=None, related_name='merge_children', null=True, blank=True, to=orm['catalogue.ImageChange'])),
+            ('description', self.gf('django.db.models.fields.TextField')(default='', blank=True)),
+            ('created_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now, db_index=True)),
+            ('publishable', self.gf('django.db.models.fields.BooleanField')(default=False)),
+            ('tree', self.gf('django.db.models.fields.related.ForeignKey')(related_name='change_set', to=orm['catalogue.Image'])),
+            ('data', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
+        ))
+        db.send_create_signal('catalogue', ['ImageChange'])
+
+        # Adding M2M table for field tags on 'ImageChange'
+        db.create_table(u'catalogue_imagechange_tags', (
+            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
+            ('imagechange', models.ForeignKey(orm['catalogue.imagechange'], null=False)),
+            ('imagetag', models.ForeignKey(orm['catalogue.imagetag'], null=False))
+        ))
+        db.create_unique(u'catalogue_imagechange_tags', ['imagechange_id', 'imagetag_id'])
+
+        # Adding unique constraint on 'ImageChange', fields ['tree', 'revision']
+        db.create_unique(u'catalogue_imagechange', ['tree_id', 'revision'])
+
+        # Adding model 'ImageTag'
+        db.create_table(u'catalogue_imagetag', (
+            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('name', self.gf('django.db.models.fields.CharField')(max_length=64)),
+            ('slug', self.gf('django.db.models.fields.SlugField')(max_length=64, unique=True, null=True, blank=True)),
+            ('ordering', self.gf('django.db.models.fields.IntegerField')()),
+        ))
+        db.send_create_signal('catalogue', ['ImageTag'])
+
+        # Adding model 'Image'
+        db.create_table(u'catalogue_image', (
+            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, blank=True)),
+            ('image', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
+            ('title', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
+            ('slug', self.gf('django.db.models.fields.SlugField')(unique=True, max_length=50)),
+            ('public', self.gf('django.db.models.fields.BooleanField')(default=True, db_index=True)),
+            ('_short_html', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
+            ('_new_publishable', self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True)),
+            ('_published', self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True)),
+            ('_changed', self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True)),
+            ('stage', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.ImageTag'], null=True, blank=True)),
+            ('head', self.gf('django.db.models.fields.related.ForeignKey')(default=None, to=orm['catalogue.ImageChange'], null=True, blank=True)),
+            ('creator', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='created_image', null=True, to=orm['auth.User'])),
+        ))
+        db.send_create_signal('catalogue', ['Image'])
+
+
+    def backwards(self, orm):
+        # Removing unique constraint on 'ImageChange', fields ['tree', 'revision']
+        db.delete_unique(u'catalogue_imagechange', ['tree_id', 'revision'])
+
+        # Deleting model 'ImagePublishRecord'
+        db.delete_table(u'catalogue_imagepublishrecord')
+
+        # Deleting model 'ImageChange'
+        db.delete_table(u'catalogue_imagechange')
+
+        # Removing M2M table for field tags on 'ImageChange'
+        db.delete_table('catalogue_imagechange_tags')
+
+        # Deleting model 'ImageTag'
+        db.delete_table(u'catalogue_imagetag')
+
+        # Deleting model 'Image'
+        db.delete_table(u'catalogue_image')
+
+
+    models = {
+        u'auth.group': {
+            'Meta': {'object_name': 'Group'},
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
+            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
+        },
+        u'auth.permission': {
+            'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
+            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
+        },
+        u'auth.user': {
+            'Meta': {'object_name': 'User'},
+            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
+            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
+            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
+        },
+        'catalogue.book': {
+            'Meta': {'ordering': "['title', 'slug']", 'object_name': 'Book'},
+            '_new_publishable': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_on_track': ('django.db.models.fields.IntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+            '_published': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_short_html': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+            '_single': ('django.db.models.fields.NullBooleanField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+            'dc_cover_image': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['cover.Image']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
+            'dc_slug': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '128', 'null': 'True', 'blank': 'True'}),
+            'gallery': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
+            'parent_number': ('django.db.models.fields.IntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
+            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Project']", 'null': 'True', 'blank': 'True'}),
+            'public': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}),
+            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '128'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'})
+        },
+        'catalogue.bookpublishrecord': {
+            'Meta': {'ordering': "['-timestamp']", 'object_name': 'BookPublishRecord'},
+            'book': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'publish_log'", 'to': "orm['catalogue.Book']"}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"})
+        },
+        'catalogue.chunk': {
+            'Meta': {'ordering': "['number']", 'unique_together': "[['book', 'number'], ['book', 'slug']]", 'object_name': 'Chunk'},
+            '_changed': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_hidden': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_short_html': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+            'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']"}),
+            'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'created_chunk'", 'null': 'True', 'to': u"orm['auth.User']"}),
+            'gallery_start': ('django.db.models.fields.IntegerField', [], {'default': '1', 'null': 'True', 'blank': 'True'}),
+            'head': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['catalogue.ChunkChange']", 'null': 'True', 'blank': 'True'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'number': ('django.db.models.fields.IntegerField', [], {}),
+            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
+            'stage': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.ChunkTag']", 'null': 'True', 'blank': 'True'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
+            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'})
+        },
+        'catalogue.chunkchange': {
+            'Meta': {'ordering': "('created_at',)", 'unique_together': "(['tree', 'revision'],)", 'object_name': 'ChunkChange'},
+            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
+            'author_email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
+            'author_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
+            'created_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
+            'data': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
+            'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'merge_parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'merge_children'", 'null': 'True', 'blank': 'True', 'to': "orm['catalogue.ChunkChange']"}),
+            'parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'children'", 'null': 'True', 'blank': 'True', 'to': "orm['catalogue.ChunkChange']"}),
+            'publishable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'revision': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
+            'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'change_set'", 'symmetrical': 'False', 'to': "orm['catalogue.ChunkTag']"}),
+            'tree': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'change_set'", 'to': "orm['catalogue.Chunk']"})
+        },
+        'catalogue.chunkpublishrecord': {
+            'Meta': {'object_name': 'ChunkPublishRecord'},
+            'book_record': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.BookPublishRecord']"}),
+            'change': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'publish_log'", 'to': "orm['catalogue.ChunkChange']"}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
+        },
+        'catalogue.chunktag': {
+            'Meta': {'ordering': "['ordering']", 'object_name': 'ChunkTag'},
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
+            'ordering': ('django.db.models.fields.IntegerField', [], {}),
+            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '64', 'unique': 'True', 'null': 'True', 'blank': 'True'})
+        },
+        'catalogue.image': {
+            'Meta': {'ordering': "['title']", 'object_name': 'Image'},
+            '_changed': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_new_publishable': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_published': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
+            '_short_html': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+            'creator': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'created_image'", 'null': 'True', 'to': u"orm['auth.User']"}),
+            'head': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['catalogue.ImageChange']", 'null': 'True', 'blank': 'True'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'image': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
+            'public': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}),
+            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
+            'stage': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.ImageTag']", 'null': 'True', 'blank': 'True'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
+            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'})
+        },
+        'catalogue.imagechange': {
+            'Meta': {'ordering': "('created_at',)", 'unique_together': "(['tree', 'revision'],)", 'object_name': 'ImageChange'},
+            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
+            'author_email': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
+            'author_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
+            'created_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
+            'data': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
+            'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'merge_parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'merge_children'", 'null': 'True', 'blank': 'True', 'to': "orm['catalogue.ImageChange']"}),
+            'parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'children'", 'null': 'True', 'blank': 'True', 'to': "orm['catalogue.ImageChange']"}),
+            'publishable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'revision': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
+            'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'change_set'", 'symmetrical': 'False', 'to': "orm['catalogue.ImageTag']"}),
+            'tree': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'change_set'", 'to': "orm['catalogue.Image']"})
+        },
+        'catalogue.imagepublishrecord': {
+            'Meta': {'ordering': "['-timestamp']", 'object_name': 'ImagePublishRecord'},
+            'change': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'publish_log'", 'to': "orm['catalogue.ImageChange']"}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'image': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'publish_log'", 'to': "orm['catalogue.Image']"}),
+            'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"})
+        },
+        'catalogue.imagetag': {
+            'Meta': {'ordering': "['ordering']", 'object_name': 'ImageTag'},
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
+            'ordering': ('django.db.models.fields.IntegerField', [], {}),
+            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '64', 'unique': 'True', 'null': 'True', 'blank': 'True'})
+        },
+        'catalogue.project': {
+            'Meta': {'ordering': "['name']", 'object_name': 'Project'},
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
+            'notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
+        },
+        u'contenttypes.contenttype': {
+            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
+            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+        },
+        u'cover.image': {
+            'Meta': {'object_name': 'Image'},
+            'author': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+            'download_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
+            'file': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'license_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+            'license_url': ('django.db.models.fields.URLField', [], {'max_length': '255', 'blank': 'True'}),
+            'source_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
+        }
+    }
+
+    complete_apps = ['catalogue']
\ No newline at end of file
index 08cedd0..d0015c7 100755 (executable)
@@ -3,6 +3,7 @@
 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
+from catalogue.models.project import Project
 from catalogue.models.chunk import Chunk
 from catalogue.models.image import Image
 from catalogue.models.publish_log import (BookPublishRecord,
index 90327b2..7c2bccc 100755 (executable)
@@ -7,13 +7,20 @@ from django.contrib.sites.models import Site
 from django.db import models, transaction
 from django.template.loader import render_to_string
 from django.utils.translation import ugettext_lazy as _
+from django.conf import settings
 from slughifi import slughifi
 
-from catalogue.helpers import cached_in_field
-from catalogue.models import BookPublishRecord, ChunkPublishRecord
+
+import apiclient
+from catalogue.helpers import cached_in_field, GalleryMerger
+from catalogue.models import BookPublishRecord, ChunkPublishRecord, Project
+from catalogue.signals import post_publish
 from catalogue.tasks import refresh_instance, book_content_updated
 from catalogue.xml_tools import compile_text, split_xml
-
+from cover.models import Image
+import os
+import shutil
+import re
 
 class Book(models.Model):
     """ A document edited on the wiki """
@@ -22,6 +29,7 @@ class Book(models.Model):
     slug = models.SlugField(_('slug'), max_length=128, unique=True, db_index=True)
     public = models.BooleanField(_('public'), default=True, db_index=True)
     gallery = models.CharField(_('scan gallery name'), max_length=255, blank=True)
+    project = models.ForeignKey(Project, null=True, blank=True)
 
     #wl_slug = models.CharField(_('title'), max_length=255, null=True, db_index=True, editable=False)
     parent = models.ForeignKey('self', null=True, blank=True, verbose_name=_('parent'), related_name="children", editable=False)
@@ -32,6 +40,9 @@ class Book(models.Model):
     _single = models.NullBooleanField(editable=False, db_index=True)
     _new_publishable = models.NullBooleanField(editable=False)
     _published = models.NullBooleanField(editable=False)
+    _on_track = models.IntegerField(null=True, blank=True, db_index=True, editable=False)
+    dc_cover_image = models.ForeignKey(Image, blank=True, null=True,
+        db_index=True, on_delete=models.SET_NULL, editable=False)
     dc_slug = models.CharField(max_length=128, null=True, blank=True,
             editable=False, db_index=True)
 
@@ -188,8 +199,20 @@ class Book(models.Model):
             chunk.save()
             number += 1
         assert not other.chunk_set.exists()
+
+        gm = GalleryMerger(self.gallery, other.gallery)
+        self.gallery = gm.merge()
+
+        # and move the gallery starts
+        if gm.was_merged:
+                for chunk in self[len(self) - len_other:]:
+                        old_start = chunk.gallery_start or 1
+                        chunk.gallery_start = old_start + gm.dest_size - gm.num_deleted
+                        chunk.save()
+
         other.delete()
 
+
     @transaction.commit_on_success
     def prepend_history(self, other):
         """Prepend history from all the other book's chunks to own."""
@@ -206,6 +229,18 @@ class Book(models.Model):
         assert not other.chunk_set.exists()
         other.delete()
 
+    def split(self):
+        """Splits all the chunks into separate books."""
+        self.title
+        for chunk in self:
+            book = Book.objects.create(title=chunk.title, slug=chunk.slug,
+                    public=self.public, gallery=self.gallery)
+            book[0].delete()
+            chunk.book = book
+            chunk.number = 1
+            chunk.save()
+        assert not self.chunk_set.exists()
+        self.delete()
 
     # State & cache
     # =============
@@ -222,23 +257,29 @@ class Book(models.Model):
             changes = self.get_current_changes(publishable=True)
         except self.NoTextError:
             raise AssertionError(_('Not all chunks have publishable revisions.'))
-        book_xml = self.materialize(changes=changes)
 
-        from librarian.dcparser import BookInfo
         from librarian import NoDublinCore, ParseError, ValidationError
 
         try:
-            bi = BookInfo.from_string(book_xml.encode('utf-8'))
+            bi = self.wldocument(changes=changes, strict=True).book_info
         except ParseError, e:
-            raise AssertionError(_('Invalid XML') + ': ' + str(e))
+            raise AssertionError(_('Invalid XML') + ': ' + unicode(e))
         except NoDublinCore:
             raise AssertionError(_('No Dublin Core found.'))
         except ValidationError, e:
-            raise AssertionError(_('Invalid Dublin Core') + ': ' + str(e))
+            raise AssertionError(_('Invalid Dublin Core') + ': ' + unicode(e))
 
         valid_about = self.correct_about()
         assert bi.about == valid_about, _("rdf:about is not") + " " + valid_about
 
+    def publishable_error(self):
+        try:
+            return self.assert_publishable()
+        except AssertionError, e:
+            return e
+        else:
+            return None
+
     def hidden(self):
         return self.slug.startswith('.')
 
@@ -265,6 +306,16 @@ class Book(models.Model):
         return self.publish_log.exists()
     published = cached_in_field('_published')(is_published)
 
+    def get_on_track(self):
+        if self.published:
+            return -1
+        stages = [ch.stage.ordering if ch.stage is not None else 0
+                    for ch in self]
+        if not len(stages):
+            return 0
+        return min(stages)
+    on_track = cached_in_field('_on_track')(get_on_track)
+
     def is_single(self):
         return len(self) == 1
     single = cached_in_field('_single')(is_single)
@@ -289,11 +340,20 @@ class Book(models.Model):
     def refresh_dc_cache(self):
         update = {
             'dc_slug': None,
+            'dc_cover_image': None,
         }
 
         info = self.book_info()
         if info is not None:
-            update['dc_slug'] = info.slug
+            update['dc_slug'] = info.url.slug
+            if info.cover_source:
+                try:
+                    image = Image.objects.get(pk=int(info.cover_source.rstrip('/').rsplit('/', 1)[-1]))
+                except:
+                    pass
+                else:
+                    if info.cover_source == image.get_full_url():
+                        update['dc_cover_image'] = image
         Book.objects.filter(pk=self.pk).update(**update)
 
     def touch(self):
@@ -304,6 +364,7 @@ class Book(models.Model):
             "_new_publishable": self.is_new_publishable(),
             "_published": self.is_published(),
             "_single": self.is_single(),
+            "_on_track": self.get_on_track(),
             "_short_html": None,
         }
         Book.objects.filter(pk=self.pk).update(**update)
@@ -344,13 +405,21 @@ class Book(models.Model):
             changes = self.get_current_changes(publishable)
         return compile_text(change.materialize() for change in changes)
 
+    def wldocument(self, publishable=True, changes=None, 
+            parse_dublincore=True, strict=False):
+        from catalogue.ebook_utils import RedakcjaDocProvider
+        from librarian.parser import WLDocument
+
+        return WLDocument.from_string(
+                self.materialize(publishable=publishable, changes=changes),
+                provider=RedakcjaDocProvider(publishable=publishable),
+                parse_dublincore=parse_dublincore,
+                strict=strict)
+
     def publish(self, user):
         """
             Publishes a book on behalf of a (local) user.
         """
-        import apiclient
-        from catalogue.signals import post_publish
-
         self.assert_publishable()
         changes = self.get_current_changes(publishable=True)
         book_xml = self.materialize(changes=changes)
index 558f4c1..7b5ce1f 100755 (executable)
@@ -87,6 +87,14 @@ class Image(dvcs_models.Document):
         assert picture.picture_info.about == valid_about, \
                 _("rdf:about is not") + " " + valid_about
 
+    def publishable_error(self):
+        try:
+            return self.assert_publishable()
+        except AssertionError, e:
+            return e
+        else:
+            return None
+
     def accessible(self, request):
         return self.public or request.user.is_authenticated()
 
diff --git a/apps/catalogue/models/project.py b/apps/catalogue/models/project.py
new file mode 100755 (executable)
index 0000000..eb95102
--- /dev/null
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+from django.db import models
+from django.utils.translation import ugettext_lazy as _
+
+
+class Project(models.Model):
+    """ A project, tracked for funding purposes. """
+
+    name = models.CharField(_('name'), max_length=255, unique=True)
+    notes = models.TextField(_('notes'), blank=True, null=True)
+
+    class Meta:
+        app_label = 'catalogue'
+        ordering = ['name']
+        verbose_name = _('project')
+        verbose_name_plural = _('projects')
+
+    def __unicode__(self):
+        return self.name
index 547f36b..c386c22 100644 (file)
@@ -1,9 +1,8 @@
 from celery.task import task
 from django.utils import translation
-from django.conf import settings
 
 
-@task
+@task(ignore_result=True)
 def _refresh_by_pk(cls, pk, language=None):
     prev_language = translation.get_language()
     language and translation.activate(language)
@@ -16,24 +15,6 @@ def refresh_instance(instance):
     _refresh_by_pk.delay(type(instance), instance.pk, translation.get_language())
 
 
-@task
-def _publishable_error(book, language=None):
-    prev_language = translation.get_language()
-    language and translation.activate(language)
-    try:
-        return book.assert_publishable()
-    except AssertionError, e:
-        return e
-    else:
-       return None
-    finally:
-        translation.activate(prev_language)
-
-def publishable_error(book):
-    return _publishable_error.delay(book, 
-        translation.get_language()).wait()
-
-
-@task
+@task(ignore_result=True)
 def book_content_updated(book):
     book.refresh_dc_cache()
index 125ae28..3bb8afb 100755 (executable)
@@ -1,6 +1,5 @@
 {% extends "catalogue/base.html" %}
 {% load i18n %}
-{% load url from future %}
 {% load wall %}
 
 
index 78a8ee5..9a56d72 100644 (file)
@@ -7,12 +7,13 @@
     {% compressed_css 'catalogue' %}
     <title>{% block title %}{% trans "Platforma Redakcyjna" %} ::
         {% block titleextra %}{% endblock %}{% endblock title %}</title>
+    {% block add_css %}{% endblock %}
 </head>
 <body>
 
 <div id="tabs-nav">
 
-    <a href="{% url catalogue_document_list %}">
+    <a href="{% url 'catalogue_document_list' %}">
         <img id="logo" src="{{ STATIC_URL }}img/wl-orange.png" alt="Platforma" />
     </a>
 
@@ -43,8 +44,9 @@
 </div>
 
 
-<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
+<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
 {% compressed_js 'catalogue' %}
+{% block add_js %}{% endblock %}
 {% block extrabody %}
 {% endblock %}
 </body>
index cbc6c32..4db8a9b 100755 (executable)
 </tbody></table>
 {% if editable %}</form>{% endif %}
 
-
 {% if editable %}
-    <p><a href="{% url catalogue_book_append book.slug %}">{% trans "Append to other book" %}</a></p>
+    {% if book.gallery %}
+    <p><a href="{% url 'catalogue_book_gallery' book.slug %}">{% trans "Edit gallery" %}</a></p>
+    {% endif %}
+
+    <p><a href="{% url 'catalogue_book_append' book.slug %}">{% trans "Append to other book" %}</a></p>
 {% endif %}
 
 
 
 <h2>{% trans "Publication" %}</h2>
 
+<div class="cover-preview">
+<img class="cover-preview" src="{% url 'cover_preview' book.slug %}" />
+{% if book.dc_cover_image %}
+    <a href="{{ book.dc_cover_image.get_absolute_url }}">{{ book.dc_cover_image }}</a>
+{% endif %}
+</div>
+
 <p>{% trans "Last published" %}: 
     {% if book.last_published %}
         {{ book.last_published }}
 
 {% if publishable %}
     <p>
-    <a href="{% url catalogue_book_xml book.slug %}">{% trans "Full XML" %}</a><br/>
-    <a target="_blank" href="{% url catalogue_book_html book.slug %}">{% trans "HTML version" %}</a><br/>
-    <a href="{% url catalogue_book_txt book.slug %}">{% trans "TXT version" %}</a><br/>
-    <a href="{% url catalogue_book_pdf book.slug %}">{% trans "PDF version" %}</a><br/>
-    <a href="{% url catalogue_book_epub book.slug %}">{% trans "EPUB version" %}</a><br/>
+    <a href="{% url 'catalogue_book_xml' book.slug %}" rel="nofollow">{% trans "Full XML" %}</a><br/>
+    <a target="_blank" href="{% url 'catalogue_book_html' book.slug %}" rel="nofollow">{% trans "HTML version" %}</a><br/>
+    <a href="{% url 'catalogue_book_txt' book.slug %}" rel="nofollow">{% trans "TXT version" %}</a><br/>
+    <a href="{% url 'catalogue_book_pdf' book.slug %}" rel="nofollow">{% trans "PDF version" %}</a><br/>
+    <a href="{% url 'catalogue_book_epub' book.slug %}" rel="nofollow">{% trans "EPUB version" %}</a><br/>
     </p>
 
     {% if user.is_authenticated %}
         mira66 (http://www.flickr.com/photos/21804434@N02/) /
         CC BY 2.0 (http://creativecommons.org/licenses/by/2.0/)
         -->
-        <form method="POST" action="{% url catalogue_publish book.slug %}">{% csrf_token %}
+        <form method="POST" action="{% url 'catalogue_publish' book.slug %}">{% csrf_token %}
             <img src="{{ STATIC_URL }}img/angel-left.png" style="vertical-align: middle" />
             <button id="publish-button" type="submit">
                 <span>{% trans "Publish" %}</span></button>
             <img src="{{ STATIC_URL }}img/angel-right.png" style="vertical-align: middle" />
             </form>
     {% else %}
-        <a href="{% url login %}">{% trans "Log in to publish." %}</a>
+        <a href="{% url 'login' %}">{% trans "Log in to publish." %}</a>
     {% endif %}
 {% else %}
     <p>{% trans "This book can't be published yet, because:" %}</p>
     <ul><li>{{ publishable_error }}</li></ul>
 {% endif %}
 
+<div style="clear: both;"></div>
 </div>
 
 
index 46d5ae1..5866e6a 100755 (executable)
@@ -3,26 +3,29 @@
 {% if book.single %}
     {% with book.0 as chunk %}
     <tr>
-        <td><a href="{% url catalogue_book book.slug %}" title='{% trans "Book settings" %}'>[B]</a></td>
-        <td><a href="{% url catalogue_chunk_edit book.slug chunk.slug %}" title='{% trans "Chunk settings" %}'>[c]</a></td>
+        <td><input type="checkbox" name="select_book" value="{{book.id}}" data-chunk-id="{{chunk.id}}"/></td>
+        <td><a href="{% url 'catalogue_book' book.slug %}" title='{% trans "Book settings" %}'>[B]</a></td>
+        <td><a href="{% url 'catalogue_chunk_edit' book.slug chunk.slug %}" title='{% trans "Chunk settings" %}'>[c]</a></td>
         <td><a target="_blank"
-                    href="{% url wiki_editor book.slug %}">
+                    href="{% url 'wiki_editor' book.slug %}">
                     {{ book.title }}</a></td>
         <td>{% if chunk.stage %}
             {{ chunk.stage }}
         {% else %}–
         {% endif %}</td>
-        <td class='user-column'>{% if chunk.user %}<a href="{% url catalogue_user chunk.user.username %}">{{ chunk.user.first_name }} {{ chunk.user.last_name }}</a>{% endif %}</td>
+        <td class='user-column'>{% if chunk.user %}<a href="{% url 'catalogue_user' chunk.user.username %}">{{ chunk.user.first_name }} {{ chunk.user.last_name }}</a>{% endif %}</td>
         <td>
             {% if chunk.published %}P{% endif %}
             {% if book.new_publishable %}p{% endif %}
             {% if chunk.changed %}+{% endif %}
         </td>
+        <td>{{ book.project.name }}</td>
     </tr>
     {% endwith %}
 {% else %}
     <tr>
-        <td class='book-settings-link'><a href="{% url catalogue_book book.slug %}" title='{% trans "Book settings" %}'>[B]</a></td>
+        <td><input type="checkbox" name="select_book" value="{{book.id}}"/></td>
+        <td class='book-settings-link'><a href="{% url 'catalogue_book' book.slug %}" title='{% trans "Book settings" %}'>[B]</a></td>
         <td></td>
         <td>{{ book.title }}</td>
         <td></td>
@@ -31,5 +34,6 @@
             {% if book.published %}P{% endif %}
             {% if book.new_publishable %}p{% endif %}
         </td>
+        <td>{{ book.project.name }}</td>
     </tr>
 {% endif %}
index f8d18d5..8e25436 100755 (executable)
 {% endif %}
 <input type='hidden' name="all" value="{{ request.GET.all }}" />
 <input type='hidden' name="status" value="{{ request.GET.status }}" />
+<input type='hidden' name="project" value="{{ request.GET.project }}" />
 </form>
 
+
 <table id="file-list"{% if viewed_user %} class="book-list-user"{% endif %}>
     <thead><tr>
+       <th></th>
         <th></th>
         <th>
             <input class='check-filter' type='checkbox' name='all' title='{% trans "Show hidden books" %}'
             {% endfor %}
         </select></th>
 
+        <th><select name="project" class="filter">
+            <option value=''>- {% trans "project" %} -</option>
+                <option {% if request.GET.project == '-' %}selected="selected"
+                        {% endif %}value="-">- {% trans "none" %} -</option>
+            {% for project in projects %}
+                <option {% if request.GET.project == project.pk|slugify %}selected="selected"
+                        {% endif %}value='{{ project.pk }}'>{{ project.name }}</option>
+            {% endfor %}
+        </select></th>
+
     </tr></thead>
 
     {% with cnt=books|length %}
 {% if not books %}
     <p>{% trans "No books found." %}</p>
 {% endif %}
+
+<form id='chunk_mass_edit' action='{% url "catalogue_chunk_mass_edit" %}' style="display:none;">
+{% csrf_token %}
+<input type="hidden" name="ids" />
+<label for="mass_edit_stage">{% trans "Set stage" %}</label><input type="hidden" name="stage" id="mass_edit_stage"/>
+<label for="mass_edit_user">{% trans "Set user" %}</label><input type="hidden" name="user" id="mass_edit_stage" />
+<input type="hidden" name="status" />
+<label for="mass_edit_project">{% trans "Project" %}</label><input type="hidden" name="project" id="mass_edit_project" />
+<label for="mass_edit_publish">{% trans "Mark publishable" %}</label>
+<label for="mass_edit_unpublish">{% trans "Mark not publishable" %}</label>
+<label for="mass_edit_other">{% trans "Other user" %}</label>
+</form>
+
+<select name="other-user" style="display:none;">
+  {% for user in other_users %}
+  <option {% if request.GET.user == user.username %}selected="selected"
+          {% endif %}value="{{ user.username }}">{{ user.first_name }} {{ user.last_name }} ({{ user.count }})</option>
+  {% endfor %}
+</select>
index 1459942..7bdf3aa 100755 (executable)
@@ -1,8 +1,9 @@
 {% load i18n %}
 
 <tr>
+    <td><input type="checkbox" name="select_chunk" value="{{chunk.id}}" data-book-id="{{chunk.book.id}}" /></td>
     <td class='book-settings-column'></td>
-    <td><a href="{% url catalogue_chunk_edit chunk.book.slug chunk.slug %}" title='{% trans "Chunk settings" %}'>[c]</a></td>
+    <td><a href="{% url 'catalogue_chunk_edit' chunk.book.slug chunk.slug %}" title='{% trans "Chunk settings" %}'>[c]</a></td>
     <td><a target="_blank" href="{{ chunk.get_absolute_url }}">
             <span class='chunkno'>{{ chunk.number }}.</span>
             {{ chunk.title }}</a></td>
@@ -12,7 +13,7 @@
             –
         {% endif %}</td>
         <td class='user-column'>{% if chunk.user %}
-            <a href="{% url catalogue_user chunk.user.username %}">
+            <a href="{% url 'catalogue_user' chunk.user.username %}">
                 {{ chunk.user.first_name }} {{ chunk.user.last_name }}
             </a>{% else %}
             
diff --git a/apps/catalogue/templates/catalogue/book_text.html b/apps/catalogue/templates/catalogue/book_text.html
new file mode 100644 (file)
index 0000000..b9cc2f0
--- /dev/null
@@ -0,0 +1,28 @@
+{% load i18n compressed %}
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+    <head>
+        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+        <title>{% trans "Redakcja" %} :: {{ book.title }}</title>
+       {% compressed_css 'book' %}
+        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
+       {% compressed_js 'book' %}
+    </head>
+    <body>
+        <div id="menu">
+            <ul>
+                <li><a class="menu" href="#toc">{% trans "Table of contents" %}</a></li>
+{#                <li><a class="menu" href="#themes">{% trans "Themes" %}</a></li>#}
+                <li><a class="menu" href="#nota_red">{% trans "Edit. note" %}</a></li>
+{#                <li><a class="menu" href="#info">{% trans "Infobox" %}</a></li>#}
+{#                <li><a href="{{ book.get_absolute_url }}">{% trans "Book's page" %}</a></li> #}
+{#                <li><a class="menu" href="#download">{% trans "Download" %}</a></li>#}
+            </ul>
+        </div>
+        <div id="header">
+            <a href="/"><img src="/media/static/img/logo-220.png" alt="Wolne Lektury" /></a>
+        </div>
+        {{ html|safe }}
+    </body>
+</html>
index cac192a..2006226 100755 (executable)
@@ -1,5 +1,4 @@
 {% extends "catalogue/base.html" %}
-{% load url from future %}
 {% load i18n %}
 
 
index 2d608dc..f0bd50c 100644 (file)
@@ -2,10 +2,19 @@
 
 {% load i18n %}
 {% load catalogue book_list %}
+{% load compressed %}
 
 {% block titleextra %}{% trans "Book list" %}{% endblock %}
 
 
+{% block add_js %}
+{% compressed_js 'book_list' %}
+{% endblock %}
+
+{% block add_css %}
+{% compressed_css 'book_list' %}
+{% endblock %}
+
 {% block content %}
     {% book_list %}
 {% endblock content %}
index 0f8929c..009d154 100644 (file)
@@ -48,7 +48,7 @@
         <h3>{% trans "Uploaded files" %}</h3>
         <ul id='ok-list'>
         {% for filename, slug, title in ok_list %}
-            <li><a href='{% url wiki_editor slug %}'>{{ title }}</a> (<code>{{ filename }})</a></li>
+            <li><a href='{% url "wiki_editor" slug %}'>{{ title }}</a> (<code>{{ filename }})</a></li>
         {% endfor %}
         </ul>
     {% endif %}
index cd77654..d791bfd 100755 (executable)
@@ -25,7 +25,7 @@
 <div class='section'>
     <h2>{% trans "Editor" %}</h2>
 
-    <p><a href="{% url wiki_img_editor object.slug %}">{% trans "Proceed to the editor." %}</a></p>
+    <p><a href="{% url 'wiki_img_editor' object.slug %}">{% trans "Proceed to the editor." %}</a></p>
 </div>
 
 
         mira66 (http://www.flickr.com/photos/21804434@N02/) /
         CC BY 2.0 (http://creativecommons.org/licenses/by/2.0/)
         -->
-        <form method="POST" action="{% url catalogue_publish_image object.slug %}">{% csrf_token %}
+        <form method="POST" action="{% url 'catalogue_publish_image' object.slug %}">{% csrf_token %}
             <!--img src="{{ STATIC_URL }}img/angel-left.png" style="vertical-align: middle" /-->
             <button id="publish-button" type="submit">
                 <span>{% trans "Publish" %}</span></button>
             <!--img src="{{ STATIC_URL }}img/angel-right.png" style="vertical-align: middle" /-->
             </form>
     {% else %}
-        <a href="{% url login %}">{% trans "Log in to publish." %}</a>
+        <a href="{% url 'login' %}">{% trans "Log in to publish." %}</a>
     {% endif %}
 {% else %}
     <p>{% trans "This book can't be published yet, because:" %}</p>
index 2e2b386..e64733b 100755 (executable)
@@ -1,15 +1,15 @@
 {% load i18n %}
 
 <tr>
-    <td><a href="{% url catalogue_image image.slug %}" title='{% trans "Image settings" %}'>[B]</a></td>
+    <td><a href="{% url 'catalogue_image' image.slug %}" title='{% trans "Image settings" %}'>[B]</a></td>
     <td><a target="_blank"
-                href="{% url wiki_img_editor image.slug %}">
+                href="{% url 'wiki_img_editor' image.slug %}">
                 {{ image.title }}</a></td>
     <td>{% if image.stage %}
         {{ image.stage }}
     {% else %}–
     {% endif %}</td>
-    <td class='user-column'>{% if image.user %}<a href="{% url catalogue_user image.user.username %}">{{ image.user.first_name }} {{ image.user.last_name }}</a>{% endif %}</td>
+    <td class='user-column'>{% if image.user %}<a href="{% url 'catalogue_user' image.user.username %}">{{ image.user.first_name }} {{ image.user.last_name }}</a>{% endif %}</td>
     <td>
         {% if image.published %}P{% endif %}
         {% if image.new_publishable %}p{% endif %}
index 07b9242..c6b61ce 100755 (executable)
@@ -2,7 +2,15 @@
 
 {% load i18n %}
 {% load catalogue book_list wall %}
+{% load compressed %}
 
+{% block add_js %}
+{% compressed_js 'book_list' %}
+{% endblock %}
+
+{% block add_css %}
+{% compressed_css 'book_list' %}
+{% endblock %}
 
 {% block titleextra %}{% trans "My page" %}{% endblock %}
 
@@ -16,7 +24,7 @@
         <h2>{% trans "Your last edited documents" %}</h2>
         <ol>
             {% for slugs, item in last_books %}
-            <li><a href="{% url wiki_editor slugs.0 slugs.1 %}"
+            <li><a href="{% url 'wiki_editor' slugs.0 slugs.1 %}"
                 target="_blank">{{ item.title }}</a><br/><span class="date">({{ item.time|date:"H:i:s, d/m/Y" }})</span></li>
             {% endfor %}
         </ol>
index bc8af63..2643405 100755 (executable)
@@ -12,7 +12,7 @@
 
 <ul>
 {% for user in users %}
-    <li><a href="{% url catalogue_user user.username %}">
+    <li><a href="{% url 'catalogue_user' user.username %}">
         <span class="chunkno">{{ forloop.counter }}.</span>
         {{ user.first_name }} {{ user.last_name }}</a>
         ({{ user.count }})</li>
index c277f94..d7f6c9e 100755 (executable)
@@ -18,7 +18,7 @@
         <a target="_blank" href='{{ item.url }}'>{{ item.title }}</a>
         <br/><strong>{% trans "user" %}:</strong>
         {% if item.user %}
-            <a href="{% url catalogue_user item.user.username %}">
+            <a href="{% url 'catalogue_user' item.user.username %}">
             {{ item.user.first_name }} {{ item.user.last_name }}</a>
             &lt;{{ item.user.email|email_link }}>
         {% else %}
index 9344053..1357c32 100755 (executable)
@@ -5,7 +5,7 @@ from django.db.models import Q, Count
 from django import template
 from django.utils.translation import ugettext_lazy as _
 from django.contrib.auth.models import User
-from catalogue.models import Chunk, Image
+from catalogue.models import Chunk, Image, Project
 
 register = template.Library()
 
@@ -113,6 +113,7 @@ def document_list_filter(request, **kwargs):
     chunks = foreign_filter(chunks, arg_or_GET('user'), 'user', User, 'username')
     chunks = foreign_filter(chunks, arg_or_GET('stage'), 'stage', Chunk.tag_model, 'slug')
     chunks = search_filter(chunks, arg_or_GET('title'), ['book__title', 'title'])
+    chunks = foreign_filter(chunks, arg_or_GET('project'), 'book__project', Project, 'pk')
     return chunks
 
 
@@ -125,9 +126,14 @@ def book_list(context, user=None):
         new_context = {"viewed_user": user}
     else:
         filters = {}
-        new_context = {"users": User.objects.annotate(
+        new_context = {
+            "users": User.objects.annotate(
                 count=Count('chunk')).filter(count__gt=0).order_by(
-                '-count', 'last_name', 'first_name')}
+                '-count', 'last_name', 'first_name'),
+            "other_users": User.objects.annotate(
+                count=Count('chunk')).filter(count=0).order_by(
+                'last_name', 'first_name'),
+                }
 
     new_context.update({
         "filters": True,
@@ -135,6 +141,7 @@ def book_list(context, user=None):
         "books": ChunksList(document_list_filter(request, **filters)),
         "stages": Chunk.tag_model.objects.all(),
         "states": _states_options,
+        "projects": Project.objects.all(),
     })
 
     return new_context
index 0b57b49..07c5cf9 100644 (file)
@@ -35,6 +35,8 @@ def main_tabs(context):
         tabs.append(Tab('create', _('Add'), reverse("catalogue_create_missing")))
         tabs.append(Tab('upload', _('Upload'), reverse("catalogue_upload")))
 
+    tabs.append(Tab('cover', _('Covers'), reverse("cover_image_list")))
+
     return {"tabs": tabs, "active_tab": active}
 
 
diff --git a/apps/catalogue/templatetags/common_tags.py b/apps/catalogue/templatetags/common_tags.py
new file mode 100755 (executable)
index 0000000..ccaf03b
--- /dev/null
@@ -0,0 +1,7 @@
+from django import template
+register = template.Library()
+
+
+@register.filter
+def build_absolute_uri(uri, request):
+    return request.build_absolute_uri(uri)
diff --git a/apps/catalogue/test_utils.py b/apps/catalogue/test_utils.py
new file mode 100644 (file)
index 0000000..2b08545
--- /dev/null
@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+"""Testing utilities."""
+
+from os.path import abspath, dirname, join
+
+
+def get_fixture(path):
+    f_path = join(dirname(abspath(__file__)), 'tests/files', path)
+    with open(f_path) as f:
+        return unicode(f.read(), 'utf-8')
old mode 100755 (executable)
new mode 100644 (file)
index b03701f..533a6c5
@@ -1,72 +1,9 @@
-from os.path import abspath, dirname, join
-from nose.tools import *
-from mock import patch
-from django.test import TestCase
-from django.contrib.auth.models import User
-from catalogue.models import Book, BookPublishRecord
-
-
-def get_fixture(path):
-    f_path = join(dirname(abspath(__file__)), 'files', path)
-    with open(f_path) as f:
-        return unicode(f.read(), 'utf-8')
-
-
-class PublishTests(TestCase):
-
-    def setUp(self):
-        self.user = User.objects.create(username='tester')
-        self.text1 = get_fixture('chunk1.xml')
-        self.book = Book.create(self.user, self.text1, slug='test-book')
-
-    @patch('apiclient.api_call')
-    def test_unpublishable(self, api_call):
-        with self.assertRaises(AssertionError):
-            self.book.publish(self.user)
-
-    @patch('apiclient.api_call')
-    def test_publish(self, api_call):
-        self.book[0].head.set_publishable(True)
-        self.book.publish(self.user)
-        api_call.assert_called_with(self.user, 'books/', {"book_xml": self.text1})
-
-    @patch('apiclient.api_call')
-    def test_publish_multiple(self, api_call):
-        self.book[0].head.set_publishable(True)
-        self.book[0].split(slug='part-2')
-        self.book[1].commit(get_fixture('chunk2.xml'))
-        self.book[1].head.set_publishable(True)
-        self.book.publish(self.user)
-        api_call.assert_called_with(self.user, 'books/', {"book_xml": get_fixture('expected.xml')})
-
-
-class ManipulationTests(TestCase):
-
-    def setUp(self):
-        self.user = User.objects.create(username='tester')
-        self.book1 = Book.create(self.user, 'book 1', slug='book1')
-        self.book2 = Book.create(self.user, 'book 2', slug='book2')
-
-    def test_append(self):
-        self.book1.append(self.book2)
-        self.assertEqual(Book.objects.all().count(), 1)
-        self.assertEqual(len(self.book1), 2)
-
-    def test_append_to_self(self):
-        with self.assertRaises(AssertionError):
-            self.book1.append(Book.objects.get(pk=self.book1.pk))
-        self.assertEqual(Book.objects.all().count(), 2)
-        self.assertEqual(len(self.book1), 1)
-
-    def test_prepend_history(self):
-        self.book1.prepend_history(self.book2)
-        self.assertEqual(Book.objects.all().count(), 1)
-        self.assertEqual(len(self.book1), 1)
-        self.assertEqual(self.book1.materialize(), 'book 1')
-
-    def test_prepend_history_to_self(self):
-        with self.assertRaises(AssertionError):
-            self.book1.prepend_history(self.book1)
-        self.assertEqual(Book.objects.all().count(), 2)
-        self.assertEqual(self.book1.materialize(), 'book 1')
-        self.assertEqual(self.book2.materialize(), 'book 2')
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+from catalogue.tests.book import *
+from catalogue.tests.gallery import *
+from catalogue.tests.publish import *
+from catalogue.tests.xml_updater import *
diff --git a/apps/catalogue/tests/book.py b/apps/catalogue/tests/book.py
new file mode 100644 (file)
index 0000000..df6f3b4
--- /dev/null
@@ -0,0 +1,54 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+"""Tests for manipulating books in the catalogue."""
+
+from django.test import TestCase
+from django.contrib.auth.models import User
+from catalogue.models import Book
+
+
+class ManipulationTests(TestCase):
+
+    def setUp(self):
+        self.user = User.objects.create(username='tester')
+        self.book1 = Book.create(self.user, 'book 1', slug='book1')
+        self.book2 = Book.create(self.user, 'book 2', slug='book2')
+
+    def test_append(self):
+        self.book1.append(self.book2)
+        self.assertEqual(Book.objects.all().count(), 1)
+        self.assertEqual(len(self.book1), 2)
+
+    def test_append_to_self(self):
+        with self.assertRaises(AssertionError):
+            self.book1.append(Book.objects.get(pk=self.book1.pk))
+        self.assertEqual(Book.objects.all().count(), 2)
+        self.assertEqual(len(self.book1), 1)
+
+    def test_prepend_history(self):
+        self.book1.prepend_history(self.book2)
+        self.assertEqual(Book.objects.all().count(), 1)
+        self.assertEqual(len(self.book1), 1)
+        self.assertEqual(self.book1.materialize(), 'book 1')
+
+    def test_prepend_history_to_self(self):
+        with self.assertRaises(AssertionError):
+            self.book1.prepend_history(self.book1)
+        self.assertEqual(Book.objects.all().count(), 2)
+        self.assertEqual(self.book1.materialize(), 'book 1')
+        self.assertEqual(self.book2.materialize(), 'book 2')
+
+    def test_split_book(self):
+        self.book1.chunk_set.create(number=2, title='Second chunk',
+                slug='book3')
+        self.book1[1].commit('I survived!')
+        self.assertEqual(len(self.book1), 2)
+        self.book1.split()
+        self.assertEqual(set([b.slug for b in Book.objects.all()]),
+                set(['book2', '1', 'book3']))
+        self.assertEqual(
+                Book.objects.get(slug='book3').materialize(),
+                'I survived!')
index 8497f60..6a75580 100755 (executable)
@@ -20,6 +20,7 @@
 <dc:type xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/">text</dc:type>
 <dc:type xml:lang="en" xmlns:dc="http://purl.org/dc/elements/1.1/">text</dc:type>
 <dc:date xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/">2007-09-06</dc:date>
+<dc:language xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/">pol</dc:language>
 
 </rdf:Description>
 </rdf:RDF>
index ccbeefb..ff225a0 100755 (executable)
@@ -20,6 +20,7 @@
 <dc:type xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/">text</dc:type>
 <dc:type xml:lang="en" xmlns:dc="http://purl.org/dc/elements/1.1/">text</dc:type>
 <dc:date xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/">2007-09-06</dc:date>
+<dc:language xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/">pol</dc:language>
 
 </rdf:Description>
 </rdf:RDF>
diff --git a/apps/catalogue/tests/gallery.py b/apps/catalogue/tests/gallery.py
new file mode 100644 (file)
index 0000000..ad0dfd7
--- /dev/null
@@ -0,0 +1,148 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+"""Tests for galleries of scans."""
+
+from os.path import join, basename, exists
+from os import makedirs, listdir
+from django.test import TestCase
+from django.contrib.auth.models import User
+from catalogue.models import Book
+from tempfile import mkdtemp
+from django.conf import settings
+
+
+class GalleryAppendTests(TestCase):
+    def setUp(self):
+        self.user = User.objects.create(username='tester')
+        self.book1 = Book.create(self.user, 'book 1', slug='book1')
+        self.book1.chunk_set.create(number=2, title='Second chunk',
+                slug='book 1 / 2')
+        c=self.book1[1]
+        c.gallery_start=3
+        
+        self.scandir = join(settings.MEDIA_ROOT, settings.IMAGE_DIR)
+        if not exists(self.scandir):
+            makedirs(self.scandir)
+
+    def make_gallery(self, book, files):
+        d = mkdtemp('gallery', dir=self.scandir)
+        for named, cont in files.items():
+            f = open(join(d, named), 'w')
+            f.write(cont)
+            f.close()
+        book.gallery = basename(d)
+
+
+    def test_both_indexed(self):
+        self.book2 = Book.create(self.user, 'book 2', slug='book2')
+        self.book2.chunk_set.create(number=2, title='Second chunk of second book',
+                slug='book 2 / 2')
+
+        c = self.book2[1]
+        c.gallery_start = 3
+        c.save()
+        
+        print "gallery starts:",self.book2[0].gallery_start, self.book2[1].gallery_start
+
+        self.make_gallery(self.book1, {
+            '1-0001_1l' : 'aa',
+            '1-0001_2r' : 'bb',
+            '1-0002_1l' : 'cc',
+            '1-0002_2r' : 'dd',
+            })
+
+        self.make_gallery(self.book2, {
+            '1-0001_1l' : 'dd', # the same, should not be moved
+            '1-0001_2r' : 'ff',
+            '2-0002_1l' : 'gg',
+            '2-0002_2r' : 'hh',
+            })
+
+        self.book1.append(self.book2)
+
+        files = listdir(join(self.scandir, self.book1.gallery))
+        files.sort()
+        print files
+        self.assertEqual(files, [
+            '1-0001_1l',
+            '1-0001_2r',
+            '1-0002_1l',
+            '1-0002_2r',
+            #            '2-0001_1l',
+            '2-0001_2r',
+            '3-0002_1l',
+            '3-0002_2r',
+            ])        
+
+        self.assertEqual((4, 6), (self.book1[2].gallery_start, self.book1[3].gallery_start))
+        
+        
+    def test_none_indexed(self):
+        self.book2 = Book.create(self.user, 'book 2', slug='book2')
+        self.make_gallery(self.book1, {
+            '0001_1l' : 'aa',
+            '0001_2r' : 'bb',
+            '0002_1l' : 'cc',
+            '0002_2r' : 'dd',
+            })
+
+        self.make_gallery(self.book2, {
+            '0001_1l' : 'ee',
+            '0001_2r' : 'ff',
+            '0002_1l' : 'gg',
+            '0002_2r' : 'hh',
+            })
+
+        self.book1.append(self.book2)
+
+        files = listdir(join(self.scandir, self.book1.gallery))
+        files.sort()
+        print files
+        self.assertEqual(files, [
+            '0-0001_1l',
+            '0-0001_2r',
+            '0-0002_1l',
+            '0-0002_2r',
+            '1-0001_1l',
+            '1-0001_2r',
+            '1-0002_1l',
+            '1-0002_2r',
+            ])        
+
+
+    def test_none_indexed(self):
+        import nose.tools
+        self.book2 = Book.create(self.user, 'book 2', slug='book2')
+        self.make_gallery(self.book1, {
+            '1-0001_1l' : 'aa',
+            '1-0001_2r' : 'bb',
+            '1002_1l' : 'cc',
+            '1002_2r' : 'dd',
+            })
+
+        self.make_gallery(self.book2, {
+            '0001_1l' : 'ee',
+            '0001_2r' : 'ff',
+            '0002_1l' : 'gg',
+            '0002_2r' : 'hh',
+            })
+
+        self.book1.append(self.book2)
+
+        files = listdir(join(self.scandir, self.book1.gallery))
+        files.sort()
+        print files
+        self.assertEqual(files, [
+            '0-1-0001_1l',
+            '0-1-0001_2r',
+            '0-1002_1l',
+            '0-1002_2r',
+            '1-0001_1l',
+            '1-0001_2r',
+            '1-0002_1l',
+            '1-0002_2r',
+            ])        
+
diff --git a/apps/catalogue/tests/publish.py b/apps/catalogue/tests/publish.py
new file mode 100644 (file)
index 0000000..9f0b8ca
--- /dev/null
@@ -0,0 +1,40 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+"""Tests for the publishing process."""
+
+from catalogue.test_utils import get_fixture
+
+from mock import patch
+from django.test import TestCase
+from django.contrib.auth.models import User
+from catalogue.models import Book
+
+
+class PublishTests(TestCase):
+    def setUp(self):
+        self.user = User.objects.create(username='tester')
+        self.text1 = get_fixture('chunk1.xml')
+        self.book = Book.create(self.user, self.text1, slug='test-book')
+
+    @patch('apiclient.api_call')
+    def test_unpublishable(self, api_call):
+        with self.assertRaises(AssertionError):
+            self.book.publish(self.user)
+
+    @patch('apiclient.api_call')
+    def test_publish(self, api_call):
+        self.book[0].head.set_publishable(True)
+        self.book.publish(self.user)
+        api_call.assert_called_with(self.user, 'books/', {"book_xml": self.text1})
+
+    @patch('apiclient.api_call')
+    def test_publish_multiple(self, api_call):
+        self.book[0].head.set_publishable(True)
+        self.book[0].split(slug='part-2')
+        self.book[1].commit(get_fixture('chunk2.xml'))
+        self.book[1].head.set_publishable(True)
+        self.book.publish(self.user)
+        api_call.assert_called_with(self.user, 'books/', {"book_xml": get_fixture('expected.xml')})
diff --git a/apps/catalogue/tests/xml_updater.py b/apps/catalogue/tests/xml_updater.py
new file mode 100644 (file)
index 0000000..9fb5a4a
--- /dev/null
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+"""XmlUpdater tests."""
+
+from catalogue.test_utils import get_fixture
+from django.test import TestCase
+from django.contrib.auth.models import User
+from catalogue.models import Book
+from catalogue.management import XmlUpdater
+from librarian import DCNS
+
+
+class XmlUpdaterTests(TestCase):
+    class SimpleUpdater(XmlUpdater):
+        @XmlUpdater.fixes_elements('.//' + DCNS('title'))
+        def fix_title(element, **kwargs):
+            element.text = element.text + " fixed"
+            return True
+
+    def setUp(self):
+        self.user = User.objects.create(username='tester')
+        text = get_fixture('chunk1.xml')
+        Book.create(self.user, text, slug='test-book')
+        self.title = "Do M***"
+
+    def test_xml_updater(self):
+        self.SimpleUpdater().run(self.user)
+        self.assertEqual(
+            Book.objects.get(slug='test-book').wldocument(
+                publishable=False).book_info.title,
+            self.title + " fixed"
+            )
index 31df1c1..3627bf0 100644 (file)
@@ -1,10 +1,13 @@
 # -*- coding: utf-8
-from django.conf.urls.defaults import *
-from django.views.generic.simple import redirect_to
+from django.conf.urls import patterns, url
+from django.contrib.auth.decorators import permission_required
+from django.views.generic import RedirectView
+from catalogue.feeds import PublishTrackFeed
+from catalogue.views import GalleryView
 
 
 urlpatterns = patterns('catalogue.views',
-    url(r'^$', redirect_to, {'url': 'catalogue/'}),
+    url(r'^$', RedirectView.as_view(url='catalogue/')),
 
     url(r'^images/$', 'image_list', name='catalogue_image_list'),
     url(r'^image/(?P<slug>[^/]+)/$', 'image', name="catalogue_image"),
@@ -30,16 +33,23 @@ urlpatterns = patterns('catalogue.views',
     url(r'^book/(?P<slug>[^/]+)/publish$', 'publish', name="catalogue_publish"),
 
     url(r'^book/(?P<slug>[^/]+)/$', 'book', name="catalogue_book"),
+    url(r'^book/(?P<slug>[^/]+)/gallery/$',
+            permission_required('catalogue.change_book')(GalleryView.as_view()),
+            name="catalogue_book_gallery"),
     url(r'^book/(?P<slug>[^/]+)/xml$', 'book_xml', name="catalogue_book_xml"),
     url(r'^book/(?P<slug>[^/]+)/txt$', 'book_txt', name="catalogue_book_txt"),
     url(r'^book/(?P<slug>[^/]+)/html$', 'book_html', name="catalogue_book_html"),
     url(r'^book/(?P<slug>[^/]+)/epub$', 'book_epub', name="catalogue_book_epub"),
     url(r'^book/(?P<slug>[^/]+)/pdf$', 'book_pdf', name="catalogue_book_pdf"),
+
     url(r'^chunk_add/(?P<slug>[^/]+)/(?P<chunk>[^/]+)/$',
         'chunk_add', name="catalogue_chunk_add"),
     url(r'^chunk_edit/(?P<slug>[^/]+)/(?P<chunk>[^/]+)/$',
         'chunk_edit', name="catalogue_chunk_edit"),
     url(r'^book_append/(?P<slug>[^/]+)/$',
         'book_append', name="catalogue_book_append"),
+    url(r'^chunk_mass_edit',
+        'chunk_mass_edit', name='catalogue_chunk_mass_edit'),
 
+    url(r'^track/(?P<slug>[^/]*)/$', PublishTrackFeed()),
 )
index ed5b15f..01e4d1f 100644 (file)
@@ -5,11 +5,13 @@ from StringIO import StringIO
 from urllib import unquote
 from urlparse import urlsplit, urlunsplit
 
+from django.conf import settings
 from django.contrib import auth
 from django.contrib.auth.models import User
 from django.contrib.auth.decorators import login_required, permission_required
 from django.core.urlresolvers import reverse
 from django.db.models import Count, Q
+from django.db import transaction
 from django import http
 from django.http import Http404, HttpResponse, HttpResponseForbidden
 from django.shortcuts import get_object_or_404, render
@@ -17,15 +19,14 @@ from django.utils.encoding import iri_to_uri
 from django.utils.http import urlquote_plus
 from django.utils.translation import ugettext_lazy as _
 from django.views.decorators.http import require_POST
-from django.views.generic.simple import direct_to_template
 
 from apiclient import NotAuthorizedError
 from catalogue import forms
 from catalogue import helpers
 from catalogue.helpers import active_tab
 from catalogue.models import (Book, Chunk, Image, BookPublishRecord, 
-        ChunkPublishRecord, ImagePublishRecord)
-from catalogue.tasks import publishable_error
+        ChunkPublishRecord, ImagePublishRecord, Project)
+from fileupload.views import UploadView
 
 #
 # Quick hack around caching problems, TODO: use ETags
@@ -67,7 +68,7 @@ def my(request):
 
 @active_tab('users')
 def users(request):
-    return direct_to_template(request, 'catalogue/user_list.html', extra_context={
+    return render(request, 'catalogue/user_list.html', {
         'users': User.objects.all().annotate(count=Count('chunk')).order_by(
             '-count', 'last_name', 'first_name'),
     })
@@ -127,7 +128,7 @@ def create_missing(request, slug=None):
                 "gallery": slug,
         })
 
-    return direct_to_template(request, "catalogue/document_create_missing.html", extra_context={
+    return render(request, "catalogue/document_create_missing.html", {
         "slug": slug,
         "form": form,
 
@@ -182,7 +183,7 @@ def upload(request):
                         title=title,
                     )
 
-            return direct_to_template(request, "catalogue/document_upload.html", extra_context={
+            return render(request, "catalogue/document_upload.html", {
                 "form": form,
                 "ok_list": ok_list,
                 "skipped_list": skipped_list,
@@ -193,7 +194,7 @@ def upload(request):
     else:
         form = forms.DocumentsUploadForm()
 
-    return direct_to_template(request, "catalogue/document_upload.html", extra_context={
+    return render(request, "catalogue/document_upload.html", {
         "form": form,
 
         "logout_to": '/',
@@ -217,13 +218,9 @@ def book_txt(request, slug):
     book = get_object_or_404(Book, slug=slug)
     if not book.accessible(request):
         return HttpResponseForbidden("Not authorized.")
-    xml = book.materialize()
-    output = StringIO()
-    # errors?
 
-    import librarian.text
-    librarian.text.transform(StringIO(xml), output)
-    text = output.getvalue()
+    doc = book.wldocument()
+    text = doc.as_text().get_string()
     response = http.HttpResponse(text, content_type='text/plain', mimetype='text/plain')
     response['Content-Disposition'] = 'attachment; filename=%s.txt' % slug
     return response
@@ -234,16 +231,21 @@ def book_html(request, slug):
     book = get_object_or_404(Book, slug=slug)
     if not book.accessible(request):
         return HttpResponseForbidden("Not authorized.")
-    xml = book.materialize()
-    output = StringIO()
-    # errors?
-
-    import librarian.html
-    librarian.html.transform(StringIO(xml), output, parse_dublincore=False,
-                             flags=['full-page'])
-    html = output.getvalue()
-    response = http.HttpResponse(html, content_type='text/html', mimetype='text/html')
-    return response
+
+    doc = book.wldocument(parse_dublincore=False)
+    html = doc.as_html()
+
+    html = html.get_string() if html is not None else ''
+    # response = http.HttpResponse(html, content_type='text/html', mimetype='text/html')
+    # return response
+    # book_themes = {}
+    # for fragment in book.fragments.all().iterator():
+    #     for theme in fragment.tags.filter(category='theme').iterator():
+    #         book_themes.setdefault(theme, []).append(fragment)
+
+    # book_themes = book_themes.items()
+    # book_themes.sort(key=lambda s: s[0].sort_key)
+    return render(request, 'catalogue/book_text.html', locals())
 
 
 @never_cache
@@ -252,25 +254,13 @@ def book_pdf(request, slug):
     if not book.accessible(request):
         return HttpResponseForbidden("Not authorized.")
 
-    from tempfile import NamedTemporaryFile
-    from os import unlink
-    from librarian import pdf
-    from catalogue.ebook_utils import RedakcjaDocProvider, serve_file
-
-    xml = book.materialize()
-    xml_file = NamedTemporaryFile()
-    xml_file.write(xml.encode('utf-8'))
-    xml_file.flush()
-
-    try:
-        pdf_file = NamedTemporaryFile(delete=False)
-        pdf.transform(RedakcjaDocProvider(publishable=True),
-                  file_path=xml_file.name,
-                  output_file=pdf_file,
-                  )
-        return serve_file(pdf_file.name, book.slug + '.pdf', 'application/pdf')
-    finally:
-        unlink(pdf_file.name)
+    # TODO: move to celery
+    doc = book.wldocument()
+    # TODO: error handling
+    pdf_file = doc.as_pdf()
+    from catalogue.ebook_utils import serve_file
+    return serve_file(pdf_file.get_filename(),
+                book.slug + '.pdf', 'application/pdf')
 
 
 @never_cache
@@ -279,23 +269,13 @@ def book_epub(request, slug):
     if not book.accessible(request):
         return HttpResponseForbidden("Not authorized.")
 
-    from StringIO import StringIO
-    from tempfile import NamedTemporaryFile
-    from librarian import epub
-    from catalogue.ebook_utils import RedakcjaDocProvider
-
-    xml = book.materialize()
-    xml_file = NamedTemporaryFile()
-    xml_file.write(xml.encode('utf-8'))
-    xml_file.flush()
-
-    epub_file = StringIO()
-    epub.transform(RedakcjaDocProvider(publishable=True),
-            file_path=xml_file.name,
-            output_file=epub_file)
+    # TODO: move to celery
+    doc = book.wldocument()
+    # TODO: error handling
+    epub = doc.as_epub().get_string()
     response = HttpResponse(mimetype='application/epub+zip')
     response['Content-Disposition'] = 'attachment; filename=%s' % book.slug + '.epub'
-    response.write(epub_file.getvalue())
+    response.write(epub)
     return response
 
 
@@ -323,15 +303,15 @@ def book(request, slug):
                 return http.HttpResponseRedirect(book.get_absolute_url())
         else:
             form = forms.BookForm(instance=book)
-            editable = True
+        editable = True
     else:
         form = forms.ReadonlyBookForm(instance=book)
         editable = False
 
-    publish_error = publishable_error(book)
+    publish_error = book.publishable_error()
     publishable = publish_error is None
 
-    return direct_to_template(request, "catalogue/book_detail.html", extra_context={
+    return render(request, "catalogue/book_detail.html", {
         "book": book,
         "publishable": publishable,
         "publishable_error": publish_error,
@@ -358,10 +338,10 @@ def image(request, slug):
         form = forms.ReadonlyImageForm(instance=image)
         editable = False
 
-    publish_error = publishable_error(image)
+    publish_error = image.publishable_error()
     publishable = publish_error is None
 
-    return direct_to_template(request, "catalogue/image_detail.html", extra_context={
+    return render(request, "catalogue/image_detail.html", {
         "object": image,
         "publishable": publishable,
         "publishable_error": publish_error,
@@ -401,12 +381,13 @@ def chunk_add(request, slug, chunk):
                 "title": "cz. %d" % (doc.number + 1, ),
         })
 
-    return direct_to_template(request, "catalogue/chunk_add.html", extra_context={
+    return render(request, "catalogue/chunk_add.html", {
         "chunk": doc,
         "form": form,
     })
 
 
+@login_required
 def chunk_edit(request, slug, chunk):
     try:
         doc = Chunk.get(slug, chunk)
@@ -436,13 +417,73 @@ def chunk_edit(request, slug, chunk):
     else:
         go_next = ''
 
-    return direct_to_template(request, "catalogue/chunk_edit.html", extra_context={
+    return render(request, "catalogue/chunk_edit.html", {
         "chunk": doc,
         "form": form,
         "go_next": go_next,
     })
 
 
+@transaction.commit_on_success
+@login_required
+def chunk_mass_edit(request):
+    if request.method == 'POST':
+        ids = map(int, filter(lambda i: i.strip()!='', request.POST.get('ids').split(',')))
+        chunks = map(lambda i: Chunk.objects.get(id=i), ids)
+        
+        stage = request.POST.get('stage')
+        if stage:
+            try:
+                stage = Chunk.tag_model.objects.get(slug=stage)
+            except Chunk.DoesNotExist, e:
+                stage = None
+           
+            for c in chunks: c.stage = stage
+
+        username = request.POST.get('user')
+        logger.info("username: %s" % username)
+        logger.info(request.POST)
+        if username:
+            try:
+                user = User.objects.get(username=username)
+            except User.DoesNotExist, e:
+                user = None
+                
+            for c in chunks: c.user = user
+
+        status = request.POST.get('status')
+        if status:
+            books_affected = set()
+            for c in chunks:
+                if status == 'publish':
+                    c.head.publishable = True
+                    c.head.save()
+                elif status == 'unpublish':
+                    c.head.publishable = False
+                    c.head.save()
+                c.touch()  # cache
+                books_affected.add(c.book)
+            for b in books_affected:
+                b.touch()  # cache
+
+        project_id = request.POST.get('project')
+        if project_id:
+            try:
+                project = Project.objects.get(pk=int(project_id))
+            except (Project.DoesNotExist, ValueError), e:
+                project = None
+            for c in chunks:
+                book = c.book
+                book.project = project
+                book.save()
+
+        for c in chunks: c.save()
+
+        return HttpResponse("", content_type="text/plain")
+    else:
+        raise Http404
+
+
 @permission_required('catalogue.change_book')
 def book_append(request, slug):
     book = get_object_or_404(Book, slug=slug)
@@ -457,7 +498,7 @@ def book_append(request, slug):
             return http.HttpResponseRedirect(append_to.get_absolute_url())
     else:
         form = forms.BookAppendForm(book)
-    return direct_to_template(request, "catalogue/book_append_to.html", extra_context={
+    return render(request, "catalogue/book_append_to.html", {
         "book": book,
         "form": form,
 
@@ -497,3 +538,21 @@ def publish_image(request, slug):
         return http.HttpResponse(e)
     else:
         return http.HttpResponseRedirect(image.get_absolute_url())
+
+
+class GalleryView(UploadView):
+    def get_object(self, request, slug):
+        book = get_object_or_404(Book, slug=slug)
+        if not book.gallery:
+            raise Http404
+        return book
+
+    def breadcrumbs(self):
+        return [
+            (_('books'), reverse('catalogue_document_list')),
+            (self.object.title, self.object.get_absolute_url()),
+            (_('scan gallery'),),
+        ]
+
+    def get_directory(self):
+        return "%s%s/" % (settings.IMAGE_DIR, self.object.gallery)
diff --git a/apps/compress/__init__.py b/apps/compress/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/apps/compress/conf/__init__.py b/apps/compress/conf/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/apps/compress/conf/settings.py b/apps/compress/conf/settings.py
deleted file mode 100644 (file)
index 4c71561..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-from django.core.exceptions import ImproperlyConfigured
-from django.conf import settings
-
-COMPRESS = getattr(settings, 'COMPRESS', not settings.DEBUG)
-COMPRESS_AUTO = getattr(settings, 'COMPRESS_AUTO', True)
-COMPRESS_VERSION = getattr(settings, 'COMPRESS_VERSION', False)
-COMPRESS_VERSION_PLACEHOLDER = getattr(settings, 'COMPRESS_VERSION_PLACEHOLDER', '?')
-COMPRESS_VERSION_DEFAULT = getattr(settings, 'COMPRESS_VERSION_DEFAULT', '0')
-COMPRESS_VERSIONING = getattr(settings, 'COMPRESS_VERSIONING', 'compress.versioning.mtime.MTimeVersioning')
-
-COMPRESS_CSS_FILTERS = getattr(settings, 'COMPRESS_CSS_FILTERS', ['compress.filters.csstidy.CSSTidyFilter'])
-COMPRESS_JS_FILTERS = getattr(settings, 'COMPRESS_JS_FILTERS', ['compress.filters.jsmin.JSMinFilter'])
-COMPRESS_CSS = getattr(settings, 'COMPRESS_CSS', {})
-COMPRESS_JS = getattr(settings, 'COMPRESS_JS', {})
-
-if COMPRESS_CSS_FILTERS is None:
-    COMPRESS_CSS_FILTERS = []
-
-if COMPRESS_JS_FILTERS is None:
-    COMPRESS_JS_FILTERS = []
diff --git a/apps/compress/filter_base.py b/apps/compress/filter_base.py
deleted file mode 100644 (file)
index 3ce364f..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-class FilterBase:
-    def __init__(self, verbose):
-        self.verbose = verbose
-
-    def filter_css(self, css):
-        raise NotImplementedError
-
-    def filter_js(self, js):
-        raise NotImplementedError
-
-
-class FilterError(Exception):
-    """
-    This exception is raised when a filter fails
-    """
-    pass
diff --git a/apps/compress/filters/__init__.py b/apps/compress/filters/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/apps/compress/filters/csstidy/__init__.py b/apps/compress/filters/csstidy/__init__.py
deleted file mode 100644 (file)
index de5dd09..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-import os
-import warnings
-import tempfile
-
-from django.conf import settings
-
-from compress.filter_base import FilterBase
-
-BINARY = getattr(settings, 'CSSTIDY_BINARY', 'csstidy')
-ARGUMENTS = getattr(settings, 'CSSTIDY_ARGUMENTS', '--template=highest')
-
-warnings.simplefilter('ignore', RuntimeWarning)
-
-
-class CSSTidyFilter(FilterBase):
-
-    def filter_css(self, css):
-        tmp_file = tempfile.NamedTemporaryFile(mode='w+b')
-        tmp_file.write(css)
-        tmp_file.flush()
-
-        output_file = tempfile.NamedTemporaryFile(mode='w+b')
-
-        command = '%s %s %s %s' % (BINARY, tmp_file.name, ARGUMENTS, output_file.name)
-
-        command_output = os.popen(command).read()
-
-        filtered_css = output_file.read()
-        output_file.close()
-        tmp_file.close()
-
-        if self.verbose:
-            print command_output
-
-        return filtered_css
diff --git a/apps/compress/filters/jsmin/__init__.py b/apps/compress/filters/jsmin/__init__.py
deleted file mode 100644 (file)
index 340bef2..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-from compress.filters.jsmin.jsmin import jsmin
-from compress.filter_base import FilterBase
-
-
-class JSMinFilter(FilterBase):
-
-    def filter_js(self, js):
-        return jsmin(js)
diff --git a/apps/compress/filters/jsmin/jsmin.py b/apps/compress/filters/jsmin/jsmin.py
deleted file mode 100644 (file)
index 60202e1..0000000
+++ /dev/null
@@ -1,224 +0,0 @@
-#!/usr/bin/python
-
-# This code is original from jsmin by Douglas Crockford, it was translated to
-# Python by Baruch Even. The original code had the following copyright and
-# license.
-#
-# /* jsmin.c
-#    2007-05-22
-#
-# Copyright (c) 2002 Douglas Crockford  (www.crockford.com)
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy of
-# this software and associated documentation files (the "Software"), to deal in
-# the Software without restriction, including without limitation the rights to
-# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-# of the Software, and to permit persons to whom the Software is furnished to do
-# so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in all
-# copies or substantial portions of the Software.
-#
-# The Software shall be used for Good, not Evil.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-# SOFTWARE.
-# */
-
-from StringIO import StringIO
-
-
-def jsmin(js):
-    ins = StringIO(js)
-    outs = StringIO()
-    JavascriptMinify().minify(ins, outs)
-    str = outs.getvalue()
-    if len(str) > 0 and str[0] == '\n':
-        str = str[1:]
-    return str
-
-
-def isAlphanum(c):
-    """return true if the character is a letter, digit, underscore,
-           dollar sign, or non-ASCII character.
-    """
-    return (c >= 'a' and c <= 'z') or (c >= 'A' and c <= 'Z') \
-        or (c >= '0' and c <= '9') or c == '_' or c == '$' or c == '\\' \
-        or (c is not None and ord(c) > 126)
-
-
-class UnterminatedComment(Exception):
-    pass
-
-
-class UnterminatedStringLiteral(Exception):
-    pass
-
-
-class UnterminatedRegularExpression(Exception):
-    pass
-
-
-class JavascriptMinify(object):
-
-    def _outA(self):
-        self.outstream.write(self.theA)
-
-    def _outB(self):
-        self.outstream.write(self.theB)
-
-    def _get(self):
-        """return the next character from stdin. Watch out for lookahead. If
-           the character is a control character, translate it to a space or
-           linefeed.
-        """
-        c = self.theLookahead
-        self.theLookahead = None
-        if c == None:
-            c = self.instream.read(1)
-        if c >= ' ' or c == '\n':
-            return c
-        if c == '':  # EOF
-            return '\000'
-        if c == '\r':
-            return '\n'
-        return ' '
-
-    def _peek(self):
-        self.theLookahead = self._get()
-        return self.theLookahead
-
-    def _next(self):
-        """get the next character, excluding comments. peek() is used to see
-           if a '/' is followed by a '/' or '*'.
-        """
-        c = self._get()
-        if c == '/':
-            p = self._peek()
-            if p == '/':
-                c = self._get()
-                while c > '\n':
-                    c = self._get()
-                return c
-            if p == '*':
-                c = self._get()
-                while 1:
-                    c = self._get()
-                    if c == '*':
-                        if self._peek() == '/':
-                            self._get()
-                            return ' '
-                    if c == '\000':
-                        raise UnterminatedComment()
-
-        return c
-
-    def _action(self, action):
-        """do something! What you do is determined by the argument:
-           1   Output A. Copy B to A. Get the next B.
-           2   Copy B to A. Get the next B. (Delete A).
-           3   Get the next B. (Delete B).
-           action treats a string as a single character. Wow!
-           action recognizes a regular expression if it is preceded by ( or , or =.
-        """
-        if action <= 1:
-            self._outA()
-
-        if action <= 2:
-            self.theA = self.theB
-            if self.theA == "'" or self.theA == '"':
-                while 1:
-                    self._outA()
-                    self.theA = self._get()
-                    if self.theA == self.theB:
-                        break
-                    if self.theA <= '\n':
-                        raise UnterminatedStringLiteral()
-                    if self.theA == '\\':
-                        self._outA()
-                        self.theA = self._get()
-
-        if action <= 3:
-            self.theB = self._next()
-            if self.theB == '/' and (self.theA == '(' or self.theA == ',' or
-                                     self.theA == '=' or self.theA == ':' or
-                                     self.theA == '[' or self.theA == '?' or
-                                     self.theA == '!' or self.theA == '&' or
-                                     self.theA == '|' or self.theA == ';' or
-                                     self.theA == '{' or self.theA == '}' or
-                                     self.theA == '\n'):
-                self._outA()
-                self._outB()
-                while 1:
-                    self.theA = self._get()
-                    if self.theA == '/':
-                        break
-                    elif self.theA == '\\':
-                        self._outA()
-                        self.theA = self._get()
-                    elif self.theA <= '\n':
-                        raise UnterminatedRegularExpression()
-                    self._outA()
-                self.theB = self._next()
-
-    def _jsmin(self):
-        """Copy the input to the output, deleting the characters which are
-           insignificant to JavaScript. Comments will be removed. Tabs will be
-           replaced with spaces. Carriage returns will be replaced with linefeeds.
-           Most spaces and linefeeds will be removed.
-        """
-        self.theA = '\n'
-        self._action(3)
-
-        while self.theA != '\000':
-            if self.theA == ' ':
-                if isAlphanum(self.theB):
-                    self._action(1)
-                else:
-                    self._action(2)
-            elif self.theA == '\n':
-                if self.theB in ['{', '[', '(', '+', '-']:
-                    self._action(1)
-                elif self.theB == ' ':
-                    self._action(3)
-                else:
-                    if isAlphanum(self.theB):
-                        self._action(1)
-                    else:
-                        self._action(2)
-            else:
-                if self.theB == ' ':
-                    if isAlphanum(self.theA):
-                        self._action(1)
-                    else:
-                        self._action(3)
-                elif self.theB == '\n':
-                    if self.theA in ['}', ']', ')', '+', '-', '"', '\'']:
-                        self._action(1)
-                    else:
-                        if isAlphanum(self.theA):
-                            self._action(1)
-                        else:
-                            self._action(3)
-                else:
-                    self._action(1)
-
-    def minify(self, instream, outstream):
-        self.instream = instream
-        self.outstream = outstream
-        self.theA = '\n'
-        self.theB = None
-        self.theLookahead = None
-
-        self._jsmin()
-        self.instream.close()
-
-if __name__ == '__main__':
-    import sys
-    jsm = JavascriptMinify()
-    jsm.minify(sys.stdin, sys.stdout)
diff --git a/apps/compress/filters/yui/__init__.py b/apps/compress/filters/yui/__init__.py
deleted file mode 100644 (file)
index 47b2cfb..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-import subprocess
-
-from django.conf import settings
-
-from compress.filter_base import FilterBase, FilterError
-
-BINARY = getattr(settings, 'COMPRESS_YUI_BINARY', 'java -jar yuicompressor.jar')
-CSS_ARGUMENTS = getattr(settings, 'COMPRESS_YUI_CSS_ARGUMENTS', '')
-JS_ARGUMENTS = getattr(settings, 'COMPRESS_YUI_JS_ARGUMENTS', '')
-
-
-class YUICompressorFilter(FilterBase):
-
-    def filter_common(self, content, type_, arguments):
-        command = '%s --type=%s %s' % (BINARY, type_, arguments)
-
-        if self.verbose:
-            command += ' --verbose'
-
-        p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE)
-        p.stdin.write(content)
-        p.stdin.close()
-
-        filtered_css = p.stdout.read()
-        p.stdout.close()
-
-        err = p.stderr.read()
-        p.stderr.close()
-
-        if p.wait() != 0:
-            if not err:
-                err = 'Unable to apply YUI Compressor filter'
-
-            raise FilterError(err)
-
-        if self.verbose:
-            print err
-
-        return filtered_css
-
-    def filter_js(self, js):
-        return self.filter_common(js, 'js', JS_ARGUMENTS)
-
-    def filter_css(self, css):
-        return self.filter_common(css, 'css', CSS_ARGUMENTS)
diff --git a/apps/compress/management/__init__.py b/apps/compress/management/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/apps/compress/management/commands/__init__.py b/apps/compress/management/commands/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/apps/compress/management/commands/synccompress.py b/apps/compress/management/commands/synccompress.py
deleted file mode 100644 (file)
index b1cdafc..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-from django.core.management.base import NoArgsCommand
-from optparse import make_option
-
-from django.conf import settings
-
-
-class Command(NoArgsCommand):
-    option_list = NoArgsCommand.option_list + (
-        make_option('--force', action='store_true', default=False, help='Force update of all files, even if the source files are older than the current compressed file.'),
-    )
-    help = 'Updates and compresses CSS and JavsScript on-demand, without restarting Django'
-    args = ''
-
-    def handle_noargs(self, **options):
-
-        force = options.get('force', False)
-        verbosity = int(options.get('verbosity', 1))
-
-        from compress.utils import needs_update, filter_css, filter_js
-
-        for name, css in settings.COMPRESS_CSS.items():
-            u, version = needs_update(css['output_filename'],
-                css['source_filenames'])
-
-            if (force or u) or verbosity >= 2:
-                msg = 'CSS Group \'%s\'' % name
-                print msg
-                print len(msg) * '-'
-                print "Version: %s" % version
-
-            if force or u:
-                filter_css(css, verbosity)
-
-            if (force or u) or verbosity >= 2:
-                print
-
-        for name, js in settings.COMPRESS_JS.items():
-            u, version = needs_update(js['output_filename'],
-                js['source_filenames'])
-
-            if (force or u) or verbosity >= 2:
-                msg = 'JavaScript Group \'%s\'' % name
-                print msg
-                print len(msg) * '-'
-                print "Version: %s" % version
-
-            if force or u:
-                filter_js(js, verbosity)
-
-            if (force or u) or verbosity >= 2:
-                print
-
-# Backwards compatibility for Django r9110
-if not [opt for opt in Command.option_list if opt.dest == 'verbosity']:
-    Command.option_list += (
-    make_option('--verbosity', '-v', action="store", dest="verbosity",
-        default='1', type='choice', choices=['0', '1', '2'],
-        help="Verbosity level; 0=minimal output, 1=normal output, 2=all output"),
-    )
diff --git a/apps/compress/models.py b/apps/compress/models.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/apps/compress/signals.py b/apps/compress/signals.py
deleted file mode 100644 (file)
index bd76a76..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-from django.dispatch import Signal
-
-css_filtered = Signal()
-js_filtered = Signal()
diff --git a/apps/compress/templates/compress/css.html b/apps/compress/templates/compress/css.html
deleted file mode 100644 (file)
index 3751a4a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<link href="{{ url }}" rel="stylesheet" type="text/css"{% if media %} media="{{ media }}"{% endif %}{% if title %} title="{{ title|default:"all" }}"{% endif %}{% if charset %} charset="{{ charset }}"{% endif %} />
\ No newline at end of file
diff --git a/apps/compress/templates/compress/css_ie.html b/apps/compress/templates/compress/css_ie.html
deleted file mode 100644 (file)
index 2e244ee..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<!--[if {{ condition|default:"IE" }}]><link href="{{ url }}" rel="stylesheet" type="text/css" media="{{ media|default:"all" }}" title="{{ title|default:"all" }}" charset="utf-8" /><![endif]-->
\ No newline at end of file
diff --git a/apps/compress/templates/compress/js.html b/apps/compress/templates/compress/js.html
deleted file mode 100644 (file)
index 8419c20..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<script type="text/javascript" src="{{ url }}" charset="utf-8"></script>
\ No newline at end of file
diff --git a/apps/compress/templates/compress/js_ie.html b/apps/compress/templates/compress/js_ie.html
deleted file mode 100644 (file)
index ef1a37c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<!--[if {{ condition|default:"IE" }}]><script type="text/javascript" src="{{ url }}" charset="utf-8"></script><![endif]-->
\ No newline at end of file
diff --git a/apps/compress/templatetags/__init__.py b/apps/compress/templatetags/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/apps/compress/templatetags/compressed.py b/apps/compress/templatetags/compressed.py
deleted file mode 100644 (file)
index eeed319..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-import os
-
-from django import template
-
-from compress.conf import settings
-from compress.utils import media_root, media_url, needs_update, filter_css, filter_js, get_output_filename, get_version, get_version_from_file
-
-register = template.Library()
-
-
-def render_common(template_name, obj, filename, version):
-    if settings.COMPRESS:
-        filename = get_output_filename(filename, version)
-
-    context = obj.get('extra_context', {})
-    prefix = context.get('prefix', None)
-    if filename.startswith('http://'):
-        context['url'] = filename
-    else:
-        context['url'] = media_url(filename, prefix)
-
-    return template.loader.render_to_string(template_name, context)
-
-
-def render_css(css, filename, version=None):
-    return render_common(css.get('template_name', 'compress/css.html'), css, filename, version)
-
-
-def render_js(js, filename, version=None):
-    return render_common(js.get('template_name', 'compress/js.html'), js, filename, version)
-
-
-class CompressedCSSNode(template.Node):
-
-    def __init__(self, name):
-        self.name = name
-
-    def render(self, context):
-        css_name = template.Variable(self.name).resolve(context)
-
-        try:
-            css = settings.COMPRESS_CSS[css_name]
-        except KeyError:
-            return ''  # fail silently, do not return anything if an invalid group is specified
-
-        if settings.COMPRESS:
-
-            version = None
-
-            if settings.COMPRESS_AUTO:
-                u, version = needs_update(css['output_filename'],
-                    css['source_filenames'])
-                if u:
-                    filter_css(css)
-            else:
-                filename_base, filename = os.path.split(css['output_filename'])
-                path_name = media_root(filename_base)
-                version = get_version_from_file(path_name, filename)
-
-            return render_css(css, css['output_filename'], version)
-        else:
-            # output source files
-            r = ''
-            for source_file in css['source_filenames']:
-                r += render_css(css, source_file)
-
-            return r
-
-
-class CompressedJSNode(template.Node):
-
-    def __init__(self, name):
-        self.name = name
-
-    def render(self, context):
-        js_name = template.Variable(self.name).resolve(context)
-
-        try:
-            js = settings.COMPRESS_JS[js_name]
-        except KeyError:
-            return ''  # fail silently, do not return anything if an invalid group is specified
-
-        if 'external_urls' in js:
-            r = ''
-            for url in js['external_urls']:
-                r += render_js(js, url)
-            return r
-
-        if settings.COMPRESS:
-
-            version = None
-
-            if settings.COMPRESS_AUTO:
-                u, version = needs_update(js['output_filename'],
-                    js['source_filenames'])
-                if u:
-                    filter_js(js)
-            else:
-                filename_base, filename = os.path.split(js['output_filename'])
-                path_name = media_root(filename_base)
-                version = get_version_from_file(path_name, filename)
-
-            return render_js(js, js['output_filename'], version)
-        else:
-            # output source files
-            r = ''
-            for source_file in js['source_filenames']:
-                r += render_js(js, source_file)
-            return r
-
-
-#@register.tag
-def compressed_css(parser, token):
-    try:
-        tag_name, name = token.split_contents()
-    except ValueError:
-        raise template.TemplateSyntaxError, '%r requires exactly one argument: the name of a group in the COMPRESS_CSS setting' % token.split_contents()[0]
-
-    return CompressedCSSNode(name)
-compressed_css = register.tag(compressed_css)
-
-
-#@register.tag
-def compressed_js(parser, token):
-    try:
-        tag_name, name = token.split_contents()
-    except ValueError:
-        raise template.TemplateSyntaxError, '%r requires exactly one argument: the name of a group in the COMPRESS_JS setting' % token.split_contents()[0]
-
-    return CompressedJSNode(name)
-
-compressed_js = register.tag(compressed_js)
diff --git a/apps/compress/utils.py b/apps/compress/utils.py
deleted file mode 100644 (file)
index 1e5f4cc..0000000
+++ /dev/null
@@ -1,154 +0,0 @@
-import os
-import re
-import tempfile
-
-from django.conf import settings as django_settings
-from django.utils.http import urlquote
-from django.dispatch import dispatcher
-
-from compress.conf import settings
-from compress.signals import css_filtered, js_filtered
-
-
-def get_class(class_string):
-    """
-    Convert a string version of a function name to the callable object.
-    """
-
-    if not hasattr(class_string, '__bases__'):
-
-        try:
-            class_string = class_string.encode('ascii')
-            mod_name, class_name = get_mod_func(class_string)
-            if class_name != '':
-                class_string = getattr(__import__(mod_name, {}, {}, ['']), class_name)
-        except (ImportError, AttributeError):
-            raise Exception('Failed to import filter %s' % class_string)
-
-    return class_string
-
-
-def get_mod_func(callback):
-    """
-    Converts 'django.views.news.stories.story_detail' to
-    ('django.views.news.stories', 'story_detail')
-    """
-
-    try:
-        dot = callback.rindex('.')
-    except ValueError:
-        return callback, ''
-    return callback[:dot], callback[dot + 1:]
-
-
-def needs_update(output_file, source_files, verbosity=0):
-    """
-    Scan the source files for changes and returns True if the output_file needs to be updated.
-    """
-
-    version = get_version(source_files)
-
-    on = get_output_filename(output_file, version)
-    compressed_file_full = media_root(on)
-
-    if not os.path.exists(compressed_file_full):
-        return True, version
-
-    update_needed = getattr(get_class(settings.COMPRESS_VERSIONING)(), 'needs_update')(output_file, source_files, version)
-    return update_needed
-
-
-def media_root(filename):
-    """
-    Return the full path to ``filename``. ``filename`` is a relative path name in MEDIA_ROOT
-    """
-    return os.path.join(django_settings.STATIC_ROOT, filename)
-
-
-def media_url(url, prefix=None):
-    if prefix:
-        return prefix + urlquote(url)
-    return django_settings.STATIC_URL + urlquote(url)
-
-
-def concat(filenames, separator=''):
-    """
-    Concatenate the files from the list of the ``filenames``, ouput separated with ``separator``.
-    """
-    r = ''
-    for filename in filenames:
-        fd = open(media_root(filename), 'rb')
-        r += fd.read()
-        r += separator
-        fd.close()
-    return r
-
-
-def max_mtime(files):
-    return int(max([os.stat(media_root(f)).st_mtime for f in files]))
-
-
-def save_file(filename, contents):
-    dirname = os.path.dirname(media_root(filename))
-    if not os.path.exists(dirname):
-        os.makedirs(dirname)
-    fd = open(media_root(filename), 'wb+')
-    fd.write(contents)
-    fd.close()
-
-
-def get_output_filename(filename, version):
-    if settings.COMPRESS_VERSION and version is not None:
-        return filename.replace(settings.COMPRESS_VERSION_PLACEHOLDER, version)
-    else:
-        return filename.replace(settings.COMPRESS_VERSION_PLACEHOLDER, settings.COMPRESS_VERSION_DEFAULT)
-
-
-def get_version(source_files, verbosity=0):
-    version = getattr(get_class(settings.COMPRESS_VERSIONING)(), 'get_version')(source_files)
-    return version
-
-
-def get_version_from_file(path, filename):
-    regex = re.compile(r'^%s$' % (get_output_filename(settings.COMPRESS_VERSION_PLACEHOLDER.join([re.escape(part) for part in filename.split(settings.COMPRESS_VERSION_PLACEHOLDER)]), r'([A-Za-z0-9]+)')))
-    for f in os.listdir(path):
-        result = regex.match(f)
-        if result and result.groups():
-            return result.groups()[0]
-
-
-def remove_files(path, filename, verbosity=0):
-    regex = re.compile(r'^%s$' % (os.path.basename(get_output_filename(settings.COMPRESS_VERSION_PLACEHOLDER.join([re.escape(part) for part in filename.split(settings.COMPRESS_VERSION_PLACEHOLDER)]), r'[A-Za-z0-9]+'))))
-    if os.path.exists(path):
-        for f in os.listdir(path):
-            if regex.match(f):
-                if verbosity >= 1:
-                    print "Removing outdated file %s" % f
-
-                os.unlink(os.path.join(path, f))
-
-
-def filter_common(obj, verbosity, filters, attr, separator, signal):
-    output = concat(obj['source_filenames'], separator)
-
-    filename = get_output_filename(obj['output_filename'], get_version(obj['source_filenames']))
-
-    if settings.COMPRESS_VERSION:
-        remove_files(os.path.dirname(media_root(filename)), obj['output_filename'], verbosity)
-
-    if verbosity >= 1:
-        print "Saving %s" % filename
-
-    for f in filters:
-        output = getattr(get_class(f)(verbose=(verbosity >= 2)), attr)(output)
-
-    save_file(filename, output)
-    signal.send(None)
-
-
-def filter_css(css, verbosity=0):
-    return filter_common(css, verbosity, filters=settings.COMPRESS_CSS_FILTERS, attr='filter_css', separator='', signal=css_filtered)
-
-
-def filter_js(js, verbosity=0):
-    return filter_common(js, verbosity, filters=settings.COMPRESS_JS_FILTERS, attr='filter_js', separator='', signal=js_filtered)
diff --git a/apps/compress/versioning/__init__.py b/apps/compress/versioning/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/apps/compress/versioning/base.py b/apps/compress/versioning/base.py
deleted file mode 100644 (file)
index 0be9aca..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-class VersioningBase(object):
-
-    def get_version(self, source_files):
-        raise NotImplementedError
-
-    def needs_update(self, output_file, source_files, version):
-        raise NotImplementedError
-
-
-class VersioningError(Exception):
-    """
-    This exception is raised when version creation fails
-    """
-    pass
diff --git a/apps/compress/versioning/hash/__init__.py b/apps/compress/versioning/hash/__init__.py
deleted file mode 100644 (file)
index a298961..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-import cStringIO
-from hashlib import md5, sha1
-import os
-
-from compress.conf import settings
-from compress.utils import concat, get_output_filename
-from compress.versioning.base import VersioningBase
-
-
-class HashVersioningBase(VersioningBase):
-
-    def __init__(self, hash_method):
-        self.hash_method = hash_method
-
-    def needs_update(self, output_file, source_files, version):
-        output_file_name = get_output_filename(output_file, version)
-        ph = settings.COMPRESS_VERSION_PLACEHOLDER
-        of = output_file
-        try:
-            phi = of.index(ph)
-            old_version = output_file_name[phi:phi + len(ph) - len(of)]
-            return (version != old_version), version
-        except ValueError:
-            # no placeholder found, do not update, manual update if needed
-            return False, version
-
-    def get_version(self, source_files):
-        buf = concat(source_files)
-        s = cStringIO.StringIO(buf)
-        version = self.get_hash(s)
-        s.close()
-        return version
-
-    def get_hash(self, f, CHUNK=2 ** 16):
-        m = self.hash_method()
-        while 1:
-            chunk = f.read(CHUNK)
-            if not chunk:
-                break
-            m.update(chunk)
-        return m.hexdigest()
-
-
-class MD5Versioning(HashVersioningBase):
-
-    def __init__(self):
-        super(MD5Versioning, self).__init__(md5)
-
-
-class SHA1Versioning(HashVersioningBase):
-
-    def __init__(self):
-        super(SHA1Versioning, self).__init__(sha1)
diff --git a/apps/compress/versioning/mtime/__init__.py b/apps/compress/versioning/mtime/__init__.py
deleted file mode 100644 (file)
index 010aba9..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-import os
-
-from compress.utils import get_output_filename, media_root
-from compress.versioning.base import VersioningBase
-
-
-class MTimeVersioning(VersioningBase):
-
-    def get_version(self, source_files):
-
-        # Return the modification time for the newest source file
-        return str(max([int(os.stat(media_root(f)).st_mtime) for f in source_files]))
-
-    def needs_update(self, output_file, source_files, version):
-
-        output_file_name = get_output_filename(output_file, version)
-        compressed_file_full = media_root(output_file_name)
-
-        return (int(os.stat(compressed_file_full).st_mtime) < int(version)), version
diff --git a/apps/cover/__init__.py b/apps/cover/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/apps/cover/forms.py b/apps/cover/forms.py
new file mode 100755 (executable)
index 0000000..e6ffdff
--- /dev/null
@@ -0,0 +1,108 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+import re
+from urllib2 import urlopen
+from django import forms
+from django.utils.translation import ugettext_lazy as _, ugettext
+from cover.models import Image
+from django.utils.text import mark_safe
+
+class ImageAddForm(forms.ModelForm):
+    class Meta:
+        model = Image
+
+    def __init__(self, *args, **kwargs):
+        super(ImageAddForm, self).__init__(*args, **kwargs)
+        self.fields['file'].required = False
+
+    def clean_download_url(self):
+        cl = self.cleaned_data['download_url'] or None
+        if cl is not None:
+            try:
+                img = Image.objects.get(download_url=cl)
+            except Image.DoesNotExist:
+                pass
+            else:
+                raise forms.ValidationError(mark_safe(
+                    ugettext('Image <a href="%(url)s">already in repository</a>.'
+                        ) % {'url': img.get_absolute_url()}))
+        return cl
+
+    def clean(self):
+        cleaned_data = super(ImageAddForm, self).clean()
+        if not cleaned_data.get('download_url', None) and not cleaned_data.get('file', None):
+            raise forms.ValidationError('No image specified')
+        return cleaned_data
+
+class ImageEditForm(forms.ModelForm):
+    """Form used for editing a Book."""
+    class Meta:
+        model = Image
+        exclude = ['download_url']
+
+
+class ReadonlyImageEditForm(ImageEditForm):
+    """Form used for not editing an Image."""
+
+    def __init__(self, *args, **kwargs):
+        ret = super(ReadonlyImageEditForm, self).__init__(*args, **kwargs)
+        for field in self.fields.values():
+            field.widget.attrs.update({"readonly": True})
+        return ret
+
+    def save(self, *args, **kwargs):
+        raise AssertionError, "ReadonlyImageEditForm should not be saved."
+
+
+class FlickrForm(forms.Form):
+    source_url = forms.URLField(label=_('Flickr URL'))
+
+    def clean_source_url(self):
+        def normalize_html(html):
+            return re.sub('[\t\n]', '', html)
+    
+        url = self.cleaned_data['source_url']
+        m = re.match(r'(https?://)?(www\.|secure\.)?flickr\.com/photos/(?P<author>[^/]+)/(?P<img>\d+)/?', url)
+        if not m:
+            raise forms.ValidationError("It doesn't look like Flickr URL.")
+        author_slug, img_id = m.group('author'), m.group('img')
+        base_url = "https://www.flickr.com/photos/%s/%s/" % (author_slug, img_id)
+
+        try:
+            html = normalize_html(urlopen(url).read().decode('utf-8'))
+        except:
+            raise forms.ValidationError('Error reading page.')
+        match = re.search(r'<a href="([^"]*)" rel="license cc:license">Some rights reserved</a>', html)
+        try:
+            assert match
+            license_url = match.group(1)
+            self.cleaned_data['license_url'] = license_url
+            re_license = re.compile(r'https?://creativecommons.org/licenses/([^/]*)/([^/]*)/.*')
+            m = re_license.match(license_url)
+            assert m
+            self.cleaned_data['license_name'] = 'CC %s %s' % (m.group(1).upper(), m.group(2))
+        except AssertionError:
+            raise forms.ValidationError('Error reading license name.')
+
+        m = re.search(r'"ownername":"([^"]*)', html)
+        if m:
+            self.cleaned_data['author'] = "%s@Flickr" % m.group(1)
+        else:
+            raise forms.ValidationError('Error reading author name.')
+
+        m = re.search(r'<h1[^>]*>(.*?)</h1>', html)
+        if not m:
+            raise forms.ValidationError('Error reading image title.')
+        self.cleaned_data['title'] = m.group(1)
+
+        url_size = base_url + "sizes/o/"
+        html = normalize_html(urlopen(url_size).read().decode('utf-8'))
+        m = re.search(r'<div id="allsizes-photo">\s*<img src="([^"]*)"', html)
+        if m:
+            self.cleaned_data['download_url'] = m.group(1)
+        else:
+            raise forms.ValidationError('Error reading image URL.')
+        return base_url
diff --git a/apps/cover/locale/pl/LC_MESSAGES/django.mo b/apps/cover/locale/pl/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..1c297fe
Binary files /dev/null and b/apps/cover/locale/pl/LC_MESSAGES/django.mo differ
diff --git a/apps/cover/locale/pl/LC_MESSAGES/django.po b/apps/cover/locale/pl/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..67547ce
--- /dev/null
@@ -0,0 +1,100 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-02-25 13:29+0100\n"
+"PO-Revision-Date: 2014-02-25 13:30+0100\n"
+"Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
+"|| n%100>=20) ? 1 : 2);\n"
+"X-Generator: Poedit 1.5.4\n"
+
+#: forms.py:29
+#, python-format
+msgid "Image <a href=\"%(url)s\">already in repository</a>."
+msgstr "Obraz <a href=\"%(url)s\">jest już w repozytorium</a>."
+
+#: forms.py:60
+msgid "Flickr URL"
+msgstr "URL z Flickra"
+
+#: models.py:19
+msgid "title"
+msgstr "tytuł"
+
+#: models.py:20
+msgid "author"
+msgstr "autor"
+
+#: models.py:21
+msgid "license name"
+msgstr "nazwa licencji"
+
+#: models.py:22
+msgid "license URL"
+msgstr "URL licencji"
+
+#: models.py:23
+msgid "source URL"
+msgstr "URL źródła"
+
+#: models.py:24
+msgid "image download URL"
+msgstr "URL pliku do pobrania"
+
+#: models.py:25
+msgid "file"
+msgstr "plik"
+
+#: models.py:28
+msgid "cover image"
+msgstr "obrazek na okładkę"
+
+#: models.py:29
+msgid "cover images"
+msgstr "obrazki na okładki"
+
+#: templates/cover/add_image.html:33 templates/cover/add_image.html.py:62
+msgid "Add image"
+msgstr "Dodaj obrazek"
+
+#: templates/cover/add_image.html:40
+msgid "Load from Flickr"
+msgstr "Pobierz z Flickra"
+
+#: templates/cover/image_detail.html:7
+msgid "Cover image"
+msgstr "Obrazek na okładkę"
+
+#: templates/cover/image_detail.html:23
+msgid "source"
+msgstr "źródło"
+
+#: templates/cover/image_detail.html:35
+msgid "Change"
+msgstr "Zmień"
+
+#: templates/cover/image_detail.html:41
+msgid "Used in:"
+msgstr "Użyte w:"
+
+#: templates/cover/image_detail.html:49
+msgid "None"
+msgstr "Brak"
+
+#: templates/cover/image_list.html:7
+msgid "Cover images"
+msgstr "Obrazki na okładki"
+
+#: templates/cover/image_list.html:10
+msgid "Add new"
+msgstr "Dodaj nowy"
diff --git a/apps/cover/migrations/0001_initial.py b/apps/cover/migrations/0001_initial.py
new file mode 100644 (file)
index 0000000..f31c405
--- /dev/null
@@ -0,0 +1,44 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+        # Adding model 'Image'
+        db.create_table('cover_image', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
+            ('author', self.gf('django.db.models.fields.CharField')(max_length=255)),
+            ('license_name', self.gf('django.db.models.fields.CharField')(max_length=255)),
+            ('license_url', self.gf('django.db.models.fields.URLField')(max_length=255, blank=True)),
+            ('source_url', self.gf('django.db.models.fields.URLField')(max_length=200)),
+            ('download_url', self.gf('django.db.models.fields.URLField')(unique=True, max_length=200)),
+            ('file', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
+        ))
+        db.send_create_signal('cover', ['Image'])
+
+
+    def backwards(self, orm):
+        # Deleting model 'Image'
+        db.delete_table('cover_image')
+
+
+    models = {
+        'cover.image': {
+            'Meta': {'object_name': 'Image'},
+            'author': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+            'download_url': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
+            'file': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'license_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+            'license_url': ('django.db.models.fields.URLField', [], {'max_length': '255', 'blank': 'True'}),
+            'source_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
+        }
+    }
+
+    complete_apps = ['cover']
\ No newline at end of file
diff --git a/apps/cover/migrations/0002_auto__chg_field_image_download_url.py b/apps/cover/migrations/0002_auto__chg_field_image_download_url.py
new file mode 100644 (file)
index 0000000..8a64c39
--- /dev/null
@@ -0,0 +1,34 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+
+        # Changing field 'Image.download_url'
+        db.alter_column(u'cover_image', 'download_url', self.gf('django.db.models.fields.URLField')(max_length=200, unique=True, null=True))
+
+    def backwards(self, orm):
+
+        # User chose to not deal with backwards NULL issues for 'Image.download_url'
+        raise RuntimeError("Cannot reverse this migration. 'Image.download_url' and its values cannot be restored.")
+
+    models = {
+        u'cover.image': {
+            'Meta': {'object_name': 'Image'},
+            'author': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+            'download_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'unique': 'True', 'null': 'True'}),
+            'file': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'license_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+            'license_url': ('django.db.models.fields.URLField', [], {'max_length': '255', 'blank': 'True'}),
+            'source_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
+        }
+    }
+
+    complete_apps = ['cover']
\ No newline at end of file
diff --git a/apps/cover/migrations/0003_auto__chg_field_image_source_url.py b/apps/cover/migrations/0003_auto__chg_field_image_source_url.py
new file mode 100644 (file)
index 0000000..98951e3
--- /dev/null
@@ -0,0 +1,34 @@
+# -*- coding: utf-8 -*-
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+
+class Migration(SchemaMigration):
+
+    def forwards(self, orm):
+
+        # Changing field 'Image.source_url'
+        db.alter_column(u'cover_image', 'source_url', self.gf('django.db.models.fields.URLField')(max_length=200, null=True))
+
+    def backwards(self, orm):
+
+        # User chose to not deal with backwards NULL issues for 'Image.source_url'
+        raise RuntimeError("Cannot reverse this migration. 'Image.source_url' and its values cannot be restored.")
+
+    models = {
+        u'cover.image': {
+            'Meta': {'object_name': 'Image'},
+            'author': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+            'download_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'unique': 'True', 'null': 'True'}),
+            'file': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'license_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+            'license_url': ('django.db.models.fields.URLField', [], {'max_length': '255', 'blank': 'True'}),
+            'source_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
+        }
+    }
+
+    complete_apps = ['cover']
\ No newline at end of file
diff --git a/apps/cover/migrations/__init__.py b/apps/cover/migrations/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/apps/cover/models.py b/apps/cover/models.py
new file mode 100644 (file)
index 0000000..e929688
--- /dev/null
@@ -0,0 +1,48 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+import re
+from urlparse import urljoin
+from django.conf import settings
+from django.core.files.base import ContentFile
+from django.db import models
+from django.db.models.signals import post_save
+from django.dispatch import receiver
+from django.utils.translation import ugettext_lazy as _
+from django.contrib.sites.models import Site
+from cover.utils import URLOpener
+
+
+class Image(models.Model):
+    title = models.CharField(max_length=255, verbose_name=_('title'))
+    author = models.CharField(max_length=255, verbose_name=_('author'))
+    license_name = models.CharField(max_length=255, verbose_name=_('license name'))
+    license_url = models.URLField(max_length=255, blank=True, verbose_name=_('license URL'))
+    source_url = models.URLField(verbose_name=_('source URL'), null=True, blank=True)
+    download_url = models.URLField(unique=True, verbose_name=_('image download URL'), null=True, blank=True)
+    file = models.ImageField(upload_to='cover/image', editable=True, verbose_name=_('file'))
+
+    class Meta:
+        verbose_name = _('cover image')
+        verbose_name_plural = _('cover images')
+
+    def __unicode__(self):
+        return u"%s - %s" % (self.author, self.title)
+
+    @models.permalink
+    def get_absolute_url(self):
+        return ('cover_image', [self.id])
+
+    def get_full_url(self):
+        return "http://%s%s" % (Site.objects.get_current().domain, self.get_absolute_url())
+
+
+@receiver(post_save, sender=Image)
+def download_image(sender, instance, **kwargs):
+    if instance.pk and not instance.file:
+        t = URLOpener().open(instance.download_url).read()
+        instance.file.save("%d.jpg" % instance.pk, ContentFile(t))
+        
+        
diff --git a/apps/cover/templates/cover/add_image.html b/apps/cover/templates/cover/add_image.html
new file mode 100755 (executable)
index 0000000..9e3c71d
--- /dev/null
@@ -0,0 +1,67 @@
+{% extends "catalogue/base.html" %}
+{% load i18n %}
+
+{% block add_js %}
+    {{block.super}}
+    <script>
+        $(function() {
+            var radio_buttons = $('input[type=radio][name=upload_type]'),
+                image_fields = $('.upload_type input[type=text],input[type=file]');
+
+            var enable_image_field = function(field) {
+                field.attr('disabled', false);
+            },
+            disable_image_fields = function() {
+                image_fields.attr('disabled', true);
+            }
+
+            radio_buttons.change(function() {
+                var radio_button = $(this),
+                    related_image_field = $('#'+radio_button.attr('data-for'));
+                disable_image_fields();
+                enable_image_field(related_image_field);
+            });
+
+            /* initial state */
+            disable_image_fields();
+            enable_image_field($('#id_download_url'));
+        });
+    </script>
+{% endblock %}
+
+{% block content %}
+<h1>{% trans "Add image" %}</h1>
+
+
+<form method="post">{% csrf_token %}
+<input type="hidden" name='form_id' value="flickr" />
+<table class='editable'><tbody>
+    {{ ff.as_table }}
+    <tr><td></td><td><button type="submit">{% trans "Load from Flickr" %}</button></td></tr>
+</tbody></table>
+</form>
+
+<form method="post" enctype="multipart/form-data">{% csrf_token %}
+{{ form.non_field_errors }}
+<table class='editable'><tbody>
+    {% for field in form %}
+        {% if field.name != 'download_url' and field.name != 'file' %}
+        <tr>
+            <th>{{field.errors}} {{field.label}}</th>
+            <td>{{field}}</td>
+        </tr>
+        {% endif %}
+    {% endfor %}
+    <tr class="upload_type">
+        <th>{{ form.download_url.errors }} <input style="width: auto;" checked data-for="id_download_url" type="radio" name="upload_type" value="url"/>{{form.download_url.label}}</th>
+        <td>{{form.download_url}}</td>
+        <th>{{ form.file.errors }} <input style="width: auto;" data-for="id_file" type="radio" name="upload_type" value="file"/> Lub {{form.file.label}}</th>
+        <td>{{form.file}}</td>
+
+    </tr>
+    <tr><td></td><td><button type="submit">{% trans "Add image" %}</button></td></tr>
+</tbody></table>
+</form>
+
+
+{% endblock %}
diff --git a/apps/cover/templates/cover/image_detail.html b/apps/cover/templates/cover/image_detail.html
new file mode 100755 (executable)
index 0000000..ee6a762
--- /dev/null
@@ -0,0 +1,58 @@
+{% extends "catalogue/base.html" %}
+{% load i18n %}
+{% load thumbnail %}
+{% load build_absolute_uri from common_tags %}
+
+{% block content %}
+<h1>{% trans "Cover image" %}</h1>
+
+<div style="float: right; margin-bottom:1em;">
+
+<a href="{{ object.file.url }}"><img
+        src="{% thumbnail object.file "565x833" as thumb %}
+                {{ thumb.url }}
+             {% empty %}
+                {{ object.file.url }}
+             {% endthumbnail %}" />
+    </a>
+<br/><a href="{{ object.source_url }}">{{ object.title }}</a> by {{ object.author }},
+    {% if object.license_url %}<a href="{{ object.license_url }}">{% endif %}
+        {{ object.license_name }}
+    {% if object.license_url %}</a>{% endif %}
+
+<br/>{% trans "source" %}: {{ object.download_url }}
+</div>
+
+
+{% if editable %}
+    <form method="post" enctype="multipart/form-data">
+    {% csrf_token %}
+    {{ form.non_field_errors }}
+{% endif %}
+<table class='editable'><tbody>
+    {{ form.as_table }}
+    {% if editable %}
+        <tr><td></td><td><button type="submit">{% trans "Change" %}</button></td></tr>
+    {% endif %}
+</tbody></table>
+{% if editable %}</form>{% endif %}
+
+
+<h2>{% trans "Used in:" %}</h2>
+{% if object.book_set %}
+<ul>
+    {% for book in object.book_set.all %}
+        <li><a href="{{ book.get_absolute_url }}">{{ book }}</a></li>
+    {% endfor %}
+</ul>
+{% else %}
+    <p>{% trans "None" %}</p>
+{% endif %}
+
+
+<textarea style="width:100%" rows="5">
+&lt;dc:relation.coverImage.url xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.file.url|build_absolute_uri:request }}&lt;/dc:relation.coverImage.url>
+&lt;dc:relation.coverImage.attribution xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.author }}, {{ object.license_name }}&lt;/dc:relation.coverImage.attribution>
+&lt;dc:relation.coverImage.source xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.get_full_url }}&lt;/dc:relation.coverImage.source>
+</textarea>
+{% endblock %}
diff --git a/apps/cover/templates/cover/image_list.html b/apps/cover/templates/cover/image_list.html
new file mode 100755 (executable)
index 0000000..2b799fe
--- /dev/null
@@ -0,0 +1,30 @@
+{% extends "catalogue/base.html" %}
+{% load i18n %}
+{% load thumbnail pagination_tags %}
+
+
+{% block content %}
+<h1>{% trans "Cover images" %}</h1>
+
+{% if can_add %}
+    <a href="{% url 'cover_add_image' %}">{% trans "Add new" %}</a>
+{% endif %}
+
+<ul>
+{% autopaginate object_list 100 %}
+{% for image in object_list %}
+    <a href="{{ image.get_absolute_url }}" style="display:inline-block; width:200px;">
+    
+    <img style="height: 100px"
+        src="{% thumbnail image.file "x100" as thumb %}
+                {{ thumb.url }}
+             {% empty %}
+                {{ image.file.url }}
+             {% endthumbnail %}" />
+        <br/>
+        {{ image }}</a>
+{% endfor %}
+{% paginate %}
+</ul>
+
+{% endblock %}
diff --git a/apps/cover/tests.py b/apps/cover/tests.py
new file mode 100644 (file)
index 0000000..2f5b304
--- /dev/null
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+from nose.tools import *
+from django.test import TestCase
+from cover.forms import FlickrForm
+
+
+class FlickrTests(TestCase):
+    def test_flickr(self):
+        form = FlickrForm({"source_url": "https://www.flickr.com/photos/rczajka/6941928577/in/photostream"})
+        self.assertTrue(form.is_valid())
+        self.assertEqual(form.cleaned_data['source_url'], "https://www.flickr.com/photos/rczajka/6941928577/")
+        self.assertEqual(form.cleaned_data['author'], "rczajka@Flickr")
+        self.assertEqual(form.cleaned_data['title'], u"Pirate Stańczyk")
+        self.assertEqual(form.cleaned_data['license_name'], "CC BY 2.0")
+        self.assertEqual(form.cleaned_data['license_url'], "http://creativecommons.org/licenses/by/2.0/deed.en")
+        self.assertEqual(form.cleaned_data['download_url'], "https://farm8.staticflickr.com/7069/6941928577_415844c58e_o.jpg")
diff --git a/apps/cover/urls.py b/apps/cover/urls.py
new file mode 100644 (file)
index 0000000..f1a48d3
--- /dev/null
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+from django.conf.urls import patterns, url
+
+
+urlpatterns = patterns('cover.views',
+    url(r'^preview/$', 'preview_from_xml', name='cover_preview'),
+    url(r'^preview/(?P<book>[^/]+)/$', 'preview', name='cover_preview'),
+    url(r'^preview/(?P<book>[^/]+)/(?P<chunk>[^/]+)/$',
+            'preview', name='cover_preview'),
+    url(r'^preview/(?P<book>[^/]+)/(?P<chunk>[^/]+)/(?P<rev>\d+)/$',
+            'preview', name='cover_preview'),
+
+    url(r'^image/$', 'image_list', name='cover_image_list'),
+    url(r'^image/(?P<pk>\d+)/?$', 'image', name='cover_image'),
+    url(r'^add_image/$', 'add_image', name='cover_add_image'),
+)
diff --git a/apps/cover/utils.py b/apps/cover/utils.py
new file mode 100755 (executable)
index 0000000..e22fa72
--- /dev/null
@@ -0,0 +1,13 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+from urllib import FancyURLopener
+from django.contrib.sites.models import Site
+
+
+class URLOpener(FancyURLopener):
+    @property
+    def version(self):
+        return 'FNP Redakcja (http://%s)' % Site.objects.get_current()
diff --git a/apps/cover/views.py b/apps/cover/views.py
new file mode 100644 (file)
index 0000000..6b3344b
--- /dev/null
@@ -0,0 +1,139 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+import os.path
+from django.conf import settings
+from django.contrib.auth.decorators import permission_required
+from django.http import HttpResponse, HttpResponseRedirect, Http404
+from django.shortcuts import get_object_or_404, render
+from django.views.decorators.csrf import csrf_exempt
+from django.views.decorators.http import require_POST
+from catalogue.helpers import active_tab
+from catalogue.models import Chunk
+from cover.models import Image
+from cover import forms
+
+
+PREVIEW_SIZE = (216, 300)
+
+
+def preview(request, book, chunk=None, rev=None):
+    """Creates a cover image.
+
+    If chunk and rev number are given, use version from given revision.
+    If rev is not given, use publishable version.
+    """
+    from PIL import Image
+    from librarian.cover import DefaultEbookCover
+    from librarian.dcparser import BookInfo
+
+    chunk = Chunk.get(book, chunk)
+    if rev is not None:
+        try:
+            revision = chunk.at_revision(rev)
+        except Chunk.change_model.DoesNotExist:
+            raise Http404
+    else:
+        revision = chunk.publishable()
+        if revision is None:
+            raise Http404
+    xml = revision.materialize().encode('utf-8')
+
+    try:
+        info = BookInfo.from_string(xml)
+    except:
+        return HttpResponseRedirect(os.path.join(settings.STATIC_URL, "img/sample_cover.png"))
+    cover = DefaultEbookCover(info)
+    response = HttpResponse(mimetype=cover.mime_type())
+    image = cover.image().resize(PREVIEW_SIZE, Image.ANTIALIAS)
+    image.save(response, cover.format)
+    return response
+
+
+@csrf_exempt
+@require_POST
+def preview_from_xml(request):
+    from hashlib import sha1
+    from PIL import Image
+    from os import makedirs
+    from lxml import etree
+    from librarian.cover import DefaultEbookCover
+    from librarian.dcparser import BookInfo
+
+    xml = request.POST['xml']
+    try:
+        info = BookInfo.from_string(xml.encode('utf-8'))
+    except:
+        return HttpResponse(os.path.join(settings.STATIC_URL, "img/sample_cover.png"))
+    coverid = sha1(etree.tostring(info.to_etree())).hexdigest()
+    cover = DefaultEbookCover(info)
+
+    cover_dir = 'cover/preview'
+    try:
+        makedirs(os.path.join(settings.MEDIA_ROOT, cover_dir))
+    except OSError:
+        pass
+    fname = os.path.join(cover_dir, "%s.%s" % (coverid, cover.ext()))
+    image = cover.image().resize(PREVIEW_SIZE, Image.ANTIALIAS)
+    image.save(os.path.join(settings.MEDIA_ROOT, fname))
+    return HttpResponse(os.path.join(settings.MEDIA_URL, fname))
+
+
+@active_tab('cover')
+def image(request, pk):
+    image = get_object_or_404(Image, pk=pk)
+
+    if request.user.has_perm('cover.change_image'):
+        if request.method == "POST":
+            form = forms.ImageEditForm(request.POST, request.FILES, instance=image)
+            if form.is_valid():
+                form.save()
+                return HttpResponseRedirect(image.get_absolute_url())
+        else:
+            form = forms.ImageEditForm(instance=image)
+        editable = True
+    else:
+        form = forms.ReadonlyImageEditForm(instance=image)
+        editable = False
+
+    return render(request, "cover/image_detail.html", {
+        "object": image,
+        "form": form,
+        "editable": editable,
+    })
+
+
+@active_tab('cover')
+def image_list(request):
+    objects = Image.objects.all()
+    enable_add = request.user.has_perm('cover.add_image')
+    return render(request, "cover/image_list.html", {
+        'object_list': Image.objects.all(),
+        'can_add': request.user.has_perm('cover.add_image'),
+    })
+
+
+@permission_required('cover.add_image')
+@active_tab('cover')
+def add_image(request):
+    form = ff = None
+    if request.method == 'POST':
+        if request.POST.get('form_id') == 'flickr':
+            ff = forms.FlickrForm(request.POST)
+            if ff.is_valid():
+                form = forms.ImageAddForm(ff.cleaned_data)
+        else:
+            form = forms.ImageAddForm(request.POST, request.FILES)
+            if form.is_valid():
+                obj = form.save()
+                return HttpResponseRedirect(obj.get_absolute_url())
+    if form is None:
+        form = forms.ImageAddForm()
+    if ff is None:
+        ff = forms.FlickrForm()
+    return render(request, 'cover/add_image.html', {
+            'form': form,
+            'ff': ff,
+        })
diff --git a/apps/django_cas/__init__.py b/apps/django_cas/__init__.py
deleted file mode 100644 (file)
index 14f71be..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-"""Django CAS 1.0/2.0 authentication backend"""
-
-from django.conf import settings
-
-__all__ = []
-
-_DEFAULTS = {
-    'CAS_ADMIN_PREFIX': None,
-    'CAS_EXTRA_LOGIN_PARAMS': None,
-    'CAS_IGNORE_REFERER': False,
-    'CAS_LOGOUT_COMPLETELY': True,
-    'CAS_REDIRECT_URL': '/',
-    'CAS_RETRY_LOGIN': False,
-    'CAS_SERVER_URL': None,
-    'CAS_VERSION': '2',
-}
-
-for key, value in _DEFAULTS.iteritems():
-    try:
-        getattr(settings, key)
-    except AttributeError:
-        setattr(settings, key, value)
-    # Suppress errors from DJANGO_SETTINGS_MODULE not being set
-    except ImportError:
-        pass
diff --git a/apps/django_cas/backends.py b/apps/django_cas/backends.py
deleted file mode 100644 (file)
index 4cf9f62..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-"""CAS authentication backend"""
-
-from urllib import urlencode, urlopen
-from urlparse import urljoin
-from django.conf import settings
-from django_cas.models import User
-
-__all__ = ['CASBackend']
-
-
-def _verify_cas1(ticket, service):
-    """Verifies CAS 1.0 authentication ticket.
-
-    Returns (username, None) on success and (None, None) on failure.
-    """
-
-    params = {'ticket': ticket, 'service': service}
-    url = (urljoin(settings.CAS_SERVER_URL, 'validate') + '?' +
-           urlencode(params))
-    page = urlopen(url)
-    try:
-        verified = page.readline().strip()
-        if verified == 'yes':
-            return page.readline().strip(), None
-        else:
-            return None, None
-    finally:
-        page.close()
-
-
-def _verify_cas2(ticket, service):
-    """Verifies CAS 2.0+ XML-based authentication ticket.
-
-    Returns (username, attr_dict) on success and (None, None) on failure.
-    """
-
-    try:
-        from lxml import etree as ElementTree
-    except ImportError:
-        from elementtree import ElementTree
-
-    params = {'ticket': ticket, 'service': service}
-    url = (urljoin(settings.CAS_SERVER_URL, 'serviceValidate') + '?' +
-           urlencode(params))
-    page = urlopen(url)
-    try:
-        response = page.read()
-        tree = ElementTree.fromstring(response)
-        if tree[0].tag.endswith('authenticationSuccess'):
-            attrs = {}
-            for tag in tree[0][1:]:
-                attrs[tag.tag] = tag.text
-            return tree[0][0].text, attrs
-        else:
-            return None, None
-    except:
-        import traceback
-        traceback.print_exc()
-        print "****", url
-        print response
-        print "****"
-    finally:
-        page.close()
-
-
-_PROTOCOLS = {'1': _verify_cas1, '2': _verify_cas2}
-
-if settings.CAS_VERSION not in _PROTOCOLS:
-    raise ValueError('Unsupported CAS_VERSION %r' % settings.CAS_VERSION)
-
-_verify = _PROTOCOLS[settings.CAS_VERSION]
-
-
-class CASBackend(object):
-    """CAS authentication backend"""
-
-    def authenticate(self, ticket, service):
-        """Verifies CAS ticket and gets or creates User object"""
-
-        username, attrs = _verify(ticket, service)
-        if not username:
-            return None
-
-        user_attrs = {}
-        if hasattr(settings, 'CAS_USER_ATTRS_MAP'):
-            attr_map = settings.CAS_USER_ATTRS_MAP
-            for k, v in attrs.items():
-                if k in attr_map:
-                    user_attrs[attr_map[k]] = v # unicode(v, 'utf-8')
-
-        try:
-            user = User.objects.get(username__iexact=username)
-            # update user info
-            changed = False
-            for k, v in user_attrs.items():
-                if getattr(user, k) != v:
-                    setattr(user, k, v)
-                    changed = True
-            if changed:
-                user.save()
-        except User.DoesNotExist:
-            # user will have an "unusable" password
-            user = User.objects.create_user(username, '')
-            for k, v in user_attrs.items():
-                setattr(user, k, v)
-            user.first_name = attrs.get('firstname', '')
-            user.last_name = attrs.get('lastname', '')
-            user.save()
-        return user
-
-    def get_user(self, user_id):
-        """Retrieve the user's entry in the User model if it exists"""
-
-        try:
-            return User.objects.get(pk=user_id)
-        except User.DoesNotExist:
-            return None
diff --git a/apps/django_cas/decorators.py b/apps/django_cas/decorators.py
deleted file mode 100644 (file)
index 0bf989b..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-"""Replacement authentication decorators that work around redirection loops"""
-
-try:
-    from functools import wraps
-except ImportError:
-    from django.utils.functional import wraps
-
-from django.contrib.auth import REDIRECT_FIELD_NAME
-from django.contrib.auth.decorators import login_required
-from django.http import HttpResponseForbidden, HttpResponseRedirect
-from django.utils.http import urlquote
-
-__all__ = ['login_required', 'permission_required', 'user_passes_test']
-
-
-def user_passes_test(test_func, login_url=None,
-                     redirect_field_name=REDIRECT_FIELD_NAME):
-    """Replacement for django.contrib.auth.decorators.user_passes_test that
-    returns 403 Forbidden if the user is already logged in.
-    """
-
-    if not login_url:
-        from django.conf import settings
-        login_url = settings.LOGIN_URL
-
-    def decorator(view_func):
-        @wraps(view_func)
-        def wrapper(request, *args, **kwargs):
-            if test_func(request.user):
-                return view_func(request, *args, **kwargs)
-            elif request.user.is_authenticated():
-                return HttpResponseForbidden('<h1>Permission denied</h1>')
-            else:
-                path = '%s?%s=%s' % (login_url, redirect_field_name,
-                                     urlquote(request.get_full_path()))
-                return HttpResponseRedirect(path)
-        return wrapper
-    return decorator
-
-
-def permission_required(perm, login_url=None):
-    """Replacement for django.contrib.auth.decorators.permission_required that
-    returns 403 Forbidden if the user is already logged in.
-    """
-
-    return user_passes_test(lambda u: u.has_perm(perm), login_url=login_url)
diff --git a/apps/django_cas/middleware.py b/apps/django_cas/middleware.py
deleted file mode 100644 (file)
index 35fd0d5..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-"""CAS authentication middleware"""
-
-from urllib import urlencode
-
-from django.http import HttpResponseRedirect, HttpResponseForbidden
-from django.conf import settings
-from django.contrib.auth import REDIRECT_FIELD_NAME
-from django.contrib.auth.views import login, logout
-from django.core.urlresolvers import reverse
-
-from django_cas.views import login as cas_login, logout as cas_logout
-
-__all__ = ['CASMiddleware']
-
-
-class CASMiddleware(object):
-    """Middleware that allows CAS authentication on admin pages"""
-
-    def process_request(self, request):
-        """Checks that the authentication middleware is installed"""
-
-        error = ("The Django CAS middleware requires authentication "
-                 "middleware to be installed. Edit your MIDDLEWARE_CLASSES "
-                 "setting to insert 'django.contrib.auth.middleware."
-                 "AuthenticationMiddleware'.")
-        # assert hasattr(request, 'user'), error
-
-    def process_view(self, request, view_func, view_args, view_kwargs):
-        """Forwards unauthenticated requests to the admin page to the CAS
-        login URL, as well as calls to django.contrib.auth.views.login and
-        logout.
-        """
-
-        if view_func == login:
-            return cas_login(request, *view_args, **view_kwargs)
-        elif view_func == logout:
-            return cas_logout(request, *view_args, **view_kwargs)
-
-        if settings.CAS_ADMIN_PREFIX:
-            if not request.path.startswith(settings.CAS_ADMIN_PREFIX):
-                return None
-        elif not view_func.__module__.startswith('django.contrib.admin.'):
-            return None
-
-        if request.user.is_authenticated():
-            if request.user.is_staff:
-                return None
-            else:
-                error = ('<h1>Forbidden</h1><p>You do not have staff '
-                         'privileges.</p>')
-                return HttpResponseForbidden(error)
-        params = urlencode({REDIRECT_FIELD_NAME: request.get_full_path()})
-        return HttpResponseRedirect(reverse(cas_login) + '?' + params)
diff --git a/apps/django_cas/models.py b/apps/django_cas/models.py
deleted file mode 100644 (file)
index 85206e0..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-from django.db import models
-from django.contrib.auth.models import User
diff --git a/apps/django_cas/views.py b/apps/django_cas/views.py
deleted file mode 100644 (file)
index dee3279..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-"""CAS login/logout replacement views"""
-
-from urllib import urlencode
-from urlparse import urljoin
-
-from django.http import get_host, HttpResponseRedirect, HttpResponseForbidden
-from django.conf import settings
-from django.contrib.auth import REDIRECT_FIELD_NAME
-
-__all__ = ['login', 'logout']
-
-
-def _service_url(request, redirect_to=None):
-    """Generates application service URL for CAS"""
-
-    protocol = ('http://', 'https://')[request.is_secure()]
-    host = get_host(request)
-    service = protocol + host + request.path
-    if redirect_to:
-        if '?' in service:
-            service += '&'
-        else:
-            service += '?'
-        service += urlencode({REDIRECT_FIELD_NAME: redirect_to.encode('utf-8')})
-    return service
-
-
-def _redirect_url(request):
-    """Redirects to referring page, or CAS_REDIRECT_URL if no referrer is
-    set.
-    """
-
-    next = request.GET.get(REDIRECT_FIELD_NAME)
-    if not next:
-        if settings.CAS_IGNORE_REFERER:
-            next = settings.CAS_REDIRECT_URL
-        else:
-            next = request.META.get('HTTP_REFERER', settings.CAS_REDIRECT_URL)
-        prefix = (('http://', 'https://')[request.is_secure()] +
-                  get_host(request))
-        if next.startswith(prefix):
-            next = next[len(prefix):]
-    return next
-
-
-def _login_url(service):
-    """Generates CAS login URL"""
-
-    params = {'service': service}
-    if settings.CAS_EXTRA_LOGIN_PARAMS:
-        params.update(settings.CAS_EXTRA_LOGIN_PARAMS)
-    return urljoin(settings.CAS_SERVER_URL, 'login') + '?' + urlencode(params)
-
-
-def _logout_url(request, next_page=None):
-    """Generates CAS logout URL"""
-
-    url = urljoin(settings.CAS_SERVER_URL, 'logout')
-    if next_page:
-        protocol = ('http://', 'https://')[request.is_secure()]
-        host = get_host(request)
-        url += '?' + urlencode({'url': protocol + host + next_page})
-    return url
-
-
-def login(request, next_page=None, required=False):
-    """Forwards to CAS login URL or verifies CAS ticket"""
-
-    print "LOGIN original NEXT_PAGE:", next_page
-    print request.GET
-    if not next_page:
-        next_page = _redirect_url(request)
-    print "LOGIN redirect NEXT_PAGE:", next_page
-
-    if request.user.is_authenticated():
-        message = "You are logged in as %s." % request.user.username
-        request.user.message_set.create(message=message)
-        return HttpResponseRedirect(next_page)
-    ticket = request.GET.get('ticket')
-    service = _service_url(request, next_page)
-    print "TICKET: ", ticket
-    print "SERVICE: ", service
-    if ticket:
-        from django.contrib import auth
-        user = auth.authenticate(ticket=ticket, service=service)
-        if user is not None:
-            auth.login(request, user)
-            name = user.first_name or user.username
-            message = "Login succeeded. Welcome, %s." % name
-            user.message_set.create(message=message)
-            return HttpResponseRedirect(next_page)
-        elif settings.CAS_RETRY_LOGIN or required:
-            return HttpResponseRedirect(_login_url(service))
-        else:
-            error = "<h1>Forbidden</h1><p>Login failed.</p>"
-            return HttpResponseForbidden(error)
-
-    else:
-        return HttpResponseRedirect(_login_url(service))
-
-
-def logout(request, next_page=None):
-    """Redirects to CAS logout page"""
-
-    from django.contrib.auth import logout
-    logout(request)
-    if not next_page:
-        next_page = _redirect_url(request)
-    if settings.CAS_LOGOUT_COMPLETELY:
-        return HttpResponseRedirect(_logout_url(request, next_page))
-    else:
-        return HttpResponseRedirect(next_page)
index 2526028..ec64794 100644 (file)
@@ -7,7 +7,7 @@ from django.core.files.storage import FileSystemStorage
 from django.db import models, transaction
 from django.db.models.base import ModelBase
 from django.utils.translation import string_concat, ugettext_lazy as _
-from mercurial import mdiff, simplemerge
+from mercurial import simplemerge
 
 from django.conf import settings
 from dvcs.signals import post_commit, post_publishable
@@ -43,7 +43,7 @@ class Tag(models.Model):
     def listener_changed(sender, instance, **kwargs):
         sender._object_cache = {}
 
-    def next(self):
+    def get_next(self):
         """
             Returns the next tag - stage to work on.
             Returns None for the last stage.
@@ -166,8 +166,6 @@ class Change(models.Model):
         post_publishable.send(sender=self, publishable=publishable)
 
 
-
-
 def create_tag_model(model):
     name = model.__name__ + 'Tag'
 
@@ -286,7 +284,7 @@ class Document(models.Model):
         tags = kwargs.get('tags', [])
         if tags:
             # set stage to next tag after the commited one
-            self.stage = max(tags, key=lambda t: t.ordering).next()
+            self.stage = max(tags, key=lambda t: t.ordering).get_next()
 
         change = self.change_set.create(author=author,
                     author_name=author_name,
diff --git a/apps/dvcs/tests.py b/apps/dvcs/tests.py
deleted file mode 100644 (file)
index 0c71295..0000000
+++ /dev/null
@@ -1,164 +0,0 @@
-from django.test import TestCase
-from dvcs.models import Change, Document
-from django.contrib.auth.models import User
-
-class DocumentModelTests(TestCase):
-
-    def setUp(self):
-        self.user = User.objects.create_user("tester", "tester@localhost.local")
-
-    def assertTextEqual(self, given, expected):
-        return self.assertEqual(given, expected,
-            "Expected '''%s'''\n differs from text: '''%s'''" % (expected, given)
-        )
-
-    def test_empty_file(self):
-        doc = Document.objects.create(name=u"Sample Document", creator=self.user)
-        self.assert_(doc.head is not None)
-        self.assertEqual(doc.materialize(), u"")
-
-    def test_single_commit(self):
-        doc = Document.objects.create(name=u"Sample Document", creator=self.user)
-        doc.commit(text=u"Ala ma kota", description="Commit #1", author=self.user)
-        self.assert_(doc.head is not None)
-        self.assertEqual(doc.change_set.count(), 2)
-        self.assertEqual(doc.materialize(), u"Ala ma kota")
-
-    def test_chained_commits(self):
-        doc = Document.objects.create(name=u"Sample Document", creator=self.user)
-        c1 = doc.commit(description="Commit #1", text=u"""
-            Line #1
-            Line #2 is cool
-        """, author=self.user)
-        c2 = doc.commit(description="Commit #2", text=u"""
-            Line #1
-            Line #2 is hot
-        """, author=self.user)
-        c3 = doc.commit(description="Commit #3", text=u"""
-            Line #1
-            ... is hot
-            Line #3 ate Line #2
-        """, author=self.user)
-        self.assert_(doc.head is not None)
-        self.assertEqual(doc.change_set.count(), 4)
-
-        self.assertEqual(doc.materialize(), u"""
-            Line #1
-            ... is hot
-            Line #3 ate Line #2
-        """)
-        self.assertEqual(doc.materialize(version=c3), u"""
-            Line #1
-            ... is hot
-            Line #3 ate Line #2
-        """)
-        self.assertEqual(doc.materialize(version=c2), u"""
-            Line #1
-            Line #2 is hot
-        """)
-        self.assertEqual(doc.materialize(version=c1), """
-            Line #1
-            Line #2 is cool
-        """)
-
-
-    def test_parallel_commit_noconflict(self):
-        doc = Document.objects.create(name=u"Sample Document", creator=self.user)
-        self.assert_(doc.head is not None)
-        base = doc.head
-        base = doc.commit(description="Commit #1", text=u"""
-            Line #1
-            Line #2
-""", author=self.user)
-
-        c1 = doc.commit(description="Commit #2", text=u"""
-            Line #1 is hot
-            Line #2
-""", parent=base, author=self.user)
-        self.assertTextEqual(c1.materialize(), u"""
-            Line #1 is hot
-            Line #2
-""")
-        c2 = doc.commit(description="Commit #3", text=u"""
-            Line #1
-            Line #2
-            Line #3
-""", parent=base, author=self.user)
-        self.assertEqual(doc.change_set.count(), 5)
-        self.assertTextEqual(doc.materialize(), u"""
-            Line #1 is hot
-            Line #2
-            Line #3
-""")
-
-    def test_parallel_commit_conflict(self):
-        doc = Document.objects.create(name=u"Sample Document", creator=self.user)
-        self.assert_(doc.head is not None)
-        base = doc.head
-        base = doc.commit(description="Commit #1", text=u"""
-Line #1
-Line #2
-Line #3
-""", author=self.user)
-
-        c1 = doc.commit(description="Commit #2", text=u"""
-Line #1
-Line #2 is hot
-Line #3
-""", parent=base, author=self.user)
-        c2 = doc.commit(description="Commit #3", text=u"""
-Line #1
-Line #2 is cool
-Line #3
-""", parent=base, author=self.user)
-        self.assertEqual(doc.change_set.count(), 5)
-        self.assertTextEqual(doc.materialize(), u"""
-Line #1
-<<<<<<<
-Line #2 is hot
-=======
-Line #2 is cool
->>>>>>>
-Line #3
-""")
-
-    def test_multiply_parallel_commits(self):
-        doc = Document.objects.create(name=u"Sample Document", creator=self.user)
-        self.assert_(doc.head is not None)
-        c1 = doc.commit(description="Commit A1", text=u"""
-Line #1
-
-Line #2
-
-Line #3
-""", author=self.user)
-        c2 = doc.commit(description="Commit A2", text=u"""
-Line #1 *
-
-Line #2
-
-Line #3
-""", author=self.user)
-        c3 = doc.commit(description="Commit B1", text=u"""
-Line #1
-
-Line #2 **
-
-Line #3
-""", parent=c1, author=self.user)
-        c4 = doc.commit(description="Commit C1", text=u"""
-Line #1 *
-
-Line #2
-
-Line #3 ***
-""", parent=c2, author=self.user)
-        self.assertEqual(doc.change_set.count(), 7)
-        self.assertTextEqual(doc.materialize(), u"""
-Line #1 *
-
-Line #2 **
-
-Line #3 ***
-""")
-
diff --git a/apps/dvcs/urls.py b/apps/dvcs/urls.py
deleted file mode 100644 (file)
index d1e1e29..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8
-from django.conf.urls.defaults import *
-
-urlpatterns = patterns('dvcs.views',
-    url(r'^data/(?P<document_id>[^/]+)/(?P<version>.*)$', 'document_data', name='storage_document_data'),
-)
diff --git a/apps/filebrowser/LICENSE b/apps/filebrowser/LICENSE
deleted file mode 100644 (file)
index c42f6c2..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-Copyright (c) 2009, Patrick Kranzlmueller (vonautomatisch werkstaetten),
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice,
-this list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright notice,
-this list of conditions and the following disclaimer in the documentation and/or
-other materials provided with the distribution.
-3. Neither the name of FileBrowser nor the names of its contributors may be used
-to endorse or promote products derived from this software without specific prior
-written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
-OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
-THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/apps/filebrowser/__init__.py b/apps/filebrowser/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/apps/filebrowser/base.py b/apps/filebrowser/base.py
deleted file mode 100644 (file)
index c124026..0000000
+++ /dev/null
@@ -1,214 +0,0 @@
-# -*- coding: utf-8
-
-from django.conf import settings
-from django.utils.encoding import smart_unicode
-from filebrowser.fb_settings import *
-
-from filebrowser.functions import _get_file_type, _url_join, _is_selectable, \
-    _get_version_path
-
-from time import gmtime, strftime
-
-import locale
-import os
-import re
-import datetime
-import urllib
-
-
-# filebrowser imports
-
-# PIL import
-if STRICT_PIL:
-    from PIL import Image
-else:
-    try:
-        from PIL import Image
-    except ImportError:
-        import Image
-
-
-def filesystem_encoding(ucode):
-    ucode = ucode.encode('utf-8')
-    ucode = urllib.quote(ucode)
-    return ucode
-
-
-class FileObject(object):
-    """
-    The FileObject represents a File on the Server.
-
-    PATH has to be relative to MEDIA_ROOT.
-    """
-
-    def __init__(self, path):
-        self.path = path
-        self.head = os.path.split(path)[0]
-        self.filename = os.path.split(path)[1]
-        self.filename_lower = self.filename.lower()  # important for sorting
-        self.filetype = _get_file_type(self.filename)
-
-    def _filesize(self):
-        """
-        Filesize.
-        """
-        if os.path.isfile(os.path.join(MEDIA_ROOT, self.path)) or os.path.isdir(os.path.join(MEDIA_ROOT, self.path)):
-            return os.path.getsize(os.path.join(MEDIA_ROOT, self.path))
-        return ""
-    filesize = property(_filesize)
-
-    def _date(self):
-        """
-        Date.
-        """
-        if os.path.isfile(os.path.join(MEDIA_ROOT, self.path)) or os.path.isdir(os.path.join(MEDIA_ROOT, self.path)):
-            return os.path.getmtime(os.path.join(MEDIA_ROOT, self.path))
-        # IMHO this should raise an exception
-        return None
-    date = property(_date)
-
-    def _datetime(self):
-        """
-        Datetime Object.
-        """
-        return datetime.datetime.fromtimestamp(self.date)
-    datetime = property(_datetime)
-
-    def _extension(self):
-        """
-        Extension.
-        """
-        return u"%s" % os.path.splitext(self.filename)[1]
-    extension = property(_extension)
-
-    def _filetype_checked(self):
-        if self.filetype == "Folder" and os.path.isdir(self.path_full):
-            return self.filetype
-        elif self.filetype != "Folder" and os.path.isfile(self.path_full):
-            return self.filetype
-        else:
-            return ""
-    filetype_checked = property(_filetype_checked)
-
-    def _path_full(self):
-        """
-        Full server PATH including MEDIA_ROOT.
-        """
-        return u"%s" % os.path.join(MEDIA_ROOT, self.path)
-    path_full = property(_path_full)
-
-    def _path_relative(self):
-        return self.path
-    path_relative = property(_path_relative)
-
-    def _path_relative_directory(self):
-        """
-        Path relative to initial directory.
-        """
-        directory_re = re.compile(r'^(%s)' % (DIRECTORY))
-        value = directory_re.sub('', self.path)
-        return u"%s" % value
-    path_relative_directory = property(_path_relative_directory)
-
-    def _url_relative(self):
-        return self.path
-    url_relative = property(_url_relative)
-
-    def _url_full(self):
-        """
-        Full URL including MEDIA_URL.
-        """
-        return filesystem_encoding(u"%s" % _url_join(MEDIA_URL, self.path))
-
-    url_full = property(_url_full)
-
-    def _url_save(self):
-        """
-        URL used for the filebrowsefield.
-        """
-        if SAVE_FULL_URL:
-            return self.url_full
-        else:
-            return filesystem_encoding(self.path)
-    url_save = property(_url_save)
-
-    def _url_thumbnail(self):
-        """
-        Thumbnail URL.
-        """
-        if self.filetype == "Image":
-            return filesystem_encoding(u"%s" % _url_join(MEDIA_URL, _get_version_path(self.path, u'fb_thumb')))
-        else:
-            return ""
-    url_thumbnail = property(_url_thumbnail)
-
-    def url_admin(self):
-        if self.filetype_checked == "Folder":
-            directory_re = re.compile(r'^(%s)' % (DIRECTORY))
-            value = directory_re.sub('', self.path)
-            return filesystem_encoding(u"%s" % value)
-        else:
-            return filesystem_encoding(u"%s" % _url_join(MEDIA_URL, self.path))
-
-    def _dimensions(self):
-        """
-        Image Dimensions.
-        """
-        if self.filetype == 'Image':
-            try:
-                im = Image.open(os.path.join(MEDIA_ROOT, self.path))
-                return im.size
-            except:
-                pass
-        else:
-            return False
-    dimensions = property(_dimensions)
-
-    def _width(self):
-        """
-        Image Width.
-        """
-        return self.dimensions[0]
-    width = property(_width)
-
-    def _height(self):
-        """
-        Image Height.
-        """
-        return self.dimensions[1]
-    height = property(_height)
-
-    def _orientation(self):
-        """
-        Image Orientation.
-        """
-        if self.dimensions:
-            if self.dimensions[0] >= self.dimensions[1]:
-                return "Landscape"
-            else:
-                return "Portrait"
-        else:
-            return None
-    orientation = property(_orientation)
-
-    def _is_empty(self):
-        """
-        True if Folder is empty, False if not.
-        """
-        if os.path.isdir(self.path_full):
-            if not os.listdir(self.path_full):
-                return True
-            else:
-                return False
-        else:
-            return None
-    is_empty = property(_is_empty)
-
-    def __repr__(self):
-        return u"%s" % self.url_save
-
-    def __str__(self):
-        return u"%s" % self.url_save
-
-    def __unicode__(self):
-        return u"%s" % self.url_save
diff --git a/apps/filebrowser/decorators.py b/apps/filebrowser/decorators.py
deleted file mode 100644 (file)
index 5297889..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-# -*- coding: utf-8
-
-from django.contrib.sessions.models import Session
-from django.shortcuts import get_object_or_404, render_to_response
-from django.contrib.auth.models import User
-from django.template import RequestContext
-from django.conf import settings
-
-
-def flash_login_required(function):
-    """
-    Decorator to recognize a user  by its session.
-    Used for Flash-Uploading.
-    """
-
-    def decorator(request, *args, **kwargs):
-        try:
-            engine = __import__(settings.SESSION_ENGINE, {}, {}, [''])
-        except:
-            import django.contrib.sessions.backends.db
-            engine = django.contrib.sessions.backends.db
-        session_data = engine.SessionStore(request.POST.get('session_key'))
-        user_id = session_data['_auth_user_id']
-        #will return 404 if the session ID does not resolve to a valid user
-        request.user = get_object_or_404(User, pk=user_id)
-        return function(request, *args, **kwargs)
-    return decorator
diff --git a/apps/filebrowser/fb_settings.py b/apps/filebrowser/fb_settings.py
deleted file mode 100644 (file)
index 57bec8e..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-# -*- coding: utf-8
-
-import os
-from django.conf import settings
-from django.utils.translation import ugettext_lazy as _
-
-# settings for django-tinymce
-try:
-    import tinymce.settings
-    DEFAULT_URL_TINYMCE = tinymce.settings.JS_BASE_URL + '/'
-    DEFAULT_PATH_TINYMCE = tinymce.settings.JS_ROOT + '/'
-except ImportError:
-    DEFAULT_URL_TINYMCE = settings.ADMIN_MEDIA_PREFIX + "tinymce/jscripts/tiny_mce/"
-    DEFAULT_PATH_TINYMCE = os.path.join(settings.MEDIA_ROOT, 'admin/tinymce/jscripts/tiny_mce/')
-
-# Set to True in order to see the FileObject when Browsing.
-DEBUG = getattr(settings, "FILEBROWSER_DEBUG", False)
-
-# Main Media Settings
-MEDIA_ROOT = getattr(settings, "FILEBROWSER_MEDIA_ROOT", settings.MEDIA_ROOT)
-MEDIA_URL = getattr(settings, "FILEBROWSER_MEDIA_URL", settings.MEDIA_URL)
-
-# Main FileBrowser Directory. This has to be a directory within MEDIA_ROOT.
-# Leave empty in order to browse all files under MEDIA_ROOT.
-# DO NOT USE A SLASH AT THE BEGINNING, DO NOT FORGET THE TRAILING SLASH AT THE END.
-DIRECTORY = getattr(settings, "FILEBROWSER_DIRECTORY", 'uploads/')
-
-# The URL/PATH to your filebrowser media-files.
-URL_FILEBROWSER_MEDIA = getattr(settings, "FILEBROWSER_URL_FILEBROWSER_MEDIA", "/media/filebrowser/")
-PATH_FILEBROWSER_MEDIA = getattr(settings, "FILEBROWSER_PATH_FILEBROWSER_MEDIA", os.path.join(settings.MEDIA_ROOT, 'filebrowser/'))
-
-# The URL/PATH to your TinyMCE Installation.
-URL_TINYMCE = getattr(settings, "FILEBROWSER_URL_TINYMCE", DEFAULT_URL_TINYMCE)
-PATH_TINYMCE = getattr(settings, "FILEBROWSER_PATH_TINYMCE", DEFAULT_PATH_TINYMCE)
-
-# Allowed Extensions for File Upload. Lower case is important.
-# Please be aware that there are Icons for the default extension settings.
-# Therefore, if you add a category (e.g. "Misc"), you won't get an icon.
-EXTENSIONS = getattr(settings, "FILEBROWSER_EXTENSIONS", {
-    'Folder': [''],
-    'Image': ['.jpg', '.jpeg', '.gif', '.png', '.tif', '.tiff'],
-    'Video': ['.mov', '.wmv', '.mpeg', '.mpg', '.avi', '.rm'],
-    'Document': ['.pdf', '.doc', '.rtf', '.txt', '.xls', '.csv'],
-    'Sound': ['.mp3', '.mp4', '.wav', '.aiff', '.midi', '.m4p'],
-    'Code': ['.html', '.py', '.js', '.css'],
-})
-
-# Define different formats for allowed selections.
-# This has to be a subset of EXTENSIONS.
-SELECT_FORMATS = getattr(settings, "FILEBROWSER_SELECT_FORMATS", {
-    'File': ['Folder', 'Document', ],
-    'Image': ['Image'],
-    'Media': ['Video', 'Sound'],
-    'Document': ['Document'],
-    # for TinyMCE we can also define lower-case items
-    'image': ['Image'],
-    'file': ['Folder', 'Image', 'Document', ],
-})
-
-# Directory to Save Image Versions (and Thumbnails). Relative to MEDIA_ROOT.
-# If no directory is given, versions are stored within the Image directory.
-# VERSION URL: VERSIONS_BASEDIR/original_path/originalfilename_versionsuffix.extension
-VERSIONS_BASEDIR = getattr(settings, 'FILEBROWSER_VERSIONS_BASEDIR', '')
-# Versions Format. Available Attributes: verbose_name, width, height, opts
-VERSIONS = getattr(settings, "FILEBROWSER_VERSIONS", {
-    'fb_thumb': {'verbose_name': 'Admin Thumbnail', 'width': 60, 'height': 60, 'opts': 'crop upscale'},
-    'thumbnail': {'verbose_name': 'Thumbnail (140px)', 'width': 140, 'height': '', 'opts': ''},
-    'small': {'verbose_name': 'Small (300px)', 'width': 300, 'height': '', 'opts': ''},
-    'medium': {'verbose_name': 'Medium (460px)', 'width': 460, 'height': '', 'opts': ''},
-    'big': {'verbose_name': 'Big (620px)', 'width': 620, 'height': '', 'opts': ''},
-    'cropped': {'verbose_name': 'Cropped (60x60px)', 'width': 60, 'height': 60, 'opts': 'crop'},
-    'croppedthumbnail': {'verbose_name': 'Cropped Thumbnail (140x140px)', 'width': 140, 'height': 140, 'opts': 'crop'},
-})
-# Versions available within the Admin-Interface.
-ADMIN_VERSIONS = getattr(settings, 'FILEBROWSER_ADMIN_VERSIONS', ['thumbnail', 'small', 'medium', 'big'])
-# Which Version should be used as Admin-thumbnail.
-ADMIN_THUMBNAIL = getattr(settings, 'FILEBROWSER_ADMIN_THUMBNAIL', 'fb_thumb')
-
-# EXTRA SETTINGS
-# True to save the URL including MEDIA_URL to your model fields
-# or False (default) to save path relative to MEDIA_URL.
-# Note: Full URL does not necessarily means absolute URL.
-SAVE_FULL_URL = getattr(settings, "FILEBROWSER_SAVE_FULL_URL", True)
-# If set to True, the FileBrowser will not try to import a mis-installed PIL.
-STRICT_PIL = getattr(settings, 'FILEBROWSER_STRICT_PIL', False)
-# PIL's Error "Suspension not allowed here" work around:
-# s. http://mail.python.org/pipermail/image-sig/1999-August/000816.html
-IMAGE_MAXBLOCK = getattr(settings, 'FILEBROWSER_IMAGE_MAXBLOCK', 1024 * 1024)
-# Exclude files matching any of the following regular expressions
-# Default is to exclude 'thumbnail' style naming of image-thumbnails.
-EXTENSION_LIST = []
-for exts in EXTENSIONS.values():
-    EXTENSION_LIST += exts
-EXCLUDE = getattr(settings, 'FILEBROWSER_EXCLUDE', (r'_(%(exts)s)_.*_q\d{1,3}\.(%(exts)s)' % {'exts': ('|'.join(EXTENSION_LIST))},))
-# Max. Upload Size in Bytes.
-MAX_UPLOAD_SIZE = getattr(settings, "FILEBROWSER_MAX_UPLOAD_SIZE", 10485760)
-# Convert Filename (replace spaces and convert to lowercase)
-CONVERT_FILENAME = getattr(settings, "FILEBROWSER_CONVERT_FILENAME", True)
-
-DEFAULT_ORDER = getattr(settings, "FILEBROWSER_DEFAULT_ORDER", "filename_lower")
-
-# EXTRA TRANSLATION STRINGS
-# The following strings are not availabe within views or templates
-_('Folder')
-_('Image')
-_('Video')
-_('Document')
-_('Sound')
-_('Code')
diff --git a/apps/filebrowser/fields.py b/apps/filebrowser/fields.py
deleted file mode 100644 (file)
index 78419cd..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-# -*- coding: utf-8
-
-import os
-
-# django imports
-from django.db import models
-from django import forms
-from django.forms.widgets import Input
-from django.db.models.fields import Field, CharField
-from django.utils.encoding import force_unicode
-from django.template.loader import render_to_string
-from django.utils.translation import ugettext_lazy as _
-
-# filebrowser imports
-from filebrowser.functions import _url_to_path, _dir_from_url, _get_version_path, _url_join
-from filebrowser.fb_settings import *
-from filebrowser.base import FileObject
-
-
-class FileBrowseWidget(Input):
-    input_type = 'text'
-
-    class Media:
-        js = (os.path.join(URL_FILEBROWSER_MEDIA, 'js/AddFileBrowser.js'),)
-
-    def __init__(self, attrs=None):
-        self.directory = attrs.get('directory', '')
-        self.extensions = attrs.get('extensions', '')
-        self.format = attrs.get('format', '')
-        if attrs is not None:
-            self.attrs = attrs.copy()
-        else:
-            self.attrs = {}
-
-    def render(self, name, value, attrs=None):
-        if value is None:
-            value = ""
-        final_attrs = self.build_attrs(attrs, type=self.input_type, name=name)
-        final_attrs['search_icon'] = URL_FILEBROWSER_MEDIA + 'img/filebrowser_icon_show.gif'
-        final_attrs['directory'] = self.directory
-        final_attrs['extensions'] = self.extensions
-        final_attrs['format'] = self.format
-        final_attrs['ADMIN_THUMBNAIL'] = ADMIN_THUMBNAIL
-        final_attrs['DEBUG'] = DEBUG
-        if value != "":
-            try:
-                final_attrs['directory'] = os.path.split(value.path_relative_directory)[0]
-            except:
-                pass
-        return render_to_string("filebrowser/custom_field.html", locals())
-
-
-class FileBrowseFormField(forms.CharField):
-    widget = FileBrowseWidget
-
-    default_error_messages = {
-        'extension': _(u'Extension %(ext)s is not allowed. Only %(allowed)s is allowed.'),
-    }
-
-    def __init__(self, max_length=None, min_length=None,
-                 directory=None, extensions=None, format=None,
-                 *args, **kwargs):
-        self.max_length, self.min_length = max_length, min_length
-        self.directory = directory
-        self.extensions = extensions
-        if format:
-            self.format = format or ''
-            self.extensions = extensions or EXTENSIONS.get(format)
-        super(FileBrowseFormField, self).__init__(*args, **kwargs)
-
-    def clean(self, value):
-        value = super(FileBrowseFormField, self).clean(value)
-        if value == '':
-            return value
-        file_extension = os.path.splitext(value)[1].lower()
-        if self.extensions and not file_extension in self.extensions:
-            raise forms.ValidationError(self.error_messages['extension'] % {'ext': file_extension, 'allowed': ", ".join(self.extensions)})
-        return value
-
-
-class FileBrowseField(Field):
-    __metaclass__ = models.SubfieldBase
-
-    def __init__(self, *args, **kwargs):
-        self.directory = kwargs.pop('directory', '')
-        self.extensions = kwargs.pop('extensions', '')
-        self.format = kwargs.pop('format', '')
-        return super(FileBrowseField, self).__init__(*args, **kwargs)
-
-    def to_python(self, value):
-        if not value or isinstance(value, FileObject):
-            return value
-        return FileObject(_url_to_path(value))
-
-    def get_db_prep_value(self, value):
-        if value is None:
-            return None
-        return unicode(value)
-
-    def get_manipulator_field_objs(self):
-        return [oldforms.TextField]
-
-    def get_internal_type(self):
-        return "CharField"
-
-    def formfield(self, **kwargs):
-        attrs = {}
-        attrs["directory"] = self.directory
-        attrs["extensions"] = self.extensions
-        attrs["format"] = self.format
-        defaults = {
-            'form_class': FileBrowseFormField,
-            'widget': FileBrowseWidget(attrs=attrs),
-            'directory': self.directory,
-            'extensions': self.extensions,
-            'format': self.format,
-        }
-        defaults.update(kwargs)
-        return super(FileBrowseField, self).formfield(**defaults)
diff --git a/apps/filebrowser/forms.py b/apps/filebrowser/forms.py
deleted file mode 100644 (file)
index 465c2bd..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-# coding: utf-8
-
-import os
-import re
-
-from django import forms
-from django.forms.formsets import BaseFormSet
-from django.utils.translation import ugettext as _
-
-# filebrowser imports
-from filebrowser.fb_settings import MAX_UPLOAD_SIZE
-from filebrowser.functions import _get_file_type, _convert_filename
-
-alnum_name_re = re.compile(r'^[\sa-zA-Z0-9._/-]+$')
-
-
-class MakeDirForm(forms.Form):
-    """
-    Form for creating Directory.
-    """
-
-    def __init__(self, path, *args, **kwargs):
-        self.path = path
-        super(MakeDirForm, self).__init__(*args, **kwargs)
-
-    dir_name = forms.CharField(widget=forms.TextInput(attrs=dict({'class': 'vTextField'}, max_length=50, min_length=3)), label=_(u'Name'), help_text=_(u'Only letters, numbers, underscores, spaces and hyphens are allowed.'), required=True)
-
-    def clean_dir_name(self):
-        if self.cleaned_data['dir_name']:
-            # only letters, numbers, underscores, spaces and hyphens are allowed.
-            if not alnum_name_re.search(self.cleaned_data['dir_name']):
-                raise forms.ValidationError(_(u'Only letters, numbers, underscores, spaces and hyphens are allowed.'))
-            # directory must not already exist.
-            if os.path.isdir(os.path.join(self.path, _convert_filename(self.cleaned_data['dir_name']))):
-                raise forms.ValidationError(_(u'The Folder already exists.'))
-        return _convert_filename(self.cleaned_data['dir_name'])
-
-
-class RenameForm(forms.Form):
-    """
-    Form for renaming File/Directory.
-    """
-
-    def __init__(self, path, file_extension, *args, **kwargs):
-        self.path = path
-        self.file_extension = file_extension
-        super(RenameForm, self).__init__(*args, **kwargs)
-
-    name = forms.CharField(widget=forms.TextInput(attrs=dict({'class': 'vTextField'}, max_length=50, min_length=3)), label=_(u'New Name'), help_text=_('Only letters, numbers, underscores, spaces and hyphens are allowed.'), required=True)
-
-    def clean_name(self):
-        if self.cleaned_data['name']:
-            # only letters, numbers, underscores, spaces and hyphens are allowed.
-            if not alnum_name_re.search(self.cleaned_data['name']):
-                raise forms.ValidationError(_(u'Only letters, numbers, underscores, spaces and hyphens are allowed.'))
-            # file/directory must not already exist.
-            if os.path.isdir(os.path.join(self.path, _convert_filename(self.cleaned_data['name']))) or os.path.isfile(os.path.join(self.path, _convert_filename(self.cleaned_data['name']) + self.file_extension)):
-                raise forms.ValidationError(_(u'The File/Folder already exists.'))
-        return _convert_filename(self.cleaned_data['name'])
diff --git a/apps/filebrowser/functions.py b/apps/filebrowser/functions.py
deleted file mode 100644 (file)
index c8cde3f..0000000
+++ /dev/null
@@ -1,295 +0,0 @@
-# -*- coding: utf-8
-
-import os
-import re
-import decimal
-
-from django.utils.translation import ugettext as _
-from django.utils.safestring import mark_safe
-from time import gmtime, strftime, localtime, mktime, time
-from django.core.files import File
-from django.core.files.storage import default_storage
-
-from urlparse import urlparse
-
-# filebrowser imports
-from filebrowser.fb_settings import *
-
-# PIL import
-if STRICT_PIL:
-    from PIL import Image
-else:
-    try:
-        from PIL import Image
-    except ImportError:
-        import Image
-
-
-def _url_to_path(value):
-    """
-    Change URL to PATH.
-    Value has to be an URL relative to MEDIA URL or a full URL (including MEDIA_URL).
-
-    Returns a PATH relative to MEDIA_ROOT.
-    """
-    print "URL2PATH", repr(value)
-    mediaurl_re = re.compile(r'^(%s)' % (MEDIA_URL))
-    value = mediaurl_re.sub(u'', value)
-    return value
-
-
-def _path_to_url(value):
-    """
-    Change PATH to URL.
-    Value has to be a PATH relative to MEDIA_ROOT.
-
-    Return an URL relative to MEDIA_ROOT.
-    """
-    mediaroot_re = re.compile(r'^(%s)' % (MEDIA_ROOT))
-    value = mediaroot_re.sub('', value)
-    return _url_join(MEDIA_URL, value)
-
-
-def _dir_from_url(value):
-    """
-    Get the relative server directory from a URL.
-    URL has to be an absolute URL including MEDIA_URL or
-    an URL relative to MEDIA_URL.
-    """
-
-    mediaurl_re = re.compile(r'^(%s)' % (MEDIA_URL))
-    value = mediaurl_re.sub('', value)
-    directory_re = re.compile(r'^(%s)' % (DIRECTORY))
-    value = directory_re.sub('', value)
-    return os.path.split(value)[0]
-
-
-def _get_version_path(value, version_prefix):
-    """
-    Construct the PATH to an Image version.
-    Value has to be server-path, relative to MEDIA_ROOT.
-
-    version_filename = filename + version_prefix + ext
-    Returns a path relative to MEDIA_ROOT.
-    """
-    if os.path.isfile(os.path.join(MEDIA_ROOT, value)):
-        path, filename = os.path.split(value)
-        filename, ext = os.path.splitext(filename)
-        version_filename = filename + u"_" + version_prefix + ext
-        return os.path.join(VERSIONS_BASEDIR, path, version_filename)
-    else:
-        return None
-
-
-def _url_join(*args):
-    if args[0].startswith(u"http://"):
-        url = u"http://"
-    else:
-        url = u"/"
-    for arg in args:
-        arg = unicode(arg).replace(u"\\", u"/")
-        arg_split = arg.split(u"/")
-        for elem in arg_split:
-            if elem != u"" and elem != u"http:":
-                url = url + elem + u"/"
-    # remove trailing slash for filenames
-    if os.path.splitext(args[-1])[1]:
-        url = url.rstrip(u"/")
-    return url
-
-
-def _get_path(path):
-    """
-    Get Path.
-    """
-
-    if os.path.isabs(path) or not os.path.isdir(os.path.join(MEDIA_ROOT, DIRECTORY, path)):
-        return None
-    return path
-
-
-def _get_file(path, filename):
-    """
-    Get File.
-    """
-
-    if not os.path.isfile(os.path.join(MEDIA_ROOT, DIRECTORY, path, filename)) and not os.path.isdir(os.path.join(MEDIA_ROOT, DIRECTORY, path, filename)):
-        return None
-    return filename
-
-
-def _get_breadcrumbs(query, path, title):
-    """
-    Get breadcrumbs.
-    """
-
-    breadcrumbs = []
-    dir_query = ""
-    if path:
-        for item in path.split(os.sep):
-            dir_query = os.path.join(dir_query, item)
-            breadcrumbs.append([item, dir_query])
-    if title:
-        breadcrumbs.append([title, ''])
-    return breadcrumbs
-
-
-def _get_filterdate(filterDate, dateTime):
-    """
-    Get filterdate.
-    """
-
-    dateYear = strftime("%Y", gmtime(dateTime))
-    dateMonth = strftime("%m", gmtime(dateTime))
-    dateDay = strftime("%d", gmtime(dateTime))
-
-    if filterDate == 'today' and int(dateYear) == int(localtime()[0]) and int(dateMonth) == int(localtime()[1]) and int(dateDay) == int(localtime()[2]):
-        return 'true'
-
-    if filterDate == 'thismonth' and dateTime >= time() - 2592000:
-        return 'true'
-
-    if filterDate == 'thisyear' and int(dateYear) == int(localtime()[0]):
-        return 'true'
-
-    if filterDate == 'past7days' and dateTime >= time() - 604800:
-        return 'true'
-
-    return 'true' if filterDate == '' else ''
-
-
-def _get_settings_var():
-    """
-    Get settings variables used for FileBrowser listing.
-    """
-
-    settings_var = {}
-    # Main
-    settings_var['DEBUG'] = DEBUG
-    settings_var['MEDIA_ROOT'] = MEDIA_ROOT
-    settings_var['MEDIA_URL'] = MEDIA_URL
-    settings_var['DIRECTORY'] = DIRECTORY
-    # FileBrowser
-    settings_var['URL_FILEBROWSER_MEDIA'] = URL_FILEBROWSER_MEDIA
-    settings_var['PATH_FILEBROWSER_MEDIA'] = PATH_FILEBROWSER_MEDIA
-    # TinyMCE
-    settings_var['URL_TINYMCE'] = URL_TINYMCE
-    settings_var['PATH_TINYMCE'] = PATH_TINYMCE
-    # Extensions/Formats (for FileBrowseField)
-    settings_var['EXTENSIONS'] = EXTENSIONS
-    settings_var['SELECT_FORMATS'] = SELECT_FORMATS
-    # Versions
-    settings_var['VERSIONS_BASEDIR'] = VERSIONS_BASEDIR
-    settings_var['VERSIONS'] = VERSIONS
-    settings_var['ADMIN_VERSIONS'] = ADMIN_VERSIONS
-    settings_var['ADMIN_THUMBNAIL'] = ADMIN_THUMBNAIL
-    # FileBrowser Options
-    settings_var['MAX_UPLOAD_SIZE'] = MAX_UPLOAD_SIZE
-    # Convert Filenames
-    settings_var['CONVERT_FILENAME'] = CONVERT_FILENAME
-    return settings_var
-
-
-def _handle_file_upload(path, file):
-    """
-    Handle File Upload.
-    """
-
-    file_path = os.path.join(path, file.name)
-    uploadedfile = default_storage.save(file_path, file)
-    return uploadedfile
-
-
-def _get_file_type(filename):
-    """
-    Get file type as defined in EXTENSIONS.
-    """
-    file_extension = os.path.splitext(filename)[1].lower()
-    for ftype, ext_list in EXTENSIONS.iteritems():
-        if file_extension in map(str.lower, ext_list):
-            return ftype
-    return u''
-
-
-def _is_selectable(filename, selecttype):
-    """
-    Get select type as defined in FORMATS.
-    """
-
-    file_extension = os.path.splitext(filename)[1].lower()
-    select_types = []
-    for k, v in SELECT_FORMATS.iteritems():
-        for extension in v:
-            if file_extension == extension.lower():
-                select_types.append(k)
-    return select_types
-
-
-def _version_generator(value, version_prefix, force=None):
-    """
-    Generate Version for an Image.
-    value has to be a serverpath relative to MEDIA_ROOT.
-    """
-
-    # PIL's Error "Suspension not allowed here" work around:
-    # s. http://mail.python.org/pipermail/image-sig/1999-August/000816.html
-    if STRICT_PIL:
-        from PIL import ImageFile
-    else:
-        try:
-            from PIL import ImageFile
-        except ImportError:
-            import ImageFile
-    ImageFile.MAXBLOCK = IMAGE_MAXBLOCK  # default is 64k
-
-    try:
-        im = Image.open(os.path.join(MEDIA_ROOT, value))
-        version_path = _get_version_path(value, version_prefix)
-        absolute_version_path = os.path.join(MEDIA_ROOT, version_path)
-        version_dir = os.path.split(absolute_version_path)[0]
-        if not os.path.isdir(version_dir):
-            os.makedirs(version_dir)
-            os.chmod(version_dir, 0775)
-        version = scale_and_crop(im, VERSIONS[version_prefix]['width'], VERSIONS[version_prefix]['height'], VERSIONS[version_prefix]['opts'])
-        try:
-            version.save(absolute_version_path, quality=90, optimize=1)
-        except IOError:
-            version.save(absolute_version_path, quality=90)
-        return version_path
-    except:
-        return None
-
-
-def scale_and_crop(im, width, height, opts):
-    x, y = [float(v) for v in im.size]
-    if width:
-        xr = float(width)
-    else:
-        xr = float(x * height / y)
-    if height:
-        yr = float(height)
-    else:
-        yr = float(y * width / x)
-
-    if 'crop' in opts:
-        r = max(xr / x, yr / y)
-    else:
-        r = min(xr / x, yr / y)
-
-    if r < 1.0 or (r > 1.0 and 'upscale' in opts):
-        im = im.resize((int(x * r), int(y * r)), resample=Image.ANTIALIAS)
-
-    if 'crop' in opts:
-        x, y = [float(v) for v in im.size]
-        ex, ey = (x - min(x, xr)) / 2, (y - min(y, yr)) / 2
-        if ex or ey:
-            im = im.crop((int(ex), int(ey), int(x - ex), int(y - ey)))
-    return im
-scale_and_crop.valid_options = ('crop', 'upscale')
-
-
-def _convert_filename(value):
-    if CONVERT_FILENAME:
-        return value.replace(" ", "_").lower()
-    else:
-        return value
diff --git a/apps/filebrowser/locale/ca/LC_MESSAGES/django.mo b/apps/filebrowser/locale/ca/LC_MESSAGES/django.mo
deleted file mode 100644 (file)
index bd8106d..0000000
Binary files a/apps/filebrowser/locale/ca/LC_MESSAGES/django.mo and /dev/null differ
diff --git a/apps/filebrowser/locale/ca/LC_MESSAGES/django.po b/apps/filebrowser/locale/ca/LC_MESSAGES/django.po
deleted file mode 100644 (file)
index 0dca85e..0000000
+++ /dev/null
@@ -1,328 +0,0 @@
-# translation of django.po to Catalan
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-#
-# PATRICK KRANZLMUELLER <PATRICK@VONAUTOMATISCH.AT>, 2009.
-# Antoni Aloy <antoni.aloy@trespams.com>, 2009.
-msgid ""
-msgstr ""
-"Project-Id-Version: django\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-02-19 21:24+0000\n"
-"PO-Revision-Date: 2009-02-15 19:00+0100\n"
-"Last-Translator: Antoni Aloy <antoni.aloy@trespams.com>\n"
-"Language-Team: Catalan <ca@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.11.4\n"
-
-#: fields.py:27
-#, python-format
-msgid "Ensure this value has at most %(max)d characters (it has %(length)d)."
-msgstr ""
-"Confirma que aquest valor té com a màxim %(max)d caràcters (té longitud %"
-"(length)d)."
-
-#: fields.py:28
-#, python-format
-msgid "Ensure this value has at least %(min)d characters (it has %(length)d)."
-msgstr ""
-"Confirma que aquest valor té com a mínim %(min)d caràcters (té longitud %"
-"(length)d)."
-
-#: fields.py:29
-#, python-format
-msgid "Extension %(ext)s is not allowed. Only %(allowed)s is allowed."
-msgstr ""
-"L'extensió %(ext)s no està permesa. Sols es permeten les extensions %"
-"(allowed)s."
-
-#: forms.py:23
-msgid "Name"
-msgstr "Nom"
-
-#: forms.py:23 forms.py:46
-msgid ""
-"The Name will automatically be converted to lowercase. Only letters, "
-"numbers, underscores and hyphens are allowed."
-msgstr ""
-"El nom serà convertit automàticament a minúscules. Sols estan permeses le "
-"lletres, nombres, subratllats i guions."
-
-#: forms.py:30 forms.py:53
-msgid "Only letters, numbers, underscores and hyphens are allowed."
-msgstr "Sols es permeten lletres, nombres, subratllats i guions."
-
-#: forms.py:33
-msgid "The Folder already exists."
-msgstr "La carpeta ja existeix."
-
-#: forms.py:46
-msgid "New Name"
-msgstr "Nou nom"
-
-#: forms.py:56
-msgid "The File/Folder already exists."
-msgstr "La carpeta/arixu ja existeix"
-
-#: forms.py:92
-msgid "File"
-msgstr "Arxiu"
-
-#: forms.py:93
-msgid "Use Image Generator"
-msgstr "Fer servir el generador d'imatges"
-
-#: forms.py:102
-msgid "File already exists."
-msgstr "L'arxiu ja existeix"
-
-#: forms.py:108
-msgid "Filename is not allowed."
-msgstr "El nom d'arxiu no està permès"
-
-#: forms.py:113
-msgid "File extension is not allowed."
-msgstr "L'extensió de l'arxiu no està permesa"
-
-#: forms.py:118
-msgid "Filesize exceeds allowed Upload Size."
-msgstr "El tamany de l'arxiu supera el límit permès"
-
-#: functions.py:84
-msgid "Home"
-msgstr "Inici"
-
-#: functions.py:276
-msgid "Thumbnail creation failed."
-msgstr "Ha fallat la creació de la miniatura"
-
-#: functions.py:331 functions.py:398
-msgid "Image creation failed."
-msgstr "La creació de la imatge ha fallat"
-
-#: views.py:165
-msgid "FileBrowser"
-msgstr "Visor d'arxius"
-
-#: views.py:188
-#, python-format
-msgid "The Folder %s was successfully created."
-msgstr "La carpeta %s ha estat creada amb èxit."
-
-#: views.py:194
-msgid "Permission denied."
-msgstr "Permís denegat."
-
-#: views.py:196
-msgid "Error creating directory."
-msgstr "Error creant el directori."
-
-#: views.py:204 views.py:205 templates/filebrowser/index.html:30
-msgid "New Folder"
-msgstr "Nova carpeta"
-
-#: views.py:250
-msgid "Upload successful."
-msgstr "Pujada completada"
-
-#: views.py:263 templates/filebrowser/index.html:33
-#: templates/filebrowser/upload.html:62
-msgid "Upload"
-msgstr "Pujar"
-
-#: views.py:264
-msgid "Select files to upload"
-msgstr "Selecciona arxius a pujar."
-
-#: views.py:294
-msgid "Thumbnail creation successful."
-msgstr "S'han creat les miniatures satisfactòriament."
-
-#: views.py:344
-#, python-format
-msgid "The file %s was successfully deleted."
-msgstr "L'arxiu %s ha estat borrat amb èxit."
-
-#: views.py:356
-#, python-format
-msgid "The directory %s was successfully deleted."
-msgstr "El directori %s ha estat borrat amb èxit."
-
-#: views.py:407
-msgid "Error renaming Thumbnail."
-msgstr "Error reanomenant la miniatura"
-
-#: views.py:413
-msgid "Renaming was successful."
-msgstr "El canvi de nom ha tingut èxit."
-
-#: views.py:418
-msgid "Error."
-msgstr "Error."
-
-#: views.py:427 templates/filebrowser/include/filelisting.html:52
-msgid "Rename"
-msgstr "Reanomenar"
-
-#: views.py:428
-#, python-format
-msgid "Rename \"%s\""
-msgstr "Reanomena \"%s\""
-
-#: views.py:465
-msgid "Successfully generated Images."
-msgstr "Imatges generades satisfactòriament."
-
-#: templates/filebrowser/index.html:31
-msgid "Make Thumbs"
-msgstr "Crear miniatures"
-
-#: templates/filebrowser/index.html:32
-msgid "Generate Images"
-msgstr "Generar imatges"
-
-#: templates/filebrowser/makedir.html:24 templates/filebrowser/rename.html:22
-msgid "Please correct the following errors."
-msgstr "Per favor, corregeix els següents errors"
-
-#: templates/filebrowser/makedir.html:34 templates/filebrowser/rename.html:33
-msgid "Submit"
-msgstr "Enviar"
-
-#: templates/filebrowser/upload.html:37
-msgid "Will use image generator."
-msgstr "Usaré el generador d'imatges"
-
-#: templates/filebrowser/upload.html:47
-msgid "Help"
-msgstr "Ajuda"
-
-#: templates/filebrowser/upload.html:51
-msgid "Allowed"
-msgstr "Permès"
-
-#: templates/filebrowser/upload.html:57
-msgid "Max. Filesize"
-msgstr "Tamay màxim"
-
-#: templates/filebrowser/include/filelisting.html:8
-msgid "Select"
-msgstr "Selecciona"
-
-#: templates/filebrowser/include/filelisting.html:15
-msgid "Select File"
-msgstr "Selecciona fitxer"
-
-#: templates/filebrowser/include/filelisting.html:26
-msgid "Make Thumbnail"
-msgstr "Crear miniatura"
-
-#: templates/filebrowser/include/filelisting.html:29
-msgid "View Image"
-msgstr "Veure imatge"
-
-#: templates/filebrowser/include/filelisting.html:46
-msgid "Generate Image Versions"
-msgstr "Generar versions de la imatge"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Are you sure you want to delete this file?"
-msgstr ""
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Delete File"
-msgstr "Esborrar fitxer"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Are you sure you want to delete this Folder?"
-msgstr ""
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Delete Folder"
-msgstr "Esborrar carpeta"
-
-#: templates/filebrowser/include/filter.html:15
-msgid "Filter"
-msgstr "Filtrar"
-
-#: templates/filebrowser/include/filter.html:21
-msgid "By Date"
-msgstr "Per data"
-
-#: templates/filebrowser/include/filter.html:23
-msgid "Any Date"
-msgstr "Qualsevol data"
-
-#: templates/filebrowser/include/filter.html:25
-msgid "Today"
-msgstr "Avui"
-
-#: templates/filebrowser/include/filter.html:27
-msgid "Past 7 days"
-msgstr "Fa 7 dies"
-
-#: templates/filebrowser/include/filter.html:29
-msgid "Past 30 days"
-msgstr "Fa 30 dies"
-
-#: templates/filebrowser/include/filter.html:31
-msgid "This year"
-msgstr "Enguany"
-
-#: templates/filebrowser/include/filter.html:39
-msgid "By Type"
-msgstr "Per tipus"
-
-#: templates/filebrowser/include/filter.html:41
-msgid "All"
-msgstr "Tots"
-
-#: templates/filebrowser/include/paginator.html:5
-msgid "No Items Found."
-msgstr "No s'han trobat items"
-
-#: templates/filebrowser/include/paginator.html:10
-#, python-format
-msgid "%(counter)s Item"
-msgid_plural "%(counter)s Items"
-msgstr[0] "%(counter)s Item"
-msgstr[1] "%(counter)s Item"
-
-#: templates/filebrowser/include/paginator.html:16
-msgid "No Items."
-msgstr "No hi ha items"
-
-#: templates/filebrowser/include/tableheader.html:13
-#: templates/filebrowser/include/tableheader.html:14
-msgid "Filename"
-msgstr "Nom de fitxer"
-
-#: templates/filebrowser/include/tableheader.html:20
-#: templates/filebrowser/include/tableheader.html:21
-msgid "Size"
-msgstr "Tamany"
-
-#: templates/filebrowser/include/tableheader.html:23
-#: templates/filebrowser/include/tableheader.html:24
-msgid "Date"
-msgstr "Data"
-
-#: templates/filebrowser/include/toolbar.html:14
-msgid "Go"
-msgstr "Ves"
-
-#: templates/filebrowser/include/toolbar.html:16
-#, python-format
-msgid "%(counter)s Item found"
-msgid_plural "%(counter)s Items found"
-msgstr[0] "%(counter)s trobat"
-msgstr[1] "%(counter)s trobats"
-
-#: templates/filebrowser/include/toolbar.html:17
-#, python-format
-msgid "%(counter)s Item total"
-msgid_plural "%(counter)s Items total"
-msgstr[0] "total %(counter)s item"
-msgstr[1] "total %(counter)s Items"
diff --git a/apps/filebrowser/locale/de/LC_MESSAGES/django.mo b/apps/filebrowser/locale/de/LC_MESSAGES/django.mo
deleted file mode 100644 (file)
index f15bd21..0000000
Binary files a/apps/filebrowser/locale/de/LC_MESSAGES/django.mo and /dev/null differ
diff --git a/apps/filebrowser/locale/de/LC_MESSAGES/django.po b/apps/filebrowser/locale/de/LC_MESSAGES/django.po
deleted file mode 100644 (file)
index e5686cc..0000000
+++ /dev/null
@@ -1,361 +0,0 @@
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-10-12 19:39+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: fb_settings.py:102
-msgid "Folder"
-msgstr ""
-
-#: fb_settings.py:103
-msgid "Image"
-msgstr ""
-
-#: fb_settings.py:104
-msgid "Video"
-msgstr ""
-
-#: fb_settings.py:105
-msgid "Document"
-msgstr ""
-
-#: fb_settings.py:106
-msgid "Sound"
-msgstr ""
-
-#: fb_settings.py:107
-msgid "Code"
-msgstr ""
-
-#: fields.py:56
-#, python-format
-msgid "Extension %(ext)s is not allowed. Only %(allowed)s is allowed."
-msgstr ""
-
-#: forms.py:24 templates/filebrowser/versions.html:55
-msgid "Name"
-msgstr ""
-
-#: forms.py:24 forms.py:30 forms.py:47 forms.py:53
-msgid "Only letters, numbers, underscores, spaces and hyphens are allowed."
-msgstr ""
-
-#: forms.py:33
-msgid "The Folder already exists."
-msgstr ""
-
-#: forms.py:47
-msgid "New Name"
-msgstr ""
-
-#: forms.py:56
-msgid "The File/Folder already exists."
-msgstr ""
-
-#: views.py:47 views.py:138 views.py:191 views.py:284 views.py:362
-#: views.py:418
-msgid "Directory/File does not exist."
-msgstr ""
-
-#: views.py:51
-msgid "Error finding upload directory. Maybe it does not exist?"
-msgstr ""
-
-#: views.py:116 templates/filebrowser/include/breadcrumbs.html:7
-#: templates/filebrowser/include/breadcrumbs.html:9
-msgid "FileBrowser"
-msgstr ""
-
-#: views.py:156
-#, python-format
-msgid "The Folder %s was successfully created."
-msgstr ""
-
-#: views.py:164
-msgid "Permission denied."
-msgstr ""
-
-#: views.py:166
-msgid "Error creating directory."
-msgstr ""
-
-#: views.py:173 views.py:175 templates/filebrowser/index.html:50
-msgid "New Folder"
-msgstr ""
-
-#: views.py:203
-msgid "Select files to upload"
-msgstr ""
-
-#: views.py:205 templates/filebrowser/index.html:51
-#: templates/filebrowser/upload.html:110
-msgid "Upload"
-msgstr ""
-
-#: views.py:307
-#, python-format
-msgid "The file %s was successfully deleted."
-msgstr ""
-
-#: views.py:323
-#, python-format
-msgid "The directory %s was successfully deleted."
-msgstr ""
-
-#: views.py:388
-msgid "Renaming was successful."
-msgstr ""
-
-#: views.py:393
-msgid "Error."
-msgstr ""
-
-#: views.py:401
-#, python-format
-msgid "Rename \"%s\""
-msgstr ""
-
-#: views.py:403 templates/filebrowser/include/filelisting.html:73
-msgid "Rename"
-msgstr ""
-
-#: views.py:426 views.py:428
-#, python-format
-msgid "Versions for \"%s\""
-msgstr ""
-
-#: templates/filebrowser/append.html:5 templates/filebrowser/append.html:7
-msgid "File-Browser"
-msgstr ""
-
-#: templates/filebrowser/makedir.html:38 templates/filebrowser/rename.html:38
-msgid "Please correct the following errors."
-msgstr ""
-
-#: templates/filebrowser/makedir.html:47 templates/filebrowser/rename.html:48
-#: templates/filebrowser/upload.html:83
-msgid "Help"
-msgstr ""
-
-#: templates/filebrowser/makedir.html:52 templates/filebrowser/rename.html:53
-#: templates/filebrowser/upload.html:100
-msgid ""
-"The Name will be converted to lowercase. Spaces will be replaced with "
-"underscores."
-msgstr ""
-
-#: templates/filebrowser/makedir.html:57 templates/filebrowser/rename.html:58
-msgid "Submit"
-msgstr ""
-
-#: templates/filebrowser/upload.html:35
-msgid "BROWSE"
-msgstr ""
-
-#: templates/filebrowser/upload.html:36
-msgid "An Error occured"
-msgstr ""
-
-#: templates/filebrowser/upload.html:37
-msgid "Completed"
-msgstr ""
-
-#: templates/filebrowser/upload.html:38
-msgid "Do you want to replace the file"
-msgstr ""
-
-#: templates/filebrowser/upload.html:39
-msgid "KB"
-msgstr ""
-
-#: templates/filebrowser/upload.html:40
-msgid "MB"
-msgstr ""
-
-#: templates/filebrowser/upload.html:87
-msgid "Allowed"
-msgstr ""
-
-#: templates/filebrowser/upload.html:93
-msgid "Max. Filesize"
-msgstr ""
-
-#: templates/filebrowser/upload.html:108
-msgid "Clear Queue"
-msgstr ""
-
-#: templates/filebrowser/versions.html:57
-msgid "Image Version"
-msgstr ""
-
-#: templates/filebrowser/versions.html:58
-msgid "Debug"
-msgstr ""
-
-#: templates/filebrowser/versions.html:70
-#: templates/filebrowser/include/filelisting.html:10
-msgid "Select"
-msgstr ""
-
-#: templates/filebrowser/versions.html:81
-#: templates/filebrowser/versions.html:92
-#: templates/filebrowser/include/filelisting.html:24
-#: templates/filebrowser/include/filelisting.html:38
-msgid "Select File"
-msgstr ""
-
-#: templates/filebrowser/versions.html:102
-msgid "Width"
-msgstr ""
-
-#: templates/filebrowser/versions.html:103
-msgid "Height"
-msgstr ""
-
-#: templates/filebrowser/include/breadcrumbs.html:4
-msgid "Home"
-msgstr ""
-
-#: templates/filebrowser/include/filelisting.html:49
-msgid "Show Versions"
-msgstr ""
-
-#: templates/filebrowser/include/filelisting.html:60
-msgid "View Image"
-msgstr ""
-
-#: templates/filebrowser/include/filelisting.html:85
-msgid "Are you sure you want to delete this file?"
-msgstr ""
-
-#: templates/filebrowser/include/filelisting.html:85
-msgid "Delete File"
-msgstr ""
-
-#: templates/filebrowser/include/filelisting.html:88
-msgid "Are you sure you want to delete this Folder?"
-msgstr ""
-
-#: templates/filebrowser/include/filelisting.html:88
-msgid "Delete Folder"
-msgstr ""
-
-#: templates/filebrowser/include/filter.html:3
-msgid "Filter"
-msgstr ""
-
-#: templates/filebrowser/include/filter.html:9
-msgid "By Date"
-msgstr ""
-
-#: templates/filebrowser/include/filter.html:11
-msgid "Any Date"
-msgstr ""
-
-#: templates/filebrowser/include/filter.html:13
-msgid "Today"
-msgstr ""
-
-#: templates/filebrowser/include/filter.html:15
-msgid "Past 7 days"
-msgstr ""
-
-#: templates/filebrowser/include/filter.html:17
-msgid "Past 30 days"
-msgstr ""
-
-#: templates/filebrowser/include/filter.html:19
-msgid "This year"
-msgstr ""
-
-#: templates/filebrowser/include/filter.html:27
-msgid "By Type"
-msgstr ""
-
-#: templates/filebrowser/include/filter.html:29
-msgid "All"
-msgstr ""
-
-#: templates/filebrowser/include/paginator.html:4
-msgid "No Items Found."
-msgstr ""
-
-#: templates/filebrowser/include/paginator.html:9
-#, python-format
-msgid "%(counter)s Item"
-msgid_plural "%(counter)s Items"
-msgstr[0] ""
-msgstr[1] ""
-
-#: templates/filebrowser/include/paginator.html:15
-msgid "No Items."
-msgstr ""
-
-#: templates/filebrowser/include/search.html:3
-#, python-format
-msgid "1 result"
-msgid_plural "%(counter)s results"
-msgstr[0] ""
-msgstr[1] ""
-
-#: templates/filebrowser/include/search.html:4
-#, python-format
-msgid "%(full_result_count)s total"
-msgstr ""
-
-#: templates/filebrowser/include/search.html:5
-msgid "Clear Restrictions"
-msgstr ""
-
-#: templates/filebrowser/include/search.html:7
-msgid "Search"
-msgstr ""
-
-#: templates/filebrowser/include/search.html:21
-#: templates/filebrowser/include/toolbar.html:15
-msgid "Go"
-msgstr ""
-
-#: templates/filebrowser/include/search.html:26
-#: templates/filebrowser/include/toolbar.html:18
-#, python-format
-msgid "%(counter)s Item found"
-msgid_plural "%(counter)s Items found"
-msgstr[0] ""
-msgstr[1] ""
-
-#: templates/filebrowser/include/search.html:27
-#: templates/filebrowser/include/toolbar.html:19
-#, python-format
-msgid "%(counter)s Item total"
-msgid_plural "%(counter)s Items total"
-msgstr[0] ""
-msgstr[1] ""
-
-#: templates/filebrowser/include/tableheader.html:20
-#: templates/filebrowser/include/tableheader.html:21
-msgid "Filename"
-msgstr ""
-
-#: templates/filebrowser/include/tableheader.html:27
-#: templates/filebrowser/include/tableheader.html:28
-msgid "Size"
-msgstr ""
-
-#: templates/filebrowser/include/tableheader.html:31
-#: templates/filebrowser/include/tableheader.html:32
-msgid "Date"
-msgstr ""
diff --git a/apps/filebrowser/locale/es/LC_MESSAGES/django.mo b/apps/filebrowser/locale/es/LC_MESSAGES/django.mo
deleted file mode 100644 (file)
index bb698f8..0000000
Binary files a/apps/filebrowser/locale/es/LC_MESSAGES/django.mo and /dev/null differ
diff --git a/apps/filebrowser/locale/es/LC_MESSAGES/django.po b/apps/filebrowser/locale/es/LC_MESSAGES/django.po
deleted file mode 100644 (file)
index 621979a..0000000
+++ /dev/null
@@ -1,328 +0,0 @@
-# translation of django.po to Spanish
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-#
-# PATRICK KRANZLMUELLER <PATRICK@VONAUTOMATISCH.AT>, 2009.
-# Antoni Aloy <antoni.aloy@trespams.com>, 2009.
-msgid ""
-msgstr ""
-"Project-Id-Version: django\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-02-19 21:24+0000\n"
-"PO-Revision-Date: 2009-02-15 19:14+0100\n"
-"Last-Translator: Antoni Aloy <antoni.aloy@trespams.com>\n"
-"Language-Team: Spanish\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.11.4\n"
-
-#: fields.py:27
-#, python-format
-msgid "Ensure this value has at most %(max)d characters (it has %(length)d)."
-msgstr ""
-"Compruebe que este valor tiene como máximo %(max)d carácters (tiene %(length)"
-"d)."
-
-#: fields.py:28
-#, python-format
-msgid "Ensure this value has at least %(min)d characters (it has %(length)d)."
-msgstr ""
-"Compruebe que este valor tiene como mínimo %(min)d carácteres (tiene %"
-"(length)d)."
-
-#: fields.py:29
-#, python-format
-msgid "Extension %(ext)s is not allowed. Only %(allowed)s is allowed."
-msgstr ""
-"La extensión %(ext)s no está permitida. Sólo se permiten las extensiones %"
-"(allowed)s."
-
-#: forms.py:23
-msgid "Name"
-msgstr "Nombre"
-
-#: forms.py:23 forms.py:46
-msgid ""
-"The Name will automatically be converted to lowercase. Only letters, "
-"numbers, underscores and hyphens are allowed."
-msgstr ""
-"El nombre se convertirá automáticamente a minúsculas. Sólo se permiten "
-"letras, números, subrayado y guiones."
-
-#: forms.py:30 forms.py:53
-msgid "Only letters, numbers, underscores and hyphens are allowed."
-msgstr "Sólo se permiten letras, números, subrayado y guiones."
-
-#: forms.py:33
-msgid "The Folder already exists."
-msgstr "La carpeta ya existe."
-
-#: forms.py:46
-msgid "New Name"
-msgstr "Nuevo nombre"
-
-#: forms.py:56
-msgid "The File/Folder already exists."
-msgstr "El archivo/carpeta ya existe."
-
-#: forms.py:92
-msgid "File"
-msgstr "Archivo"
-
-#: forms.py:93
-msgid "Use Image Generator"
-msgstr "Emplear el generador de imágenes"
-
-#: forms.py:102
-msgid "File already exists."
-msgstr "El archivo ya existe."
-
-#: forms.py:108
-msgid "Filename is not allowed."
-msgstr "Nombre de archivo no permitido."
-
-#: forms.py:113
-msgid "File extension is not allowed."
-msgstr "Extensión de archivo no permitida."
-
-#: forms.py:118
-msgid "Filesize exceeds allowed Upload Size."
-msgstr "El tamaño del archivo excede el máximo permitido."
-
-#: functions.py:84
-msgid "Home"
-msgstr "Inicio"
-
-#: functions.py:276
-msgid "Thumbnail creation failed."
-msgstr "Falló la creación de la miniatura."
-
-#: functions.py:331 functions.py:398
-msgid "Image creation failed."
-msgstr "Falló la creación de la Imagen."
-
-#: views.py:165
-msgid "FileBrowser"
-msgstr "Visor de archivos"
-
-#: views.py:188
-#, python-format
-msgid "The Folder %s was successfully created."
-msgstr "La carpeta %s se creó con éxito."
-
-#: views.py:194
-msgid "Permission denied."
-msgstr "Permiso denegado."
-
-#: views.py:196
-msgid "Error creating directory."
-msgstr "Error creando el directorio."
-
-#: views.py:204 views.py:205 templates/filebrowser/index.html:30
-msgid "New Folder"
-msgstr "Nueva carpeta."
-
-#: views.py:250
-msgid "Upload successful."
-msgstr "Subida completada."
-
-#: views.py:263 templates/filebrowser/index.html:33
-#: templates/filebrowser/upload.html:62
-msgid "Upload"
-msgstr "Subir"
-
-#: views.py:264
-msgid "Select files to upload"
-msgstr "Seleccione archivos a subir."
-
-#: views.py:294
-msgid "Thumbnail creation successful."
-msgstr "Se creó la miniatura con éxito."
-
-#: views.py:344
-#, python-format
-msgid "The file %s was successfully deleted."
-msgstr "El archivo %s se eliminó con éxito."
-
-#: views.py:356
-#, python-format
-msgid "The directory %s was successfully deleted."
-msgstr "El directorio %s se eliminó con éxito."
-
-#: views.py:407
-msgid "Error renaming Thumbnail."
-msgstr "Error renombrando la miniatura."
-
-#: views.py:413
-msgid "Renaming was successful."
-msgstr "Renombrado satisfactorio."
-
-#: views.py:418
-msgid "Error."
-msgstr "Error."
-
-#: views.py:427 templates/filebrowser/include/filelisting.html:52
-msgid "Rename"
-msgstr "Renombrar"
-
-#: views.py:428
-#, python-format
-msgid "Rename \"%s\""
-msgstr "Renombrar \"%s\""
-
-#: views.py:465
-msgid "Successfully generated Images."
-msgstr "Las imágenes se generaron satisfactoriamente."
-
-#: templates/filebrowser/index.html:31
-msgid "Make Thumbs"
-msgstr "Crear miniaturas"
-
-#: templates/filebrowser/index.html:32
-msgid "Generate Images"
-msgstr "Generar imágenes"
-
-#: templates/filebrowser/makedir.html:24 templates/filebrowser/rename.html:22
-msgid "Please correct the following errors."
-msgstr "Por favor, corrija los siguientes errores."
-
-#: templates/filebrowser/makedir.html:34 templates/filebrowser/rename.html:33
-msgid "Submit"
-msgstr "Enviar"
-
-#: templates/filebrowser/upload.html:37
-msgid "Will use image generator."
-msgstr "Usa el generador de imágenes."
-
-#: templates/filebrowser/upload.html:47
-msgid "Help"
-msgstr "Ayuda"
-
-#: templates/filebrowser/upload.html:51
-msgid "Allowed"
-msgstr "Permitido"
-
-#: templates/filebrowser/upload.html:57
-msgid "Max. Filesize"
-msgstr "Tamaño máx."
-
-#: templates/filebrowser/include/filelisting.html:8
-msgid "Select"
-msgstr "Selecciona"
-
-#: templates/filebrowser/include/filelisting.html:15
-msgid "Select File"
-msgstr "Selecciona archivo"
-
-#: templates/filebrowser/include/filelisting.html:26
-msgid "Make Thumbnail"
-msgstr "Crear miniatura"
-
-#: templates/filebrowser/include/filelisting.html:29
-msgid "View Image"
-msgstr "Ver imagen"
-
-#: templates/filebrowser/include/filelisting.html:46
-msgid "Generate Image Versions"
-msgstr "Generar versiones de la imagen"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Are you sure you want to delete this file?"
-msgstr ""
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Delete File"
-msgstr "Borrar archivo"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Are you sure you want to delete this Folder?"
-msgstr ""
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Delete Folder"
-msgstr "Borrar carpeta"
-
-#: templates/filebrowser/include/filter.html:15
-msgid "Filter"
-msgstr "Filtrar"
-
-#: templates/filebrowser/include/filter.html:21
-msgid "By Date"
-msgstr "Por fecha"
-
-#: templates/filebrowser/include/filter.html:23
-msgid "Any Date"
-msgstr "Cualquier fecha"
-
-#: templates/filebrowser/include/filter.html:25
-msgid "Today"
-msgstr "Hoy"
-
-#: templates/filebrowser/include/filter.html:27
-msgid "Past 7 days"
-msgstr "Hace 7 días"
-
-#: templates/filebrowser/include/filter.html:29
-msgid "Past 30 days"
-msgstr "Hace 30 días"
-
-#: templates/filebrowser/include/filter.html:31
-msgid "This year"
-msgstr "Este año"
-
-#: templates/filebrowser/include/filter.html:39
-msgid "By Type"
-msgstr "Por tipo"
-
-#: templates/filebrowser/include/filter.html:41
-msgid "All"
-msgstr "Todo"
-
-#: templates/filebrowser/include/paginator.html:5
-msgid "No Items Found."
-msgstr "No se encontraron items"
-
-#: templates/filebrowser/include/paginator.html:10
-#, python-format
-msgid "%(counter)s Item"
-msgid_plural "%(counter)s Items"
-msgstr[0] "%(counter)s item"
-msgstr[1] "%(counter)s items"
-
-#: templates/filebrowser/include/paginator.html:16
-msgid "No Items."
-msgstr "No hay items."
-
-#: templates/filebrowser/include/tableheader.html:13
-#: templates/filebrowser/include/tableheader.html:14
-msgid "Filename"
-msgstr "Nombre de archivo"
-
-#: templates/filebrowser/include/tableheader.html:20
-#: templates/filebrowser/include/tableheader.html:21
-msgid "Size"
-msgstr "Tamaño"
-
-#: templates/filebrowser/include/tableheader.html:23
-#: templates/filebrowser/include/tableheader.html:24
-msgid "Date"
-msgstr "Fecha"
-
-#: templates/filebrowser/include/toolbar.html:14
-msgid "Go"
-msgstr "Ir"
-
-#: templates/filebrowser/include/toolbar.html:16
-#, python-format
-msgid "%(counter)s Item found"
-msgid_plural "%(counter)s Items found"
-msgstr[0] "encontrado %(counter)s Item"
-msgstr[1] "encontrados %(counter)s Items"
-
-#: templates/filebrowser/include/toolbar.html:17
-#, python-format
-msgid "%(counter)s Item total"
-msgid_plural "%(counter)s Items total"
-msgstr[0] "total %(counter)s item"
-msgstr[1] "total %(counter)s items"
diff --git a/apps/filebrowser/locale/fr/LC_MESSAGES/django.mo b/apps/filebrowser/locale/fr/LC_MESSAGES/django.mo
deleted file mode 100644 (file)
index 26e610d..0000000
Binary files a/apps/filebrowser/locale/fr/LC_MESSAGES/django.mo and /dev/null differ
diff --git a/apps/filebrowser/locale/fr/LC_MESSAGES/django.po b/apps/filebrowser/locale/fr/LC_MESSAGES/django.po
deleted file mode 100644 (file)
index 5241166..0000000
+++ /dev/null
@@ -1,336 +0,0 @@
-# Copyright (C) 2009 Rémy Hubscher
-# This file is distributed under the same license as the django-filebrowser package.
-# Rémy Hubscher <natim@trunat.fr>, 2009.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-05-20 11:04+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: REMY HUBSCHER <natim@trunat.fr>\n"
-"Language-Team: FRENCH <LL@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: fields.py:96
-#, python-format
-msgid "Extension %(ext)s is not allowed. Only %(allowed)s is allowed."
-msgstr ""
-"L'extension de fichier %(ext)s n'est pas autorisée. Les extensions suivantes "
-"sont autorisées: %(allowed)s."
-
-#: forms.py:23
-msgid "Name"
-msgstr "Nom"
-
-#: forms.py:23 forms.py:49
-msgid ""
-"The Name will automatically be converted to lowercase. Only letters, "
-"numbers, underscores and hyphens are allowed."
-msgstr ""
-"Le nom sera automatiquement converti en minuscule. Seul les lettres, nombres,"
-"tirets bas et tirets sont autorisés."
-
-#: forms.py:30 forms.py:56
-msgid "Only letters, numbers, underscores and hyphens are allowed."
-msgstr "Seul les lettres, nombres, tirets bas et tirets sont autorisés."
-
-#: forms.py:33
-msgid "The Folder already exists."
-msgstr "Ce répertoire existe déjà."
-
-#: forms.py:36
-msgid "Disallowed Folder Name."
-msgstr "Nom de fichier interdit."
-
-#: forms.py:49
-msgid "New Name"
-msgstr "Nouveau nom"
-
-#: forms.py:59
-msgid "The File/Folder already exists."
-msgstr "Ce fichier/répertoire existe déjà."
-
-#: forms.py:95
-msgid "File"
-msgstr "Fichier"
-
-#: forms.py:96
-msgid "Use Image Generator"
-msgstr "Utiliser le générateur d'images"
-
-#: forms.py:105
-msgid "File already exists."
-msgstr "Le fichier existe déjà."
-
-#: forms.py:111
-msgid "Filename is not allowed."
-msgstr "Ce nom de fichier n'est pas autorisé."
-
-#: forms.py:116
-msgid "File extension is not allowed."
-msgstr "Cette extension de fichier n'est pas autorisée."
-
-#: forms.py:121
-msgid "Filesize exceeds allowed Upload Size."
-msgstr "La taille du fichier est supérieur à la taille maximale autorisée."
-
-#: functions.py:84
-msgid "Home"
-msgstr "Accueil"
-
-#: functions.py:279
-msgid "Thumbnail creation failed."
-msgstr "La création de miniature à échouée."
-
-#: functions.py:334 functions.py:389
-msgid "Image creation failed."
-msgstr "La création d'image à échouée."
-
-#: views.py:174
-msgid "FileBrowser"
-msgstr "Navigateur de Fichiers"
-
-#: views.py:198
-#, python-format
-msgid "The Folder %s was successfully created."
-msgstr "Le répertoire %s a été créé avec succès."
-
-#: views.py:204
-msgid "Permission denied."
-msgstr "Permission refusée."
-
-#: views.py:206
-msgid "Error creating directory."
-msgstr "Impossible de créer le répertoire."
-
-#: views.py:214 views.py:215 templates/filebrowser/index.html:33
-msgid "New Folder"
-msgstr "Nouveau répertoire"
-
-#: views.py:260
-msgid "Upload successful."
-msgstr "L'envoi a réussi."
-
-#: views.py:273 templates/filebrowser/index.html:36
-#: templates/filebrowser/upload.html:62
-msgid "Upload"
-msgstr "Upload"
-
-#: views.py:274
-msgid "Select files to upload"
-msgstr "Sélectionner les fichiers à envoyer"
-
-#: views.py:304
-msgid "Thumbnail creation successful."
-msgstr "Les miniatures ont été créée."
-
-#: views.py:354
-#, python-format
-msgid "The file %s was successfully deleted."
-msgstr "Le fichier %s a été supprimé."
-
-#: views.py:366
-#, python-format
-msgid "The directory %s was successfully deleted."
-msgstr "Le répertoire %s a été supprimé."
-
-#: views.py:417
-msgid "Error renaming Thumbnail."
-msgstr "Impossible de renommer la miniature."
-
-#: views.py:423
-msgid "Renaming was successful."
-msgstr "La miniature a été renommée."
-
-#: views.py:428
-msgid "Error."
-msgstr "Erreur."
-
-#: views.py:437 templates/filebrowser/include/filelisting.html:52
-msgid "Rename"
-msgstr "Renommer"
-
-#: views.py:438
-#, python-format
-msgid "Rename \"%s\""
-msgstr "Renommer \"%s\""
-
-#: views.py:475
-msgid "Successfully generated Images."
-msgstr "Les images ont été générées."
-
-#: templates/filebrowser/append.html:5 templates/filebrowser/append.html:7
-#, fuzzy
-msgid "File-Browser"
-msgstr "Navigateur de Fichiers"
-
-#: templates/filebrowser/index.html:34
-msgid "Make Thumbs"
-msgstr "Générer les miniatures"
-
-#: templates/filebrowser/index.html:35
-msgid "Generate Images"
-msgstr "Générer les images"
-
-#: templates/filebrowser/makedir.html:24 templates/filebrowser/rename.html:22
-msgid "Please correct the following errors."
-msgstr "Merci de corriger les erreurs suivantes."
-
-#: templates/filebrowser/makedir.html:34 templates/filebrowser/rename.html:33
-msgid "Submit"
-msgstr "Envoyer"
-
-#: templates/filebrowser/upload.html:37
-msgid "Will use image generator."
-msgstr "Utiliser le générateur d'images."
-
-#: templates/filebrowser/upload.html:47
-msgid "Help"
-msgstr "Aide"
-
-#: templates/filebrowser/upload.html:51
-msgid "Allowed"
-msgstr "Autorisé"
-
-#: templates/filebrowser/upload.html:57
-msgid "Max. Filesize"
-msgstr "Taille Max."
-
-#: templates/filebrowser/include/filelisting.html:8
-msgid "Select"
-msgstr "Sélectionner"
-
-#: templates/filebrowser/include/filelisting.html:15
-msgid "Select File"
-msgstr "Sélectionner le fichier"
-
-#: templates/filebrowser/include/filelisting.html:26
-msgid "Make Thumbnail"
-msgstr "Générer une miniature"
-
-#: templates/filebrowser/include/filelisting.html:29
-msgid "View Image"
-msgstr "Voir l'image"
-
-#: templates/filebrowser/include/filelisting.html:46
-msgid "Generate Image Versions"
-msgstr "Générer des versions de l'image"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Are you sure you want to delete this file?"
-msgstr "Êtes-vous sur de vouloir supprimer ce fichier ?"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Delete File"
-msgstr "Supprimer le fichier"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Are you sure you want to delete this Folder?"
-msgstr "Êtes-vous sur de vouloir supprimer ce répertoire ?"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Delete Folder"
-msgstr "Supprimer le répertoire"
-
-#: templates/filebrowser/include/filter.html:15
-msgid "Filter"
-msgstr "Filtrer"
-
-#: templates/filebrowser/include/filter.html:21
-msgid "By Date"
-msgstr "Par date"
-
-#: templates/filebrowser/include/filter.html:23
-msgid "Any Date"
-msgstr "Toutes"
-
-#: templates/filebrowser/include/filter.html:25
-msgid "Today"
-msgstr "Aujourd'hui"
-
-#: templates/filebrowser/include/filter.html:27
-msgid "Past 7 days"
-msgstr "Semaine dernière"
-
-#: templates/filebrowser/include/filter.html:29
-msgid "Past 30 days"
-msgstr "Mois dernier"
-
-#: templates/filebrowser/include/filter.html:31
-msgid "This year"
-msgstr "Cette année"
-
-#: templates/filebrowser/include/filter.html:39
-msgid "By Type"
-msgstr "Par type"
-
-#: templates/filebrowser/include/filter.html:41
-msgid "All"
-msgstr "Alle"
-
-#: templates/filebrowser/include/paginator.html:5
-msgid "No Items Found."
-msgstr "Aucun article."
-
-#: templates/filebrowser/include/paginator.html:10
-#, python-format
-msgid "%(counter)s Item"
-msgid_plural "%(counter)s Items"
-msgstr[0] "%(counter)s article"
-msgstr[1] "%(counter)s articles"
-
-#: templates/filebrowser/include/paginator.html:16
-msgid "No Items."
-msgstr "Aucun article."
-
-#: templates/filebrowser/include/tableheader.html:13
-#: templates/filebrowser/include/tableheader.html:14
-msgid "Filename"
-msgstr "Nom"
-
-#: templates/filebrowser/include/tableheader.html:20
-#: templates/filebrowser/include/tableheader.html:21
-msgid "Size"
-msgstr "Taille"
-
-#: templates/filebrowser/include/tableheader.html:23
-#: templates/filebrowser/include/tableheader.html:24
-msgid "Date"
-msgstr "Date"
-
-#: templates/filebrowser/include/toolbar.html:14
-msgid "Go"
-msgstr "Chercher"
-
-#: templates/filebrowser/include/toolbar.html:16
-#, python-format
-msgid "%(counter)s Item found"
-msgid_plural "%(counter)s Items found"
-msgstr[0] "%(counter)s article trouvé"
-msgstr[1] "%(counter)s articles trouvés"
-
-#: templates/filebrowser/include/toolbar.html:17
-#, python-format
-msgid "%(counter)s Item total"
-msgid_plural "%(counter)s Items total"
-msgstr[0] "%(counter)s article total"
-msgstr[1] "%(counter)s articles total"
-
-msgid "Folder"
-msgstr "Répertoire"
-
-msgid "Image"
-msgstr "Image"
-
-msgid "Document"
-msgstr "Document"
-
-msgid "Code"
-msgstr "Code"
-
-msgid "Sound"
-msgstr "Son"
\ No newline at end of file
diff --git a/apps/filebrowser/locale/it/LC_MESSAGES/django.mo b/apps/filebrowser/locale/it/LC_MESSAGES/django.mo
deleted file mode 100644 (file)
index 90e8cdc..0000000
Binary files a/apps/filebrowser/locale/it/LC_MESSAGES/django.mo and /dev/null differ
diff --git a/apps/filebrowser/locale/it/LC_MESSAGES/django.po b/apps/filebrowser/locale/it/LC_MESSAGES/django.po
deleted file mode 100644 (file)
index 6968286..0000000
+++ /dev/null
@@ -1,356 +0,0 @@
-# translation of django.po to
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-#
-# Alberto BOTTARINI <alberto.bottarini@gmail.com>, 2009.
-msgid ""
-msgstr ""
-"Project-Id-Version: django\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-02-19 21:24+0000\n"
-"PO-Revision-Date: 2009-02-04 14:02+0100\n"
-"Last-Translator: Alberto BOTTARINI <alberto.bottarini@gmail.com>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.11.4\n"
-
-#: fields.py:27
-#, python-format
-msgid "Ensure this value has at most %(max)d characters (it has %(length)d)."
-msgstr ""
-"Assicurati che il testo abbia al massimo %(max)d  caratteri (ora sono %"
-"(length)d)"
-
-#: fields.py:28
-#, python-format
-msgid "Ensure this value has at least %(min)d characters (it has %(length)d)."
-msgstr ""
-"Assicurati che il testo abbia come minimo %(min)d caratteri (ora sono %"
-"(length)d)"
-
-#: fields.py:29
-#, python-format
-msgid "Extension %(ext)s is not allowed. Only %(allowed)s is allowed."
-msgstr "L'estensione %(ext)s è vietata. Sono accettate: %(allowed)s"
-
-#: forms.py:23
-msgid "Name"
-msgstr ""
-
-#: forms.py:23 forms.py:46
-#, fuzzy
-msgid ""
-"The Name will automatically be converted to lowercase. Only letters, "
-"numbers, underscores and hyphens are allowed."
-msgstr ""
-"Il nome del file verrà sostituito con le lettere minuscole.Sono accettati "
-"solo lettere. numeri, underscore e accenti."
-
-#: forms.py:30 forms.py:53
-msgid "Only letters, numbers, underscores and hyphens are allowed."
-msgstr "Sono accettati solo lettere. numeri, underscore e accenti."
-
-#: forms.py:33
-#, fuzzy
-msgid "The Folder already exists."
-msgstr "La cartella esiste già"
-
-#: forms.py:46
-msgid "New Name"
-msgstr ""
-
-#: forms.py:56
-#, fuzzy
-msgid "The File/Folder already exists."
-msgstr "Il file/cartella esiste già"
-
-#: forms.py:92
-#, fuzzy
-msgid "File"
-msgstr "Filtro"
-
-#: forms.py:93
-#, fuzzy
-msgid "Use Image Generator"
-msgstr "Usa il generatore di immagini"
-
-#: forms.py:102
-msgid "File already exists."
-msgstr "Il file esiste già"
-
-#: forms.py:108
-msgid "Filename is not allowed."
-msgstr "Filename non permesso"
-
-#: forms.py:113
-msgid "File extension is not allowed."
-msgstr "Estensione non permessa"
-
-#: forms.py:118
-msgid "Filesize exceeds allowed Upload Size."
-msgstr "Il file eccede il limite"
-
-#: functions.py:84
-msgid "Home"
-msgstr "Home"
-
-#: functions.py:276
-msgid "Thumbnail creation failed."
-msgstr "Errore nella creazione delle thumbnail"
-
-#: functions.py:331 functions.py:398
-msgid "Image creation failed."
-msgstr "Errore nella creazione dell'immagine"
-
-#: views.py:165
-msgid "FileBrowser"
-msgstr "FileBrowser"
-
-#: views.py:188
-#, fuzzy, python-format
-msgid "The Folder %s was successfully created."
-msgstr "Cartella %s creata con successo"
-
-#: views.py:194
-msgid "Permission denied."
-msgstr "Permesso negato"
-
-#: views.py:196
-msgid "Error creating directory."
-msgstr "Errore nella creazione della cartella"
-
-#: views.py:204 views.py:205 templates/filebrowser/index.html:30
-#, fuzzy
-msgid "New Folder"
-msgstr "Elimina la cartella"
-
-#: views.py:250
-msgid "Upload successful."
-msgstr "Upload effettuato con successo"
-
-#: views.py:263 templates/filebrowser/index.html:33
-#: templates/filebrowser/upload.html:62
-msgid "Upload"
-msgstr ""
-
-#: views.py:264
-msgid "Select files to upload"
-msgstr "Seleziona i file da uploadare"
-
-#: views.py:294
-msgid "Thumbnail creation successful."
-msgstr "Creazione thumbnail effettuata con successo"
-
-#: views.py:344
-#, python-format
-msgid "The file %s was successfully deleted."
-msgstr "Eliminazione di %s effettuata con successo"
-
-#: views.py:356
-#, python-format
-msgid "The directory %s was successfully deleted."
-msgstr "Eliminazione di %s effettuata con successo"
-
-#: views.py:407
-msgid "Error renaming Thumbnail."
-msgstr "Errore nella rinominazione delle thumbnail"
-
-#: views.py:413
-msgid "Renaming was successful."
-msgstr "Rinominazione effettuata con successo"
-
-#: views.py:418
-msgid "Error."
-msgstr "Errore"
-
-#: views.py:427 templates/filebrowser/include/filelisting.html:52
-#, fuzzy
-msgid "Rename"
-msgstr "Nome del file"
-
-#: views.py:428
-#, python-format
-msgid "Rename \"%s\""
-msgstr "Rinomina \"%s\""
-
-#: views.py:465
-msgid "Successfully generated Images."
-msgstr "Immagini generate con successo"
-
-#: templates/filebrowser/index.html:31
-msgid "Make Thumbs"
-msgstr "Genera le thumbnail"
-
-#: templates/filebrowser/index.html:32
-msgid "Generate Images"
-msgstr "Genera le immagini"
-
-#: templates/filebrowser/makedir.html:24 templates/filebrowser/rename.html:22
-msgid "Please correct the following errors."
-msgstr ""
-
-#: templates/filebrowser/makedir.html:34 templates/filebrowser/rename.html:33
-msgid "Submit"
-msgstr "Invia"
-
-#: templates/filebrowser/upload.html:37
-#, fuzzy
-msgid "Will use image generator."
-msgstr "Usa il generatore di immagini"
-
-#: templates/filebrowser/upload.html:47
-msgid "Help"
-msgstr "Aiuto"
-
-#: templates/filebrowser/upload.html:51
-msgid "Allowed"
-msgstr "Accettate"
-
-#: templates/filebrowser/upload.html:57
-msgid "Max. Filesize"
-msgstr "Dimensione massima"
-
-#: templates/filebrowser/include/filelisting.html:8
-#, fuzzy
-msgid "Select"
-msgstr "Seleziona un file"
-
-#: templates/filebrowser/include/filelisting.html:15
-msgid "Select File"
-msgstr "Seleziona un file"
-
-#: templates/filebrowser/include/filelisting.html:26
-msgid "Make Thumbnail"
-msgstr "Genera la thumbnail"
-
-#: templates/filebrowser/include/filelisting.html:29
-msgid "View Image"
-msgstr "Guarda immagine"
-
-#: templates/filebrowser/include/filelisting.html:46
-msgid "Generate Image Versions"
-msgstr "Genera le immagini"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Are you sure you want to delete this file?"
-msgstr ""
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Delete File"
-msgstr "Elimina il file"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Are you sure you want to delete this Folder?"
-msgstr ""
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Delete Folder"
-msgstr "Elimina la cartella"
-
-#: templates/filebrowser/include/filter.html:15
-msgid "Filter"
-msgstr "Filtro"
-
-#: templates/filebrowser/include/filter.html:21
-msgid "By Date"
-msgstr "Per data"
-
-#: templates/filebrowser/include/filter.html:23
-msgid "Any Date"
-msgstr "Qualsiasi data"
-
-#: templates/filebrowser/include/filter.html:25
-msgid "Today"
-msgstr "Oggi"
-
-#: templates/filebrowser/include/filter.html:27
-msgid "Past 7 days"
-msgstr "Ultimi 7 giorni"
-
-#: templates/filebrowser/include/filter.html:29
-msgid "Past 30 days"
-msgstr "Questo mese"
-
-#: templates/filebrowser/include/filter.html:31
-msgid "This year"
-msgstr "Quest'anno"
-
-#: templates/filebrowser/include/filter.html:39
-msgid "By Type"
-msgstr "Per tipo"
-
-#: templates/filebrowser/include/filter.html:41
-msgid "All"
-msgstr "Tutti"
-
-#: templates/filebrowser/include/paginator.html:5
-#, fuzzy
-msgid "No Items Found."
-msgstr "Nessun file trovato"
-
-#: templates/filebrowser/include/paginator.html:10
-#, python-format
-msgid "%(counter)s Item"
-msgid_plural "%(counter)s Items"
-msgstr[0] ""
-msgstr[1] ""
-
-#: templates/filebrowser/include/paginator.html:16
-msgid "No Items."
-msgstr ""
-
-#: templates/filebrowser/include/tableheader.html:13
-#: templates/filebrowser/include/tableheader.html:14
-msgid "Filename"
-msgstr "Nome del file"
-
-#: templates/filebrowser/include/tableheader.html:20
-#: templates/filebrowser/include/tableheader.html:21
-msgid "Size"
-msgstr "Dimensione"
-
-#: templates/filebrowser/include/tableheader.html:23
-#: templates/filebrowser/include/tableheader.html:24
-msgid "Date"
-msgstr "Data"
-
-#: templates/filebrowser/include/toolbar.html:14
-msgid "Go"
-msgstr ""
-
-#: templates/filebrowser/include/toolbar.html:16
-#, python-format
-msgid "%(counter)s Item found"
-msgid_plural "%(counter)s Items found"
-msgstr[0] ""
-msgstr[1] ""
-
-#: templates/filebrowser/include/toolbar.html:17
-#, python-format
-msgid "%(counter)s Item total"
-msgid_plural "%(counter)s Items total"
-msgstr[0] ""
-msgstr[1] ""
-
-#~ msgid ""
-#~ "The directory will automatically be converted to lowercase. Only letters, "
-#~ "numbers, underscores and hyphens are allowed."
-#~ msgstr ""
-#~ "Il nome della cartella verrà sostituito con le lettere minuscole.Sono "
-#~ "accettati solo lettere. numeri, underscore e accenti."
-
-#~ msgid "Make directory"
-#~ msgstr "Nuova cartella"
-
-#~ msgid "Make Directory"
-#~ msgstr "Nuova cartella"
-
-#~ msgid "Multiple Upload"
-#~ msgstr "Chargement de fichiers"
-
-#~ msgid "Rename File"
-#~ msgstr "Rinomina il file"
-
-#~ msgid "No Files"
-#~ msgstr "Nessun file"
diff --git a/apps/filebrowser/locale/nl/LC_MESSAGES/django.mo b/apps/filebrowser/locale/nl/LC_MESSAGES/django.mo
deleted file mode 100644 (file)
index 8a0bb8f..0000000
Binary files a/apps/filebrowser/locale/nl/LC_MESSAGES/django.mo and /dev/null differ
diff --git a/apps/filebrowser/locale/nl/LC_MESSAGES/django.po b/apps/filebrowser/locale/nl/LC_MESSAGES/django.po
deleted file mode 100644 (file)
index 3503254..0000000
+++ /dev/null
@@ -1,319 +0,0 @@
-# Dutch translation for django-filebrowser.
-# Copyright (C) 2009 Patrick Kranzlmueller
-# This file is distributed under the same license as the django-filebrowser package.
-# Joost Cassee <joost@cassee.net>, 2009.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-02-16 13:51+0100\n"
-"PO-Revision-Date: 2009-02-20 22:53+0100\n"
-"Last-Translator: Joost Cassee <joost@cassee.net>\n"
-"Language-Team: Dutch <LL@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: fields.py:27
-#, python-format
-msgid "Ensure this value has at most %(max)d characters (it has %(length)d)."
-msgstr ""
-"Dit veld mag maximaal %(max)d karakters bevatten (de huidige lengte is "
-"%(length)d)."
-
-#: fields.py:28
-#, python-format
-msgid "Ensure this value has at least %(min)d characters (it has %(length)d)."
-msgstr ""
-"Dit veld moet minstens %(min)d karakters bevatten (de huidige lengte is "
-"%(length)d)."
-
-#: fields.py:29
-#, python-format
-msgid "Extension %(ext)s is not allowed. Only %(allowed)s is allowed."
-msgstr "Extensie %(ext)s is niet toegestaand. Toegestaan zijn: %(allowed)s."
-
-#: forms.py:23
-msgid "Name"
-msgstr "Naam"
-
-#: forms.py:23 forms.py:46
-msgid ""
-"The Name will automatically be converted to lowercase. Only letters, "
-"numbers, underscores and hyphens are allowed."
-msgstr ""
-"De naam wordt automatisch geconverteerd naar kleine letters. Alleen letters, "
-"nummers, liggende streepjes en verbindingstreepjes zijn toegestaan."
-
-#: forms.py:30 forms.py:53
-msgid "Only letters, numbers, underscores and hyphens are allowed."
-msgstr ""
-"Alleen letters, nummers, liggende streepjes en verbindingstreepjes zijn "
-"toegestaan."
-
-#: forms.py:33
-msgid "The Folder already exists."
-msgstr "Deze map bestaat reeds."
-
-#: forms.py:46
-msgid "New Name"
-msgstr "Nieuwe naam"
-
-#: forms.py:56
-msgid "The File/Folder already exists."
-msgstr "Een map of bestand met deze naam bestaat reeds."
-
-#: forms.py:92
-msgid "File"
-msgstr "Bestand"
-
-#: forms.py:93
-msgid "Use Image Generator"
-msgstr "Maak afbeeldingsversies"
-
-#: forms.py:102
-msgid "File already exists."
-msgstr "Bestand bestaat reeds."
-
-#: forms.py:108
-msgid "Filename is not allowed."
-msgstr "Bestandsnaam is niet toegestaan."
-
-#: forms.py:113
-msgid "File extension is not allowed."
-msgstr "Bestandsextensie is niet toegestaand"
-
-#: forms.py:118
-msgid "Filesize exceeds allowed Upload Size."
-msgstr "Het bestand overschreidt de maximale upload grootte."
-
-#: functions.py:75
-msgid "Home"
-msgstr "Start"
-
-#: functions.py:267
-msgid "Thumbnail creation failed."
-msgstr "Fout bij het aanmaken van de voorbeeldafbeeldingen."
-
-#: functions.py:316 functions.py:377
-msgid "Image creation failed."
-msgstr "Fout bij het aanmaken van de afbeeldingsversies."
-
-#: views.py:156
-msgid "FileBrowser"
-msgstr "FileBrowser"
-
-#: views.py:179
-#, python-format
-msgid "The Folder %s was successfully created."
-msgstr "De map %s is aangemaakt."
-
-#: views.py:185
-msgid "Permission denied."
-msgstr "Geen toestemming."
-
-#: views.py:187
-msgid "Error creating directory."
-msgstr "Fout bij het aanmaken van de map."
-
-#: views.py:195 views.py:196 templates/filebrowser/index.html:30
-msgid "New Folder"
-msgstr "Nieuwe map"
-
-#: views.py:235
-msgid "Upload successful."
-msgstr "Upload geslaagd."
-
-#: views.py:248 templates/filebrowser/index.html:33
-#: templates/filebrowser/upload.html:62
-msgid "Upload"
-msgstr "Uploaden"
-
-#: views.py:249
-msgid "Select files to upload"
-msgstr "Selecteer bestanden voor upload"
-
-#: views.py:279
-msgid "Thumbnail creation successful."
-msgstr "Voorbeeldafbeeldingen aangemaakt."
-
-#: views.py:329
-#, python-format
-msgid "The file %s was successfully deleted."
-msgstr "Bestand %s verwijderd."
-
-#: views.py:341
-#, python-format
-msgid "The directory %s was successfully deleted."
-msgstr "Map %s verwijderd."
-
-#: views.py:392
-msgid "Error renaming Thumbnail."
-msgstr "Fout bij het hernoemen van de voorbeeldafbeelding."
-
-#: views.py:398
-msgid "Renaming was successful."
-msgstr "Hernoemen geslaagd."
-
-#: views.py:403
-msgid "Error."
-msgstr "Fout."
-
-#: views.py:412 templates/filebrowser/include/filelisting.html:52
-msgid "Rename"
-msgstr "Hernoemen"
-
-#: views.py:413
-#, python-format
-msgid "Rename \"%s\""
-msgstr "Hernoem \"%s\""
-
-#: views.py:450
-msgid "Successfully generated Images."
-msgstr "Afbeeldingsversies aangemaakt."
-
-#: templates/filebrowser/index.html:31
-msgid "Make Thumbs"
-msgstr "Voorbeeldafbeeldingen aanmaken"
-
-#: templates/filebrowser/index.html:32
-msgid "Generate Images"
-msgstr "Afbeeldingsversies aanmaken"
-
-#: templates/filebrowser/makedir.html:24 templates/filebrowser/rename.html:22
-msgid "Please correct the following errors."
-msgstr "Corrigeer onderstaande fouten."
-
-#: templates/filebrowser/makedir.html:34 templates/filebrowser/rename.html:33
-msgid "Submit"
-msgstr "OK"
-
-#: templates/filebrowser/upload.html:37
-msgid "Will use image generator."
-msgstr "Afbeeldingsversies zullen worden aangemaakt."
-
-#: templates/filebrowser/upload.html:47
-msgid "Help"
-msgstr "Help"
-
-#: templates/filebrowser/upload.html:51
-msgid "Allowed"
-msgstr "Toegestaan"
-
-#: templates/filebrowser/upload.html:57
-msgid "Max. Filesize"
-msgstr "Max. bestandsgrootte"
-
-#: templates/filebrowser/include/filelisting.html:8
-msgid "Select"
-msgstr "Selecteren"
-
-#: templates/filebrowser/include/filelisting.html:15
-msgid "Select File"
-msgstr "Selecteer bestand"
-
-#: templates/filebrowser/include/filelisting.html:26
-msgid "Make Thumbnail"
-msgstr "Maak voorbeeldafbeelding"
-
-#: templates/filebrowser/include/filelisting.html:29
-msgid "View Image"
-msgstr "Afbeelding tonen"
-
-#: templates/filebrowser/include/filelisting.html:46
-msgid "Generate Image Versions"
-msgstr "Afbeeldingsversies aanmaken"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Delete File"
-msgstr "Bestand verwijderen"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Delete Folder"
-msgstr "Verwijder map"
-
-#: templates/filebrowser/include/filter.html:15
-msgid "Filter"
-msgstr "Filter"
-
-#: templates/filebrowser/include/filter.html:21
-msgid "By Date"
-msgstr "Op datum"
-
-#: templates/filebrowser/include/filter.html:23
-msgid "Any Date"
-msgstr "Alle"
-
-#: templates/filebrowser/include/filter.html:25
-msgid "Today"
-msgstr "Vandaag"
-
-#: templates/filebrowser/include/filter.html:27
-msgid "Past 7 days"
-msgstr "Afgelopen 7 dagen"
-
-#: templates/filebrowser/include/filter.html:29
-msgid "Past 30 days"
-msgstr "Afgelopen 30 dagen"
-
-#: templates/filebrowser/include/filter.html:31
-msgid "This year"
-msgstr "Dit jaar"
-
-#: templates/filebrowser/include/filter.html:39
-msgid "By Type"
-msgstr "Op type"
-
-#: templates/filebrowser/include/filter.html:41
-msgid "All"
-msgstr "Alle"
-
-#: templates/filebrowser/include/paginator.html:5
-msgid "No Items Found."
-msgstr "Geen objecten gevonden"
-
-#: templates/filebrowser/include/paginator.html:10
-#, python-format
-msgid "%(counter)s Item"
-msgid_plural "%(counter)s Items"
-msgstr[0] "%(counter)s object"
-msgstr[1] "(counter)s objecten"
-
-#: templates/filebrowser/include/paginator.html:16
-msgid "No Items."
-msgstr "Geen objecten."
-
-#: templates/filebrowser/include/tableheader.html:13
-#: templates/filebrowser/include/tableheader.html:14
-msgid "Filename"
-msgstr "Bestandsnaam"
-
-#: templates/filebrowser/include/tableheader.html:20
-#: templates/filebrowser/include/tableheader.html:21
-msgid "Size"
-msgstr "Grootte"
-
-#: templates/filebrowser/include/tableheader.html:23
-#: templates/filebrowser/include/tableheader.html:24
-msgid "Date"
-msgstr "Datum"
-
-#: templates/filebrowser/include/toolbar.html:14
-msgid "Go"
-msgstr "Ga"
-
-#: templates/filebrowser/include/toolbar.html:16
-#, python-format
-msgid "%(counter)s Item found"
-msgid_plural "%(counter)s Items found"
-msgstr[0] "%(counter)s object gevonden"
-msgstr[1] "%(counter)s objecten gevonden"
-
-#: templates/filebrowser/include/toolbar.html:17
-#, python-format
-msgid "%(counter)s Item total"
-msgid_plural "%(counter)s Items total"
-msgstr[0] "Totaal %(counter)s object"
-msgstr[1] "Totaal %(counter)s objecten"
diff --git a/apps/filebrowser/locale/ru/LC_MESSAGES/django.mo b/apps/filebrowser/locale/ru/LC_MESSAGES/django.mo
deleted file mode 100644 (file)
index 2f0d22d..0000000
Binary files a/apps/filebrowser/locale/ru/LC_MESSAGES/django.mo and /dev/null differ
diff --git a/apps/filebrowser/locale/ru/LC_MESSAGES/django.po b/apps/filebrowser/locale/ru/LC_MESSAGES/django.po
deleted file mode 100644 (file)
index 6e75506..0000000
+++ /dev/null
@@ -1,317 +0,0 @@
-# Russian translation
-# This file is distributed under the same license as the django-filebrowser package.
-# Ivan Gromov <summer.is.gone@gmail.com>, 2009.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: summer.is.gone@gmail.com\n"
-"POT-Creation-Date: 2009-05-19 03:17+0600\n"
-"PO-Revision-Date: 2009-05-19 03:52\n"
-"Last-Translator: IVAN GROMOV <SUMMER.IS.GONE@GMAIL.COM>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: fields.py:96
-#, python-format
-msgid "Extension %(ext)s is not allowed. Only %(allowed)s is allowed."
-msgstr "Расширение %(ext)s запрещено. Разрешено только %(allowed)s."
-
-#: forms.py:23
-msgid "Name"
-msgstr "Имя"
-
-#: forms.py:23 forms.py:49
-msgid ""
-"The Name will automatically be converted to lowercase. Only letters, "
-"numbers, underscores and hyphens are allowed."
-msgstr ""
-"Имя будет автоматически переведено в нижний регистр"
-"Допускается вводить буквы, цифры, символы подчерка и дефиса."
-
-#: forms.py:30 forms.py:56
-msgid "Only letters, numbers, underscores and hyphens are allowed."
-msgstr "Допускается вводить буквы, цифры, символы подчерка и дефиса."
-
-#: forms.py:33
-msgid "The Folder already exists."
-msgstr "Папка уже существует."
-
-#: forms.py:36
-msgid "Disallowed Folder Name."
-msgstr "Недопустимое имя папки."
-
-#: forms.py:49
-msgid "New Name"
-msgstr "Новое имя"
-
-#: forms.py:59
-msgid "The File/Folder already exists."
-msgstr "Файл/папка уже существуют."
-
-#: forms.py:95
-msgid "File"
-msgstr "Файл"
-
-#: forms.py:96
-msgid "Use Image Generator"
-msgstr "Использовать генератор изображений"
-
-#: forms.py:105
-msgid "File already exists."
-msgstr "Файл уже существует."
-
-#: forms.py:111
-msgid "Filename is not allowed."
-msgstr "Недопустимое имя файла."
-
-#: forms.py:116
-msgid "File extension is not allowed."
-msgstr "Недопустимое расширение файла."
-
-#: forms.py:121
-msgid "Filesize exceeds allowed Upload Size."
-msgstr "Размер файла превышает допустимый размер загрузки."
-
-#: functions.py:84
-msgid "Home"
-msgstr "Начало"
-
-#: functions.py:279
-msgid "Thumbnail creation failed."
-msgstr "Ошибка создания миниатюр."
-
-#: functions.py:334 functions.py:389
-msgid "Image creation failed."
-msgstr "Ошибка создания изображений."
-
-#: views.py:174
-msgid "FileBrowser"
-msgstr "Файловый менеджер"
-
-#: views.py:198
-#, python-format
-msgid "The Folder %s was successfully created."
-msgstr "Папка %s успешно создана."
-
-#: views.py:204
-msgid "Permission denied."
-msgstr "Доступ запрещен."
-
-#: views.py:206
-msgid "Error creating directory."
-msgstr "Ошибка создания папки."
-
-#: views.py:214 views.py:215 templates/filebrowser/index.html:33
-msgid "New Folder"
-msgstr "Новая папка"
-
-#: views.py:260
-msgid "Upload successful."
-msgstr "Загрузка завершена успешно."
-
-#: views.py:273 templates/filebrowser/index.html:36
-#: templates/filebrowser/upload.html:62
-msgid "Upload"
-msgstr "Загрузить"
-
-#: views.py:274
-msgid "Select files to upload"
-msgstr "Выберите файлы для загрузки"
-
-#: views.py:304
-msgid "Thumbnail creation successful."
-msgstr "Миниатюры созданы."
-
-#: views.py:354
-#, python-format
-msgid "The file %s was successfully deleted."
-msgstr "Файл %s удален."
-
-#: views.py:366
-#, python-format
-msgid "The directory %s was successfully deleted."
-msgstr "Папка %s удалена."
-
-#: views.py:417
-msgid "Error renaming Thumbnail."
-msgstr "Ошибка переименования миниатюры."
-
-#: views.py:423
-msgid "Renaming was successful."
-msgstr "Переименовано."
-
-#: views.py:428
-msgid "Error."
-msgstr "Ошибка."
-
-#: views.py:437 templates/filebrowser/include/filelisting.html:52
-msgid "Rename"
-msgstr "Переименовать"
-
-#: views.py:438
-#, python-format
-msgid "Rename \"%s\""
-msgstr "Переименовать \"%s\""
-
-#: views.py:475
-msgid "Successfully generated Images."
-msgstr "Изображения созданы."
-
-#: templates/filebrowser/append.html:5 templates/filebrowser/append.html:7
-msgid "File-Browser"
-msgstr "Файловый менеджер"
-
-#: templates/filebrowser/index.html:34
-msgid "Make Thumbs"
-msgstr "Создать миниатюры"
-
-#: templates/filebrowser/index.html:35
-msgid "Generate Images"
-msgstr "Сгенерировать изображения"
-
-#: templates/filebrowser/makedir.html:24 templates/filebrowser/rename.html:22
-msgid "Please correct the following errors."
-msgstr "Пожалуйста, исправьте ошибки."
-
-#: templates/filebrowser/makedir.html:34 templates/filebrowser/rename.html:33
-msgid "Submit"
-msgstr "Отправить"
-
-#: templates/filebrowser/upload.html:37
-msgid "Will use image generator."
-msgstr "Будет использован генератор изображений."
-
-#: templates/filebrowser/upload.html:47
-msgid "Help"
-msgstr "Справка"
-
-#: templates/filebrowser/upload.html:51
-msgid "Allowed"
-msgstr "Разрешено"
-
-#: templates/filebrowser/upload.html:57
-msgid "Max. Filesize"
-msgstr "Макс. размер"
-
-#: templates/filebrowser/include/filelisting.html:8
-msgid "Select"
-msgstr "Выберите"
-
-#: templates/filebrowser/include/filelisting.html:15
-msgid "Select File"
-msgstr "Выберите файл"
-
-#: templates/filebrowser/include/filelisting.html:26
-msgid "Make Thumbnail"
-msgstr "Создать миниатюры"
-
-#: templates/filebrowser/include/filelisting.html:29
-msgid "View Image"
-msgstr "Просмотреть изображение"
-
-#: templates/filebrowser/include/filelisting.html:46
-msgid "Generate Image Versions"
-msgstr "Создать миниатюры"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Are you sure you want to delete this file?"
-msgstr "Вы уверены, что хотите удалить этот файл?"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Delete File"
-msgstr "Удалить файл"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Are you sure you want to delete this Folder?"
-msgstr "Вы уверены, что хотите удалить эту папку?"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Delete Folder"
-msgstr "Удалить папку"
-
-#: templates/filebrowser/include/filter.html:15
-msgid "Filter"
-msgstr "Фильтр"
-
-#: templates/filebrowser/include/filter.html:21
-msgid "By Date"
-msgstr "По дате"
-
-#: templates/filebrowser/include/filter.html:23
-msgid "Any Date"
-msgstr "За любое число"
-
-#: templates/filebrowser/include/filter.html:25
-msgid "Today"
-msgstr "Сегодня"
-
-#: templates/filebrowser/include/filter.html:27
-msgid "Past 7 days"
-msgstr "Последние 7 дней"
-
-#: templates/filebrowser/include/filter.html:29
-msgid "Past 30 days"
-msgstr "Последние 30 дней"
-
-#: templates/filebrowser/include/filter.html:31
-msgid "This year"
-msgstr "Этот год"
-
-#: templates/filebrowser/include/filter.html:39
-msgid "By Type"
-msgstr "По типу"
-
-#: templates/filebrowser/include/filter.html:41
-msgid "All"
-msgstr "Все"
-
-#: templates/filebrowser/include/paginator.html:5
-msgid "No Items Found."
-msgstr "Не найдено"
-
-#: templates/filebrowser/include/paginator.html:10
-#, python-format
-msgid "%(counter)s Item"
-msgid_plural "%(counter)s Items"
-msgstr[0] "%(counter)s элемент"
-msgstr[1] "Элементов: %(counter)s"
-
-#: templates/filebrowser/include/paginator.html:16
-msgid "No Items."
-msgstr "Ничего нет"
-
-#: templates/filebrowser/include/tableheader.html:13
-#: templates/filebrowser/include/tableheader.html:14
-msgid "Filename"
-msgstr "Имя файла"
-
-#: templates/filebrowser/include/tableheader.html:20
-#: templates/filebrowser/include/tableheader.html:21
-msgid "Size"
-msgstr "Размер"
-
-#: templates/filebrowser/include/tableheader.html:23
-#: templates/filebrowser/include/tableheader.html:24
-msgid "Date"
-msgstr "Дата"
-
-#: templates/filebrowser/include/toolbar.html:14
-msgid "Go"
-msgstr "Вперед"
-
-#: templates/filebrowser/include/toolbar.html:16
-#, python-format
-msgid "%(counter)s Item found"
-msgid_plural "%(counter)s Items found"
-msgstr[0] "%(counter)s элемент найден"
-msgstr[1] "%(counter)s элементов найдено"
-
-#: templates/filebrowser/include/toolbar.html:17
-#, python-format
-msgid "%(counter)s Item total"
-msgid_plural "%(counter)s Items total"
-msgstr[0] "%(counter)s элемент всего"
-msgstr[1] "%(counter)s элементов всего"
diff --git a/apps/filebrowser/locale/sr/LC_MESSAGES/django.mo b/apps/filebrowser/locale/sr/LC_MESSAGES/django.mo
deleted file mode 100644 (file)
index c5b4dae..0000000
Binary files a/apps/filebrowser/locale/sr/LC_MESSAGES/django.mo and /dev/null differ
diff --git a/apps/filebrowser/locale/sr/LC_MESSAGES/django.po b/apps/filebrowser/locale/sr/LC_MESSAGES/django.po
deleted file mode 100644 (file)
index cd27541..0000000
+++ /dev/null
@@ -1,330 +0,0 @@
-# Copyright (C) 2009 Janos Guljas
-# This file is distributed under the same license as the django-filebrowser package.
-# Janos Guljas <janos@janos.in.rs>, 2009.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-05-06 21:43+0200\n"
-"PO-Revision-Date: 2009-05-06 22:18+0200\n"
-"Last-Translator: Janos Guljas <janos@janos.in.rs>\n"
-"Language-Team: Serbian\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: extension translation
-msgid "Folder"
-msgstr "Фолдер"
-msgid "Image"
-msgstr "Слика"
-msgid "Document"
-msgstr "Документ"
-msgid "Code"
-msgstr "Код"
-msgid "Sound"
-msgstr "Звук"
-
-#: fields.py:96
-#, python-format
-msgid "Extension %(ext)s is not allowed. Only %(allowed)s is allowed."
-msgstr "Фајлови са екстензијом %(ext)s нису дозвољени. Само %(allowed)s екстензије су дозвољене."
-
-#: forms.py:23
-msgid "Name"
-msgstr "Назив"
-
-#: forms.py:23 forms.py:49
-msgid ""
-"The Name will automatically be converted to lowercase. Only letters, "
-"numbers, underscores and hyphens are allowed."
-msgstr ""
-"Слова у називу ће аутоматски бити конвертована у мала. Само слова, цифре, "
-"доња црта и црта су дозвољени карактери."
-
-#: forms.py:30 forms.py:56
-msgid "Only letters, numbers, underscores and hyphens are allowed."
-msgstr "Само слова, цифре, доња црта и црта су дозвољени карактери."
-
-#: forms.py:33
-msgid "The Folder already exists."
-msgstr "Фолдер већ постоји."
-
-#: forms.py:36
-msgid "Disallowed Folder Name."
-msgstr "Тај назив фолдера није дозвољен."
-
-#: forms.py:49
-msgid "New Name"
-msgstr "Нови назив"
-
-#: forms.py:59
-msgid "The File/Folder already exists."
-msgstr "Фајл/фолдер већ постоји."
-
-#: forms.py:95
-msgid "File"
-msgstr "Фајл"
-
-#: forms.py:96
-msgid "Use Image Generator"
-msgstr "Користи генератор слика"
-
-#: forms.py:105
-msgid "File already exists."
-msgstr "Фајл већ постоји."
-
-#: forms.py:111
-msgid "Filename is not allowed."
-msgstr "Назив фајла није дозвољен."
-
-#: forms.py:116
-msgid "File extension is not allowed."
-msgstr "Екстензија фајла није дозвиљена."
-
-#: forms.py:121
-msgid "Filesize exceeds allowed Upload Size."
-msgstr "Величина фајла прелази дозвољену вредност."
-
-#: functions.py:84
-msgid "Home"
-msgstr "Почетни фолдер"
-
-#: functions.py:279
-msgid "Thumbnail creation failed."
-msgstr "Генерисање умањеног приказа слике није успело."
-
-#: functions.py:334 functions.py:389
-msgid "Image creation failed."
-msgstr "Генерисање слике није успело."
-
-#: views.py:174
-msgid "FileBrowser"
-msgstr "Фајл брузер"
-
-#: views.py:198
-#, python-format
-msgid "The Folder %s was successfully created."
-msgstr "Фолдер %s је успешно направљен."
-
-#: views.py:204
-msgid "Permission denied."
-msgstr "Одбијен приступ."
-
-#: views.py:206
-msgid "Error creating directory."
-msgstr "Грешка при креирању директоријума."
-
-#: views.py:214 views.py:215 templates/filebrowser/index.html:33
-msgid "New Folder"
-msgstr "Нови фолдер"
-
-#: views.py:260
-msgid "Upload successful."
-msgstr "Пренос фајла се успешно завршио."
-
-#: views.py:273 templates/filebrowser/index.html:36
-#: templates/filebrowser/upload.html:62
-msgid "Upload"
-msgstr "Пренос фајла"
-
-#: views.py:274
-msgid "Select files to upload"
-msgstr "Изаберите фајлове за пренос"
-
-#: views.py:304
-msgid "Thumbnail creation successful."
-msgstr "Генерисање умањеног приказа слике је успело."
-
-#: views.py:354
-#, python-format
-msgid "The file %s was successfully deleted."
-msgstr "Фајл %s је супешно обрисан."
-
-#: views.py:366
-#, python-format
-msgid "The directory %s was successfully deleted."
-msgstr "Директоријум %s је супешно обрисан."
-
-#: views.py:417
-msgid "Error renaming Thumbnail."
-msgstr "Грешка при промени назива умањеног приказа слике."
-
-#: views.py:423
-msgid "Renaming was successful."
-msgstr "Успешна промена назива."
-
-#: views.py:428
-msgid "Error."
-msgstr "Грешка."
-
-#: views.py:437 templates/filebrowser/include/filelisting.html:52
-msgid "Rename"
-msgstr "Промени назив"
-
-#: views.py:438
-#, python-format
-msgid "Rename \"%s\""
-msgstr "Промени назив: „%s“"
-
-#: views.py:475
-msgid "Successfully generated Images."
-msgstr "Слике су успешно генерисане."
-
-#: templates/filebrowser/append.html:5 templates/filebrowser/append.html:7
-msgid "File-Browser"
-msgstr "Фајл-браузер"
-
-#: templates/filebrowser/index.html:34
-msgid "Make Thumbs"
-msgstr "Генериши умањене приказе"
-
-#: templates/filebrowser/index.html:35
-msgid "Generate Images"
-msgstr "Генериши слике"
-
-#: templates/filebrowser/makedir.html:24 templates/filebrowser/rename.html:22
-msgid "Please correct the following errors."
-msgstr "Исправите следеће грешке."
-
-#: templates/filebrowser/makedir.html:34 templates/filebrowser/rename.html:33
-msgid "Submit"
-msgstr "Изврши"
-
-#: templates/filebrowser/upload.html:37
-msgid "Will use image generator."
-msgstr "Користи генератор слика."
-
-#: templates/filebrowser/upload.html:47
-msgid "Help"
-msgstr "Помоћ"
-
-#: templates/filebrowser/upload.html:51
-msgid "Allowed"
-msgstr "Дозвољено"
-
-#: templates/filebrowser/upload.html:57
-msgid "Max. Filesize"
-msgstr "Највећа величина фајла"
-
-#: templates/filebrowser/include/filelisting.html:8
-msgid "Select"
-msgstr "Изаберите"
-
-#: templates/filebrowser/include/filelisting.html:15
-msgid "Select File"
-msgstr "Изаберите фајл"
-
-#: templates/filebrowser/include/filelisting.html:26
-msgid "Make Thumbnail"
-msgstr "Направи умењени приказ"
-
-#: templates/filebrowser/include/filelisting.html:29
-msgid "View Image"
-msgstr "Преглед слике"
-
-#: templates/filebrowser/include/filelisting.html:46
-msgid "Generate Image Versions"
-msgstr "Генериши верзије слика"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Are you sure you want to delete this file?"
-msgstr "Да ли сте сигурни да желите да избришете овај фајл?"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Delete File"
-msgstr "Избриши фајл"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Are you sure you want to delete this Folder?"
-msgstr "Да ли сте сигурни да желите да избришете овај фолдер?"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Delete Folder"
-msgstr "Избриши фолдер"
-
-#: templates/filebrowser/include/filter.html:15
-msgid "Filter"
-msgstr "Филтер"
-
-#: templates/filebrowser/include/filter.html:21
-msgid "By Date"
-msgstr "По датуму"
-
-#: templates/filebrowser/include/filter.html:23
-msgid "Any Date"
-msgstr "Сви датуми"
-
-#: templates/filebrowser/include/filter.html:25
-msgid "Today"
-msgstr "Данас"
-
-#: templates/filebrowser/include/filter.html:27
-msgid "Past 7 days"
-msgstr "Последњих 7 дана"
-
-#: templates/filebrowser/include/filter.html:29
-msgid "Past 30 days"
-msgstr "Последњих 30 дана"
-
-#: templates/filebrowser/include/filter.html:31
-msgid "This year"
-msgstr "Ове године"
-
-#: templates/filebrowser/include/filter.html:39
-msgid "By Type"
-msgstr "По типу"
-
-#: templates/filebrowser/include/filter.html:41
-msgid "All"
-msgstr "Сви"
-
-#: templates/filebrowser/include/paginator.html:5
-msgid "No Items Found."
-msgstr "Ниједна слика није пронађена."
-
-#: templates/filebrowser/include/paginator.html:10
-#, python-format
-msgid "%(counter)s Item"
-msgid_plural "%(counter)s Items"
-msgstr[0] "%(counter)s ставка"
-msgstr[1] "%(counter)s ставки"
-
-#: templates/filebrowser/include/paginator.html:16
-msgid "No Items."
-msgstr "Ниједна ставка"
-
-#: templates/filebrowser/include/tableheader.html:13
-#: templates/filebrowser/include/tableheader.html:14
-msgid "Filename"
-msgstr "Назив фајла"
-
-#: templates/filebrowser/include/tableheader.html:20
-#: templates/filebrowser/include/tableheader.html:21
-msgid "Size"
-msgstr "Величина"
-
-#: templates/filebrowser/include/tableheader.html:23
-#: templates/filebrowser/include/tableheader.html:24
-msgid "Date"
-msgstr "Датум"
-
-#: templates/filebrowser/include/toolbar.html:14
-msgid "Go"
-msgstr "Иди"
-
-#: templates/filebrowser/include/toolbar.html:16
-#, python-format
-msgid "%(counter)s Item found"
-msgid_plural "%(counter)s Items found"
-msgstr[0] "%(counter)s ставка нађена"
-msgstr[1] "%(counter)s ставки нађено"
-
-#: templates/filebrowser/include/toolbar.html:17
-#, python-format
-msgid "%(counter)s Item total"
-msgid_plural "%(counter)s Items total"
-msgstr[0] "%(counter)s ставка укупно"
-msgstr[1] "%(counter)s ставки укупно"
diff --git a/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/django.mo b/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/django.mo
deleted file mode 100644 (file)
index bfcbcf0..0000000
Binary files a/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/django.mo and /dev/null differ
diff --git a/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/django.po b/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/django.po
deleted file mode 100644 (file)
index 8c81cad..0000000
+++ /dev/null
@@ -1,330 +0,0 @@
-# Copyright (C) 2009 Janos Guljas
-# This file is distributed under the same license as the django-filebrowser package.
-# Janos Guljas <janos@janos.in.rs>, 2009.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-05-06 21:43+0200\n"
-"PO-Revision-Date: 2009-05-06 22:19+0200\n"
-"Last-Translator: Janos Guljas <janos@janos.in.rs>\n"
-"Language-Team: Serbian Latin\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: extension translation
-msgid "Folder"
-msgstr "Folder"
-msgid "Image"
-msgstr "Slika"
-msgid "Document"
-msgstr "Dokument"
-msgid "Code"
-msgstr "Kod"
-msgid "Sound"
-msgstr "Zvuk"
-
-#: fields.py:96
-#, python-format
-msgid "Extension %(ext)s is not allowed. Only %(allowed)s is allowed."
-msgstr "Fajlovi sa ekstenzijom %(ext)s nisu dozvoljeni. Samo %(allowed)s ekstenzije su dozvoljene."
-
-#: forms.py:23
-msgid "Name"
-msgstr "Naziv"
-
-#: forms.py:23 forms.py:49
-msgid ""
-"The Name will automatically be converted to lowercase. Only letters, "
-"numbers, underscores and hyphens are allowed."
-msgstr ""
-"Slova u nazivu će automatski biti konvertovana u mala. Samo slova, cifre, "
-"donja crta i crta su dozvoljeni karakteri."
-
-#: forms.py:30 forms.py:56
-msgid "Only letters, numbers, underscores and hyphens are allowed."
-msgstr "Samo slova, cifre, donja crta i crta su dozvoljeni karakteri."
-
-#: forms.py:33
-msgid "The Folder already exists."
-msgstr "Folder već postoji."
-
-#: forms.py:36
-msgid "Disallowed Folder Name."
-msgstr "Taj naziv foldera nije dozvoljen."
-
-#: forms.py:49
-msgid "New Name"
-msgstr "Novi naziv"
-
-#: forms.py:59
-msgid "The File/Folder already exists."
-msgstr "Fajl/folder već postoji."
-
-#: forms.py:95
-msgid "File"
-msgstr "Fajl"
-
-#: forms.py:96
-msgid "Use Image Generator"
-msgstr "Koristi generator slika"
-
-#: forms.py:105
-msgid "File already exists."
-msgstr "Fajl već postoji."
-
-#: forms.py:111
-msgid "Filename is not allowed."
-msgstr "Naziv fajla nije dozvoljen."
-
-#: forms.py:116
-msgid "File extension is not allowed."
-msgstr "Ekstenzija fajla nije dozviljena."
-
-#: forms.py:121
-msgid "Filesize exceeds allowed Upload Size."
-msgstr "Veličina fajla prelazi dozvoljenu vrednost."
-
-#: functions.py:84
-msgid "Home"
-msgstr "Početni folder"
-
-#: functions.py:279
-msgid "Thumbnail creation failed."
-msgstr "Generisanje umanjenog prikaza slike nije uspelo."
-
-#: functions.py:334 functions.py:389
-msgid "Image creation failed."
-msgstr "Generisanje slike nije uspelo."
-
-#: views.py:174
-msgid "FileBrowser"
-msgstr "Fajl bruzer"
-
-#: views.py:198
-#, python-format
-msgid "The Folder %s was successfully created."
-msgstr "Folder %s je uspešno napravljen."
-
-#: views.py:204
-msgid "Permission denied."
-msgstr "Odbijen pristup."
-
-#: views.py:206
-msgid "Error creating directory."
-msgstr "Greška pri kreiranju direktorijuma."
-
-#: views.py:214 views.py:215 templates/filebrowser/index.html:33
-msgid "New Folder"
-msgstr "Novi folder"
-
-#: views.py:260
-msgid "Upload successful."
-msgstr "Prenos fajla se uspešno završio."
-
-#: views.py:273 templates/filebrowser/index.html:36
-#: templates/filebrowser/upload.html:62
-msgid "Upload"
-msgstr "Prenos fajla"
-
-#: views.py:274
-msgid "Select files to upload"
-msgstr "Izaberite fajlove za prenos"
-
-#: views.py:304
-msgid "Thumbnail creation successful."
-msgstr "Generisanje umanjenog prikaza slike je uspelo."
-
-#: views.py:354
-#, python-format
-msgid "The file %s was successfully deleted."
-msgstr "Fajl %s je supešno obrisan."
-
-#: views.py:366
-#, python-format
-msgid "The directory %s was successfully deleted."
-msgstr "Direktorijum %s je supešno obrisan."
-
-#: views.py:417
-msgid "Error renaming Thumbnail."
-msgstr "Greška pri promeni naziva umanjenog prikaza slike."
-
-#: views.py:423
-msgid "Renaming was successful."
-msgstr "Uspešna promena naziva."
-
-#: views.py:428
-msgid "Error."
-msgstr "Greška."
-
-#: views.py:437 templates/filebrowser/include/filelisting.html:52
-msgid "Rename"
-msgstr "Promeni naziv"
-
-#: views.py:438
-#, python-format
-msgid "Rename \"%s\""
-msgstr "Promeni naziv: „%s“"
-
-#: views.py:475
-msgid "Successfully generated Images."
-msgstr "Slike su uspešno generisane."
-
-#: templates/filebrowser/append.html:5 templates/filebrowser/append.html:7
-msgid "File-Browser"
-msgstr "Fajl-brauzer"
-
-#: templates/filebrowser/index.html:34
-msgid "Make Thumbs"
-msgstr "Generiši umanjene prikaze"
-
-#: templates/filebrowser/index.html:35
-msgid "Generate Images"
-msgstr "Generiši slike"
-
-#: templates/filebrowser/makedir.html:24 templates/filebrowser/rename.html:22
-msgid "Please correct the following errors."
-msgstr "Ispravite sledeće greške."
-
-#: templates/filebrowser/makedir.html:34 templates/filebrowser/rename.html:33
-msgid "Submit"
-msgstr "Izvrši"
-
-#: templates/filebrowser/upload.html:37
-msgid "Will use image generator."
-msgstr "Koristi generator slika."
-
-#: templates/filebrowser/upload.html:47
-msgid "Help"
-msgstr "Pomoć"
-
-#: templates/filebrowser/upload.html:51
-msgid "Allowed"
-msgstr "Dozvoljeno"
-
-#: templates/filebrowser/upload.html:57
-msgid "Max. Filesize"
-msgstr "Najveća veličina fajla"
-
-#: templates/filebrowser/include/filelisting.html:8
-msgid "Select"
-msgstr "Izaberite"
-
-#: templates/filebrowser/include/filelisting.html:15
-msgid "Select File"
-msgstr "Izaberite fajl"
-
-#: templates/filebrowser/include/filelisting.html:26
-msgid "Make Thumbnail"
-msgstr "Napravi umenjeni prikaz"
-
-#: templates/filebrowser/include/filelisting.html:29
-msgid "View Image"
-msgstr "Pregled slike"
-
-#: templates/filebrowser/include/filelisting.html:46
-msgid "Generate Image Versions"
-msgstr "Generiši verzije slika"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Are you sure you want to delete this file?"
-msgstr "Da li ste sigurni da želite da izbrišete ovaj fajl?"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Delete File"
-msgstr "Izbriši fajl"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Are you sure you want to delete this Folder?"
-msgstr "Da li ste sigurni da želite da izbrišete ovaj folder?"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Delete Folder"
-msgstr "Izbriši folder"
-
-#: templates/filebrowser/include/filter.html:15
-msgid "Filter"
-msgstr "Filter"
-
-#: templates/filebrowser/include/filter.html:21
-msgid "By Date"
-msgstr "Po datumu"
-
-#: templates/filebrowser/include/filter.html:23
-msgid "Any Date"
-msgstr "Svi datumi"
-
-#: templates/filebrowser/include/filter.html:25
-msgid "Today"
-msgstr "Danas"
-
-#: templates/filebrowser/include/filter.html:27
-msgid "Past 7 days"
-msgstr "Poslednjih 7 dana"
-
-#: templates/filebrowser/include/filter.html:29
-msgid "Past 30 days"
-msgstr "Poslednjih 30 dana"
-
-#: templates/filebrowser/include/filter.html:31
-msgid "This year"
-msgstr "Ove godine"
-
-#: templates/filebrowser/include/filter.html:39
-msgid "By Type"
-msgstr "Po tipu"
-
-#: templates/filebrowser/include/filter.html:41
-msgid "All"
-msgstr "Svi"
-
-#: templates/filebrowser/include/paginator.html:5
-msgid "No Items Found."
-msgstr "Nijedna slika nije pronađena."
-
-#: templates/filebrowser/include/paginator.html:10
-#, python-format
-msgid "%(counter)s Item"
-msgid_plural "%(counter)s Items"
-msgstr[0] "%(counter)s stavka"
-msgstr[1] "%(counter)s stavki"
-
-#: templates/filebrowser/include/paginator.html:16
-msgid "No Items."
-msgstr "Nijedna stavka"
-
-#: templates/filebrowser/include/tableheader.html:13
-#: templates/filebrowser/include/tableheader.html:14
-msgid "Filename"
-msgstr "Naziv fajla"
-
-#: templates/filebrowser/include/tableheader.html:20
-#: templates/filebrowser/include/tableheader.html:21
-msgid "Size"
-msgstr "Veličina"
-
-#: templates/filebrowser/include/tableheader.html:23
-#: templates/filebrowser/include/tableheader.html:24
-msgid "Date"
-msgstr "Datum"
-
-#: templates/filebrowser/include/toolbar.html:14
-msgid "Go"
-msgstr "Idi"
-
-#: templates/filebrowser/include/toolbar.html:16
-#, python-format
-msgid "%(counter)s Item found"
-msgid_plural "%(counter)s Items found"
-msgstr[0] "%(counter)s stavka nađena"
-msgstr[1] "%(counter)s stavki nađeno"
-
-#: templates/filebrowser/include/toolbar.html:17
-#, python-format
-msgid "%(counter)s Item total"
-msgid_plural "%(counter)s Items total"
-msgstr[0] "%(counter)s stavka ukupno"
-msgstr[1] "%(counter)s stavki ukupno"
diff --git a/apps/filebrowser/locale/zh_CN/LC_MESSAGES/django.mo b/apps/filebrowser/locale/zh_CN/LC_MESSAGES/django.mo
deleted file mode 100644 (file)
index 18da911..0000000
Binary files a/apps/filebrowser/locale/zh_CN/LC_MESSAGES/django.mo and /dev/null differ
diff --git a/apps/filebrowser/locale/zh_CN/LC_MESSAGES/django.po b/apps/filebrowser/locale/zh_CN/LC_MESSAGES/django.po
deleted file mode 100644 (file)
index 51821c2..0000000
+++ /dev/null
@@ -1,345 +0,0 @@
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: filebrowser 2.1\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-05-04 00:05+0800\n"
-"PO-Revision-Date: 2009-05-04 00:11+0800\n"
-"Last-Translator: freeRen <gnugit@gmail.com>\n"
-"Language-Team: freeren.org <gnumap@gmail.com>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-"X-Poedit-Language: Chinese\n"
-"X-Poedit-Country: CHINA\n"
-"X-Poedit-SourceCharset: utf-8\n"
-"X-Poedit-Bookmarks: 0,1,-1,-1,-1,-1,-1,-1,-1,-1\n"
-
-#: fields.py:96
-#, python-format
-msgid "Extension %(ext)s is not allowed. Only %(allowed)s is allowed."
-msgstr "扩展名 %(ext)s 是不允许的。只允许 %(allowed)s 。"
-
-#: forms.py:23
-msgid "Name"
-msgstr "名称"
-
-#: forms.py:23
-#: forms.py:49
-msgid "The Name will automatically be converted to lowercase. Only letters, numbers, underscores and hyphens are allowed."
-msgstr "这个名称将自动转换为小写。只允许字母、数字、下划线和连字符。"
-
-#: forms.py:30
-#: forms.py:56
-msgid "Only letters, numbers, underscores and hyphens are allowed."
-msgstr "只允许字母、数字、下划线和连字符。"
-
-#: forms.py:33
-msgid "The Folder already exists."
-msgstr "这个文件夹已经存在。"
-
-#: forms.py:36
-msgid "Disallowed Folder Name."
-msgstr "不允许的文件夹名称。"
-
-#: forms.py:49
-msgid "New Name"
-msgstr "新名称"
-
-#: forms.py:59
-msgid "The File/Folder already exists."
-msgstr "这个文件/文件夹已经存在。"
-
-#: forms.py:95
-msgid "File"
-msgstr "文件"
-
-#: forms.py:96
-msgid "Use Image Generator"
-msgstr "使用图像生成器"
-
-#: forms.py:105
-msgid "File already exists."
-msgstr "文件已经存在。"
-
-#: forms.py:111
-msgid "Filename is not allowed."
-msgstr "文件名不允许。"
-
-#: forms.py:116
-msgid "File extension is not allowed."
-msgstr "文件扩展名不允许。"
-
-#: forms.py:121
-msgid "Filesize exceeds allowed Upload Size."
-msgstr "超出允许的上传大小。"
-
-#: functions.py:84
-msgid "Home"
-msgstr "首页"
-
-#: functions.py:279
-msgid "Thumbnail creation failed."
-msgstr "缩略图创建失败。"
-
-#: functions.py:334
-#: functions.py:389
-msgid "Image creation failed."
-msgstr "图像创建失败。"
-
-#: views.py:174
-msgid "FileBrowser"
-msgstr "文件浏览器"
-
-#: views.py:198
-#, python-format
-msgid "The Folder %s was successfully created."
-msgstr "文件夹 \"%s\" 创建成功。"
-
-#: views.py:204
-msgid "Permission denied."
-msgstr "权限被拒绝。"
-
-#: views.py:206
-msgid "Error creating directory."
-msgstr "创建目录错误。"
-
-#: views.py:214
-#: views.py:215
-#: templates/filebrowser/index.html:33
-msgid "New Folder"
-msgstr "创建文件夹"
-
-#: views.py:260
-msgid "Upload successful."
-msgstr "上传成功。"
-
-#: views.py:273
-#: templates/filebrowser/index.html:36
-#: templates/filebrowser/upload.html:62
-msgid "Upload"
-msgstr "上传"
-
-#: views.py:274
-msgid "Select files to upload"
-msgstr "选择上传文件"
-
-#: views.py:304
-msgid "Thumbnail creation successful."
-msgstr "缩略图创建成功。"
-
-#: views.py:354
-#, python-format
-msgid "The file %s was successfully deleted."
-msgstr "文件 \"%s\" 删除成功。"
-
-#: views.py:366
-#, python-format
-msgid "The directory %s was successfully deleted."
-msgstr "目录 \"%s\" 删除成功。"
-
-#: views.py:417
-msgid "Error renaming Thumbnail."
-msgstr "重命名缩略图错误。"
-
-#: views.py:423
-msgid "Renaming was successful."
-msgstr "重命名成功。"
-
-#: views.py:428
-msgid "Error."
-msgstr "错误。"
-
-#: views.py:437
-#: templates/filebrowser/include/filelisting.html:52
-msgid "Rename"
-msgstr "重命名"
-
-#: views.py:438
-#, python-format
-msgid "Rename \"%s\""
-msgstr "重命名 \"%s\""
-
-#: views.py:475
-msgid "Successfully generated Images."
-msgstr "生成图像成功。"
-
-#: templates/filebrowser/append.html:4
-#: templates/filebrowser/append.html:6
-msgid "File-Browser"
-msgstr "文件浏览器"
-
-#: templates/filebrowser/index.html:34
-msgid "Make Thumbs"
-msgstr "创建缩略图"
-
-#: templates/filebrowser/index.html:35
-msgid "Generate Images"
-msgstr "生成图像"
-
-#: templates/filebrowser/makedir.html:24
-#: templates/filebrowser/rename.html:22
-msgid "Please correct the following errors."
-msgstr "请修正下面的错误。"
-
-#: templates/filebrowser/makedir.html:34
-#: templates/filebrowser/rename.html:33
-msgid "Submit"
-msgstr "保存"
-
-#: templates/filebrowser/upload.html:37
-msgid "Will use image generator."
-msgstr "使用图像生成器。"
-
-#: templates/filebrowser/upload.html:47
-msgid "Help"
-msgstr "帮助"
-
-#: templates/filebrowser/upload.html:51
-msgid "Allowed"
-msgstr "允许"
-
-#: templates/filebrowser/upload.html:57
-msgid "Max. Filesize"
-msgstr "最大文件大小"
-
-#: templates/filebrowser/include/filelisting.html:8
-msgid "Select"
-msgstr "选择"
-
-#: templates/filebrowser/include/filelisting.html:15
-msgid "Select File"
-msgstr "选择文件"
-
-#: templates/filebrowser/include/filelisting.html:26
-msgid "Make Thumbnail"
-msgstr "创建缩略图"
-
-#: templates/filebrowser/include/filelisting.html:29
-msgid "View Image"
-msgstr "查看图像"
-
-#: templates/filebrowser/include/filelisting.html:46
-msgid "Generate Image Versions"
-msgstr "生成图像版本"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Are you sure you want to delete this file?"
-msgstr "你确定要删除这个文件?"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Delete File"
-msgstr "删除文件"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Are you sure you want to delete this Folder?"
-msgstr "你确定要删除这个文件夹?"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Delete Folder"
-msgstr "删除文件夹"
-
-#: templates/filebrowser/include/filter.html:15
-msgid "Filter"
-msgstr "过滤器"
-
-#: templates/filebrowser/include/filter.html:21
-msgid "By Date"
-msgstr "以 日期"
-
-#: templates/filebrowser/include/filter.html:23
-msgid "Any Date"
-msgstr "任意日期"
-
-#: templates/filebrowser/include/filter.html:25
-msgid "Today"
-msgstr "今天"
-
-#: templates/filebrowser/include/filter.html:27
-msgid "Past 7 days"
-msgstr "前7天"
-
-#: templates/filebrowser/include/filter.html:29
-msgid "Past 30 days"
-msgstr "本月"
-
-#: templates/filebrowser/include/filter.html:31
-msgid "This year"
-msgstr "本年"
-
-#: templates/filebrowser/include/filter.html:39
-msgid "By Type"
-msgstr "以 类型"
-
-#: templates/filebrowser/include/filter.html:41
-msgid "All"
-msgstr "全部"
-
-#: templates/filebrowser/include/paginator.html:5
-msgid "No Items Found."
-msgstr "没有找到。"
-
-#: templates/filebrowser/include/paginator.html:10
-#, python-format
-msgid "%(counter)s Item"
-msgid_plural "%(counter)s Items"
-msgstr[0] "%(counter)s 项"
-
-#: templates/filebrowser/include/paginator.html:16
-msgid "No Items."
-msgstr "没有项。"
-
-#: templates/filebrowser/include/tableheader.html:13
-#: templates/filebrowser/include/tableheader.html:14
-msgid "Filename"
-msgstr "文件名"
-
-#: templates/filebrowser/include/tableheader.html:20
-#: templates/filebrowser/include/tableheader.html:21
-msgid "Size"
-msgstr "大小"
-
-#: templates/filebrowser/include/tableheader.html:23
-#: templates/filebrowser/include/tableheader.html:24
-msgid "Date"
-msgstr "日期"
-
-#: templates/filebrowser/include/toolbar.html:14
-msgid "Go"
-msgstr "执行"
-
-#: templates/filebrowser/include/toolbar.html:16
-#, python-format
-msgid "%(counter)s Item found"
-msgid_plural "%(counter)s Items found"
-msgstr[0] "找到 %(counter)s 项"
-
-#: templates/filebrowser/include/toolbar.html:17
-#, python-format
-msgid "%(counter)s Item total"
-msgid_plural "%(counter)s Items total"
-msgstr[0] "共 %(counter)s 项"
-
-msgid "Folder"
-msgstr "目录"
-
-msgid "Image"
-msgstr "图片"
-
-msgid "Document"
-msgstr "文档"
-
-msgid "Code"
-msgstr "代码"
-
-msgid "Video"
-msgstr "视频"
-
-msgid "Sound"
-msgstr "音频"
-
diff --git a/apps/filebrowser/locale/zh_TW/LC_MESSAGES/django.mo b/apps/filebrowser/locale/zh_TW/LC_MESSAGES/django.mo
deleted file mode 100644 (file)
index 14136c0..0000000
Binary files a/apps/filebrowser/locale/zh_TW/LC_MESSAGES/django.mo and /dev/null differ
diff --git a/apps/filebrowser/locale/zh_TW/LC_MESSAGES/django.po b/apps/filebrowser/locale/zh_TW/LC_MESSAGES/django.po
deleted file mode 100644 (file)
index c60bc65..0000000
+++ /dev/null
@@ -1,346 +0,0 @@
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: filebrowser 2.1\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-05-04 00:06+0800\n"
-"PO-Revision-Date: 2009-05-04 00:11+0800\n"
-"Last-Translator: freeRen <gnugit@gmail.com>\n"
-"Language-Team: freeren.org <gnumap@gmail.com>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-"X-Poedit-Language: Chinese\n"
-"X-Poedit-Country: CHINA\n"
-"X-Poedit-SourceCharset: utf-8\n"
-"X-Poedit-Bookmarks: 0,1,-1,-1,-1,-1,-1,-1,-1,-1\n"
-
-#: fields.py:96
-#, python-format
-msgid "Extension %(ext)s is not allowed. Only %(allowed)s is allowed."
-msgstr "擴展名%(ext)s是不允許的。只允許%(allowed)s 。"
-
-#: forms.py:23
-msgid "Name"
-msgstr "名稱"
-
-#: forms.py:23
-#: forms.py:49
-msgid "The Name will automatically be converted to lowercase. Only letters, numbers, underscores and hyphens are allowed."
-msgstr "這個名稱將自動轉換為小寫。只允許字母、數字、下劃線和連字符。"
-
-#: forms.py:30
-#: forms.py:56
-msgid "Only letters, numbers, underscores and hyphens are allowed."
-msgstr "只允許字母、數字、下劃線和連字符。"
-
-#: forms.py:33
-msgid "The Folder already exists."
-msgstr "這個文件夾已經存在。"
-
-#: forms.py:36
-msgid "Disallowed Folder Name."
-msgstr "不允許文件夾名稱。"
-
-#: forms.py:49
-msgid "New Name"
-msgstr "新名稱"
-
-#: forms.py:59
-msgid "The File/Folder already exists."
-msgstr "這個文件/文件夾已經存在。"
-
-#: forms.py:95
-msgid "File"
-msgstr "文件"
-
-#: forms.py:96
-msgid "Use Image Generator"
-msgstr "使用圖像生成器"
-
-#: forms.py:105
-msgid "File already exists."
-msgstr "文件已經存在。"
-
-#: forms.py:111
-msgid "Filename is not allowed."
-msgstr "文件名不允許。"
-
-#: forms.py:116
-msgid "File extension is not allowed."
-msgstr "文件擴展名不允許。"
-
-#: forms.py:121
-msgid "Filesize exceeds allowed Upload Size."
-msgstr "超出允許的上傳大小。"
-
-#: functions.py:84
-msgid "Home"
-msgstr "首頁"
-
-#: functions.py:279
-msgid "Thumbnail creation failed."
-msgstr "縮略圖創建失敗。"
-
-#: functions.py:334
-#: functions.py:389
-msgid "Image creation failed."
-msgstr "圖像創建失敗。"
-
-#: views.py:174
-msgid "FileBrowser"
-msgstr "文件瀏覽器"
-
-#: views.py:198
-#, python-format
-msgid "The Folder %s was successfully created."
-msgstr "文件夾\"%s\"創建成功。"
-
-#: views.py:204
-msgid "Permission denied."
-msgstr "權限被拒絕。"
-
-#: views.py:206
-msgid "Error creating directory."
-msgstr "創建目錄錯誤。"
-
-#: views.py:214
-#: views.py:215
-#: templates/filebrowser/index.html:33
-msgid "New Folder"
-msgstr "創建文件夾"
-
-#: views.py:260
-msgid "Upload successful."
-msgstr "上傳成功。"
-
-#: views.py:273
-#: templates/filebrowser/index.html:36
-#: templates/filebrowser/upload.html:62
-msgid "Upload"
-msgstr "上传"
-
-#: views.py:274
-msgid "Select files to upload"
-msgstr "選擇上傳文件"
-
-#: views.py:304
-msgid "Thumbnail creation successful."
-msgstr "縮略圖創建成功。"
-
-#: views.py:354
-#, python-format
-msgid "The file %s was successfully deleted."
-msgstr "文件\"%s\"刪除成功。"
-
-#: views.py:366
-#, python-format
-msgid "The directory %s was successfully deleted."
-msgstr "目錄\"%s\"刪除成功。"
-
-#: views.py:417
-msgid "Error renaming Thumbnail."
-msgstr "重命名縮略圖錯誤。"
-
-#: views.py:423
-msgid "Renaming was successful."
-msgstr "重命名成功。"
-
-#: views.py:428
-msgid "Error."
-msgstr "錯誤。"
-
-#: views.py:437
-#: templates/filebrowser/include/filelisting.html:52
-msgid "Rename"
-msgstr "重命名"
-
-#: views.py:438
-#, python-format
-msgid "Rename \"%s\""
-msgstr "重命名 \"%s\""
-
-#: views.py:475
-msgid "Successfully generated Images."
-msgstr "生成圖像成功。"
-
-#: templates/filebrowser/append.html:4
-#: templates/filebrowser/append.html:6
-#, fuzzy
-msgid "File-Browser"
-msgstr "文件瀏覽器"
-
-#: templates/filebrowser/index.html:34
-msgid "Make Thumbs"
-msgstr "創建縮略圖"
-
-#: templates/filebrowser/index.html:35
-msgid "Generate Images"
-msgstr "生成圖像"
-
-#: templates/filebrowser/makedir.html:24
-#: templates/filebrowser/rename.html:22
-msgid "Please correct the following errors."
-msgstr "請修正下面的錯誤。"
-
-#: templates/filebrowser/makedir.html:34
-#: templates/filebrowser/rename.html:33
-msgid "Submit"
-msgstr "保存"
-
-#: templates/filebrowser/upload.html:37
-msgid "Will use image generator."
-msgstr "使用圖像生成器。"
-
-#: templates/filebrowser/upload.html:47
-msgid "Help"
-msgstr "幫助"
-
-#: templates/filebrowser/upload.html:51
-msgid "Allowed"
-msgstr "允許"
-
-#: templates/filebrowser/upload.html:57
-msgid "Max. Filesize"
-msgstr "最大文件大小"
-
-#: templates/filebrowser/include/filelisting.html:8
-msgid "Select"
-msgstr "選擇"
-
-#: templates/filebrowser/include/filelisting.html:15
-msgid "Select File"
-msgstr "選擇文件"
-
-#: templates/filebrowser/include/filelisting.html:26
-msgid "Make Thumbnail"
-msgstr "創建縮略圖"
-
-#: templates/filebrowser/include/filelisting.html:29
-msgid "View Image"
-msgstr "查看圖像"
-
-#: templates/filebrowser/include/filelisting.html:46
-msgid "Generate Image Versions"
-msgstr "生成圖像版本"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Are you sure you want to delete this file?"
-msgstr "你確定要刪除這個文件?"
-
-#: templates/filebrowser/include/filelisting.html:61
-msgid "Delete File"
-msgstr "删除文件"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Are you sure you want to delete this Folder?"
-msgstr "你確定要刪除這個文件夾?"
-
-#: templates/filebrowser/include/filelisting.html:64
-msgid "Delete Folder"
-msgstr "刪除文件夾"
-
-#: templates/filebrowser/include/filter.html:15
-msgid "Filter"
-msgstr "過濾器"
-
-#: templates/filebrowser/include/filter.html:21
-msgid "By Date"
-msgstr "以 日期"
-
-#: templates/filebrowser/include/filter.html:23
-msgid "Any Date"
-msgstr "任意日期"
-
-#: templates/filebrowser/include/filter.html:25
-msgid "Today"
-msgstr "今天"
-
-#: templates/filebrowser/include/filter.html:27
-msgid "Past 7 days"
-msgstr "前7天"
-
-#: templates/filebrowser/include/filter.html:29
-msgid "Past 30 days"
-msgstr "本月"
-
-#: templates/filebrowser/include/filter.html:31
-msgid "This year"
-msgstr "本年"
-
-#: templates/filebrowser/include/filter.html:39
-msgid "By Type"
-msgstr "以 類型"
-
-#: templates/filebrowser/include/filter.html:41
-msgid "All"
-msgstr "全部"
-
-#: templates/filebrowser/include/paginator.html:5
-msgid "No Items Found."
-msgstr "沒有找到。"
-
-#: templates/filebrowser/include/paginator.html:10
-#, python-format
-msgid "%(counter)s Item"
-msgid_plural "%(counter)s Items"
-msgstr[0] "%(counter)s 項"
-
-#: templates/filebrowser/include/paginator.html:16
-msgid "No Items."
-msgstr "沒有項"
-
-#: templates/filebrowser/include/tableheader.html:13
-#: templates/filebrowser/include/tableheader.html:14
-msgid "Filename"
-msgstr "文件名"
-
-#: templates/filebrowser/include/tableheader.html:20
-#: templates/filebrowser/include/tableheader.html:21
-msgid "Size"
-msgstr "大小"
-
-#: templates/filebrowser/include/tableheader.html:23
-#: templates/filebrowser/include/tableheader.html:24
-msgid "Date"
-msgstr "日期"
-
-#: templates/filebrowser/include/toolbar.html:14
-msgid "Go"
-msgstr "執行"
-
-#: templates/filebrowser/include/toolbar.html:16
-#, python-format
-msgid "%(counter)s Item found"
-msgid_plural "%(counter)s Items found"
-msgstr[0] "找到 %(counter)s 項"
-
-#: templates/filebrowser/include/toolbar.html:17
-#, python-format
-msgid "%(counter)s Item total"
-msgid_plural "%(counter)s Items total"
-msgstr[0] "共 %(counter)s 項"
-
-msgid "Folder"
-msgstr "目錄"
-
-msgid "Image"
-msgstr "圖片"
-
-msgid "Document"
-msgstr "文檔"
-
-msgid "Code"
-msgstr "代碼"
-
-msgid "Video"
-msgstr "視頻"
-
-msgid "Sound"
-msgstr "音頻"
-
diff --git a/apps/filebrowser/media/filebrowser/css/filebrowser.css b/apps/filebrowser/media/filebrowser/css/filebrowser.css
deleted file mode 100644 (file)
index c68126e..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-.filebrowser table td { font-size: 10px; }
-.filebrowser table a { font-size: 11px; }
-.filebrowser thead th.sorted a { padding-right: 13px; }
-.filebrowser td { padding: 9px 10px 7px 10px !important; }
-.filebrowser td.fb_icon { padding: 6px 5px 5px 5px !important; }
-
-table a.fb_deletelink, table a.fb_renamelink, table a.fb_selectlink, table a.fb_showversionslink {
-    cursor: pointer;
-    display: block; padding: 0; margin: 0;
-    width: 23px; height: 17px;
-    background-color: transparent;
-    background-position: 0 center;
-    background-repeat: no-repeat;
-}
-
-table .fb_deletelink:link, table .fb_deletelink:visited {
-    width: 15px;
-    background-image: url('../img/filebrowser_icon_delete.gif');
-}
-table .fb_deletelink:hover, table .fb_deletelink:active { background-image: url('../img/filebrowser_icon_delete_hover.gif'); }
-table .fb_renamelink:link, table .fb_renamelink:visited {
-    width: 14px;
-    background-image: url('../img/filebrowser_icon_rename.gif');
-}
-table .fb_renamelink:hover, table .fb_renamelink:active { background-image: url('../img/filebrowser_icon_rename_hover.gif'); }
-table .fb_selectlink:link, table .fb_selectlink:visited { background-image: url('../img/filebrowser_icon_select.gif'); }
-table .fb_selectlink:hover, table .fb_selectlink:active { background-image: url('../img/filebrowser_icon_select_hover.gif'); }
-table .fb_showversionslink:link, table .fb_showversionslink:visited { background-image: url('../img/filebrowser_icon_showversions.gif'); }
-table .fb_showversionslink:hover, table .fb_showversionslink:active { background-image: url('../img/filebrowser_icon_showversions_hover.gif'); }
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_delete.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_delete.gif
deleted file mode 100644 (file)
index 221a6e1..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_delete.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_delete_hover.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_delete_hover.gif
deleted file mode 100644 (file)
index 2a2142c..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_delete_hover.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator.gif
deleted file mode 100644 (file)
index 9b19a42..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif
deleted file mode 100644 (file)
index aaa256f..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb.gif
deleted file mode 100644 (file)
index 837f6cc..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb_hover.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb_hover.gif
deleted file mode 100644 (file)
index d1d4d4a..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb_hover.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_rename.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_rename.gif
deleted file mode 100644 (file)
index bc45fe4..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_rename.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_rename_hover.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_rename_hover.gif
deleted file mode 100644 (file)
index be8ea08..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_rename_hover.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_select.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_select.gif
deleted file mode 100644 (file)
index a838427..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_select.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_select_disabled.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_select_disabled.gif
deleted file mode 100644 (file)
index 60ad2d5..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_select_disabled.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_select_hover.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_select_hover.gif
deleted file mode 100644 (file)
index 319558e..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_select_hover.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_show.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_show.gif
deleted file mode 100644 (file)
index dded982..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_show.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_show_hover.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_show_hover.gif
deleted file mode 100644 (file)
index fbd1f33..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_show_hover.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_showversions.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_showversions.gif
deleted file mode 100644 (file)
index 71525d7..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_showversions.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_showversions_hover.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_showversions_hover.gif
deleted file mode 100644 (file)
index 1fbe2e4..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_showversions_hover.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif
deleted file mode 100644 (file)
index 9b19a42..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif
deleted file mode 100644 (file)
index aaa256f..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif
deleted file mode 100644 (file)
index bcd98d9..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif
deleted file mode 100644 (file)
index f9938c7..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif
deleted file mode 100644 (file)
index a6863cb..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif
deleted file mode 100644 (file)
index b9aba7c..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif
deleted file mode 100644 (file)
index 6de016b..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif
deleted file mode 100644 (file)
index eaaf254..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_type_.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_type_.gif
deleted file mode 100644 (file)
index 6a908e2..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_type_.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_type_code.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_type_code.gif
deleted file mode 100644 (file)
index 9650839..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_type_code.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_type_document.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_type_document.gif
deleted file mode 100644 (file)
index 65ebd99..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_type_document.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_type_folder.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_type_folder.gif
deleted file mode 100644 (file)
index 115e3fb..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_type_folder.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_type_image.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_type_image.gif
deleted file mode 100644 (file)
index 000b31c..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_type_image.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_type_sound.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_type_sound.gif
deleted file mode 100644 (file)
index 8a8970a..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_type_sound.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_type_video.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_type_video.gif
deleted file mode 100644 (file)
index f456d59..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/filebrowser_type_video.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/tableheader_arrow_down.gif b/apps/filebrowser/media/filebrowser/img/tableheader_arrow_down.gif
deleted file mode 100644 (file)
index 5ae95a6..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/tableheader_arrow_down.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/tableheader_arrow_up.gif b/apps/filebrowser/media/filebrowser/img/tableheader_arrow_up.gif
deleted file mode 100644 (file)
index 85f1e12..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/tableheader_arrow_up.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/img/tableheader_arrows.gif b/apps/filebrowser/media/filebrowser/img/tableheader_arrows.gif
deleted file mode 100644 (file)
index 39b8780..0000000
Binary files a/apps/filebrowser/media/filebrowser/img/tableheader_arrows.gif and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/js/AddFileBrowser.js b/apps/filebrowser/media/filebrowser/js/AddFileBrowser.js
deleted file mode 100644 (file)
index 888885f..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-var FileBrowser = {
-    // this is set automatically
-    admin_media_prefix: '',
-    // change this
-    thumb_prefix: 'thumb_',
-    no_thumb: 'filebrowser/img/no_thumb.gif',
-
-    init: function() {
-        // Deduce admin_media_prefix by looking at the <script>s in the
-        // current document and finding the URL of *this* module.
-        var scripts = document.getElementsByTagName('script');
-        for (var i=0; i<scripts.length; i++) {
-            if (scripts[i].src.match(/AddFileBrowser/)) {
-                var idx = scripts[i].src.indexOf('filebrowser/js/AddFileBrowser');
-                FileBrowser.admin_media_prefix = scripts[i].src.substring(0, idx);
-                break;
-            }
-        }
-    },
-    // show FileBrowser
-    show: function(id, href) {
-        // var id2=String(id).split(".").join("___");
-        var id2=String(id).replace(/\-/g,"____").split(".").join("___");
-        FBWindow = window.open(href, String(id2), 'height=600,width=960,resizable=yes,scrollbars=yes');
-        FBWindow.focus();
-    }
-}
-
-addEvent(window, 'load', FileBrowser.init);
-
diff --git a/apps/filebrowser/media/filebrowser/js/FB_CKEditor.js b/apps/filebrowser/media/filebrowser/js/FB_CKEditor.js
deleted file mode 100644 (file)
index 74d8d64..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-function ProtectPath(path) {
-    path = path.replace( /\\/g,'\\\\');
-    path = path.replace( /'/g,'\\\'');
-    return path ;
-}
-
-function gup( name ) {
-  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
-  var regexS = "[\\?&]"+name+"=([^&#]*)";
-  var regex = new RegExp(regexS);
-  var results = regex.exec(window.location.href);
-  if(results == null)
-    return "";
-  else
-    return results[1];
-}
-
-function OpenFile(fileUrl) {
-    var CKEditorFuncNum = gup('CKEditorFuncNum');
-    window.top.opener.CKEDITOR.tools.callFunction(CKEditorFuncNum,encodeURI(fileUrl).replace('#','%23'));
-    window.top.close();
-    window.top.opener.focus();
-}
-
diff --git a/apps/filebrowser/media/filebrowser/js/FB_FileBrowseField.js b/apps/filebrowser/media/filebrowser/js/FB_FileBrowseField.js
deleted file mode 100644 (file)
index 5e3aa9f..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-function FileSubmit(FileURL, ThumbURL, FileType) {
-
-    // var input_id=window.name.split("___").join(".");
-    var input_id=window.name.replace(/____/g,'-').split("___").join(".");
-    var preview_id = 'image_' + input_id;
-    var link_id = 'link_' + input_id;
-    var help_id = 'help_' + input_id;
-    input = opener.document.getElementById(input_id);
-    preview = opener.document.getElementById(preview_id);
-    link = opener.document.getElementById(link_id);
-    help = opener.document.getElementById(help_id);
-    // set new value for input field
-    input.value = FileURL;
-
-    if (ThumbURL && FileType != "") {
-        // selected file is an image and thumbnail is available:
-        // display the preview-image (thumbnail)
-        // link the preview-image to the original image
-        link.setAttribute("href", FileURL);
-        link.setAttribute("target", "_blank");
-        preview.setAttribute("src", ThumbURL);
-        help.setAttribute("style", "display:block");
-    } else {
-        // hide preview elements
-        link.setAttribute("href", "");
-        link.setAttribute("target", "");
-        preview.setAttribute("src", "");
-        help.setAttribute("style", "display:none");
-    }
-    this.close();
-}
-
diff --git a/apps/filebrowser/media/filebrowser/js/FB_TinyMCE.js b/apps/filebrowser/media/filebrowser/js/FB_TinyMCE.js
deleted file mode 100644 (file)
index b2d4d60..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-var FileBrowserDialogue = {
-    init : function () {
-        // remove tinymce stylesheet.
-        var allLinks = document.getElementsByTagName("link");
-        allLinks[allLinks.length-1].parentNode.removeChild(allLinks[allLinks.length-1]);
-    },
-    fileSubmit : function (FileURL) {
-        var URL = FileURL;
-        var win = tinyMCEPopup.getWindowArg("window");
-
-        // insert information now
-        win.document.getElementById(tinyMCEPopup.getWindowArg("input")).value = URL;
-
-        // change width/height & show preview
-        if (win.ImageDialog){
-            if (win.ImageDialog.getImageData)
-                win.ImageDialog.getImageData();
-            if (win.ImageDialog.showPreviewImage)
-                win.ImageDialog.showPreviewImage(URL);
-        }
-
-        // close popup window
-        tinyMCEPopup.close();
-    }
-}
-
-tinyMCEPopup.onInit.add(FileBrowserDialogue.init, FileBrowserDialogue);
-
diff --git a/apps/filebrowser/media/filebrowser/js/TinyMCEAdmin.js b/apps/filebrowser/media/filebrowser/js/TinyMCEAdmin.js
deleted file mode 100644 (file)
index 902fc9f..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-function CustomFileBrowser(field_name, url, type, win) {
-
-    var cmsURL = "/admin/filebrowser/browse/?pop=2";
-    cmsURL = cmsURL + "&type=" + type;
-
-    tinyMCE.activeEditor.windowManager.open({
-        file: cmsURL,
-        width: 820,  // Your dimensions may differ - toy around with them!
-        height: 500,
-        resizable: "yes",
-        scrollbars: "yes",
-        inline: "no",  // This parameter only has an effect if you use the inlinepopups plugin!
-        close_previous: "no"
-    }, {
-        window: win,
-        input: field_name,
-        editor_id: tinyMCE.selectedInstance.editorId
-    });
-    return false;
-}
-
-
-tinyMCE.init({
-    mode: "textareas",
-    theme: "advanced",
-    language: "en",
-    skin: "o2k7",
-    browsers: "gecko",
-    dialog_type: "modal",
-    object_resizing: true,
-    cleanup_on_startup: true,
-    forced_root_block: "p",
-    remove_trailing_nbsp: true,
-    theme_advanced_toolbar_location: "top",
-    theme_advanced_toolbar_align: "left",
-    theme_advanced_statusbar_location: "none",
-    theme_advanced_buttons1: "formatselect,bold,italic,underline,bullist,numlist,undo,redo,link,unlink,image,code,fullscreen,pasteword,media,charmap",
-    theme_advanced_buttons2: "",
-    theme_advanced_buttons3: "",
-    theme_advanced_path: false,
-    theme_advanced_blockformats: "p,h2,h3,h4,h5,h6",
-    width: '700',
-    height: '200',
-    plugins: "advimage,advlink,fullscreen,visualchars,paste,media,template,searchreplace",
-    advimage_styles: "Linksbündig neben Text=img_left;Rechtsbündig neben Text=img_right;Eigener Block=img_block",
-    advlink_styles: "internal (sehmaschine.net)=internal;external (link to an external site)=external",
-    advimage_update_dimensions_onchange: true,
-    file_browser_callback: "CustomFileBrowser",
-    relative_urls: false,
-    valid_elements : "" +
-    "-p," +
-    "a[href|target=_blank|class]," +
-    "-strong/-b," +
-    "-em/-i," +
-    "-u," +
-    "-ol," +
-    "-ul," +
-    "-li," +
-    "br," +
-    "img[class|src|alt=|width|height]," +
-    "-h2,-h3,-h4," +
-    "-pre," +
-    "-code," +
-    "-div",
-    extended_valid_elements: "" +
-    "a[name|class|href|target|title|onclick]," +
-    "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]," +
-    "br[clearfix]," +
-    "-p[class<clearfix?summary?code]," +
-    "h2[class<clearfix],h3[class<clearfix],h4[class<clearfix]," +
-    "ul[class<clearfix],ol[class<clearfix]," +
-    "div[class],"
-});
-
-
diff --git a/apps/filebrowser/media/filebrowser/js/jquery-1.3.2.min.js b/apps/filebrowser/media/filebrowser/js/jquery-1.3.2.min.js
deleted file mode 100644 (file)
index b1ae21d..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * jQuery JavaScript Library v1.3.2
- * http://jquery.com/
- *
- * Copyright (c) 2009 John Resig
- * Dual licensed under the MIT and GPL licenses.
- * http://docs.jquery.com/License
- *
- * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
- * Revision: 6246
- */
-(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
-/*
- * Sizzle CSS Selector Engine - v0.9.3
- *  Copyright 2009, The Dojo Foundation
- *  Released under the MIT, BSD, and GPL Licenses.
- *  More information: http://sizzlejs.com/
- */
-(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/Uploadify v2.1.0 Manual.pdf b/apps/filebrowser/media/filebrowser/uploadify/Uploadify v2.1.0 Manual.pdf
deleted file mode 100755 (executable)
index c8b2565..0000000
Binary files a/apps/filebrowser/media/filebrowser/uploadify/Uploadify v2.1.0 Manual.pdf and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/cancel.png b/apps/filebrowser/media/filebrowser/uploadify/cancel.png
deleted file mode 100644 (file)
index 1c062ae..0000000
Binary files a/apps/filebrowser/media/filebrowser/uploadify/cancel.png and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/check.php b/apps/filebrowser/media/filebrowser/uploadify/check.php
deleted file mode 100644 (file)
index d7dc571..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php\r
-/*\r
-Uploadify v2.1.0\r
-Release Date: August 24, 2009\r
-\r
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels\r
-\r
-Permission is hereby granted, free of charge, to any person obtaining a copy\r
-of this software and associated documentation files (the "Software"), to deal\r
-in the Software without restriction, including without limitation the rights\r
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-copies of the Software, and to permit persons to whom the Software is\r
-furnished to do so, subject to the following conditions:\r
-\r
-The above copyright notice and this permission notice shall be included in\r
-all copies or substantial portions of the Software.\r
-\r
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-THE SOFTWARE.\r
-*/\r
-$fileArray = array();\r
-foreach ($_POST as $key => $value) {\r
-       if ($key != 'folder') {\r
-               if (file_exists($_SERVER['DOCUMENT_ROOT'] . $_POST['folder'] . '/' . $value)) {\r
-                       $fileArray[$key] = $value;\r
-               }\r
-       }\r
-}\r
-echo json_encode($fileArray);\r
-?>
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/FileTarget.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/FileTarget.as
deleted file mode 100644 (file)
index 0dda3eb..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package com.adobe.air.logging
-{
-       import mx.logging.AbstractTarget;
-       import flash.filesystem.File;
-       import flash.filesystem.FileStream;
-       import flash.filesystem.FileMode;
-       import mx.logging.LogEvent;
-       import flash.system.System;
-       import flash.system.Capabilities;
-       import mx.logging.targets.LineFormattedTarget;
-       import mx.core.mx_internal;
-       
-       use namespace mx_internal;
-
-       /**
-        * An Adobe AIR only class that provides a log target for the Flex logging
-        * framework, that logs files to a file on the user's system.
-        * 
-        * This class will only work when running within Adobe AIR>
-        */
-       public class FileTarget extends LineFormattedTarget
-       {
-               private const DEFAULT_LOG_PATH:String = "app-storage:/application.log";
-               
-               private var log:File;
-               
-               public function FileTarget(logFile:File = null)
-               {
-                       if(logFile != null)
-                       {
-                               log = logFile;
-                       }
-                       else
-                       {
-                               log = new File(DEFAULT_LOG_PATH);
-                       }
-               }
-               
-               public function get logURI():String
-               {
-                       return log.url;
-               }
-               
-               mx_internal override function internalLog(message:String):void
-           {
-                       write(message);
-           }           
-               
-               private function write(msg:String):void
-               {               
-                       var fs:FileStream = new FileStream();
-                               fs.open(log, FileMode.APPEND);
-                               fs.writeUTFBytes(msg + "\n");
-                               fs.close();
-               }       
-               
-               public function clear():void
-               {
-                       var fs:FileStream = new FileStream();
-                               fs.open(log, FileMode.WRITE);
-                               fs.writeUTFBytes("");
-                               fs.close();                     
-               }
-               
-       }
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/HMAC.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/HMAC.as
deleted file mode 100644 (file)
index 72f9bff..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.crypto {\r
-       import flash.utils.ByteArray;\r
-       import flash.utils.Endian;\r
-       import flash.utils.describeType;\r
-       /**\r
-        * Keyed-Hashing for Message Authentication\r
-        * Implementation based on algorithm description at \r
-        * http://www.faqs.org/rfcs/rfc2104.html\r
-        */\r
-       public class HMAC \r
-       {\r
-               /**\r
-                * Performs the HMAC hash algorithm using byte arrays.\r
-                *\r
-                * @param secret The secret key\r
-                * @param message The message to hash\r
-                * @param algorithm Hash object to use\r
-                * @return A string containing the hash value of message\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 8.5\r
-                * @tiptext\r
-                */\r
-               public static function hash( secret:String, message:String, algorithm:Object = null ):String\r
-               {\r
-                       var text:ByteArray = new ByteArray();\r
-                       var k_secret:ByteArray = new ByteArray();\r
-                       \r
-                       text.writeUTFBytes(message);\r
-                       k_secret.writeUTFBytes(secret);\r
-                       \r
-                       return hashBytes(k_secret, text, algorithm);\r
-               }\r
-               \r
-               /**\r
-                * Performs the HMAC hash algorithm using string.\r
-                *\r
-                * @param secret The secret key\r
-                * @param message The message to hash\r
-                * @param algorithm Hash object to use\r
-                * @return A string containing the hash value of message\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 8.5\r
-                * @tiptext\r
-                */\r
-               public static function hashBytes( secret:ByteArray, message:ByteArray, algorithm:Object = null ):String\r
-               {\r
-                       var ipad:ByteArray = new ByteArray();\r
-                       var opad:ByteArray = new ByteArray();\r
-                       var endian:String = Endian.BIG_ENDIAN;\r
-                       \r
-                       if(algorithm == null){\r
-                               algorithm = MD5;\r
-                       }\r
-                       \r
-                       if ( describeType(algorithm).@name.toString() == "com.adobe.crypto::MD5" ) {\r
-                               endian = Endian.LITTLE_ENDIAN;\r
-                       }\r
-                       \r
-                       if ( secret.length > 64 ) {\r
-                               algorithm.hashBytes(secret);\r
-                               secret = new ByteArray();\r
-                               secret.endian = endian;\r
-                               \r
-                               while ( algorithm.digest.bytesAvailable != 0 ) {\r
-                                       secret.writeInt(algorithm.digest.readInt());\r
-                               }\r
-                       }\r
-\r
-                       secret.length = 64\r
-                       secret.position = 0;\r
-                       for ( var x:int = 0; x < 64; x++ ) {\r
-                               var byte:int = secret.readByte();\r
-                               ipad.writeByte(0x36 ^ byte);\r
-                               opad.writeByte(0x5c ^ byte);\r
-                       }\r
-                       \r
-                       ipad.writeBytes(message);\r
-                       algorithm.hashBytes(ipad);\r
-                       var tmp:ByteArray = new ByteArray();\r
-                       tmp.endian = endian;    \r
-                       \r
-                       while ( algorithm.digest.bytesAvailable != 0 ) {\r
-                               tmp.writeInt(algorithm.digest.readInt());\r
-                       }\r
-                       tmp.position = 0;\r
-                       \r
-                       while ( tmp.bytesAvailable != 0 ) {\r
-                               opad.writeByte(tmp.readUnsignedByte());\r
-                       }\r
-                       return algorithm.hashBytes( opad );\r
-               }\r
-               \r
-       }\r
-       \r
-}\r
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/MD5.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/MD5.as
deleted file mode 100644 (file)
index da533cc..0000000
+++ /dev/null
@@ -1,281 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package com.adobe.crypto {
-       
-       import com.adobe.utils.IntUtil;
-       import flash.utils.ByteArray;   
-       /**
-        * The MD5 Message-Digest Algorithm
-        *
-        * Implementation based on algorithm description at 
-        * http://www.faqs.org/rfcs/rfc1321.html
-        */
-       public class MD5 {
-               
-               public static var digest:ByteArray;
-               /**
-                * Performs the MD5 hash algorithm on a string.
-                *
-                * @param s The string to hash
-                * @return A string containing the hash value of s
-                * @langversion ActionScript 3.0
-                * @playerversion Flash 8.5
-                * @tiptext
-                */
-                
-               public static function hash(s:String) :String{
-                       //Convert to byteArray and send through hashBinary function
-                       // so as to only have complex code in one location
-                       var ba:ByteArray = new ByteArray();
-                       ba.writeUTFBytes(s);    
-                       return hashBinary(ba);
-               }
-               
-               public static function hashBytes(s:ByteArray) :String{  
-                       return hashBinary(s);
-               }
-               
-               /**
-                * Performs the MD5 hash algorithm on a ByteArray.
-                *
-                * @param s The string to hash
-                * @return A string containing the hash value of s
-                * @langversion ActionScript 3.0
-                * @playerversion Flash 8.5
-                * @tiptext
-                */      
-               public static function hashBinary( s:ByteArray ):String {
-                       // initialize the md buffers
-                       var a:int = 1732584193;
-                       var b:int = -271733879;
-                       var c:int = -1732584194;
-                       var d:int = 271733878;
-                       
-                       // variables to store previous values
-                       var aa:int;
-                       var bb:int;
-                       var cc:int;
-                       var dd:int;
-                       
-                       // create the blocks from the string and
-                       // save the length as a local var to reduce
-                       // lookup in the loop below
-                       var x:Array = createBlocks( s );
-                       var len:int = x.length;
-                       
-                       // loop over all of the blocks
-                       for ( var i:int = 0; i < len; i += 16) {
-                               // save previous values
-                               aa = a;
-                               bb = b;
-                               cc = c;
-                               dd = d;                         
-                               
-                               // Round 1
-                               a = ff( a, b, c, d, x[int(i+ 0)],  7, -680876936 );     // 1
-                               d = ff( d, a, b, c, x[int(i+ 1)], 12, -389564586 );     // 2
-                               c = ff( c, d, a, b, x[int(i+ 2)], 17, 606105819 );      // 3
-                               b = ff( b, c, d, a, x[int(i+ 3)], 22, -1044525330 );    // 4
-                               a = ff( a, b, c, d, x[int(i+ 4)],  7, -176418897 );     // 5
-                               d = ff( d, a, b, c, x[int(i+ 5)], 12, 1200080426 );     // 6
-                               c = ff( c, d, a, b, x[int(i+ 6)], 17, -1473231341 );    // 7
-                               b = ff( b, c, d, a, x[int(i+ 7)], 22, -45705983 );      // 8
-                               a = ff( a, b, c, d, x[int(i+ 8)],  7, 1770035416 );     // 9
-                               d = ff( d, a, b, c, x[int(i+ 9)], 12, -1958414417 );    // 10
-                               c = ff( c, d, a, b, x[int(i+10)], 17, -42063 );                 // 11
-                               b = ff( b, c, d, a, x[int(i+11)], 22, -1990404162 );    // 12
-                               a = ff( a, b, c, d, x[int(i+12)],  7, 1804603682 );     // 13
-                               d = ff( d, a, b, c, x[int(i+13)], 12, -40341101 );      // 14
-                               c = ff( c, d, a, b, x[int(i+14)], 17, -1502002290 );    // 15
-                               b = ff( b, c, d, a, x[int(i+15)], 22, 1236535329 );     // 16
-                               
-                               // Round 2
-                               a = gg( a, b, c, d, x[int(i+ 1)],  5, -165796510 );     // 17
-                               d = gg( d, a, b, c, x[int(i+ 6)],  9, -1069501632 );    // 18
-                               c = gg( c, d, a, b, x[int(i+11)], 14, 643717713 );      // 19
-                               b = gg( b, c, d, a, x[int(i+ 0)], 20, -373897302 );     // 20
-                               a = gg( a, b, c, d, x[int(i+ 5)],  5, -701558691 );     // 21
-                               d = gg( d, a, b, c, x[int(i+10)],  9, 38016083 );       // 22
-                               c = gg( c, d, a, b, x[int(i+15)], 14, -660478335 );     // 23
-                               b = gg( b, c, d, a, x[int(i+ 4)], 20, -405537848 );     // 24
-                               a = gg( a, b, c, d, x[int(i+ 9)],  5, 568446438 );      // 25
-                               d = gg( d, a, b, c, x[int(i+14)],  9, -1019803690 );    // 26
-                               c = gg( c, d, a, b, x[int(i+ 3)], 14, -187363961 );     // 27
-                               b = gg( b, c, d, a, x[int(i+ 8)], 20, 1163531501 );     // 28
-                               a = gg( a, b, c, d, x[int(i+13)],  5, -1444681467 );    // 29
-                               d = gg( d, a, b, c, x[int(i+ 2)],  9, -51403784 );      // 30
-                               c = gg( c, d, a, b, x[int(i+ 7)], 14, 1735328473 );     // 31
-                               b = gg( b, c, d, a, x[int(i+12)], 20, -1926607734 );    // 32
-                               
-                               // Round 3
-                               a = hh( a, b, c, d, x[int(i+ 5)],  4, -378558 );        // 33
-                               d = hh( d, a, b, c, x[int(i+ 8)], 11, -2022574463 );    // 34
-                               c = hh( c, d, a, b, x[int(i+11)], 16, 1839030562 );     // 35
-                               b = hh( b, c, d, a, x[int(i+14)], 23, -35309556 );      // 36
-                               a = hh( a, b, c, d, x[int(i+ 1)],  4, -1530992060 );    // 37
-                               d = hh( d, a, b, c, x[int(i+ 4)], 11, 1272893353 );     // 38
-                               c = hh( c, d, a, b, x[int(i+ 7)], 16, -155497632 );     // 39
-                               b = hh( b, c, d, a, x[int(i+10)], 23, -1094730640 );    // 40
-                               a = hh( a, b, c, d, x[int(i+13)],  4, 681279174 );      // 41
-                               d = hh( d, a, b, c, x[int(i+ 0)], 11, -358537222 );     // 42
-                               c = hh( c, d, a, b, x[int(i+ 3)], 16, -722521979 );     // 43
-                               b = hh( b, c, d, a, x[int(i+ 6)], 23, 76029189 );       // 44
-                               a = hh( a, b, c, d, x[int(i+ 9)],  4, -640364487 );     // 45
-                               d = hh( d, a, b, c, x[int(i+12)], 11, -421815835 );     // 46
-                               c = hh( c, d, a, b, x[int(i+15)], 16, 530742520 );      // 47
-                               b = hh( b, c, d, a, x[int(i+ 2)], 23, -995338651 );     // 48
-                               
-                               // Round 4
-                               a = ii( a, b, c, d, x[int(i+ 0)],  6, -198630844 );     // 49
-                               d = ii( d, a, b, c, x[int(i+ 7)], 10, 1126891415 );     // 50
-                               c = ii( c, d, a, b, x[int(i+14)], 15, -1416354905 );    // 51
-                               b = ii( b, c, d, a, x[int(i+ 5)], 21, -57434055 );      // 52
-                               a = ii( a, b, c, d, x[int(i+12)],  6, 1700485571 );     // 53
-                               d = ii( d, a, b, c, x[int(i+ 3)], 10, -1894986606 );    // 54
-                               c = ii( c, d, a, b, x[int(i+10)], 15, -1051523 );       // 55
-                               b = ii( b, c, d, a, x[int(i+ 1)], 21, -2054922799 );    // 56
-                               a = ii( a, b, c, d, x[int(i+ 8)],  6, 1873313359 );     // 57
-                               d = ii( d, a, b, c, x[int(i+15)], 10, -30611744 );      // 58
-                               c = ii( c, d, a, b, x[int(i+ 6)], 15, -1560198380 );    // 59
-                               b = ii( b, c, d, a, x[int(i+13)], 21, 1309151649 );     // 60
-                               a = ii( a, b, c, d, x[int(i+ 4)],  6, -145523070 );     // 61
-                               d = ii( d, a, b, c, x[int(i+11)], 10, -1120210379 );    // 62
-                               c = ii( c, d, a, b, x[int(i+ 2)], 15, 718787259 );      // 63
-                               b = ii( b, c, d, a, x[int(i+ 9)], 21, -343485551 );     // 64
-
-                               a += aa;
-                               b += bb;
-                               c += cc;
-                               d += dd;
-                       }
-                       digest = new ByteArray()
-                       digest.writeInt(a);
-                       digest.writeInt(b);
-                       digest.writeInt(c);
-                       digest.writeInt(d);
-                       digest.position = 0;
-                       // Finish up by concatening the buffers with their hex output
-                       return IntUtil.toHex( a ) + IntUtil.toHex( b ) + IntUtil.toHex( c ) + IntUtil.toHex( d );
-               }
-               
-               /**
-                * Auxiliary function f as defined in RFC
-                */
-               private static function f( x:int, y:int, z:int ):int {
-                       return ( x & y ) | ( (~x) & z );
-               }
-               
-               /**
-                * Auxiliary function g as defined in RFC
-                */
-               private static function g( x:int, y:int, z:int ):int {
-                       return ( x & z ) | ( y & (~z) );
-               }
-               
-               /**
-                * Auxiliary function h as defined in RFC
-                */
-               private static function h( x:int, y:int, z:int ):int {
-                       return x ^ y ^ z;
-               }
-               
-               /**
-                * Auxiliary function i as defined in RFC
-                */
-               private static function i( x:int, y:int, z:int ):int {
-                       return y ^ ( x | (~z) );
-               }
-               
-               /**
-                * A generic transformation function.  The logic of ff, gg, hh, and
-                * ii are all the same, minus the function used, so pull that logic
-                * out and simplify the method bodies for the transoformation functions.
-                */
-               private static function transform( func:Function, a:int, b:int, c:int, d:int, x:int, s:int, t:int):int {
-                       var tmp:int = a + int( func( b, c, d ) ) + x + t;
-                       return IntUtil.rol( tmp, s ) +  b;
-               }
-               
-               /**
-                * ff transformation function
-                */
-               private static function ff ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {
-                       return transform( f, a, b, c, d, x, s, t );
-               }
-               
-               /**
-                * gg transformation function
-                */
-               private static function gg ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {
-                       return transform( g, a, b, c, d, x, s, t );
-               }
-               
-               /**
-                * hh transformation function
-                */
-               private static function hh ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {
-                       return transform( h, a, b, c, d, x, s, t );
-               }
-               
-               /**
-                * ii transformation function
-                */
-               private static function ii ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {
-                       return transform( i, a, b, c, d, x, s, t );
-               }
-               
-               /**
-                * Converts a string to a sequence of 16-word blocks
-                * that we'll do the processing on.  Appends padding
-                * and length in the process.
-                *
-                * @param s The string to split into blocks
-                * @return An array containing the blocks that s was
-                *                      split into.
-                */
-               private static function createBlocks( s:ByteArray ):Array {
-                       var blocks:Array = new Array();
-                       var len:int = s.length * 8;
-                       var mask:int = 0xFF; // ignore hi byte of characters > 0xFF
-                       for( var i:int = 0; i < len; i += 8 ) {
-                               blocks[ int(i >> 5) ] |= ( s[ i / 8 ] & mask ) << ( i % 32 );
-                       }
-                       
-                       // append padding and length
-                       blocks[ int(len >> 5) ] |= 0x80 << ( len % 32 );
-                       blocks[ int(( ( ( len + 64 ) >>> 9 ) << 4 ) + 14) ] = len;
-                       return blocks;
-               }
-               
-       }
-}
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/MD5Stream.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/MD5Stream.as
deleted file mode 100644 (file)
index 6e5eed0..0000000
+++ /dev/null
@@ -1,402 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.crypto\r
-{\r
-    import com.adobe.utils.IntUtil;   \r
-    import flash.utils.ByteArray;\r
-\r
-    /**\r
-     * Perform MD5 hash of an input stream in chunks. This class is\r
-     * based on com.adobe.crypto.MD5 and can process data in\r
-     * chunks. Both block creation and hash computation are done\r
-     * together for whatever input is available so that the memory\r
-     * overhead at a time is always fixed. Memory usage is governed by\r
-     * two parameters: one is the amount of data passed in to update()\r
-     * and the other is memoryBlockSize. The latter comes into play\r
-     * only when the memory window exceeds the pre allocated memory\r
-     * window of flash player. Usage: create an instance, call\r
-     * update(data) repeatedly for all chunks and finally complete()\r
-     * which will return the md5 hash.\r
-     */      \r
-    public class MD5Stream\r
-    {\r
-        private static var mask:int = 0xFF;\r
-\r
-        private var arr:Array = [];\r
-\r
-        /* running count of length */\r
-        private var arrLen:int;\r
-        \r
-        // initialize the md buffers\r
-        private var a:int = 1732584193;\r
-        private var b:int = -271733879;\r
-        private var c:int = -1732584194;\r
-        private var d:int = 271733878;\r
-        \r
-        // variables to store previous values\r
-        private var aa:int;\r
-        private var bb:int;\r
-        private var cc:int;\r
-        private var dd:int;\r
-\r
-        /* index for data read */\r
-        private var arrIndexLen:int = 0;\r
-        /* index for hash computation */\r
-        private var arrProcessIndex:int = 0;\r
-        /* index for removing stale arr values */\r
-        private var cleanIndex:int = 0;\r
-        \r
-        /** \r
-         * Change this value from the default (16384) in the range of\r
-         * MBs to actually affect GC as GC allocates in pools of\r
-         * memory */\r
-        public var memoryBlockSize:int = 16384;\r
-        \r
-        \r
-        public function MD5Stream()\r
-        {\r
-            \r
-        }\r
-               \r
-        \r
-        /**\r
-         * Pass in chunks of the input data with update(), call\r
-         * complete() with an optional chunk which will return the\r
-         * final hash. Equivalent to the way\r
-         * java.security.MessageDigest works.\r
-         *\r
-         * @param input The optional bytearray chunk which is the final part of the input\r
-         * @return A string containing the hash value\r
-         * @langversion ActionScript 3.0\r
-         * @playerversion Flash 8.5\r
-         * @tiptext\r
-         */\r
-        public function complete(input:ByteArray=null):String\r
-        {\r
-            if ( arr.length == 0 )\r
-            {\r
-                if ( input == null )\r
-                {\r
-                    throw new Error("null input to complete without prior call to update. At least an empty bytearray must be passed.");\r
-                }                              \r
-            }\r
-            \r
-            if ( input != null )\r
-            {\r
-                readIntoArray(input);\r
-            }\r
-\r
-            //pad, append length\r
-            padArray(arrLen);\r
-\r
-            hashRemainingChunks(false);\r
-            \r
-            var res:String = IntUtil.toHex( a ) + IntUtil.toHex( b ) + \r
-                                        IntUtil.toHex( c ) + IntUtil.toHex( d );\r
-            resetFields();\r
-            \r
-            return res;\r
-        }\r
-\r
-        /**\r
-         * Pass in chunks of the input data with update(), call\r
-         * complete() with an optional chunk which will return the\r
-         * final hash. Equivalent to the way\r
-         * java.security.MessageDigest works.\r
-         *\r
-         * @param input The bytearray chunk to perform the hash on\r
-         * @langversion ActionScript 3.0\r
-         * @playerversion Flash 8.5\r
-         * @tiptext\r
-         */        \r
-        public function update(input:ByteArray):void\r
-        {\r
-            readIntoArray(input);\r
-            hashRemainingChunks();\r
-        }\r
-\r
-        /**\r
-         * Re-initialize this instance for use to perform hashing on\r
-         * another input stream. This is called automatically by\r
-         * complete().\r
-         *\r
-         * @langversion ActionScript 3.0\r
-         * @playerversion Flash 8.5\r
-         * @tiptext\r
-         */               \r
-        public function resetFields():void\r
-        {\r
-            //truncate array\r
-            arr.length = 0;\r
-            arrLen = 0;\r
-            \r
-            // initialize the md buffers\r
-            a = 1732584193;\r
-            b = -271733879;\r
-            c = -1732584194;\r
-            d = 271733878;\r
-            \r
-            // variables to store previous values\r
-            aa = 0;\r
-            bb = 0;\r
-            cc = 0;\r
-            dd = 0;\r
-            \r
-            arrIndexLen = 0;            \r
-            arrProcessIndex = 0;\r
-            cleanIndex = 0;\r
-        }\r
-        \r
-        /** read into arr and free up used blocks of arr */\r
-        private function readIntoArray(input:ByteArray):void\r
-        {\r
-            var closestChunkLen:int = input.length * 8;\r
-            arrLen += closestChunkLen;\r
-            \r
-            /* clean up memory. if there are entries in the array that\r
-             * are already processed and the amount is greater than\r
-             * memoryBlockSize, create a new array, copy the last\r
-             * block into it and let the old one get picked up by\r
-             * GC. */\r
-            if ( arrProcessIndex - cleanIndex > memoryBlockSize )\r
-            {\r
-                var newarr:Array= new Array();\r
-                \r
-                /* AS Arrays in sparse arrays. arr[2002] can exist \r
-                 * without values for arr[0] - arr[2001] */\r
-                for ( var j:int = arrProcessIndex; j < arr.length; j++ )\r
-                {                                              \r
-                    newarr[j] = arr[j];\r
-                }\r
-                \r
-                cleanIndex = arrProcessIndex;\r
-                arr = null;\r
-                arr = newarr;\r
-            }\r
-            \r
-            for ( var k:int = 0; k < closestChunkLen; k+=8 )\r
-            {\r
-                //discard high bytes (convert to uint)\r
-                arr[ int(arrIndexLen >> 5) ] |= ( input[ k / 8 ] & mask ) << ( arrIndexLen % 32 );\r
-                arrIndexLen += 8;\r
-            }\r
-            \r
-            \r
-        }\r
-        \r
-        private function hashRemainingChunks(bUpdate:Boolean=true):void\r
-        {\r
-            var len:int = arr.length;\r
-\r
-            /* leave a 16 word block untouched if we are called from\r
-             * update. This is because, padArray() can modify the last\r
-             * block and this modification has to happen before we\r
-             * compute the hash.  */\r
-            if ( bUpdate )\r
-            {\r
-                len -= 16;\r
-            }\r
-\r
-            /* don't do anything if don't have a 16 word block. */\r
-            if ( arrProcessIndex >= len || len - arrProcessIndex < 15 )\r
-            {\r
-                return;\r
-            }\r
-\r
-            \r
-            for ( var i:int = arrProcessIndex; i < len ; i += 16, arrProcessIndex += 16) \r
-            {                  \r
-                // save previous values\r
-                aa = a;\r
-                bb = b;\r
-                cc = c;\r
-                dd = d;                         \r
-                \r
-                // Round 1\r
-                a = ff( a, b, c, d, arr[int(i+ 0)],  7, -680876936 );     // 1\r
-                d = ff( d, a, b, c, arr[int(i+ 1)], 12, -389564586 );     // 2\r
-                c = ff( c, d, a, b, arr[int(i+ 2)], 17, 606105819 );      // 3\r
-                b = ff( b, c, d, a, arr[int(i+ 3)], 22, -1044525330 );    // 4\r
-                a = ff( a, b, c, d, arr[int(i+ 4)],  7, -176418897 );     // 5\r
-                d = ff( d, a, b, c, arr[int(i+ 5)], 12, 1200080426 );     // 6\r
-                c = ff( c, d, a, b, arr[int(i+ 6)], 17, -1473231341 );    // 7\r
-                b = ff( b, c, d, a, arr[int(i+ 7)], 22, -45705983 );      // 8\r
-                a = ff( a, b, c, d, arr[int(i+ 8)],  7, 1770035416 );     // 9\r
-                d = ff( d, a, b, c, arr[int(i+ 9)], 12, -1958414417 );    // 10\r
-                c = ff( c, d, a, b, arr[int(i+10)], 17, -42063 );                 // 11\r
-                b = ff( b, c, d, a, arr[int(i+11)], 22, -1990404162 );    // 12\r
-                a = ff( a, b, c, d, arr[int(i+12)],  7, 1804603682 );     // 13\r
-                d = ff( d, a, b, c, arr[int(i+13)], 12, -40341101 );      // 14\r
-                c = ff( c, d, a, b, arr[int(i+14)], 17, -1502002290 );    // 15\r
-                b = ff( b, c, d, a, arr[int(i+15)], 22, 1236535329 );     // 16\r
-                \r
-                // Round 2\r
-                a = gg( a, b, c, d, arr[int(i+ 1)],  5, -165796510 );     // 17\r
-                d = gg( d, a, b, c, arr[int(i+ 6)],  9, -1069501632 );    // 18\r
-                c = gg( c, d, a, b, arr[int(i+11)], 14, 643717713 );      // 19\r
-                b = gg( b, c, d, a, arr[int(i+ 0)], 20, -373897302 );     // 20\r
-                a = gg( a, b, c, d, arr[int(i+ 5)],  5, -701558691 );     // 21\r
-                d = gg( d, a, b, c, arr[int(i+10)],  9, 38016083 );       // 22\r
-                c = gg( c, d, a, b, arr[int(i+15)], 14, -660478335 );     // 23\r
-                b = gg( b, c, d, a, arr[int(i+ 4)], 20, -405537848 );     // 24\r
-                a = gg( a, b, c, d, arr[int(i+ 9)],  5, 568446438 );      // 25\r
-                d = gg( d, a, b, c, arr[int(i+14)],  9, -1019803690 );    // 26\r
-                c = gg( c, d, a, b, arr[int(i+ 3)], 14, -187363961 );     // 27\r
-                b = gg( b, c, d, a, arr[int(i+ 8)], 20, 1163531501 );     // 28\r
-                a = gg( a, b, c, d, arr[int(i+13)],  5, -1444681467 );    // 29\r
-                d = gg( d, a, b, c, arr[int(i+ 2)],  9, -51403784 );      // 30\r
-                c = gg( c, d, a, b, arr[int(i+ 7)], 14, 1735328473 );     // 31\r
-                b = gg( b, c, d, a, arr[int(i+12)], 20, -1926607734 );    // 32\r
-                \r
-                // Round 3\r
-                a = hh( a, b, c, d, arr[int(i+ 5)],  4, -378558 );        // 33\r
-                d = hh( d, a, b, c, arr[int(i+ 8)], 11, -2022574463 );    // 34\r
-                c = hh( c, d, a, b, arr[int(i+11)], 16, 1839030562 );     // 35\r
-                b = hh( b, c, d, a, arr[int(i+14)], 23, -35309556 );      // 36\r
-                a = hh( a, b, c, d, arr[int(i+ 1)],  4, -1530992060 );    // 37\r
-                d = hh( d, a, b, c, arr[int(i+ 4)], 11, 1272893353 );     // 38\r
-                c = hh( c, d, a, b, arr[int(i+ 7)], 16, -155497632 );     // 39\r
-                b = hh( b, c, d, a, arr[int(i+10)], 23, -1094730640 );    // 40\r
-                a = hh( a, b, c, d, arr[int(i+13)],  4, 681279174 );      // 41\r
-                d = hh( d, a, b, c, arr[int(i+ 0)], 11, -358537222 );     // 42\r
-                c = hh( c, d, a, b, arr[int(i+ 3)], 16, -722521979 );     // 43\r
-                b = hh( b, c, d, a, arr[int(i+ 6)], 23, 76029189 );       // 44\r
-                a = hh( a, b, c, d, arr[int(i+ 9)],  4, -640364487 );     // 45\r
-                d = hh( d, a, b, c, arr[int(i+12)], 11, -421815835 );     // 46\r
-                c = hh( c, d, a, b, arr[int(i+15)], 16, 530742520 );      // 47\r
-                b = hh( b, c, d, a, arr[int(i+ 2)], 23, -995338651 );     // 48\r
-                \r
-                // Round 4\r
-                a = ii( a, b, c, d, arr[int(i+ 0)],  6, -198630844 );     // 49\r
-                d = ii( d, a, b, c, arr[int(i+ 7)], 10, 1126891415 );     // 50\r
-                c = ii( c, d, a, b, arr[int(i+14)], 15, -1416354905 );    // 51\r
-                b = ii( b, c, d, a, arr[int(i+ 5)], 21, -57434055 );      // 52\r
-                a = ii( a, b, c, d, arr[int(i+12)],  6, 1700485571 );     // 53\r
-                d = ii( d, a, b, c, arr[int(i+ 3)], 10, -1894986606 );    // 54\r
-                c = ii( c, d, a, b, arr[int(i+10)], 15, -1051523 );       // 55\r
-                b = ii( b, c, d, a, arr[int(i+ 1)], 21, -2054922799 );    // 56\r
-                a = ii( a, b, c, d, arr[int(i+ 8)],  6, 1873313359 );     // 57\r
-                d = ii( d, a, b, c, arr[int(i+15)], 10, -30611744 );      // 58\r
-                c = ii( c, d, a, b, arr[int(i+ 6)], 15, -1560198380 );    // 59\r
-                b = ii( b, c, d, a, arr[int(i+13)], 21, 1309151649 );     // 60\r
-                a = ii( a, b, c, d, arr[int(i+ 4)],  6, -145523070 );     // 61\r
-                d = ii( d, a, b, c, arr[int(i+11)], 10, -1120210379 );    // 62\r
-                c = ii( c, d, a, b, arr[int(i+ 2)], 15, 718787259 );      // 63\r
-                b = ii( b, c, d, a, arr[int(i+ 9)], 21, -343485551 );     // 64\r
-                \r
-                a += aa;\r
-                b += bb;\r
-                c += cc;\r
-                d += dd;\r
-                \r
-            }\r
-            \r
-        }\r
-        \r
-        private function padArray(len:int):void\r
-        {                      \r
-            arr[ int(len >> 5) ] |= 0x80 << ( len % 32 );\r
-            arr[ int(( ( ( len + 64 ) >>> 9 ) << 4 ) + 14) ] = len;\r
-            arrLen = arr.length;\r
-        }  \r
-        \r
-        /* Code below same as com.adobe.crypto.MD5 */ \r
-        \r
-        /**\r
-         * Auxiliary function f as defined in RFC\r
-         */\r
-        private static function f( x:int, y:int, z:int ):int {\r
-            return ( x & y ) | ( (~x) & z );\r
-        }\r
-        \r
-        /**\r
-         * Auxiliary function g as defined in RFC\r
-         */\r
-        private static function g( x:int, y:int, z:int ):int {\r
-            return ( x & z ) | ( y & (~z) );\r
-        }\r
-        \r
-        /**\r
-         * Auxiliary function h as defined in RFC\r
-         */\r
-        private static function h( x:int, y:int, z:int ):int {\r
-            return x ^ y ^ z;\r
-        }\r
-        \r
-        /**\r
-         * Auxiliary function i as defined in RFC\r
-         */\r
-        private static function i( x:int, y:int, z:int ):int {\r
-            return y ^ ( x | (~z) );\r
-        }\r
-        \r
-        /**\r
-         * A generic transformation function.  The logic of ff, gg, hh, and\r
-         * ii are all the same, minus the function used, so pull that logic\r
-         * out and simplify the method bodies for the transoformation functions.\r
-         */\r
-        private static function transform( func:Function, a:int, b:int, c:int, d:int, x:int, s:int, t:int):int {\r
-            var tmp:int = a + int( func( b, c, d ) ) + x + t;\r
-            return IntUtil.rol( tmp, s ) +  b;\r
-        }\r
-        \r
-        /**\r
-         * ff transformation function\r
-         */\r
-        private static function ff ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {\r
-            return transform( f, a, b, c, d, x, s, t );\r
-        }\r
-        \r
-        /**\r
-         * gg transformation function\r
-         */\r
-        private static function gg ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {\r
-            return transform( g, a, b, c, d, x, s, t );\r
-        }\r
-        \r
-        /**\r
-         * hh transformation function\r
-         */\r
-        private static function hh ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {\r
-            return transform( h, a, b, c, d, x, s, t );\r
-        }\r
-        \r
-        /**\r
-         * ii transformation function\r
-         */\r
-        private static function ii ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {\r
-            return transform( i, a, b, c, d, x, s, t );\r
-        }\r
-        \r
-    }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA1.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA1.as
deleted file mode 100644 (file)
index 952f3c7..0000000
+++ /dev/null
@@ -1,271 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.crypto\r
-{\r
-       import com.adobe.utils.IntUtil;\r
-       import flash.utils.ByteArray;\r
-       import mx.utils.Base64Encoder;\r
-       \r
-       /**\r
-        *  US Secure Hash Algorithm 1 (SHA1)\r
-        *\r
-        *  Implementation based on algorithm description at \r
-        *  http://www.faqs.org/rfcs/rfc3174.html\r
-        */\r
-       public class SHA1\r
-       {\r
-               public static var digest:ByteArray;\r
-               \r
-               /**\r
-                *  Performs the SHA1 hash algorithm on a string.\r
-                *\r
-                *  @param s            The string to hash\r
-                *  @return                     A string containing the hash value of s\r
-                *  @langversion        ActionScript 3.0\r
-                *  @playerversion      9.0\r
-                *  @tiptext\r
-                */\r
-               public static function hash( s:String ):String\r
-               {\r
-                       var blocks:Array = createBlocksFromString( s );\r
-                       var byteArray:ByteArray = hashBlocks( blocks );\r
-                       \r
-                       return IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true );\r
-               }\r
-               \r
-               /**\r
-                *  Performs the SHA1 hash algorithm on a ByteArray.\r
-                *\r
-                *  @param data         The ByteArray data to hash\r
-                *  @return                     A string containing the hash value of data\r
-                *  @langversion        ActionScript 3.0\r
-                *  @playerversion      9.0\r
-                */\r
-               public static function hashBytes( data:ByteArray ):String\r
-               {\r
-                       var blocks:Array = SHA1.createBlocksFromByteArray( data );\r
-                       var byteArray:ByteArray = hashBlocks(blocks);\r
-                       \r
-                       return IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true );\r
-               }\r
-               \r
-               /**\r
-                *  Performs the SHA1 hash algorithm on a string, then does\r
-                *  Base64 encoding on the result.\r
-                *\r
-                *  @param s            The string to hash\r
-                *  @return                     The base64 encoded hash value of s\r
-                *  @langversion        ActionScript 3.0\r
-                *  @playerversion      9.0\r
-                *  @tiptext\r
-                */\r
-               public static function hashToBase64( s:String ):String\r
-               {\r
-                       var blocks:Array = SHA1.createBlocksFromString( s );\r
-                       var byteArray:ByteArray = hashBlocks(blocks);\r
-\r
-                       // ByteArray.toString() returns the contents as a UTF-8 string,\r
-                       // which we can't use because certain byte sequences might trigger\r
-                       // a UTF-8 conversion.  Instead, we convert the bytes to characters\r
-                       // one by one.\r
-                       var charsInByteArray:String = "";\r
-                       byteArray.position = 0;\r
-                       for (var j:int = 0; j < byteArray.length; j++)\r
-                       {\r
-                               var byte:uint = byteArray.readUnsignedByte();\r
-                               charsInByteArray += String.fromCharCode(byte);\r
-                       }\r
-\r
-                       var encoder:Base64Encoder = new Base64Encoder();\r
-                       encoder.encode(charsInByteArray);\r
-                       return encoder.flush();\r
-               }\r
-               \r
-               private static function hashBlocks( blocks:Array ):ByteArray\r
-               {\r
-                       // initialize the h's\r
-                       var h0:int = 0x67452301;\r
-                       var h1:int = 0xefcdab89;\r
-                       var h2:int = 0x98badcfe;\r
-                       var h3:int = 0x10325476;\r
-                       var h4:int = 0xc3d2e1f0;\r
-                       \r
-                       var len:int = blocks.length;\r
-                       var w:Array = new Array( 80 );\r
-                       \r
-                       // loop over all of the blocks\r
-                       for ( var i:int = 0; i < len; i += 16 ) {\r
-                       \r
-                               // 6.1.c\r
-                               var a:int = h0;\r
-                               var b:int = h1;\r
-                               var c:int = h2;\r
-                               var d:int = h3;\r
-                               var e:int = h4;\r
-                               \r
-                               // 80 steps to process each block\r
-                               // TODO: unroll for faster execution, or 4 loops of\r
-                               // 20 each to avoid the k and f function calls\r
-                               for ( var t:int = 0; t < 80; t++ ) {\r
-                                       \r
-                                       if ( t < 16 ) {\r
-                                               // 6.1.a\r
-                                               w[ t ] = blocks[ i + t ];\r
-                                       } else {\r
-                                               // 6.1.b\r
-                                               w[ t ] = IntUtil.rol( w[ t - 3 ] ^ w[ t - 8 ] ^ w[ t - 14 ] ^ w[ t - 16 ], 1 );\r
-                                       }\r
-                                       \r
-                                       // 6.1.d\r
-                                       var temp:int = IntUtil.rol( a, 5 ) + f( t, b, c, d ) + e + int( w[ t ] ) + k( t );\r
-                                       \r
-                                       e = d;\r
-                                       d = c;\r
-                                       c = IntUtil.rol( b, 30 );\r
-                                       b = a;\r
-                                       a = temp;\r
-                               }\r
-                               \r
-                               // 6.1.e\r
-                               h0 += a;\r
-                               h1 += b;\r
-                               h2 += c;\r
-                               h3 += d;\r
-                               h4 += e;                \r
-                       }\r
-                       \r
-                       var byteArray:ByteArray = new ByteArray();\r
-                       byteArray.writeInt(h0);\r
-                       byteArray.writeInt(h1);\r
-                       byteArray.writeInt(h2);\r
-                       byteArray.writeInt(h3);\r
-                       byteArray.writeInt(h4);\r
-                       byteArray.position = 0;\r
-                       \r
-                       digest = new ByteArray();\r
-                       digest.writeBytes(byteArray);\r
-                       digest.position = 0;\r
-                       return byteArray;\r
-               }\r
-\r
-               /**\r
-                *  Performs the logical function based on t\r
-                */\r
-               private static function f( t:int, b:int, c:int, d:int ):int {\r
-                       if ( t < 20 ) {\r
-                               return ( b & c ) | ( ~b & d );\r
-                       } else if ( t < 40 ) {\r
-                               return b ^ c ^ d;\r
-                       } else if ( t < 60 ) {\r
-                               return ( b & c ) | ( b & d ) | ( c & d );\r
-                       }\r
-                       return b ^ c ^ d;\r
-               }\r
-               \r
-               /**\r
-                *  Determines the constant value based on t\r
-                */\r
-               private static function k( t:int ):int {\r
-                       if ( t < 20 ) {\r
-                               return 0x5a827999;\r
-                       } else if ( t < 40 ) {\r
-                               return 0x6ed9eba1;\r
-                       } else if ( t < 60 ) {\r
-                               return 0x8f1bbcdc;\r
-                       }\r
-                       return 0xca62c1d6;\r
-               }\r
-                                       \r
-               /**\r
-                *  Converts a ByteArray to a sequence of 16-word blocks\r
-                *  that we'll do the processing on.  Appends padding\r
-                *  and length in the process.\r
-                *\r
-                *  @param data         The data to split into blocks\r
-                *  @return                     An array containing the blocks into which data was split\r
-                */\r
-               private static function createBlocksFromByteArray( data:ByteArray ):Array\r
-               {\r
-                       var oldPosition:int = data.position;\r
-                       data.position = 0;\r
-                       \r
-                       var blocks:Array = new Array();\r
-                       var len:int = data.length * 8;\r
-                       var mask:int = 0xFF; // ignore hi byte of characters > 0xFF\r
-                       for( var i:int = 0; i < len; i += 8 )\r
-                       {\r
-                               blocks[ i >> 5 ] |= ( data.readByte() & mask ) << ( 24 - i % 32 );\r
-                       }\r
-                       \r
-                       // append padding and length\r
-                       blocks[ len >> 5 ] |= 0x80 << ( 24 - len % 32 );\r
-                       blocks[ ( ( ( len + 64 ) >> 9 ) << 4 ) + 15 ] = len;\r
-                       \r
-                       data.position = oldPosition;\r
-                       \r
-                       return blocks;\r
-               }\r
-                                       \r
-               /**\r
-                *  Converts a string to a sequence of 16-word blocks\r
-                *  that we'll do the processing on.  Appends padding\r
-                *  and length in the process.\r
-                *\r
-                *  @param s    The string to split into blocks\r
-                *  @return             An array containing the blocks that s was split into.\r
-                */\r
-               private static function createBlocksFromString( s:String ):Array\r
-               {\r
-                       var blocks:Array = new Array();\r
-                       var len:int = s.length * 8;\r
-                       var mask:int = 0xFF; // ignore hi byte of characters > 0xFF\r
-                       for( var i:int = 0; i < len; i += 8 ) {\r
-                               blocks[ i >> 5 ] |= ( s.charCodeAt( i / 8 ) & mask ) << ( 24 - i % 32 );\r
-                       }\r
-                       \r
-                       // append padding and length\r
-                       blocks[ len >> 5 ] |= 0x80 << ( 24 - len % 32 );\r
-                       blocks[ ( ( ( len + 64 ) >> 9 ) << 4 ) + 15 ] = len;\r
-                       return blocks;\r
-               }\r
-               \r
-       }\r
-}\r
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA224.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA224.as
deleted file mode 100644 (file)
index ee15453..0000000
+++ /dev/null
@@ -1,257 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package com.adobe.crypto
-{
-       import com.adobe.utils.IntUtil;
-       import flash.utils.ByteArray;
-       import mx.utils.Base64Encoder;
-       
-       /**
-        * The SHA-224 algorithm
-        * 
-        * @see http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf
-        */
-       public class SHA224
-       {
-               public static var digest:ByteArray;
-               
-               /**
-                *  Performs the SHA224 hash algorithm on a string.
-                *
-                *  @param s            The string to hash
-                *  @return                     A string containing the hash value of s
-                *  @langversion        ActionScript 3.0
-                *  @playerversion      9.0
-                *  @tiptext
-                */
-               public static function hash( s:String ):String {
-                       var blocks:Array = createBlocksFromString( s );
-                       var byteArray:ByteArray = hashBlocks( blocks );
-                       return IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true );
-               }
-               
-               /**
-                *  Performs the SHA224 hash algorithm on a ByteArray.
-                *
-                *  @param data         The ByteArray data to hash
-                *  @return                     A string containing the hash value of data
-                *  @langversion        ActionScript 3.0
-                *  @playerversion      9.0
-                */
-               public static function hashBytes( data:ByteArray ):String
-               {
-                       var blocks:Array = createBlocksFromByteArray( data );
-                       var byteArray:ByteArray = hashBlocks(blocks);
-                       return IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true );
-               }
-               
-               /**
-                *  Performs the SHA224 hash algorithm on a string, then does
-                *  Base64 encoding on the result.
-                *
-                *  @param s            The string to hash
-                *  @return                     The base64 encoded hash value of s
-                *  @langversion        ActionScript 3.0
-                *  @playerversion      9.0
-                *  @tiptext
-                */
-               public static function hashToBase64( s:String ):String
-               {
-                       var blocks:Array = createBlocksFromString( s );
-                       var byteArray:ByteArray = hashBlocks(blocks);
-
-                       // ByteArray.toString() returns the contents as a UTF-8 string,
-                       // which we can't use because certain byte sequences might trigger
-                       // a UTF-8 conversion.  Instead, we convert the bytes to characters
-                       // one by one.
-                       var charsInByteArray:String = "";
-                       byteArray.position = 0;
-                       for (var j:int = 0; j < byteArray.length; j++)
-                       {
-                               var byte:uint = byteArray.readUnsignedByte();
-                               charsInByteArray += String.fromCharCode(byte);
-                       }
-
-                       var encoder:Base64Encoder = new Base64Encoder();
-                       encoder.encode(charsInByteArray);
-                       return encoder.flush();
-               }
-               
-               private static function hashBlocks( blocks:Array ):ByteArray {
-                       var h0:int = 0xc1059ed8;
-                       var h1:int = 0x367cd507;
-                       var h2:int = 0x3070dd17;
-                       var h3:int = 0xf70e5939;
-                       var h4:int = 0xffc00b31;
-                       var h5:int = 0x68581511;
-                       var h6:int = 0x64f98fa7;
-                       var h7:int = 0xbefa4fa4;
-                       
-                       var k:Array = new Array(0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2);
-                       
-                       var len:int = blocks.length;
-                       var w:Array = new Array();
-                       
-                       // loop over all of the blocks
-                       for ( var i:int = 0; i < len; i += 16 ) {
-                               
-                               var a:int = h0;
-                               var b:int = h1;
-                               var c:int = h2;
-                               var d:int = h3;
-                               var e:int = h4;
-                               var f:int = h5;
-                               var g:int = h6;
-                               var h:int = h7;
-                               
-                               for(var t:int = 0; t < 64; t++) {
-                                       
-                                       if ( t < 16 ) {
-                                               w[t] = blocks[ i + t ];
-                                               if(isNaN(w[t])) { w[t] = 0; }
-                                       } else {
-                                               var ws0:int = IntUtil.ror(w[t-15], 7) ^ IntUtil.ror(w[t-15], 18) ^ (w[t-15] >>> 3);
-                                               var ws1:int = IntUtil.ror(w[t-2], 17) ^ IntUtil.ror(w[t-2], 19) ^ (w[t-2] >>> 10);
-                                               w[t] = w[t-16] + ws0 + w[t-7] + ws1;
-                                       }
-                                       
-                                       var s0:int = IntUtil.ror(a, 2) ^ IntUtil.ror(a, 13) ^ IntUtil.ror(a, 22);
-                                       var maj:int = (a & b) ^ (a & c) ^ (b & c);
-                                       var t2:int = s0 + maj;
-                                       var s1:int = IntUtil.ror(e, 6) ^ IntUtil.ror(e, 11) ^ IntUtil.ror(e, 25);
-                                       var ch:int = (e & f) ^ ((~e) & g);
-                                       var t1:int = h + s1 + ch + k[t] + w[t];
-                                       
-                                       h = g;
-                                       g = f;
-                                       f = e;
-                                       e = d + t1;
-                                       d = c;
-                                       c = b;
-                                       b = a;
-                                       a = t1 + t2;
-                               }
-                                       
-                               //Add this chunk's hash to result so far:
-                               h0 += a;
-                               h1 += b;
-                               h2 += c;
-                               h3 += d;
-                               h4 += e;
-                               h5 += f;
-                               h6 += g;
-                               h7 += h;
-                       }
-                       
-                       var byteArray:ByteArray = new ByteArray();
-                       byteArray.writeInt(h0);
-                       byteArray.writeInt(h1);
-                       byteArray.writeInt(h2);
-                       byteArray.writeInt(h3);
-                       byteArray.writeInt(h4);
-                       byteArray.writeInt(h5);
-                       byteArray.writeInt(h6);
-                       byteArray.position = 0;
-                       
-                       digest = new ByteArray();
-                       digest.writeBytes(byteArray);
-                       digest.position = 0;
-                       return byteArray;
-               }
-               
-               /**
-                *  Converts a ByteArray to a sequence of 16-word blocks
-                *  that we'll do the processing on.  Appends padding
-                *  and length in the process.
-                *
-                *  @param data         The data to split into blocks
-                *  @return                     An array containing the blocks into which data was split
-                */
-               private static function createBlocksFromByteArray( data:ByteArray ):Array
-               {
-                       var oldPosition:int = data.position;
-                       data.position = 0;
-                       
-                       var blocks:Array = new Array();
-                       var len:int = data.length * 8;
-                       var mask:int = 0xFF; // ignore hi byte of characters > 0xFF
-                       for( var i:int = 0; i < len; i += 8 )
-                       {
-                               blocks[ i >> 5 ] |= ( data.readByte() & mask ) << ( 24 - i % 32 );
-                       }
-                       
-                       // append padding and length
-                       blocks[ len >> 5 ] |= 0x80 << ( 24 - len % 32 );
-                       blocks[ ( ( ( len + 64 ) >> 9 ) << 4 ) + 15 ] = len;
-                       
-                       data.position = oldPosition;
-                       
-                       return blocks;
-               }
-                                       
-               /**
-                *  Converts a string to a sequence of 16-word blocks
-                *  that we'll do the processing on.  Appends padding
-                *  and length in the process.
-                *
-                *  @param s    The string to split into blocks
-                *  @return             An array containing the blocks that s was split into.
-                */
-               private static function createBlocksFromString( s:String ):Array
-               {
-                       var blocks:Array = new Array();
-                       var len:int = s.length * 8;
-                       var mask:int = 0xFF; // ignore hi byte of characters > 0xFF
-                       for( var i:int = 0; i < len; i += 8 ) {
-                               blocks[ i >> 5 ] |= ( s.charCodeAt( i / 8 ) & mask ) << ( 24 - i % 32 );
-                       }
-                       
-                       // append padding and length
-                       blocks[ len >> 5 ] |= 0x80 << ( 24 - len % 32 );
-                       blocks[ ( ( ( len + 64 ) >> 9 ) << 4 ) + 15 ] = len;
-                       return blocks;
-               }
-       }
-}
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA256.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA256.as
deleted file mode 100644 (file)
index 09a2ba2..0000000
+++ /dev/null
@@ -1,261 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package com.adobe.crypto
-{
-       import com.adobe.utils.IntUtil;
-       import flash.utils.ByteArray;
-       import mx.utils.Base64Encoder;
-       
-       /**
-        * The SHA-256 algorithm
-        * 
-        * @see http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf
-        */
-       public class SHA256
-       {
-               public static var digest:ByteArray;
-               /**
-                *  Performs the SHA256 hash algorithm on a string.
-                *
-                *  @param s            The string to hash
-                *  @return                     A string containing the hash value of s
-                *  @langversion        ActionScript 3.0
-                *  @playerversion      9.0
-                *  @tiptext
-                */
-               public static function hash( s:String ):String {
-                       var blocks:Array = createBlocksFromString( s );
-                       var byteArray:ByteArray = hashBlocks( blocks );
-                       
-                       return IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true );
-               }
-               
-               /**
-                *  Performs the SHA256 hash algorithm on a ByteArray.
-                *
-                *  @param data         The ByteArray data to hash
-                *  @return                     A string containing the hash value of data
-                *  @langversion        ActionScript 3.0
-                *  @playerversion      9.0
-                */
-               public static function hashBytes( data:ByteArray ):String
-               {
-                       var blocks:Array = createBlocksFromByteArray( data );
-                       var byteArray:ByteArray = hashBlocks(blocks);
-                       
-                       return IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true );
-               }
-               
-               /**
-                *  Performs the SHA256 hash algorithm on a string, then does
-                *  Base64 encoding on the result.
-                *
-                *  @param s            The string to hash
-                *  @return                     The base64 encoded hash value of s
-                *  @langversion        ActionScript 3.0
-                *  @playerversion      9.0
-                *  @tiptext
-                */
-               public static function hashToBase64( s:String ):String
-               {
-                       var blocks:Array = createBlocksFromString( s );
-                       var byteArray:ByteArray = hashBlocks(blocks);
-
-                       // ByteArray.toString() returns the contents as a UTF-8 string,
-                       // which we can't use because certain byte sequences might trigger
-                       // a UTF-8 conversion.  Instead, we convert the bytes to characters
-                       // one by one.
-                       var charsInByteArray:String = "";
-                       byteArray.position = 0;
-                       for (var j:int = 0; j < byteArray.length; j++)
-                       {
-                               var byte:uint = byteArray.readUnsignedByte();
-                               charsInByteArray += String.fromCharCode(byte);
-                       }
-
-                       var encoder:Base64Encoder = new Base64Encoder();
-                       encoder.encode(charsInByteArray);
-                       return encoder.flush();
-               }
-               
-               private static function hashBlocks( blocks:Array ):ByteArray {
-                       var h0:int = 0x6a09e667;
-                       var h1:int = 0xbb67ae85;
-                       var h2:int = 0x3c6ef372;
-                       var h3:int = 0xa54ff53a;
-                       var h4:int = 0x510e527f;
-                       var h5:int = 0x9b05688c;
-                       var h6:int = 0x1f83d9ab;
-                       var h7:int = 0x5be0cd19;
-                       
-                       var k:Array = new Array(0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2);
-                       
-                       var len:int = blocks.length;
-                       var w:Array = new Array( 64 );
-                       
-                       // loop over all of the blocks
-                       for ( var i:int = 0; i < len; i += 16 ) {
-                               
-                               var a:int = h0;
-                               var b:int = h1;
-                               var c:int = h2;
-                               var d:int = h3;
-                               var e:int = h4;
-                               var f:int = h5;
-                               var g:int = h6;
-                               var h:int = h7;
-                               
-                               for(var t:int = 0; t < 64; t++) {
-                                       
-                                       if ( t < 16 ) {
-                                               w[t] = blocks[ i + t ];
-                                               if(isNaN(w[t])) { w[t] = 0; }
-                                       } else {
-                                               var ws0:int = IntUtil.ror(w[t-15], 7) ^ IntUtil.ror(w[t-15], 18) ^ (w[t-15] >>> 3);
-                                               var ws1:int = IntUtil.ror(w[t-2], 17) ^ IntUtil.ror(w[t-2], 19) ^ (w[t-2] >>> 10);
-                                               w[t] = w[t-16] + ws0 + w[t-7] + ws1;
-                                       }
-                                       
-                                       var s0:int = IntUtil.ror(a, 2) ^ IntUtil.ror(a, 13) ^ IntUtil.ror(a, 22);
-                                       var maj:int = (a & b) ^ (a & c) ^ (b & c);
-                                       var t2:int = s0 + maj;
-                                       var s1:int = IntUtil.ror(e, 6) ^ IntUtil.ror(e, 11) ^ IntUtil.ror(e, 25);
-                                       var ch:int = (e & f) ^ ((~e) & g);
-                                       var t1:int = h + s1 + ch + k[t] + w[t];
-                                       
-                                       h = g;
-                                       g = f;
-                                       f = e;
-                                       e = d + t1;
-                                       d = c;
-                                       c = b;
-                                       b = a;
-                                       a = t1 + t2;
-                               }
-                                       
-                               //Add this chunk's hash to result so far:
-                               h0 += a;
-                               h1 += b;
-                               h2 += c;
-                               h3 += d;
-                               h4 += e;
-                               h5 += f;
-                               h6 += g;
-                               h7 += h;
-                       }
-                       
-                       var byteArray:ByteArray = new ByteArray();
-                       byteArray.writeInt(h0);
-                       byteArray.writeInt(h1);
-                       byteArray.writeInt(h2);
-                       byteArray.writeInt(h3);
-                       byteArray.writeInt(h4);
-                       byteArray.writeInt(h5);
-                       byteArray.writeInt(h6);
-                       byteArray.writeInt(h7);
-                       byteArray.position = 0;
-                       
-                       digest = new ByteArray();
-                       digest.writeBytes(byteArray);
-                       digest.position = 0;
-                       return byteArray;
-               }
-               
-               /**
-                *  Converts a ByteArray to a sequence of 16-word blocks
-                *  that we'll do the processing on.  Appends padding
-                *  and length in the process.
-                *
-                *  @param data         The data to split into blocks
-                *  @return                     An array containing the blocks into which data was split
-                */
-               private static function createBlocksFromByteArray( data:ByteArray ):Array
-               {
-                       var oldPosition:int = data.position;
-                       data.position = 0;
-                       
-                       var blocks:Array = new Array();
-                       var len:int = data.length * 8;
-                       var mask:int = 0xFF; // ignore hi byte of characters > 0xFF
-                       for( var i:int = 0; i < len; i += 8 )
-                       {
-                               blocks[ i >> 5 ] |= ( data.readByte() & mask ) << ( 24 - i % 32 );
-                       }
-                       
-                       // append padding and length
-                       blocks[ len >> 5 ] |= 0x80 << ( 24 - len % 32 );
-                       blocks[ ( ( ( len + 64 ) >> 9 ) << 4 ) + 15 ] = len;
-                       
-                       data.position = oldPosition;
-                       
-                       return blocks;
-               }
-                                       
-               /**
-                *  Converts a string to a sequence of 16-word blocks
-                *  that we'll do the processing on.  Appends padding
-                *  and length in the process.
-                *
-                *  @param s    The string to split into blocks
-                *  @return             An array containing the blocks that s was split into.
-                */
-               private static function createBlocksFromString( s:String ):Array
-               {
-                       var blocks:Array = new Array();
-                       var len:int = s.length * 8;
-                       var mask:int = 0xFF; // ignore hi byte of characters > 0xFF
-                       for( var i:int = 0; i < len; i += 8 ) {
-                               blocks[ i >> 5 ] |= ( s.charCodeAt( i / 8 ) & mask ) << ( 24 - i % 32 );
-                       }
-                       
-                       // append padding and length
-                       blocks[ len >> 5 ] |= 0x80 << ( 24 - len % 32 );
-                       blocks[ ( ( ( len + 64 ) >> 9 ) << 4 ) + 15 ] = len;
-                       return blocks;
-               }
-       }
-}
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/WSSEUsernameToken.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/WSSEUsernameToken.as
deleted file mode 100644 (file)
index 92bbba6..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.crypto\r
-{\r
-       import mx.formatters.DateFormatter;\r
-       import mx.utils.Base64Encoder;\r
-       \r
-       /**\r
-        * Web Services Security Username Token\r
-        *\r
-        * Implementation based on algorithm description at \r
-        * http://www.oasis-open.org/committees/wss/documents/WSS-Username-02-0223-merged.pdf\r
-        */\r
-       public class WSSEUsernameToken\r
-       {\r
-               /**\r
-                * Generates a WSSE Username Token.\r
-                *\r
-                * @param username The username\r
-                * @param password The password\r
-                * @param nonce A cryptographically random nonce (if null, the nonce\r
-                * will be generated)\r
-                * @param timestamp The time at which the token is generated (if null,\r
-                * the time will be set to the moment of execution)\r
-                * @return The generated token\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public static function getUsernameToken(username:String, password:String, nonce:String=null, timestamp:Date=null):String\r
-               {\r
-                       if (nonce == null)\r
-                       {\r
-                               nonce = generateNonce();\r
-                       }\r
-                       nonce = base64Encode(nonce);\r
-               \r
-                       var created:String = generateTimestamp(timestamp);\r
-               \r
-                       var password64:String = getBase64Digest(nonce,\r
-                               created,\r
-                               password);\r
-               \r
-                       var token:String = new String("UsernameToken Username=\"");\r
-                       token += username + "\", " +\r
-                                        "PasswordDigest=\"" + password64 + "\", " +\r
-                                        "Nonce=\"" + nonce + "\", " +\r
-                                        "Created=\"" + created + "\"";\r
-                       return token;\r
-               }\r
-               \r
-               private static function generateNonce():String\r
-               {\r
-                       // Math.random returns a Number between 0 and 1.  We don't want our\r
-                       // nonce to contain invalid characters (e.g. the period) so we\r
-                       // strip them out before returning the result.\r
-                       var s:String =  Math.random().toString();\r
-                       return s.replace(".", "");\r
-               }\r
-               \r
-               internal static function base64Encode(s:String):String\r
-               {\r
-                       var encoder:Base64Encoder = new Base64Encoder();\r
-                       encoder.encode(s);\r
-                       return encoder.flush();\r
-               }\r
-               \r
-               internal static function generateTimestamp(timestamp:Date):String\r
-               {\r
-                       if (timestamp == null)\r
-                       {\r
-                               timestamp = new Date();\r
-                       }\r
-                       var dateFormatter:DateFormatter = new DateFormatter();\r
-                       dateFormatter.formatString = "YYYY-MM-DDTJJ:NN:SS"\r
-                       return dateFormatter.format(timestamp) + "Z";\r
-               }\r
-               \r
-               internal static function getBase64Digest(nonce:String, created:String, password:String):String\r
-               {\r
-                       return SHA1.hashToBase64(nonce + created + password);\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/IllegalStateError.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/IllegalStateError.as
deleted file mode 100644 (file)
index fa16191..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.errors\r
-{\r
-       /**\r
-       * This class represents an Error that is thrown when a method is called when\r
-       * the receiving instance is in an invalid state.\r
-       *\r
-       * For example, this may occur if a method has been called, and other properties\r
-       * in the instance have not been initialized properly.\r
-       *\r
-       * @langversion ActionScript 3.0\r
-       * @playerversion Flash 9.0\r
-       * @tiptext\r
-       *\r
-       */\r
-       public class IllegalStateError extends Error\r
-       {\r
-               /**\r
-               *       Constructor\r
-               *\r
-               *       @param message A message describing the error in detail.\r
-               *\r
-               *       @langversion ActionScript 3.0\r
-               *       @playerversion Flash 9.0\r
-               *       @tiptext\r
-               */\r
-               public function IllegalStateError(message:String)\r
-               {\r
-                       super(message);\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Address.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Address.as
deleted file mode 100644 (file)
index a368ffb..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-package com.adobe.fileformats.vcard
-{
-       public class Address
-       {
-               public var type:String;
-               public var street:String;
-               public var city:String;
-               public var state:String;
-               public var postalCode:String;
-               
-               public function toString():String
-               {
-                       return (street + " " + city + ", " + state + " " + postalCode);
-               }
-       }
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Email.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Email.as
deleted file mode 100644 (file)
index 071c39e..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-package com.adobe.fileformats.vcard
-{
-       public class Email
-       {
-               public var type:String;
-               public var address:String;
-       }
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Phone.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Phone.as
deleted file mode 100644 (file)
index 27f98e4..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-package com.adobe.fileformats.vcard
-{
-       public class Phone
-       {
-               public var type:String;
-               public var number:String;
-       }
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/VCard.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/VCard.as
deleted file mode 100644 (file)
index d6bc283..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-package com.adobe.fileformats.vcard
-{
-       import flash.utils.ByteArray;
-
-       public class VCard
-       {
-               public var fullName:String;
-               public var orgs:Array;
-               public var title:String;
-               public var image:ByteArray;
-               public var phones:Array;
-               public var emails:Array;
-               public var addresses:Array;
-               
-               public function VCard()
-               {
-                       orgs = new Array();
-                       phones = new Array();
-                       emails = new Array();
-                       addresses = new Array();
-               }
-       }
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/VCardParser.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/VCardParser.as
deleted file mode 100644 (file)
index 45c954a..0000000
+++ /dev/null
@@ -1,246 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-package com.adobe.fileformats.vcard
-{
-       import mx.utils.Base64Decoder;
-       import mx.utils.StringUtil;
-       
-       public class VCardParser
-       {
-               public static function parse(vcardStr:String):Array
-               {
-                       var vcards:Array = new Array();
-                       var lines:Array = vcardStr.split(/\r\n/);
-                       var vcard:VCard;
-                       var type:String;
-                       var typeTmp:String;
-                       var line:String;
-
-                       for (var i:uint = 0; i < lines.length; ++i)
-                       {
-                               line = lines[i];
-                               if (line == "BEGIN:VCARD")
-                               {
-                                       vcard = new VCard();
-                               }
-                               else if (line == "END:VCARD")
-                               {
-                                       if (vcard != null)
-                                       {
-                                               vcards.push(vcard);
-                                       }
-                               }
-                               else if(line.search(/^ORG/i) != -1)
-                               {
-                                       var org:String = line.substring(4, line.length);
-                                       var orgArray:Array = org.split(";");
-                                       for each (var orgToken:String in orgArray)
-                                       {
-                                               if (StringUtil.trim(orgToken).length > 0)
-                                               {
-                                                       vcard.orgs.push(orgToken);
-                                               }
-                                       }
-                               }
-                               else if(line.search(/^TITLE/i) != -1)
-                               {
-                                       var title:String = line.substring(6, line.length);
-                                       vcard.title = title;
-                               }
-                               else if (line.search(/^FN:/i) != -1)
-                               {
-                                       var fullName:String = line.substring(3, line.length);
-                                       vcard.fullName = fullName;
-                               }
-                               else if (line.search(/^TEL/i) != -1)
-                               {
-                                       type = new String();
-                                       typeTmp = new String();
-                                       var phone:Phone = new Phone();
-                                       var number:String;
-                                       var phoneTokens:Array = line.split(";");
-                                       for each (var phoneToken:String in phoneTokens)
-                                       {
-                                               if (phoneToken.search(/^TYPE=/i) != -1)
-                                               {
-                                                       if (phoneToken.indexOf(":") != -1)
-                                                       {
-                                                               typeTmp = phoneToken.substring(5, phoneToken.indexOf(":"));
-                                                               number = phoneToken.substring(phoneToken.indexOf(":")+1, phoneToken.length);
-                                                       }
-                                                       else
-                                                       {                                                                       
-                                                               typeTmp = phoneToken.substring(5, phoneToken.length);
-                                                       }
-
-                                                       typeTmp = typeTmp.toLocaleLowerCase();
-
-                                                       if (typeTmp == "pref")
-                                                       {
-                                                               continue;
-                                                       }
-                                                       if (type.length != 0)
-                                                       {
-                                                               type += (" ");
-                                                       }
-                                                       type += typeTmp;
-                                               }
-                                       }
-                                       if (type.length > 0 && number != null)
-                                       {
-                                               phone.type = type;
-                                               phone.number = number;
-                                       }
-                                       vcard.phones.push(phone);
-                               }
-                               else if (line.search(/^EMAIL/i) != -1)
-                               {
-                                       type = new String();
-                                       typeTmp = new String();
-                                       var email:Email = new Email();
-                                       var emailAddress:String;
-                                       var emailTokens:Array = line.split(";");
-                                       for each (var emailToken:String in emailTokens)
-                                       {
-                                               if (emailToken.search(/^TYPE=/i) != -1)
-                                               {
-                                                       if (emailToken.indexOf(":") != -1)
-                                                       {
-                                                               typeTmp = emailToken.substring(5, emailToken.indexOf(":"));
-                                                               emailAddress = emailToken.substring(emailToken.indexOf(":")+1, emailToken.length);
-                                                       }
-                                                       else
-                                                       {                                                                       
-                                                               typeTmp = emailToken.substring(5, emailToken.length);
-                                                       }
-
-                                                       typeTmp = typeTmp.toLocaleLowerCase();
-
-                                                       if (typeTmp == "pref" || typeTmp == "internet")
-                                                       {
-                                                               continue;
-                                                       }
-                                                       if (type.length != 0)
-                                                       {
-                                                               type += (" ");
-                                                       }
-                                                       type += typeTmp;
-                                               }
-                                       }
-                                       if (type.length > 0 && emailAddress != null)
-                                       {
-                                               email.type = type;
-                                               email.address = emailAddress;
-                                       }
-                                       vcard.emails.push(email);
-                               }
-                               else if (line.indexOf("ADR;") != -1)
-                               {
-                                       var addressTokens:Array = line.split(";");
-                                       var address:Address = new Address();
-                                       for (var j:uint = 0; j < addressTokens.length; ++j)
-                                       {
-                                               var addressToken:String = addressTokens[j];
-                                               if (addressToken.search(/^home:+$/i) != -1) // For Outlook, which uses non-standard vCards.
-                                               {
-                                                       address.type = "home";
-                                               }
-                                               else if (addressToken.search(/^work:+$/i) != -1) // For Outlook, which uses non-standard vCards.
-                                               {
-                                                       address.type = "work";
-                                               }
-                                               if (addressToken.search(/^type=/i) != -1)  // The "type" parameter is the standard way (which Address Book uses)
-                                               {
-                                                       // First, remove the optional ":" character.
-                                                       addressToken = addressToken.replace(/:/,"");
-                                                       var addressType:String = addressToken.substring(5, addressToken.length).toLowerCase();
-                                                       if (addressType == "pref") // Not interested in which one is preferred.
-                                                       {
-                                                               continue;
-                                                       }
-                                                       else if (addressType.indexOf("home") != -1) // home
-                                                       {
-                                                               addressType = "home";
-                                                       }
-                                                       else if (addressType.indexOf("work") != -1) // work
-                                                       {
-                                                               addressType = "work";
-                                                       }
-                                                       else if (addressType.indexOf(",") != -1) // if the comma technique is used, just use the first one
-                                                       {
-                                                               var typeTokens:Array = addressType.split(",");
-                                                               for each (var typeToken:String in typeTokens)
-                                                               {
-                                                                       if (typeToken != "pref")
-                                                                       {
-                                                                               addressType = typeToken;
-                                                                               break;
-                                                                       }
-                                                               }
-                                                       }
-                                                       address.type = addressType;
-                                               }
-                                               else if (addressToken.search(/^\d/) != -1 && address.street == null)
-                                               {
-                                                       address.street = addressToken.replace(/\\n/, "");
-                                                       address.city = addressTokens[j+1];
-                                                       address.state = addressTokens[j+2];
-                                                       address.postalCode = addressTokens[j+3];
-                                               }
-                                       }
-                                       if (address.type != null && address.street != null)
-                                       {
-                                               vcard.addresses.push(address);
-                                       }
-
-                               }
-                               else if (line.search(/^PHOTO;BASE64/i) != -1)
-                               {
-                                       var imageStr:String = new String();
-                                       for (var k:uint = i+1; k < lines.length; ++k)
-                                       {
-                                               imageStr += lines[k];
-                                               //if (lines[k].search(/.+\=$/) != -1) // Very slow in Mac due to RegEx bug
-                                               if (lines[k].indexOf('=') != -1)
-                                               {
-                                                       var decoder:Base64Decoder = new Base64Decoder();
-                                                       decoder.decode(imageStr);
-                                                       vcard.image = decoder.flush();
-                                                       break;
-                                               }
-                                       }
-                               }
-                       }
-                       return vcards;
-               }
-       }
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/BitString.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/BitString.as
deleted file mode 100644 (file)
index b5c2b84..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-package com.adobe.images\r
-{\r
-       public class BitString\r
-       {\r
-               public var len:int = 0;\r
-               public var val:int = 0;\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/JPGEncoder.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/JPGEncoder.as
deleted file mode 100644 (file)
index 100d7e9..0000000
+++ /dev/null
@@ -1,648 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-package com.adobe.images\r
-{\r
-       import flash.geom.*;\r
-       import flash.display.*;\r
-       import flash.utils.*;\r
-       \r
-       /**\r
-        * Class that converts BitmapData into a valid JPEG\r
-        */             \r
-       public class JPGEncoder\r
-       {\r
-\r
-               // Static table initialization\r
-       \r
-               private var ZigZag:Array = [\r
-                        0, 1, 5, 6,14,15,27,28,\r
-                        2, 4, 7,13,16,26,29,42,\r
-                        3, 8,12,17,25,30,41,43,\r
-                        9,11,18,24,31,40,44,53,\r
-                       10,19,23,32,39,45,52,54,\r
-                       20,22,33,38,46,51,55,60,\r
-                       21,34,37,47,50,56,59,61,\r
-                       35,36,48,49,57,58,62,63\r
-               ];\r
-       \r
-               private var YTable:Array = new Array(64);\r
-               private var UVTable:Array = new Array(64);\r
-               private var fdtbl_Y:Array = new Array(64);\r
-               private var fdtbl_UV:Array = new Array(64);\r
-       \r
-               private function initQuantTables(sf:int):void\r
-               {\r
-                       var i:int;\r
-                       var t:Number;\r
-                       var YQT:Array = [\r
-                               16, 11, 10, 16, 24, 40, 51, 61,\r
-                               12, 12, 14, 19, 26, 58, 60, 55,\r
-                               14, 13, 16, 24, 40, 57, 69, 56,\r
-                               14, 17, 22, 29, 51, 87, 80, 62,\r
-                               18, 22, 37, 56, 68,109,103, 77,\r
-                               24, 35, 55, 64, 81,104,113, 92,\r
-                               49, 64, 78, 87,103,121,120,101,\r
-                               72, 92, 95, 98,112,100,103, 99\r
-                       ];\r
-                       for (i = 0; i < 64; i++) {\r
-                               t = Math.floor((YQT[i]*sf+50)/100);\r
-                               if (t < 1) {\r
-                                       t = 1;\r
-                               } else if (t > 255) {\r
-                                       t = 255;\r
-                               }\r
-                               YTable[ZigZag[i]] = t;\r
-                       }\r
-                       var UVQT:Array = [\r
-                               17, 18, 24, 47, 99, 99, 99, 99,\r
-                               18, 21, 26, 66, 99, 99, 99, 99,\r
-                               24, 26, 56, 99, 99, 99, 99, 99,\r
-                               47, 66, 99, 99, 99, 99, 99, 99,\r
-                               99, 99, 99, 99, 99, 99, 99, 99,\r
-                               99, 99, 99, 99, 99, 99, 99, 99,\r
-                               99, 99, 99, 99, 99, 99, 99, 99,\r
-                               99, 99, 99, 99, 99, 99, 99, 99\r
-                       ];\r
-                       for (i = 0; i < 64; i++) {\r
-                               t = Math.floor((UVQT[i]*sf+50)/100);\r
-                               if (t < 1) {\r
-                                       t = 1;\r
-                               } else if (t > 255) {\r
-                                       t = 255;\r
-                               }\r
-                               UVTable[ZigZag[i]] = t;\r
-                       }\r
-                       var aasf:Array = [\r
-                               1.0, 1.387039845, 1.306562965, 1.175875602,\r
-                               1.0, 0.785694958, 0.541196100, 0.275899379\r
-                       ];\r
-                       i = 0;\r
-                       for (var row:int = 0; row < 8; row++)\r
-                       {\r
-                               for (var col:int = 0; col < 8; col++)\r
-                               {\r
-                                       fdtbl_Y[i]  = (1.0 / (YTable [ZigZag[i]] * aasf[row] * aasf[col] * 8.0));\r
-                                       fdtbl_UV[i] = (1.0 / (UVTable[ZigZag[i]] * aasf[row] * aasf[col] * 8.0));\r
-                                       i++;\r
-                               }\r
-                       }\r
-               }\r
-       \r
-               private var YDC_HT:Array;\r
-               private var UVDC_HT:Array;\r
-               private var YAC_HT:Array;\r
-               private var UVAC_HT:Array;\r
-       \r
-               private function computeHuffmanTbl(nrcodes:Array, std_table:Array):Array\r
-               {\r
-                       var codevalue:int = 0;\r
-                       var pos_in_table:int = 0;\r
-                       var HT:Array = new Array();\r
-                       for (var k:int=1; k<=16; k++) {\r
-                               for (var j:int=1; j<=nrcodes[k]; j++) {\r
-                                       HT[std_table[pos_in_table]] = new BitString();\r
-                                       HT[std_table[pos_in_table]].val = codevalue;\r
-                                       HT[std_table[pos_in_table]].len = k;\r
-                                       pos_in_table++;\r
-                                       codevalue++;\r
-                               }\r
-                               codevalue*=2;\r
-                       }\r
-                       return HT;\r
-               }\r
-       \r
-               private var std_dc_luminance_nrcodes:Array = [0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0];\r
-               private var std_dc_luminance_values:Array = [0,1,2,3,4,5,6,7,8,9,10,11];\r
-               private var std_ac_luminance_nrcodes:Array = [0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,0x7d];\r
-               private var std_ac_luminance_values:Array = [\r
-                       0x01,0x02,0x03,0x00,0x04,0x11,0x05,0x12,\r
-                       0x21,0x31,0x41,0x06,0x13,0x51,0x61,0x07,\r
-                       0x22,0x71,0x14,0x32,0x81,0x91,0xa1,0x08,\r
-                       0x23,0x42,0xb1,0xc1,0x15,0x52,0xd1,0xf0,\r
-                       0x24,0x33,0x62,0x72,0x82,0x09,0x0a,0x16,\r
-                       0x17,0x18,0x19,0x1a,0x25,0x26,0x27,0x28,\r
-                       0x29,0x2a,0x34,0x35,0x36,0x37,0x38,0x39,\r
-                       0x3a,0x43,0x44,0x45,0x46,0x47,0x48,0x49,\r
-                       0x4a,0x53,0x54,0x55,0x56,0x57,0x58,0x59,\r
-                       0x5a,0x63,0x64,0x65,0x66,0x67,0x68,0x69,\r
-                       0x6a,0x73,0x74,0x75,0x76,0x77,0x78,0x79,\r
-                       0x7a,0x83,0x84,0x85,0x86,0x87,0x88,0x89,\r
-                       0x8a,0x92,0x93,0x94,0x95,0x96,0x97,0x98,\r
-                       0x99,0x9a,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,\r
-                       0xa8,0xa9,0xaa,0xb2,0xb3,0xb4,0xb5,0xb6,\r
-                       0xb7,0xb8,0xb9,0xba,0xc2,0xc3,0xc4,0xc5,\r
-                       0xc6,0xc7,0xc8,0xc9,0xca,0xd2,0xd3,0xd4,\r
-                       0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xe1,0xe2,\r
-                       0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,\r
-                       0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,\r
-                       0xf9,0xfa\r
-               ];\r
-       \r
-               private var std_dc_chrominance_nrcodes:Array = [0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0];\r
-               private var std_dc_chrominance_values:Array = [0,1,2,3,4,5,6,7,8,9,10,11];\r
-               private var std_ac_chrominance_nrcodes:Array = [0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,0x77];\r
-               private var std_ac_chrominance_values:Array = [\r
-                       0x00,0x01,0x02,0x03,0x11,0x04,0x05,0x21,\r
-                       0x31,0x06,0x12,0x41,0x51,0x07,0x61,0x71,\r
-                       0x13,0x22,0x32,0x81,0x08,0x14,0x42,0x91,\r
-                       0xa1,0xb1,0xc1,0x09,0x23,0x33,0x52,0xf0,\r
-                       0x15,0x62,0x72,0xd1,0x0a,0x16,0x24,0x34,\r
-                       0xe1,0x25,0xf1,0x17,0x18,0x19,0x1a,0x26,\r
-                       0x27,0x28,0x29,0x2a,0x35,0x36,0x37,0x38,\r
-                       0x39,0x3a,0x43,0x44,0x45,0x46,0x47,0x48,\r
-                       0x49,0x4a,0x53,0x54,0x55,0x56,0x57,0x58,\r
-                       0x59,0x5a,0x63,0x64,0x65,0x66,0x67,0x68,\r
-                       0x69,0x6a,0x73,0x74,0x75,0x76,0x77,0x78,\r
-                       0x79,0x7a,0x82,0x83,0x84,0x85,0x86,0x87,\r
-                       0x88,0x89,0x8a,0x92,0x93,0x94,0x95,0x96,\r
-                       0x97,0x98,0x99,0x9a,0xa2,0xa3,0xa4,0xa5,\r
-                       0xa6,0xa7,0xa8,0xa9,0xaa,0xb2,0xb3,0xb4,\r
-                       0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xc2,0xc3,\r
-                       0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xd2,\r
-                       0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,\r
-                       0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,\r
-                       0xea,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,\r
-                       0xf9,0xfa\r
-               ];\r
-       \r
-               private function initHuffmanTbl():void\r
-               {\r
-                       YDC_HT = computeHuffmanTbl(std_dc_luminance_nrcodes,std_dc_luminance_values);\r
-                       UVDC_HT = computeHuffmanTbl(std_dc_chrominance_nrcodes,std_dc_chrominance_values);\r
-                       YAC_HT = computeHuffmanTbl(std_ac_luminance_nrcodes,std_ac_luminance_values);\r
-                       UVAC_HT = computeHuffmanTbl(std_ac_chrominance_nrcodes,std_ac_chrominance_values);\r
-               }\r
-       \r
-               private var bitcode:Array = new Array(65535);\r
-               private var category:Array = new Array(65535);\r
-       \r
-               private function initCategoryNumber():void\r
-               {\r
-                       var nrlower:int = 1;\r
-                       var nrupper:int = 2;\r
-                       var nr:int;\r
-                       for (var cat:int=1; cat<=15; cat++) {\r
-                               //Positive numbers\r
-                               for (nr=nrlower; nr<nrupper; nr++) {\r
-                                       category[32767+nr] = cat;\r
-                                       bitcode[32767+nr] = new BitString();\r
-                                       bitcode[32767+nr].len = cat;\r
-                                       bitcode[32767+nr].val = nr;\r
-                               }\r
-                               //Negative numbers\r
-                               for (nr=-(nrupper-1); nr<=-nrlower; nr++) {\r
-                                       category[32767+nr] = cat;\r
-                                       bitcode[32767+nr] = new BitString();\r
-                                       bitcode[32767+nr].len = cat;\r
-                                       bitcode[32767+nr].val = nrupper-1+nr;\r
-                               }\r
-                               nrlower <<= 1;\r
-                               nrupper <<= 1;\r
-                       }\r
-               }\r
-       \r
-               // IO functions\r
-       \r
-               private var byteout:ByteArray;\r
-               private var bytenew:int = 0;\r
-               private var bytepos:int = 7;\r
-       \r
-               private function writeBits(bs:BitString):void\r
-               {\r
-                       var value:int = bs.val;\r
-                       var posval:int = bs.len-1;\r
-                       while ( posval >= 0 ) {\r
-                               if (value & uint(1 << posval) ) {\r
-                                       bytenew |= uint(1 << bytepos);\r
-                               }\r
-                               posval--;\r
-                               bytepos--;\r
-                               if (bytepos < 0) {\r
-                                       if (bytenew == 0xFF) {\r
-                                               writeByte(0xFF);\r
-                                               writeByte(0);\r
-                                       }\r
-                                       else {\r
-                                               writeByte(bytenew);\r
-                                       }\r
-                                       bytepos=7;\r
-                                       bytenew=0;\r
-                               }\r
-                       }\r
-               }\r
-       \r
-               private function writeByte(value:int):void\r
-               {\r
-                       byteout.writeByte(value);\r
-               }\r
-       \r
-               private function writeWord(value:int):void\r
-               {\r
-                       writeByte((value>>8)&0xFF);\r
-                       writeByte((value   )&0xFF);\r
-               }\r
-       \r
-               // DCT & quantization core\r
-       \r
-               private function fDCTQuant(data:Array, fdtbl:Array):Array\r
-               {\r
-                       var tmp0:Number, tmp1:Number, tmp2:Number, tmp3:Number, tmp4:Number, tmp5:Number, tmp6:Number, tmp7:Number;\r
-                       var tmp10:Number, tmp11:Number, tmp12:Number, tmp13:Number;\r
-                       var z1:Number, z2:Number, z3:Number, z4:Number, z5:Number, z11:Number, z13:Number;\r
-                       var i:int;\r
-                       /* Pass 1: process rows. */\r
-                       var dataOff:int=0;\r
-                       for (i=0; i<8; i++) {\r
-                               tmp0 = data[dataOff+0] + data[dataOff+7];\r
-                               tmp7 = data[dataOff+0] - data[dataOff+7];\r
-                               tmp1 = data[dataOff+1] + data[dataOff+6];\r
-                               tmp6 = data[dataOff+1] - data[dataOff+6];\r
-                               tmp2 = data[dataOff+2] + data[dataOff+5];\r
-                               tmp5 = data[dataOff+2] - data[dataOff+5];\r
-                               tmp3 = data[dataOff+3] + data[dataOff+4];\r
-                               tmp4 = data[dataOff+3] - data[dataOff+4];\r
-       \r
-                               /* Even part */\r
-                               tmp10 = tmp0 + tmp3;    /* phase 2 */\r
-                               tmp13 = tmp0 - tmp3;\r
-                               tmp11 = tmp1 + tmp2;\r
-                               tmp12 = tmp1 - tmp2;\r
-       \r
-                               data[dataOff+0] = tmp10 + tmp11; /* phase 3 */\r
-                               data[dataOff+4] = tmp10 - tmp11;\r
-       \r
-                               z1 = (tmp12 + tmp13) * 0.707106781; /* c4 */\r
-                               data[dataOff+2] = tmp13 + z1; /* phase 5 */\r
-                               data[dataOff+6] = tmp13 - z1;\r
-       \r
-                               /* Odd part */\r
-                               tmp10 = tmp4 + tmp5; /* phase 2 */\r
-                               tmp11 = tmp5 + tmp6;\r
-                               tmp12 = tmp6 + tmp7;\r
-       \r
-                               /* The rotator is modified from fig 4-8 to avoid extra negations. */\r
-                               z5 = (tmp10 - tmp12) * 0.382683433; /* c6 */\r
-                               z2 = 0.541196100 * tmp10 + z5; /* c2-c6 */\r
-                               z4 = 1.306562965 * tmp12 + z5; /* c2+c6 */\r
-                               z3 = tmp11 * 0.707106781; /* c4 */\r
-       \r
-                               z11 = tmp7 + z3;        /* phase 5 */\r
-                               z13 = tmp7 - z3;\r
-       \r
-                               data[dataOff+5] = z13 + z2;     /* phase 6 */\r
-                               data[dataOff+3] = z13 - z2;\r
-                               data[dataOff+1] = z11 + z4;\r
-                               data[dataOff+7] = z11 - z4;\r
-       \r
-                               dataOff += 8; /* advance pointer to next row */\r
-                       }\r
-       \r
-                       /* Pass 2: process columns. */\r
-                       dataOff = 0;\r
-                       for (i=0; i<8; i++) {\r
-                               tmp0 = data[dataOff+ 0] + data[dataOff+56];\r
-                               tmp7 = data[dataOff+ 0] - data[dataOff+56];\r
-                               tmp1 = data[dataOff+ 8] + data[dataOff+48];\r
-                               tmp6 = data[dataOff+ 8] - data[dataOff+48];\r
-                               tmp2 = data[dataOff+16] + data[dataOff+40];\r
-                               tmp5 = data[dataOff+16] - data[dataOff+40];\r
-                               tmp3 = data[dataOff+24] + data[dataOff+32];\r
-                               tmp4 = data[dataOff+24] - data[dataOff+32];\r
-       \r
-                               /* Even part */\r
-                               tmp10 = tmp0 + tmp3;    /* phase 2 */\r
-                               tmp13 = tmp0 - tmp3;\r
-                               tmp11 = tmp1 + tmp2;\r
-                               tmp12 = tmp1 - tmp2;\r
-       \r
-                               data[dataOff+ 0] = tmp10 + tmp11; /* phase 3 */\r
-                               data[dataOff+32] = tmp10 - tmp11;\r
-       \r
-                               z1 = (tmp12 + tmp13) * 0.707106781; /* c4 */\r
-                               data[dataOff+16] = tmp13 + z1; /* phase 5 */\r
-                               data[dataOff+48] = tmp13 - z1;\r
-       \r
-                               /* Odd part */\r
-                               tmp10 = tmp4 + tmp5; /* phase 2 */\r
-                               tmp11 = tmp5 + tmp6;\r
-                               tmp12 = tmp6 + tmp7;\r
-       \r
-                               /* The rotator is modified from fig 4-8 to avoid extra negations. */\r
-                               z5 = (tmp10 - tmp12) * 0.382683433; /* c6 */\r
-                               z2 = 0.541196100 * tmp10 + z5; /* c2-c6 */\r
-                               z4 = 1.306562965 * tmp12 + z5; /* c2+c6 */\r
-                               z3 = tmp11 * 0.707106781; /* c4 */\r
-       \r
-                               z11 = tmp7 + z3;        /* phase 5 */\r
-                               z13 = tmp7 - z3;\r
-       \r
-                               data[dataOff+40] = z13 + z2; /* phase 6 */\r
-                               data[dataOff+24] = z13 - z2;\r
-                               data[dataOff+ 8] = z11 + z4;\r
-                               data[dataOff+56] = z11 - z4;\r
-       \r
-                               dataOff++; /* advance pointer to next column */\r
-                       }\r
-       \r
-                       // Quantize/descale the coefficients\r
-                       for (i=0; i<64; i++) {\r
-                               // Apply the quantization and scaling factor & Round to nearest integer\r
-                               data[i] = Math.round((data[i]*fdtbl[i]));\r
-                       }\r
-                       return data;\r
-               }\r
-       \r
-               // Chunk writing\r
-       \r
-               private function writeAPP0():void\r
-               {\r
-                       writeWord(0xFFE0); // marker\r
-                       writeWord(16); // length\r
-                       writeByte(0x4A); // J\r
-                       writeByte(0x46); // F\r
-                       writeByte(0x49); // I\r
-                       writeByte(0x46); // F\r
-                       writeByte(0); // = "JFIF",'\0'\r
-                       writeByte(1); // versionhi\r
-                       writeByte(1); // versionlo\r
-                       writeByte(0); // xyunits\r
-                       writeWord(1); // xdensity\r
-                       writeWord(1); // ydensity\r
-                       writeByte(0); // thumbnwidth\r
-                       writeByte(0); // thumbnheight\r
-               }\r
-       \r
-               private function writeSOF0(width:int, height:int):void\r
-               {\r
-                       writeWord(0xFFC0); // marker\r
-                       writeWord(17);   // length, truecolor YUV JPG\r
-                       writeByte(8);    // precision\r
-                       writeWord(height);\r
-                       writeWord(width);\r
-                       writeByte(3);    // nrofcomponents\r
-                       writeByte(1);    // IdY\r
-                       writeByte(0x11); // HVY\r
-                       writeByte(0);    // QTY\r
-                       writeByte(2);    // IdU\r
-                       writeByte(0x11); // HVU\r
-                       writeByte(1);    // QTU\r
-                       writeByte(3);    // IdV\r
-                       writeByte(0x11); // HVV\r
-                       writeByte(1);    // QTV\r
-               }\r
-       \r
-               private function writeDQT():void\r
-               {\r
-                       writeWord(0xFFDB); // marker\r
-                       writeWord(132);    // length\r
-                       writeByte(0);\r
-                       var i:int;\r
-                       for (i=0; i<64; i++) {\r
-                               writeByte(YTable[i]);\r
-                       }\r
-                       writeByte(1);\r
-                       for (i=0; i<64; i++) {\r
-                               writeByte(UVTable[i]);\r
-                       }\r
-               }\r
-       \r
-               private function writeDHT():void\r
-               {\r
-                       writeWord(0xFFC4); // marker\r
-                       writeWord(0x01A2); // length\r
-                       var i:int;\r
-       \r
-                       writeByte(0); // HTYDCinfo\r
-                       for (i=0; i<16; i++) {\r
-                               writeByte(std_dc_luminance_nrcodes[i+1]);\r
-                       }\r
-                       for (i=0; i<=11; i++) {\r
-                               writeByte(std_dc_luminance_values[i]);\r
-                       }\r
-       \r
-                       writeByte(0x10); // HTYACinfo\r
-                       for (i=0; i<16; i++) {\r
-                               writeByte(std_ac_luminance_nrcodes[i+1]);\r
-                       }\r
-                       for (i=0; i<=161; i++) {\r
-                               writeByte(std_ac_luminance_values[i]);\r
-                       }\r
-       \r
-                       writeByte(1); // HTUDCinfo\r
-                       for (i=0; i<16; i++) {\r
-                               writeByte(std_dc_chrominance_nrcodes[i+1]);\r
-                       }\r
-                       for (i=0; i<=11; i++) {\r
-                               writeByte(std_dc_chrominance_values[i]);\r
-                       }\r
-       \r
-                       writeByte(0x11); // HTUACinfo\r
-                       for (i=0; i<16; i++) {\r
-                               writeByte(std_ac_chrominance_nrcodes[i+1]);\r
-                       }\r
-                       for (i=0; i<=161; i++) {\r
-                               writeByte(std_ac_chrominance_values[i]);\r
-                       }\r
-               }\r
-       \r
-               private function writeSOS():void\r
-               {\r
-                       writeWord(0xFFDA); // marker\r
-                       writeWord(12); // length\r
-                       writeByte(3); // nrofcomponents\r
-                       writeByte(1); // IdY\r
-                       writeByte(0); // HTY\r
-                       writeByte(2); // IdU\r
-                       writeByte(0x11); // HTU\r
-                       writeByte(3); // IdV\r
-                       writeByte(0x11); // HTV\r
-                       writeByte(0); // Ss\r
-                       writeByte(0x3f); // Se\r
-                       writeByte(0); // Bf\r
-               }\r
-       \r
-               // Core processing\r
-               private var DU:Array = new Array(64);\r
-       \r
-               private function processDU(CDU:Array, fdtbl:Array, DC:Number, HTDC:Array, HTAC:Array):Number\r
-               {\r
-                       var EOB:BitString = HTAC[0x00];\r
-                       var M16zeroes:BitString = HTAC[0xF0];\r
-                       var i:int;\r
-       \r
-                       var DU_DCT:Array = fDCTQuant(CDU, fdtbl);\r
-                       //ZigZag reorder\r
-                       for (i=0;i<64;i++) {\r
-                               DU[ZigZag[i]]=DU_DCT[i];\r
-                       }\r
-                       var Diff:int = DU[0] - DC; DC = DU[0];\r
-                       //Encode DC\r
-                       if (Diff==0) {\r
-                               writeBits(HTDC[0]); // Diff might be 0\r
-                       } else {\r
-                               writeBits(HTDC[category[32767+Diff]]);\r
-                               writeBits(bitcode[32767+Diff]);\r
-                       }\r
-                       //Encode ACs\r
-                       var end0pos:int = 63;\r
-                       for (; (end0pos>0)&&(DU[end0pos]==0); end0pos--) {\r
-                       };\r
-                       //end0pos = first element in reverse order !=0\r
-                       if ( end0pos == 0) {\r
-                               writeBits(EOB);\r
-                               return DC;\r
-                       }\r
-                       i = 1;\r
-                       while ( i <= end0pos ) {\r
-                               var startpos:int = i;\r
-                               for (; (DU[i]==0) && (i<=end0pos); i++) {\r
-                               }\r
-                               var nrzeroes:int = i-startpos;\r
-                               if ( nrzeroes >= 16 ) {\r
-                                       for (var nrmarker:int=1; nrmarker <= nrzeroes/16; nrmarker++) {\r
-                                               writeBits(M16zeroes);\r
-                                       }\r
-                                       nrzeroes = int(nrzeroes&0xF);\r
-                               }\r
-                               writeBits(HTAC[nrzeroes*16+category[32767+DU[i]]]);\r
-                               writeBits(bitcode[32767+DU[i]]);\r
-                               i++;\r
-                       }\r
-                       if ( end0pos != 63 ) {\r
-                               writeBits(EOB);\r
-                       }\r
-                       return DC;\r
-               }\r
-       \r
-               private var YDU:Array = new Array(64);\r
-               private var UDU:Array = new Array(64);\r
-               private var VDU:Array = new Array(64);\r
-       \r
-               private function RGB2YUV(img:BitmapData, xpos:int, ypos:int):void\r
-               {\r
-                       var pos:int=0;\r
-                       for (var y:int=0; y<8; y++) {\r
-                               for (var x:int=0; x<8; x++) {\r
-                                       var P:uint = img.getPixel32(xpos+x,ypos+y);\r
-                                       var R:Number = Number((P>>16)&0xFF);\r
-                                       var G:Number = Number((P>> 8)&0xFF);\r
-                                       var B:Number = Number((P    )&0xFF);\r
-                                       YDU[pos]=((( 0.29900)*R+( 0.58700)*G+( 0.11400)*B))-128;\r
-                                       UDU[pos]=(((-0.16874)*R+(-0.33126)*G+( 0.50000)*B));\r
-                                       VDU[pos]=((( 0.50000)*R+(-0.41869)*G+(-0.08131)*B));\r
-                                       pos++;\r
-                               }\r
-                       }\r
-               }\r
-       \r
-               /**\r
-                * Constructor for JPEGEncoder class\r
-                *\r
-                * @param quality The quality level between 1 and 100 that detrmines the\r
-                * level of compression used in the generated JPEG\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */             \r
-               public function JPGEncoder(quality:Number = 50)\r
-               {\r
-                       if (quality <= 0) {\r
-                               quality = 1;\r
-                       }\r
-                       if (quality > 100) {\r
-                               quality = 100;\r
-                       }\r
-                       var sf:int = 0;\r
-                       if (quality < 50) {\r
-                               sf = int(5000 / quality);\r
-                       } else {\r
-                               sf = int(200 - quality*2);\r
-                       }\r
-                       // Create tables\r
-                       initHuffmanTbl();\r
-                       initCategoryNumber();\r
-                       initQuantTables(sf);\r
-               }\r
-       \r
-               /**\r
-                * Created a JPEG image from the specified BitmapData\r
-                *\r
-                * @param image The BitmapData that will be converted into the JPEG format.\r
-                * @return a ByteArray representing the JPEG encoded image data.\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */     \r
-               public function encode(image:BitmapData):ByteArray\r
-               {\r
-                       // Initialize bit writer\r
-                       byteout = new ByteArray();\r
-                       bytenew=0;\r
-                       bytepos=7;\r
-       \r
-                       // Add JPEG headers\r
-                       writeWord(0xFFD8); // SOI\r
-                       writeAPP0();\r
-                       writeDQT();\r
-                       writeSOF0(image.width,image.height);\r
-                       writeDHT();\r
-                       writeSOS();\r
-\r
-       \r
-                       // Encode 8x8 macroblocks\r
-                       var DCY:Number=0;\r
-                       var DCU:Number=0;\r
-                       var DCV:Number=0;\r
-                       bytenew=0;\r
-                       bytepos=7;\r
-                       for (var ypos:int=0; ypos<image.height; ypos+=8) {\r
-                               for (var xpos:int=0; xpos<image.width; xpos+=8) {\r
-                                       RGB2YUV(image, xpos, ypos);\r
-                                       DCY = processDU(YDU, fdtbl_Y, DCY, YDC_HT, YAC_HT);\r
-                                       DCU = processDU(UDU, fdtbl_UV, DCU, UVDC_HT, UVAC_HT);\r
-                                       DCV = processDU(VDU, fdtbl_UV, DCV, UVDC_HT, UVAC_HT);\r
-                               }\r
-                       }\r
-       \r
-                       // Do the bit alignment of the EOI marker\r
-                       if ( bytepos >= 0 ) {\r
-                               var fillbits:BitString = new BitString();\r
-                               fillbits.len = bytepos+1;\r
-                               fillbits.val = (1<<(bytepos+1))-1;\r
-                               writeBits(fillbits);\r
-                       }\r
-       \r
-                       writeWord(0xFFD9); //EOI\r
-                       return byteout;\r
-               }\r
-       }\r
-}\r
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/PNGEncoder.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/PNGEncoder.as
deleted file mode 100644 (file)
index 83c95f6..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-package com.adobe.images\r
-{\r
-       import flash.geom.*;\r
-       import flash.display.Bitmap;\r
-       import flash.display.BitmapData;\r
-       import flash.utils.ByteArray;\r
-\r
-       /**\r
-        * Class that converts BitmapData into a valid PNG\r
-        */     \r
-       public class PNGEncoder\r
-       {\r
-               /**\r
-                * Created a PNG image from the specified BitmapData\r
-                *\r
-                * @param image The BitmapData that will be converted into the PNG format.\r
-                * @return a ByteArray representing the PNG encoded image data.\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */                     \r
-           public static function encode(img:BitmapData):ByteArray {\r
-               // Create output byte array\r
-               var png:ByteArray = new ByteArray();\r
-               // Write PNG signature\r
-               png.writeUnsignedInt(0x89504e47);\r
-               png.writeUnsignedInt(0x0D0A1A0A);\r
-               // Build IHDR chunk\r
-               var IHDR:ByteArray = new ByteArray();\r
-               IHDR.writeInt(img.width);\r
-               IHDR.writeInt(img.height);\r
-               IHDR.writeUnsignedInt(0x08060000); // 32bit RGBA\r
-               IHDR.writeByte(0);\r
-               writeChunk(png,0x49484452,IHDR);\r
-               // Build IDAT chunk\r
-               var IDAT:ByteArray= new ByteArray();\r
-               for(var i:int=0;i < img.height;i++) {\r
-                   // no filter\r
-                   IDAT.writeByte(0);\r
-                   var p:uint;\r
-                   var j:int;\r
-                   if ( !img.transparent ) {\r
-                       for(j=0;j < img.width;j++) {\r
-                           p = img.getPixel(j,i);\r
-                           IDAT.writeUnsignedInt(\r
-                               uint(((p&0xFFFFFF) << 8)|0xFF));\r
-                       }\r
-                   } else {\r
-                       for(j=0;j < img.width;j++) {\r
-                           p = img.getPixel32(j,i);\r
-                           IDAT.writeUnsignedInt(\r
-                               uint(((p&0xFFFFFF) << 8)|\r
-                               (p>>>24)));\r
-                       }\r
-                   }\r
-               }\r
-               IDAT.compress();\r
-               writeChunk(png,0x49444154,IDAT);\r
-               // Build IEND chunk\r
-               writeChunk(png,0x49454E44,null);\r
-               // return PNG\r
-               return png;\r
-           }\r
-       \r
-           private static var crcTable:Array;\r
-           private static var crcTableComputed:Boolean = false;\r
-       \r
-           private static function writeChunk(png:ByteArray, \r
-                   type:uint, data:ByteArray):void {\r
-               if (!crcTableComputed) {\r
-                   crcTableComputed = true;\r
-                   crcTable = [];\r
-                   var c:uint;\r
-                   for (var n:uint = 0; n < 256; n++) {\r
-                       c = n;\r
-                       for (var k:uint = 0; k < 8; k++) {\r
-                           if (c & 1) {\r
-                               c = uint(uint(0xedb88320) ^ \r
-                                   uint(c >>> 1));\r
-                           } else {\r
-                               c = uint(c >>> 1);\r
-                           }\r
-                       }\r
-                       crcTable[n] = c;\r
-                   }\r
-               }\r
-               var len:uint = 0;\r
-               if (data != null) {\r
-                   len = data.length;\r
-               }\r
-               png.writeUnsignedInt(len);\r
-               var p:uint = png.position;\r
-               png.writeUnsignedInt(type);\r
-               if ( data != null ) {\r
-                   png.writeBytes(data);\r
-               }\r
-               var e:uint = png.position;\r
-               png.position = p;\r
-               c = 0xffffffff;\r
-               for (var i:int = 0; i < (e-p); i++) {\r
-                   c = uint(crcTable[\r
-                       (c ^ png.readUnsignedByte()) & \r
-                       uint(0xff)] ^ uint(c >>> 8));\r
-               }\r
-               c = uint(c^uint(0xffffffff));\r
-               png.position = e;\r
-               png.writeUnsignedInt(c);\r
-           }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/DynamicURLLoader.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/DynamicURLLoader.as
deleted file mode 100644 (file)
index 2a9eea1..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.net\r
-{\r
-       import flash.net.URLLoader;\r
-\r
-       /**\r
-       *       Class that provides a dynamic implimentation of the URLLoader class.\r
-       * \r
-       *       This class provides no API implimentations. However, since the class is\r
-       *       declared as dynamic, it can be used in place of URLLoader, and allow\r
-       *       you to dynamically attach properties to it (which URLLoader does not allow).\r
-       * \r
-       *       @langversion ActionScript 3.0\r
-       *       @playerversion Flash 9.0\r
-       *       @tiptext\r
-       */      \r
-       public dynamic class DynamicURLLoader extends URLLoader \r
-       {\r
-               public function DynamicURLLoader()\r
-               {\r
-                       super();\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/IURIResolver.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/IURIResolver.as
deleted file mode 100644 (file)
index 3610cc2..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.net\r
-{\r
-       /**\r
-        * The URI class cannot know about DNS aliases, virtual hosts, or\r
-        * symbolic links that may be involved.  The application can provide\r
-        * an implementation of this interface to resolve the URI before the\r
-        * URI class makes any comparisons.  For example, a web host has\r
-        * two aliases:\r
-        * \r
-        * <p><code>\r
-        *    http://www.site.com/\r
-        *    http://www.site.net/\r
-        * </code></p>\r
-        * \r
-        * <p>The application can provide an implementation that automatically\r
-        * resolves site.net to site.com before URI compares two URI objects.\r
-        * Only the application can know and understand the context in which\r
-        * the URI's are being used.</p>\r
-        * \r
-        * <p>Use the URI.resolver accessor to assign a custom resolver to\r
-        * the URI class.  Any resolver specified is global to all instances\r
-        * of URI.</p>\r
-        * \r
-        * <p>URI will call this before performing URI comparisons in the\r
-        * URI.getRelation() and URI.getCommonParent() functions.\r
-        * \r
-        * @see URI.getRelation\r
-        * @see URI.getCommonParent\r
-        * \r
-        * @langversion ActionScript 3.0\r
-        * @playerversion Flash 9.0\r
-        */\r
-       public interface IURIResolver\r
-       {\r
-               /**\r
-                * Implement this method to provide custom URI resolution for\r
-                * your application.\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */\r
-               function resolve(uri:URI) : URI;\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/MimeTypeMap.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/MimeTypeMap.as
deleted file mode 100644 (file)
index 32e40a4..0000000
+++ /dev/null
@@ -1,196 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-package com.adobe.net
-{
-       public class MimeTypeMap
-       {
-               private var types:Array = 
-                       [["application/andrew-inset","ez"],
-                       ["application/atom+xml","atom"],
-                       ["application/mac-binhex40","hqx"],
-                       ["application/mac-compactpro","cpt"],
-                       ["application/mathml+xml","mathml"],
-                       ["application/msword","doc"],
-                       ["application/octet-stream","bin","dms","lha","lzh","exe","class","so","dll","dmg"],
-                       ["application/oda","oda"],
-                       ["application/ogg","ogg"],
-                       ["application/pdf","pdf"],
-                       ["application/postscript","ai","eps","ps"],
-                       ["application/rdf+xml","rdf"],
-                       ["application/smil","smi","smil"],
-                       ["application/srgs","gram"],
-                       ["application/srgs+xml","grxml"],
-                       ["application/vnd.adobe.apollo-application-installer-package+zip","air"],
-                       ["application/vnd.mif","mif"],
-                       ["application/vnd.mozilla.xul+xml","xul"],
-                       ["application/vnd.ms-excel","xls"],
-                       ["application/vnd.ms-powerpoint","ppt"],
-                       ["application/vnd.rn-realmedia","rm"],
-                       ["application/vnd.wap.wbxml","wbxml"],
-                       ["application/vnd.wap.wmlc","wmlc"],
-                       ["application/vnd.wap.wmlscriptc","wmlsc"],
-                       ["application/voicexml+xml","vxml"],
-                       ["application/x-bcpio","bcpio"],
-                       ["application/x-cdlink","vcd"],
-                       ["application/x-chess-pgn","pgn"],
-                       ["application/x-cpio","cpio"],
-                       ["application/x-csh","csh"],
-                       ["application/x-director","dcr","dir","dxr"],
-                       ["application/x-dvi","dvi"],
-                       ["application/x-futuresplash","spl"],
-                       ["application/x-gtar","gtar"],
-                       ["application/x-hdf","hdf"],
-                       ["application/x-javascript","js"],
-                       ["application/x-koan","skp","skd","skt","skm"],
-                       ["application/x-latex","latex"],
-                       ["application/x-netcdf","nc","cdf"],
-                       ["application/x-sh","sh"],
-                       ["application/x-shar","shar"],
-                       ["application/x-shockwave-flash","swf"],
-                       ["application/x-stuffit","sit"],
-                       ["application/x-sv4cpio","sv4cpio"],
-                       ["application/x-sv4crc","sv4crc"],
-                       ["application/x-tar","tar"],
-                       ["application/x-tcl","tcl"],
-                       ["application/x-tex","tex"],
-                       ["application/x-texinfo","texinfo","texi"],
-                       ["application/x-troff","t","tr","roff"],
-                       ["application/x-troff-man","man"],
-                       ["application/x-troff-me","me"],
-                       ["application/x-troff-ms","ms"],
-                       ["application/x-ustar","ustar"],
-                       ["application/x-wais-source","src"],
-                       ["application/xhtml+xml","xhtml","xht"],
-                       ["application/xml","xml","xsl"],
-                       ["application/xml-dtd","dtd"],
-                       ["application/xslt+xml","xslt"],
-                       ["application/zip","zip"],
-                       ["audio/basic","au","snd"],
-                       ["audio/midi","mid","midi","kar"],
-                       ["audio/mpeg","mp3","mpga","mp2"],
-                       ["audio/x-aiff","aif","aiff","aifc"],
-                       ["audio/x-mpegurl","m3u"],
-                       ["audio/x-pn-realaudio","ram","ra"],
-                       ["audio/x-wav","wav"],
-                       ["chemical/x-pdb","pdb"],
-                       ["chemical/x-xyz","xyz"],
-                       ["image/bmp","bmp"],
-                       ["image/cgm","cgm"],
-                       ["image/gif","gif"],
-                       ["image/ief","ief"],
-                       ["image/jpeg","jpg","jpeg","jpe"],
-                       ["image/png","png"],
-                       ["image/svg+xml","svg"],
-                       ["image/tiff","tiff","tif"],
-                       ["image/vnd.djvu","djvu","djv"],
-                       ["image/vnd.wap.wbmp","wbmp"],
-                       ["image/x-cmu-raster","ras"],
-                       ["image/x-icon","ico"],
-                       ["image/x-portable-anymap","pnm"],
-                       ["image/x-portable-bitmap","pbm"],
-                       ["image/x-portable-graymap","pgm"],
-                       ["image/x-portable-pixmap","ppm"],
-                       ["image/x-rgb","rgb"],
-                       ["image/x-xbitmap","xbm"],
-                       ["image/x-xpixmap","xpm"],
-                       ["image/x-xwindowdump","xwd"],
-                       ["model/iges","igs","iges"],
-                       ["model/mesh","msh","mesh","silo"],
-                       ["model/vrml","wrl","vrml"],
-                       ["text/calendar","ics","ifb"],
-                       ["text/css","css"],
-                       ["text/html","html","htm"],
-                       ["text/plain","txt","asc"],
-                       ["text/richtext","rtx"],
-                       ["text/rtf","rtf"],
-                       ["text/sgml","sgml","sgm"],
-                       ["text/tab-separated-values","tsv"],
-                       ["text/vnd.wap.wml","wml"],
-                       ["text/vnd.wap.wmlscript","wmls"],
-                       ["text/x-setext","etx"],
-                       ["video/mpeg","mpg","mpeg","mpe"],
-                       ["video/quicktime","mov","qt"],
-                       ["video/vnd.mpegurl","m4u","mxu"],
-                       ["video/x-flv","flv"],
-                       ["video/x-msvideo","avi"],
-                       ["video/x-sgi-movie","movie"],
-                       ["x-conference/x-cooltalk","ice"]];
-               
-               /**
-                * Returns the mimetype for the given extension.
-                */
-               public function getMimeType(extension:String):String
-               {
-                       extension = extension.toLocaleLowerCase();
-                       for each (var a:Array in types)
-                       {
-                               for each (var b:String in a)
-                               {
-                                       if (b == extension)
-                                       {
-                                               return a[0];
-                                       }
-                               }
-                       }
-                       return null;
-               }
-
-               /**
-                * Returns the prefered extension for the given mimetype.
-                */
-               public function getExtension(mimetype:String):String
-               {
-                       mimetype = mimetype.toLocaleLowerCase();
-                       for each (var a:Array in types)
-                       {
-                               if (a[0] == mimetype)
-                               {
-                                       return a[1];
-                               }
-                       }
-                       return null;
-               }
-
-               /**
-                * Adds a mimetype to the map. The order of the extensions matters. The most preferred should come first.
-                */
-               public function addMimeType(mimetype:String, extensions:Array):void
-               {
-                       var newType:Array = [mimetype];
-                       for each (var a:String in extensions)
-                       {
-                               newType.push(a);
-                       }
-                       types.push(newType);
-               }
-       }
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/URI.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/URI.as
deleted file mode 100644 (file)
index d43ce9f..0000000
+++ /dev/null
@@ -1,2466 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.net\r
-{\r
-       import flash.utils.ByteArray;\r
-       \r
-       /**\r
-        * This class implements functions and utilities for working with URI's\r
-        * (Universal Resource Identifiers).  For technical description of the\r
-        * URI syntax, please see RFC 3986 at http://www.ietf.org/rfc/rfc3986.txt\r
-        * or do a web search for "rfc 3986".\r
-        * \r
-        * <p>The most important aspect of URI's to understand is that URI's\r
-        * and URL's are not strings.  URI's are complex data structures that\r
-        * encapsulate many pieces of information.  The string version of a\r
-        * URI is the serialized representation of that data structure.  This\r
-        * string serialization is used to provide a human readable\r
-        * representation and a means to transport the data over the network\r
-        * where it can then be parsed back into its' component parts.</p>\r
-        * \r
-        * <p>URI's fall into one of three categories:\r
-        * <ul>\r
-        *  <li>&lt;scheme&gt;:&lt;scheme-specific-part&gt;#&lt;fragment&gt;            (non-hierarchical)</li>\r
-        *  <li>&lt;scheme&gt;:<authority&gt;&lt;path&gt;?&lt;query&gt;#&lt;fragment&gt;        (hierarchical)</li>\r
-        *  <li>&lt;path&gt;?&lt;query&gt;#&lt;fragment&gt;                                             (relative hierarchical)</li>\r
-        * </ul></p>\r
-        * \r
-        * <p>The query and fragment parts are optional.</p>\r
-        * \r
-        * <p>This class supports both non-hierarchical and hierarchical URI's</p>\r
-        * \r
-        * <p>This class is intended to be used "as-is" for the vast majority\r
-        * of common URI's.  However, if your application requires a custom\r
-        * URI syntax (e.g. custom query syntax or special handling of\r
-        * non-hierarchical URI's), this class can be fully subclassed.  If you\r
-        * intended to subclass URI, please see the source code for complete\r
-        * documation on protected members and protected fuctions.</p>\r
-        * \r
-        * @langversion ActionScript 3.0\r
-        * @playerversion Flash 9.0 \r
-        */\r
-       public class URI\r
-       {       \r
-               // Here we define which characters must be escaped for each\r
-               // URI part.  The characters that must be escaped for each\r
-               // part differ depending on what would cause ambiguous parsing.\r
-               // RFC 3986 sec. 2.4 states that characters should only be\r
-               // encoded when they would conflict with subcomponent delimiters.\r
-               // We don't want to over-do the escaping.  We only want to escape\r
-               // the minimum needed to prevent parsing problems.\r
-               \r
-               // space and % must be escaped in all cases.  '%' is the delimiter\r
-               // for escaped characters.\r
-               public static const URImustEscape:String =      " %";\r
-               \r
-               // Baseline of what characters must be escaped\r
-               public static const URIbaselineEscape:String = URImustEscape + ":?#/@";\r
-               \r
-               // Characters that must be escaped in the part part.\r
-               public static const URIpathEscape:String = URImustEscape + "?#";\r
-               \r
-               // Characters that must be escaped in the query part, if setting\r
-               // the query as a whole string.  If the query is set by\r
-               // name/value, URIqueryPartEscape is used instead.\r
-               public static const URIqueryEscape:String = URImustEscape + "#";\r
-               \r
-               // This is what each name/value pair must escape "&=" as well\r
-               // so they don't conflict with the "param=value&param2=value2"\r
-               // syntax.\r
-               public static const URIqueryPartEscape:String = URImustEscape + "#&=";\r
-               \r
-               // Non-hierarchical URI's can have query and fragment parts, but\r
-               // we also want to prevent '/' otherwise it might end up looking\r
-               // like a hierarchical URI to the parser.\r
-               public static const URInonHierEscape:String =   URImustEscape + "?#/";\r
-               \r
-               // Baseline uninitialized setting for the URI scheme.\r
-               public static const UNKNOWN_SCHEME:String = "unknown";\r
-               \r
-               // The following bitmaps are used for performance enhanced\r
-               // character escaping.\r
-               \r
-               // Baseline characters that need to be escaped.  Many parts use\r
-               // this.\r
-               protected static const URIbaselineExcludedBitmap:URIEncodingBitmap =\r
-                       new URIEncodingBitmap(URIbaselineEscape);\r
-               \r
-               // Scheme escaping bitmap\r
-               protected static const URIschemeExcludedBitmap:URIEncodingBitmap = \r
-                       URIbaselineExcludedBitmap;\r
-               \r
-               // User/pass escaping bitmap\r
-               protected static const URIuserpassExcludedBitmap:URIEncodingBitmap =\r
-                       URIbaselineExcludedBitmap;\r
-               \r
-               // Authority escaping bitmap\r
-               protected static const URIauthorityExcludedBitmap:URIEncodingBitmap =\r
-                       URIbaselineExcludedBitmap;\r
-                       \r
-               // Port escaping bitmap\r
-               protected static const URIportExludedBitmap:URIEncodingBitmap = \r
-                       URIbaselineExcludedBitmap;\r
-               \r
-               // Path escaping bitmap\r
-               protected static const URIpathExcludedBitmap:URIEncodingBitmap =\r
-                       new URIEncodingBitmap(URIpathEscape);\r
-                       \r
-               // Query (whole) escaping bitmap\r
-               protected static const URIqueryExcludedBitmap:URIEncodingBitmap =\r
-                       new URIEncodingBitmap(URIqueryEscape);\r
-                       \r
-               // Query (individual parts) escaping bitmap\r
-               protected static const URIqueryPartExcludedBitmap:URIEncodingBitmap =\r
-                       new URIEncodingBitmap(URIqueryPartEscape);\r
-                       \r
-               // Fragments are the last part in the URI.  They only need to\r
-               // escape space, '#', and '%'.  Turns out that is what query\r
-               // uses too.\r
-               protected static const URIfragmentExcludedBitmap:URIEncodingBitmap =\r
-                       URIqueryExcludedBitmap;\r
-                       \r
-               // Characters that need to be escaped in the non-hierarchical part\r
-               protected static const URInonHierexcludedBitmap:URIEncodingBitmap =\r
-                       new URIEncodingBitmap(URInonHierEscape);\r
-                       \r
-               // Values used by getRelation()\r
-               public static const NOT_RELATED:int = 0;\r
-               public static const CHILD:int = 1;\r
-               public static const EQUAL:int = 2;\r
-               public static const PARENT:int = 3;\r
-\r
-               //-------------------------------------------------------------------\r
-               // protected class members\r
-               //-------------------------------------------------------------------\r
-               protected var _valid:Boolean = false;\r
-               protected var _relative:Boolean = false;\r
-               protected var _scheme:String = "";\r
-               protected var _authority:String = "";\r
-               protected var _username:String = "";\r
-               protected var _password:String = "";\r
-               protected var _port:String = "";\r
-               protected var _path:String = "";\r
-               protected var _query:String = "";\r
-               protected var _fragment:String = "";\r
-               protected var _nonHierarchical:String = "";\r
-               protected static var _resolver:IURIResolver = null;\r
-\r
-\r
-               /**\r
-                *  URI Constructor.  If no string is given, this will initialize\r
-                *  this URI object to a blank URI.\r
-                */\r
-               public function URI(uri:String = null) : void   \r
-               {\r
-                       if (uri == null)\r
-                               initialize();\r
-                       else\r
-                               constructURI(uri);\r
-               }\r
-\r
-               \r
-               /**\r
-                * @private\r
-                * Method that loads the URI from the given string.\r
-                */\r
-               protected function constructURI(uri:String) : Boolean\r
-               {\r
-                       if (!parseURI(uri))\r
-                               _valid = false;\r
-                               \r
-                       return isValid();\r
-               }\r
-               \r
-               \r
-               /**\r
-                * @private Private initializiation.\r
-                */\r
-               protected function initialize() : void\r
-               {\r
-                       _valid = false;\r
-                       _relative = false;\r
-               \r
-                       _scheme = UNKNOWN_SCHEME;\r
-                       _authority = "";\r
-                       _username = "";\r
-                       _password = "";\r
-                       _port = "";\r
-                       _path = "";\r
-                       _query = "";\r
-                       _fragment = "";\r
-               \r
-                       _nonHierarchical = "";\r
-               }       \r
-               \r
-               /**\r
-                * @private Accessor to explicitly set/get the hierarchical\r
-                * state of the URI.\r
-                */\r
-               protected function set hierState(state:Boolean) : void\r
-               {\r
-                       if (state)\r
-                       {\r
-                               // Clear the non-hierarchical data\r
-                               _nonHierarchical = "";\r
-               \r
-                               // Also set the state vars while we are at it\r
-                               if (_scheme == "" || _scheme == UNKNOWN_SCHEME)\r
-                                       _relative = true;\r
-                               else\r
-                                       _relative = false;\r
-               \r
-                               if (_authority.length == 0 && _path.length == 0)\r
-                                       _valid = false;\r
-                               else\r
-                                       _valid = true;\r
-                       }\r
-                       else\r
-                       {\r
-                               // Clear the hierarchical data\r
-                               _authority = "";\r
-                               _username = "";\r
-                               _password = "";\r
-                               _port = "";\r
-                               _path = "";\r
-               \r
-                               _relative = false;\r
-               \r
-                               if (_scheme == "" || _scheme == UNKNOWN_SCHEME)\r
-                                       _valid = false;\r
-                               else\r
-                                       _valid = true;\r
-                       }\r
-               }\r
-               protected function get hierState() : Boolean\r
-               {\r
-                       return (_nonHierarchical.length == 0);\r
-               }\r
-               \r
-               \r
-               /**\r
-                * @private Functions that performs some basic consistency validation.\r
-                */\r
-               protected function validateURI() : Boolean\r
-               {\r
-                       // Check the scheme\r
-                       if (isAbsolute())\r
-                       {\r
-                               if (_scheme.length <= 1 || _scheme == UNKNOWN_SCHEME)\r
-                               {\r
-                                       // we probably parsed a C:\ type path or no scheme\r
-                                       return false;\r
-                               }\r
-                               else if (verifyAlpha(_scheme) == false)\r
-                                       return false;  // Scheme contains bad characters\r
-                       }\r
-                       \r
-                       if (hierState)\r
-                       {\r
-                               if (_path.search('\\') != -1)\r
-                                       return false;  // local path\r
-                               else if (isRelative() == false && _scheme == UNKNOWN_SCHEME)\r
-                                       return false;  // It's an absolute URI, but it has a bad scheme\r
-                       }\r
-                       else\r
-                       {\r
-                               if (_nonHierarchical.search('\\') != -1)\r
-                                       return false;  // some kind of local path\r
-                       }\r
-               \r
-                       // Looks like it's ok.\r
-                       return true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * @private\r
-                *\r
-                * Given a URI in string format, parse that sucker into its basic\r
-                * components and assign them to this object.  A URI is of the form:\r
-                *    <scheme>:<authority><path>?<query>#<fragment>\r
-                *\r
-                * For simplicity, we parse the URI in the following order:\r
-                *              \r
-                *              1. Fragment (anchors)\r
-                *              2. Query        (CGI stuff)\r
-                *              3. Scheme       ("http")\r
-                *              4. Authority (host name)\r
-                *              5. Username/Password (if any)\r
-                *              6. Port         (server port if any)\r
-                *              7. Path         (/homepages/mypage.html)\r
-                *\r
-                * The reason for this order is to minimize any parsing ambiguities.\r
-                * Fragments and queries can contain almost anything (they are parts\r
-                * that can contain custom data with their own syntax).  Parsing\r
-                * them out first removes a large chance of parsing errors.  This\r
-                * method expects well formed URI's, but performing the parse in\r
-                * this order makes us a little more tolerant of user error.\r
-                * \r
-                * REGEXP\r
-                * Why doesn't this use regular expressions to parse the URI?  We\r
-                * have found that in a real world scenario, URI's are not always\r
-                * well formed.  Sometimes characters that should have been escaped\r
-                * are not, and those situations would break a regexp pattern.  This\r
-                * function attempts to be smart about what it is parsing based on\r
-                * location of characters relative to eachother.  This function has\r
-                * been proven through real-world use to parse the vast majority\r
-                * of URI's correctly.\r
-                *\r
-                * NOTE\r
-                * It is assumed that the string in URI form is escaped.  This function\r
-                * does not escape anything.  If you constructed the URI string by\r
-                * hand, and used this to parse in the URI and still need it escaped,\r
-                * call forceEscape() on your URI object.\r
-                *\r
-                * Parsing Assumptions\r
-                * This routine assumes that the URI being passed is well formed.\r
-                * Passing things like local paths, malformed URI's, and the such\r
-                * will result in parsing errors.  This function can handle\r
-                *       - absolute hierarchical (e.g. "http://something.com/index.html),\r
-                *   - relative hierarchical (e.g. "../images/flower.gif"), or\r
-                *   - non-hierarchical URIs (e.g. "mailto:jsmith@fungoo.com").\r
-                * \r
-                * Anything else will probably result in a parsing error, or a bogus\r
-                * URI object.\r
-                * \r
-                * Note that non-hierarchical URIs *MUST* have a scheme, otherwise\r
-                * they will be mistaken for relative URI's.\r
-                * \r
-                * If you are not sure what is being passed to you (like manually\r
-                * entered text from UI), you can construct a blank URI object and\r
-                * call unknownToURI() passing in the unknown string.\r
-                * \r
-                * @return      true if successful, false if there was some kind of\r
-                * parsing error\r
-                */\r
-               protected function parseURI(uri:String) : Boolean\r
-               {\r
-                       var baseURI:String = uri;\r
-                       var index:int, index2:int;\r
-               \r
-                       // Make sure this object is clean before we start.  If it was used\r
-                       // before and we are now parsing a new URI, we don't want any stale\r
-                       // info lying around.\r
-                       initialize();\r
-               \r
-                       // Remove any fragments (anchors) from the URI\r
-                       index = baseURI.indexOf("#");\r
-                       if (index != -1)\r
-                       {\r
-                               // Store the fragment piece if any\r
-                               if (baseURI.length > (index + 1)) // +1 is to skip the '#'\r
-                                       _fragment = baseURI.substr(index + 1, baseURI.length - (index + 1)); \r
-               \r
-                               // Trim off the fragment\r
-                               baseURI = baseURI.substr(0, index);\r
-                       }\r
-               \r
-                       // We need to strip off any CGI parameters (eg '?param=bob')\r
-                       index = baseURI.indexOf("?");\r
-                       if (index != -1)\r
-                       {\r
-                               if (baseURI.length > (index + 1))\r
-                                       _query = baseURI.substr(index + 1, baseURI.length - (index + 1)); // +1 is to skip the '?'\r
-               \r
-                               // Trim off the query\r
-                               baseURI = baseURI.substr(0, index);\r
-                       }\r
-               \r
-                       // Now try to find the scheme part\r
-                       index = baseURI.search(':');\r
-                       index2 = baseURI.search('/');\r
-               \r
-                       var containsColon:Boolean = (index != -1);\r
-                       var containsSlash:Boolean = (index2 != -1);\r
-               \r
-                       // This value is indeterminate if "containsColon" is false.\r
-                       // (if there is no colon, does the slash come before or\r
-                       // after said non-existing colon?)\r
-                       var colonBeforeSlash:Boolean = (!containsSlash || index < index2);\r
-               \r
-                       // If it has a colon and it's before the first slash, we will treat\r
-                       // it as a scheme.  If a slash is before a colon, there must be a\r
-                       // stray colon in a path or something.  In which case, the colon is\r
-                       // not the separator for the scheme.  Technically, we could consider\r
-                       // this an error, but since this is not an ambiguous state (we know\r
-                       // 100% that this has no scheme), we will keep going.\r
-                       if (containsColon && colonBeforeSlash)\r
-                       {\r
-                               // We found a scheme\r
-                               _scheme = baseURI.substr(0, index);\r
-                               \r
-                               // Normalize the scheme\r
-                               _scheme = _scheme.toLowerCase();\r
-               \r
-                               baseURI = baseURI.substr(index + 1);\r
-               \r
-                               if (baseURI.substr(0, 2) == "//")\r
-                               {\r
-                                       // This is a hierarchical URI\r
-                                       _nonHierarchical = "";\r
-               \r
-                                       // Trim off the "//"\r
-                                       baseURI = baseURI.substr(2, baseURI.length - 2);\r
-                               }\r
-                               else\r
-                               {\r
-                                       // This is a non-hierarchical URI like "mailto:bob@mail.com"\r
-                                       _nonHierarchical = baseURI;\r
-               \r
-                                       if ((_valid = validateURI()) == false)\r
-                                               initialize();  // Bad URI.  Clear it.\r
-               \r
-                                       // No more parsing to do for this case\r
-                                       return isValid();\r
-                               }\r
-                       }\r
-                       else\r
-                       {\r
-                               // No scheme.  We will consider this a relative URI\r
-                               _scheme = "";\r
-                               _relative = true;\r
-                               _nonHierarchical = "";\r
-                       }\r
-               \r
-                       // Ok, what we have left is everything after the <scheme>://\r
-               \r
-                       // Now that we have stripped off any query and fragment parts, we\r
-                       // need to split the authority from the path\r
-               \r
-                       if (isRelative())\r
-                       {\r
-                               // Don't bother looking for the authority.  It's a relative URI\r
-                               _authority = "";\r
-                               _port = "";\r
-                               _path = baseURI;\r
-                       }\r
-                       else\r
-                       {\r
-                               // Check for malformed UNC style file://///server/type/path/\r
-                               // By the time we get here, we have already trimmed the "file://"\r
-                               // so baseURI will be ///server/type/path.  If baseURI only\r
-                               // has one slash, we leave it alone because that is valid (that\r
-                               // is the case of "file:///path/to/file.txt" where there is no\r
-                               // server - implicit "localhost").\r
-                               if (baseURI.substr(0, 2) == "//")\r
-                               {\r
-                                       // Trim all leading slashes\r
-                                       while(baseURI.charAt(0) == "/")\r
-                                               baseURI = baseURI.substr(1, baseURI.length - 1);\r
-                               }\r
-               \r
-                               index = baseURI.search('/');\r
-                               if (index == -1)\r
-                               {\r
-                                       // No path.  We must have passed something like "http://something.com"\r
-                                       _authority = baseURI;\r
-                                       _path = "";\r
-                               }\r
-                               else\r
-                               {\r
-                                       _authority = baseURI.substr(0, index);\r
-                                       _path = baseURI.substr(index, baseURI.length - index);\r
-                               }\r
-               \r
-                               // Check to see if the URI has any username or password information.\r
-                               // For example:  ftp://username:password@server.com\r
-                               index = _authority.search('@');\r
-                               if (index != -1)\r
-                               {\r
-                                       // We have a username and possibly a password\r
-                                       _username = _authority.substr(0, index);\r
-               \r
-                                       // Remove the username/password from the authority\r
-                                       _authority = _authority.substr(index + 1);  // Skip the '@'\r
-               \r
-                                       // Now check to see if the username also has a password\r
-                                       index = _username.search(':');\r
-                                       if (index != -1)\r
-                                       {\r
-                                               _password = _username.substring(index + 1, _username.length);\r
-                                               _username = _username.substr(0, index);\r
-                                       }\r
-                                       else\r
-                                               _password = "";\r
-                               }\r
-                               else\r
-                               {\r
-                                       _username = "";\r
-                                       _password = "";\r
-                               }\r
-               \r
-                               // Lastly, check to see if the authorty has a port number.\r
-                               // This is parsed after the username/password to avoid conflicting\r
-                               // with the ':' in the 'username:password' if one exists.\r
-                               index = _authority.search(':');\r
-                               if (index != -1)\r
-                               {\r
-                                       _port = _authority.substring(index + 1, _authority.length);  // skip the ':'\r
-                                       _authority = _authority.substr(0, index);\r
-                               }\r
-                               else\r
-                               {\r
-                                       _port = "";\r
-                               }\r
-                               \r
-                               // Lastly, normalize the authority.  Domain names\r
-                               // are case insensitive.\r
-                               _authority = _authority.toLowerCase();\r
-                       }\r
-               \r
-                       if ((_valid = validateURI()) == false)\r
-                               initialize();  // Bad URI.  Clear it\r
-               \r
-                       return isValid();\r
-               }\r
-               \r
-               \r
-               /********************************************************************\r
-                * Copy function.\r
-                */\r
-               public function copyURI(uri:URI) : void\r
-               {\r
-                       this._scheme = uri._scheme;\r
-                       this._authority = uri._authority;\r
-                       this._username = uri._username;\r
-                       this._password = uri._password;\r
-                       this._port = uri._port;\r
-                       this._path = uri._path;\r
-                       this._query = uri._query;\r
-                       this._fragment = uri._fragment;\r
-                       this._nonHierarchical = uri._nonHierarchical;\r
-               \r
-                       this._valid = uri._valid;\r
-                       this._relative = uri._relative;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * @private\r
-                * Checks if the given string only contains a-z or A-Z.\r
-                */\r
-               protected function verifyAlpha(str:String) : Boolean\r
-               {\r
-                       var pattern:RegExp = /[^a-z]/;\r
-                       var index:int;\r
-                       \r
-                       str = str.toLowerCase();\r
-                       index = str.search(pattern);\r
-                       \r
-                       if (index == -1)\r
-                               return true;\r
-                       else\r
-                               return false;\r
-               }\r
-               \r
-               /**\r
-                * Is this a valid URI?\r
-                * \r
-                * @return true if this object represents a valid URI, false\r
-                * otherwise.\r
-                */\r
-               public function isValid() : Boolean\r
-               { \r
-                       return this._valid;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Is this URI an absolute URI?  An absolute URI is a complete, fully\r
-                * qualified reference to a resource.  e.g. http://site.com/index.htm\r
-                * Non-hierarchical URI's are always absolute.\r
-                */\r
-               public function isAbsolute() : Boolean\r
-               { \r
-                       return !this._relative;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Is this URI a relative URI?  Relative URI's do not have a scheme\r
-                * and only contain a relative path with optional anchor and query\r
-                * parts.  e.g. "../reports/index.htm".  Non-hierarchical URI's\r
-                * will never be relative.\r
-                */\r
-               public function isRelative() : Boolean\r
-               { \r
-                       return this._relative;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Does this URI point to a resource that is a directory/folder?\r
-                * The URI specification dictates that any path that ends in a slash\r
-                * is a directory.  This is needed to be able to perform correct path\r
-                * logic when combining relative URI's with absolute URI's to\r
-                * obtain the correct absolute URI to a resource.\r
-                * \r
-                * @see URI.chdir\r
-                * \r
-                * @return true if this URI represents a directory resource, false\r
-                * if this URI represents a file resource.\r
-                */\r
-               public function isDirectory() : Boolean\r
-               {\r
-                       if (_path.length == 0)\r
-                               return false;\r
-               \r
-                       return (_path.charAt(path.length - 1) == '/');\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Is this URI a hierarchical URI? URI's can be  \r
-                */\r
-               public function isHierarchical() : Boolean\r
-               { \r
-                       return hierState;\r
-               }\r
-                               \r
-               \r
-               /**\r
-                * The scheme of the URI.\r
-                */\r
-               public function get scheme() : String\r
-               { \r
-                       return URI.unescapeChars(_scheme);\r
-               }\r
-               public function set scheme(schemeStr:String) : void\r
-               {\r
-                       // Normalize the scheme\r
-                       var normalized:String = schemeStr.toLowerCase();\r
-                       _scheme = URI.fastEscapeChars(normalized, URI.URIschemeExcludedBitmap);\r
-               }\r
-               \r
-               \r
-               /**\r
-                * The authority (host) of the URI.  Only valid for\r
-                * hierarchical URI's.  If the URI is relative, this will\r
-                * be an empty string. When setting this value, the string\r
-                * given is assumed to be unescaped.  When retrieving this\r
-                * value, the resulting string is unescaped.\r
-                */\r
-               public function get authority() : String\r
-               { \r
-                       return URI.unescapeChars(_authority);\r
-               }\r
-               public function set authority(authorityStr:String) : void\r
-               {\r
-                       // Normalize the authority\r
-                       authorityStr = authorityStr.toLowerCase();\r
-                       \r
-                       _authority = URI.fastEscapeChars(authorityStr,\r
-                               URI.URIauthorityExcludedBitmap);\r
-                       \r
-                       // Only hierarchical URI's can have an authority, make\r
-                       // sure this URI is of the proper format.\r
-                       this.hierState = true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * The username of the URI.  Only valid for hierarchical\r
-                * URI's.  If the URI is relative, this will be an empty\r
-                * string.\r
-                * \r
-                * <p>The URI specification allows for authentication\r
-                * credentials to be embedded in the URI as such:</p>\r
-                * \r
-                * <p>http://user:passwd&#64;host/path/to/file.htm</p>\r
-                * \r
-                * <p>When setting this value, the string\r
-                * given is assumed to be unescaped.  When retrieving this\r
-                * value, the resulting string is unescaped.</p>\r
-                */\r
-               public function get username() : String\r
-               {\r
-                       return URI.unescapeChars(_username);\r
-               }\r
-               public function set username(usernameStr:String) : void\r
-               {\r
-                       _username = URI.fastEscapeChars(usernameStr, URI.URIuserpassExcludedBitmap);\r
-                       \r
-                       // Only hierarchical URI's can have a username.\r
-                       this.hierState = true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * The password of the URI.  Similar to username.\r
-                * @see URI.username\r
-                */\r
-               public function get password() : String\r
-               {\r
-                       return URI.unescapeChars(_password);\r
-               }\r
-               public function set password(passwordStr:String) : void\r
-               {\r
-                       _password = URI.fastEscapeChars(passwordStr,\r
-                               URI.URIuserpassExcludedBitmap);\r
-                       \r
-                       // Only hierarchical URI's can have a password.\r
-                       this.hierState = true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * The host port number.  Only valid for hierarchical URI's.  If\r
-                * the URI is relative, this will be an empty string. URI's can\r
-                * contain the port number of the remote host:\r
-                * \r
-                * <p>http://site.com:8080/index.htm</p>\r
-                */\r
-               public function get port() : String\r
-               { \r
-                       return URI.unescapeChars(_port);\r
-               }\r
-               public function set port(portStr:String) : void\r
-               {\r
-                       _port = URI.escapeChars(portStr);\r
-                       \r
-                       // Only hierarchical URI's can have a port.\r
-                       this.hierState = true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * The path portion of the URI.  Only valid for hierarchical\r
-                * URI's.  When setting this value, the string\r
-                * given is assumed to be unescaped.  When retrieving this\r
-                * value, the resulting string is unescaped.\r
-                * \r
-                * <p>The path portion can be in one of two formats. 1) an absolute\r
-                * path, or 2) a relative path.  An absolute path starts with a\r
-                * slash ('/'), a relative path does not.</p>\r
-                * \r
-                * <p>An absolute path may look like:</p>\r
-                * <listing>/full/path/to/my/file.htm</listing>\r
-                * \r
-                * <p>A relative path may look like:</p>\r
-                * <listing>\r
-                * path/to/my/file.htm\r
-                * ../images/logo.gif\r
-                * ../../reports/index.htm\r
-                * </listing>\r
-                * \r
-                * <p>Paths can be absolute or relative.  Note that this not the same as\r
-                * an absolute or relative URI.  An absolute URI can only have absolute\r
-                * paths.  For example:</p>\r
-                * \r
-                * <listing>http:/site.com/path/to/file.htm</listing>\r
-                * \r
-                * <p>This absolute URI has an absolute path of "/path/to/file.htm".</p>\r
-                * \r
-                * <p>Relative URI's can have either absolute paths or relative paths.\r
-                * All of the following relative URI's are valid:</p>\r
-                * \r
-                * <listing>\r
-                * /absolute/path/to/file.htm\r
-                * path/to/file.htm\r
-                * ../path/to/file.htm\r
-                * </listing>\r
-                */\r
-               public function get path() : String\r
-               { \r
-                       return URI.unescapeChars(_path);\r
-               }\r
-               public function set path(pathStr:String) : void\r
-               {       \r
-                       this._path = URI.fastEscapeChars(pathStr, URI.URIpathExcludedBitmap);\r
-               \r
-                       if (this._scheme == UNKNOWN_SCHEME)\r
-                       {\r
-                               // We set the path.  This is a valid URI now.\r
-                               this._scheme = "";\r
-                       }\r
-               \r
-                       // Only hierarchical URI's can have a path.\r
-                       hierState = true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * The query (CGI) portion of the URI.  This part is valid for\r
-                * both hierarchical and non-hierarchical URI's.\r
-                * \r
-                * <p>This accessor should only be used if a custom query syntax\r
-                * is used.  This URI class supports the common "param=value"\r
-                * style query syntax via the get/setQueryValue() and\r
-                * get/setQueryByMap() functions.  Those functions should be used\r
-                * instead if the common syntax is being used.\r
-                * \r
-                * <p>The URI RFC does not specify any particular\r
-                * syntax for the query part of a URI.  It is intended to allow\r
-                * any format that can be agreed upon by the two communicating hosts.\r
-                * However, most systems have standardized on the typical CGI\r
-                * format:</p>\r
-                * \r
-                * <listing>http://site.com/script.php?param1=value1&param2=value2</listing>\r
-                * \r
-                * <p>This class has specific support for this query syntax</p>\r
-                * \r
-                * <p>This common query format is an array of name/value\r
-                * pairs with its own syntax that is different from the overall URI\r
-                * syntax.  The query has its own escaping logic.  For a query part\r
-                * to be properly escaped and unescaped, it must be split into its\r
-                * component parts.  This accessor escapes/unescapes the entire query\r
-                * part without regard for it's component parts.  This has the\r
-                * possibliity of leaving the query string in an ambiguious state in\r
-                * regards to its syntax.  If the contents of the query part are\r
-                * important, it is recommended that get/setQueryValue() or\r
-                * get/setQueryByMap() are used instead.</p>\r
-                * \r
-                * If a different query syntax is being used, a subclass of URI\r
-                * can be created to handle that specific syntax.\r
-                *  \r
-                * @see URI.getQueryValue, URI.getQueryByMap\r
-                */\r
-               public function get query() : String\r
-               { \r
-                       return URI.unescapeChars(_query);\r
-               }\r
-               public function set query(queryStr:String) : void\r
-               {\r
-                       _query = URI.fastEscapeChars(queryStr, URI.URIqueryExcludedBitmap);\r
-                       \r
-                       // both hierarchical and non-hierarchical URI's can\r
-                       // have a query.  Do not set the hierState.\r
-               }\r
-               \r
-               /**\r
-                * Accessor to the raw query data.  If you are using a custom query\r
-                * syntax, this accessor can be used to get and set the query part\r
-                * directly with no escaping/unescaping.  This should ONLY be used\r
-                * if your application logic is handling custom query logic and\r
-                * handling the proper escaping of the query part.\r
-                */\r
-               public function get queryRaw() : String\r
-               {\r
-                       return _query;\r
-               }\r
-               public function set queryRaw(queryStr:String) : void\r
-               {\r
-                       _query = queryStr;\r
-               }\r
-\r
-\r
-               /**\r
-                * The fragment (anchor) portion of the URI.  This is valid for\r
-                * both hierarchical and non-hierarchical URI's.\r
-                */\r
-               public function get fragment() : String\r
-               { \r
-                       return URI.unescapeChars(_fragment);\r
-               }\r
-               public function set fragment(fragmentStr:String) : void\r
-               {\r
-                       _fragment = URI.fastEscapeChars(fragmentStr, URIfragmentExcludedBitmap);\r
-\r
-                       // both hierarchical and non-hierarchical URI's can\r
-                       // have a fragment.  Do not set the hierState.\r
-               }\r
-               \r
-               \r
-               /**\r
-                * The non-hierarchical part of the URI.  For example, if\r
-                * this URI object represents "mailto:somebody@company.com",\r
-                * this will contain "somebody@company.com".  This is valid only\r
-                * for non-hierarchical URI's.  \r
-                */\r
-               public function get nonHierarchical() : String\r
-               { \r
-                       return URI.unescapeChars(_nonHierarchical);\r
-               }\r
-               public function set nonHierarchical(nonHier:String) : void\r
-               {\r
-                       _nonHierarchical = URI.fastEscapeChars(nonHier, URInonHierexcludedBitmap);\r
-                       \r
-                       // This is a non-hierarchical URI.\r
-                       this.hierState = false;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Quick shorthand accessor to set the parts of this URI.\r
-                * The given parts are assumed to be in unescaped form.  If\r
-                * the URI is non-hierarchical (e.g. mailto:) you will need\r
-                * to call SetScheme() and SetNonHierarchical().\r
-                */\r
-               public function setParts(schemeStr:String, authorityStr:String,\r
-                               portStr:String, pathStr:String, queryStr:String,\r
-                               fragmentStr:String) : void\r
-               {\r
-                       this.scheme = schemeStr;\r
-                       this.authority = authorityStr;\r
-                       this.port = portStr;\r
-                       this.path = pathStr;\r
-                       this.query = queryStr;\r
-                       this.fragment = fragmentStr;\r
-\r
-                       hierState = true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * URI escapes the given character string.  This is similar in function\r
-                * to the global encodeURIComponent() function in ActionScript, but is\r
-                * slightly different in regards to which characters get escaped.  This\r
-                * escapes the characters specified in the URIbaselineExluded set (see class\r
-                * static members).  This is needed for this class to work properly.\r
-                * \r
-                * <p>If a different set of characters need to be used for the escaping,\r
-                * you may use fastEscapeChars() and specify a custom URIEncodingBitmap\r
-                * that contains the characters your application needs escaped.</p>\r
-                * \r
-                * <p>Never pass a full URI to this function.  A URI can only be properly\r
-                * escaped/unescaped when split into its component parts (see RFC 3986\r
-                * section 2.4).  This is due to the fact that the URI component separators\r
-                * could be characters that would normally need to be escaped.</p>\r
-                * \r
-                * @param unescaped character string to be escaped.\r
-                * \r
-                * @return      escaped character string\r
-                * \r
-                * @see encodeURIComponent\r
-                * @see fastEscapeChars\r
-                */\r
-               static public function escapeChars(unescaped:String) : String\r
-               {\r
-                       // This uses the excluded set by default.\r
-                       return fastEscapeChars(unescaped, URI.URIbaselineExcludedBitmap);\r
-               }\r
-               \r
-\r
-               /**\r
-                * Unescape any URI escaped characters in the given character\r
-                * string.\r
-                * \r
-                * <p>Never pass a full URI to this function.  A URI can only be properly\r
-                * escaped/unescaped when split into its component parts (see RFC 3986\r
-                * section 2.4).  This is due to the fact that the URI component separators\r
-                * could be characters that would normally need to be escaped.</p>\r
-                * \r
-                * @param escaped the escaped string to be unescaped.\r
-                * \r
-                * @return      unescaped string.\r
-                */\r
-               static public function unescapeChars(escaped:String /*, onlyHighASCII:Boolean = false*/) : String\r
-               {\r
-                       // We can just use the default AS function.  It seems to\r
-                       // decode everything correctly\r
-                       var unescaped:String;\r
-                       unescaped = decodeURIComponent(escaped);\r
-                       return unescaped;\r
-               }\r
-               \r
-               /**\r
-                * Performance focused function that escapes the given character\r
-                * string using the given URIEncodingBitmap as the rule for what\r
-                * characters need to be escaped.  This function is used by this\r
-                * class and can be used externally to this class to perform\r
-                * escaping on custom character sets.\r
-                * \r
-                * <p>Never pass a full URI to this function.  A URI can only be properly\r
-                * escaped/unescaped when split into its component parts (see RFC 3986\r
-                * section 2.4).  This is due to the fact that the URI component separators\r
-                * could be characters that would normally need to be escaped.</p>\r
-                * \r
-                * @param unescaped             the unescaped string to be escaped\r
-                * @param bitmap                the set of characters that need to be escaped\r
-                * \r
-                * @return      the escaped string.\r
-                */\r
-               static public function fastEscapeChars(unescaped:String, bitmap:URIEncodingBitmap) : String\r
-               {\r
-                       var escaped:String = "";\r
-                       var c:String;\r
-                       var x:int, i:int;\r
-                       \r
-                       for (i = 0; i < unescaped.length; i++)\r
-                       {\r
-                               c = unescaped.charAt(i);\r
-                               \r
-                               x = bitmap.ShouldEscape(c);\r
-                               if (x)\r
-                               {\r
-                                       c = x.toString(16);\r
-                                       if (c.length == 1)\r
-                                               c = "0" + c;\r
-                                               \r
-                                       c = "%" + c;\r
-                                       c = c.toUpperCase();\r
-                               }\r
-                               \r
-                               escaped += c;\r
-                       }\r
-                       \r
-                       return escaped;\r
-               }\r
-\r
-               \r
-               /**\r
-                * Is this URI of a particular scheme type?  For example,\r
-                * passing "http" to a URI object that represents the URI\r
-                * "http://site.com/" would return true.\r
-                * \r
-                * @param scheme        scheme to check for\r
-                * \r
-                * @return true if this URI object is of the given type, false\r
-                * otherwise.\r
-                */\r
-               public function isOfType(scheme:String) : Boolean\r
-               {\r
-                       // Schemes are never case sensitive.  Ignore case.\r
-                       scheme = scheme.toLowerCase();\r
-                       return (this._scheme == scheme);\r
-               }\r
-\r
-\r
-               /**\r
-                * Get the value for the specified named in the query part.  This\r
-                * assumes the query part of the URI is in the common\r
-                * "name1=value1&name2=value2" syntax.  Do not call this function\r
-                * if you are using a custom query syntax.\r
-                * \r
-                * @param name  name of the query value to get.\r
-                * \r
-                * @return the value of the query name, empty string if the\r
-                * query name does not exist.\r
-                */\r
-               public function getQueryValue(name:String) : String\r
-               {\r
-                       var map:Object;\r
-                       var item:String;\r
-                       var value:String;\r
-               \r
-                       map = getQueryByMap();\r
-               \r
-                       for (item in map)\r
-                       {\r
-                               if (item == name)\r
-                               {\r
-                                       value = map[item];\r
-                                       return value;\r
-                               }\r
-                       }\r
-               \r
-                       // Didn't find the specified key\r
-                       return new String("");\r
-               }\r
-               \r
-\r
-               /**\r
-                * Set the given value on the given query name.  If the given name\r
-                * does not exist, it will automatically add this name/value pair\r
-                * to the query.  If null is passed as the value, it will remove\r
-                * the given item from the query.\r
-                * \r
-                * <p>This automatically escapes any characters that may conflict with\r
-                * the query syntax so that they are "safe" within the query.  The\r
-                * strings passed are assumed to be literal unescaped name and value.</p>\r
-                * \r
-                * @param name  name of the query value to set\r
-                * @param value value of the query item to set.  If null, this will\r
-                * force the removal of this item from the query.\r
-                */\r
-               public function setQueryValue(name:String, value:String) : void\r
-               {\r
-                       var map:Object;\r
-\r
-                       map = getQueryByMap();\r
-               \r
-                       // If the key doesn't exist yet, this will create a new pair in\r
-                       // the map.  If it does exist, this will overwrite the previous\r
-                       // value, which is what we want.\r
-                       map[name] = value;\r
-               \r
-                       setQueryByMap(map);\r
-               }\r
-\r
-               \r
-               /**\r
-                * Get the query of the URI in an Object class that allows for easy\r
-                * access to the query data via Object accessors.  For example:\r
-                * \r
-                * <listing>\r
-                * var query:Object = uri.getQueryByMap();\r
-                * var value:String = query["param"];    // get a value\r
-                * query["param2"] = "foo";   // set a new value\r
-                * </listing>\r
-                * \r
-                * @return Object that contains the name/value pairs of the query.\r
-                * \r
-                * @see #setQueryByMap\r
-                * @see #getQueryValue\r
-                * @see #setQueryValue\r
-                */\r
-               public function getQueryByMap() : Object\r
-               {\r
-                       var queryStr:String;\r
-                       var pair:String;\r
-                       var pairs:Array;\r
-                       var item:Array;\r
-                       var name:String, value:String;\r
-                       var index:int;\r
-                       var map:Object = new Object();\r
-               \r
-               \r
-                       // We need the raw query string, no unescaping.\r
-                       queryStr = this._query;\r
-                       \r
-                       pairs = queryStr.split('&');\r
-                       for each (pair in pairs)\r
-                       {\r
-                               if (pair.length == 0)\r
-                                 continue;\r
-                                 \r
-                               item = pair.split('=');\r
-                               \r
-                               if (item.length > 0)\r
-                                       name = item[0];\r
-                               else\r
-                                       continue;  // empty array\r
-                               \r
-                               if (item.length > 1)\r
-                                       value = item[1];\r
-                               else\r
-                                       value = "";\r
-                                       \r
-                               name = queryPartUnescape(name);\r
-                               value = queryPartUnescape(value);\r
-                               \r
-                               map[name] = value;\r
-                       }\r
-       \r
-                       return map;\r
-               }\r
-               \r
-\r
-               /**\r
-                * Set the query part of this URI using the given object as the\r
-                * content source.  Any member of the object that has a value of\r
-                * null will not be in the resulting query.\r
-                * \r
-                * @param map   object that contains the name/value pairs as\r
-                *    members of that object.\r
-                * \r
-                * @see #getQueryByMap\r
-                * @see #getQueryValue\r
-                * @see #setQueryValue\r
-                */\r
-               public function setQueryByMap(map:Object) : void\r
-               {\r
-                       var item:String;\r
-                       var name:String, value:String;\r
-                       var queryStr:String = "";\r
-                       var tmpPair:String;\r
-                       var foo:String;\r
-               \r
-                       for (item in map)\r
-                       {\r
-                               name = item;\r
-                               value = map[item];\r
-               \r
-                               if (value == null)\r
-                                       value = "";\r
-                               \r
-                               // Need to escape the name/value pair so that they\r
-                               // don't conflict with the query syntax (specifically\r
-                               // '=', '&', and <whitespace>).\r
-                               name = queryPartEscape(name);\r
-                               value = queryPartEscape(value);\r
-                               \r
-                               tmpPair = name;\r
-                               \r
-                               if (value.length > 0)\r
-                               {\r
-                                       tmpPair += "=";\r
-                                       tmpPair += value;\r
-                               }\r
-\r
-                               if (queryStr.length != 0)\r
-                                       queryStr += '&';  // Add the separator\r
-               \r
-                               queryStr += tmpPair;\r
-                       }\r
-               \r
-                       // We don't want to escape.  We already escaped the\r
-                       // individual name/value pairs.  If we escaped the\r
-                       // query string again by assigning it to "query",\r
-                       // we would have double escaping.\r
-                       _query = queryStr;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Similar to Escape(), except this also escapes characters that\r
-                * would conflict with the name/value pair query syntax.  This is\r
-                * intended to be called on each individual "name" and "value"\r
-                * in the query making sure that nothing in the name or value\r
-                * strings contain characters that would conflict with the query\r
-                * syntax (e.g. '=' and '&').\r
-                * \r
-                * @param unescaped             unescaped string that is to be escaped.\r
-                * \r
-                * @return escaped string.\r
-                * \r
-                * @see #queryUnescape\r
-                */\r
-               static public function queryPartEscape(unescaped:String) : String\r
-               {\r
-                       var escaped:String = unescaped;\r
-                       escaped = URI.fastEscapeChars(unescaped, URI.URIqueryPartExcludedBitmap);\r
-                       return escaped;\r
-               }\r
-               \r
-\r
-               /**\r
-                * Unescape the individual name/value string pairs.\r
-                * \r
-                * @param escaped       escaped string to be unescaped\r
-                * \r
-                * @return unescaped string\r
-                * \r
-                * @see #queryEscape\r
-                */\r
-               static public function queryPartUnescape(escaped:String) : String\r
-               {\r
-                       var unescaped:String = escaped;\r
-                       unescaped = unescapeChars(unescaped);\r
-                       return unescaped;\r
-               }\r
-               \r
-               /**\r
-                * Output this URI as a string.  The resulting string is properly\r
-                * escaped and well formed for machine processing.\r
-                */\r
-               public function toString() : String\r
-               {\r
-                       if (this == null)\r
-                               return "";\r
-                       else\r
-                               return toStringInternal(false);\r
-               }\r
-               \r
-               /**\r
-                * Output the URI as a string that is easily readable by a human.\r
-                * This outputs the URI with all escape sequences unescaped to\r
-                * their character representation.  This makes the URI easier for\r
-                * a human to read, but the URI could be completely invalid\r
-                * because some unescaped characters may now cause ambiguous parsing.\r
-                * This function should only be used if you want to display a URI to\r
-                * a user.  This function should never be used outside that specific\r
-                * case.\r
-                * \r
-                * @return the URI in string format with all escape sequences\r
-                * unescaped.\r
-                * \r
-                * @see #toString\r
-                */\r
-               public function toDisplayString() : String\r
-               {\r
-                       return toStringInternal(true);\r
-               }\r
-               \r
-               \r
-               /**\r
-                * @private\r
-                * \r
-                * The guts of toString()\r
-                */\r
-               protected function toStringInternal(forDisplay:Boolean) : String\r
-               {\r
-                       var uri:String = "";\r
-                       var part:String = "";\r
-               \r
-                       if (isHierarchical() == false)\r
-                       {\r
-                               // non-hierarchical URI\r
-               \r
-                               uri += (forDisplay ? this.scheme : _scheme);\r
-                               uri += ":";\r
-                               uri += (forDisplay ? this.nonHierarchical : _nonHierarchical);\r
-                       }\r
-                       else\r
-                       {\r
-                               // Hierarchical URI\r
-               \r
-                               if (isRelative() == false)\r
-                               {\r
-                                       // If it is not a relative URI, then we want the scheme and\r
-                                       // authority parts in the string.  If it is relative, we\r
-                                       // do NOT want this stuff.\r
-               \r
-                                       if (_scheme.length != 0)\r
-                                       {\r
-                                               part = (forDisplay ? this.scheme : _scheme);\r
-                                               uri += part + ":";\r
-                                       }\r
-               \r
-                                       if (_authority.length != 0 || isOfType("file"))\r
-                                       {\r
-                                               uri += "//";\r
-               \r
-                                               // Add on any username/password associated with this\r
-                                               // authority\r
-                                               if (_username.length != 0)\r
-                                               {\r
-                                                       part = (forDisplay ? this.username : _username);\r
-                                                       uri += part;\r
-               \r
-                                                       if (_password.length != 0)\r
-                                                       {\r
-                                                               part = (forDisplay ? this.password : _password);\r
-                                                               uri += ":" + part;\r
-                                                       }\r
-               \r
-                                                       uri += "@";\r
-                                               }\r
-               \r
-                                               // add the authority\r
-                                               part = (forDisplay ? this.authority : _authority);\r
-                                               uri += part;\r
-               \r
-                                               // Tack on the port number, if any\r
-                                               if (port.length != 0)\r
-                                                       uri += ":" + port;\r
-                                       }\r
-                               }\r
-               \r
-                               // Tack on the path\r
-                               part = (forDisplay ? this.path : _path);\r
-                               uri += part;\r
-               \r
-                       } // end hierarchical part\r
-               \r
-                       // Both non-hier and hierarchical have query and fragment parts\r
-               \r
-                       // Add on the query and fragment parts\r
-                       if (_query.length != 0)\r
-                       {\r
-                               part = (forDisplay ? this.query : _query);\r
-                               uri += "?" + part;\r
-                       }\r
-               \r
-                       if (fragment.length != 0)\r
-                       {\r
-                               part = (forDisplay ? this.fragment : _fragment);\r
-                               uri += "#" + part;\r
-                       }\r
-               \r
-                       return uri;\r
-               }\r
-       \r
-               /**\r
-                * Forcefully ensure that this URI is properly escaped.\r
-                * \r
-                * <p>Sometimes URI's are constructed by hand using strings outside\r
-                * this class.  In those cases, it is unlikely the URI has been\r
-                * properly escaped.  This function forcefully escapes this URI\r
-                * by unescaping each part and then re-escaping it.  If the URI\r
-                * did not have any escaping, the first unescape will do nothing\r
-                * and then the re-escape will properly escape everything.  If\r
-                * the URI was already escaped, the unescape and re-escape will\r
-                * essentally be a no-op.  This provides a safe way to make sure\r
-                * a URI is in the proper escaped form.</p>\r
-                */\r
-               public function forceEscape() : void\r
-               {\r
-                       // The accessors for each of the members will unescape\r
-                       // and then re-escape as we get and assign them.\r
-                       \r
-                       // Handle the parts that are common for both hierarchical\r
-                       // and non-hierarchical URI's\r
-                       this.scheme = this.scheme;\r
-                       this.setQueryByMap(this.getQueryByMap());\r
-                       this.fragment = this.fragment;\r
-                       \r
-                       if (isHierarchical())\r
-                       {\r
-                               this.authority = this.authority;\r
-                               this.path = this.path;\r
-                               this.port = this.port;\r
-                               this.username = this.username;\r
-                               this.password = this.password;\r
-                       }\r
-                       else\r
-                       {\r
-                               this.nonHierarchical = this.nonHierarchical;\r
-                       }\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Does this URI point to a resource of the given file type?\r
-                * Given a file extension (or just a file name, this will strip the\r
-                * extension), check to see if this URI points to a file of that\r
-                * type.\r
-                * \r
-                * @param extension     string that contains a file extension with or\r
-                * without a dot ("html" and ".html" are both valid), or a file\r
-                * name with an extension (e.g. "index.html").\r
-                * \r
-                * @return true if this URI points to a resource with the same file\r
-                * file extension as the extension provided, false otherwise.\r
-                */\r
-               public function isOfFileType(extension:String) : Boolean\r
-               {\r
-                       var thisExtension:String;\r
-                       var index:int;\r
-               \r
-                       index = extension.lastIndexOf(".");\r
-                       if (index != -1)\r
-                       {\r
-                               // Strip the extension\r
-                               extension = extension.substr(index + 1);\r
-                       }\r
-                       else\r
-                       {\r
-                               // The caller passed something without a dot in it.  We\r
-                               // will assume that it is just a plain extension (e.g. "html").\r
-                               // What they passed is exactly what we want\r
-                       }\r
-               \r
-                       thisExtension = getExtension(true);\r
-               \r
-                       if (thisExtension == "")\r
-                               return false;\r
-               \r
-                       // Compare the extensions ignoring case\r
-                       if (compareStr(thisExtension, extension, false) == 0)\r
-                               return true;\r
-                       else\r
-                               return false;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Get the ".xyz" file extension from the filename in the URI.\r
-                * For example, if we have the following URI:\r
-                * \r
-                * <listing>http://something.com/path/to/my/page.html?form=yes&name=bob#anchor</listing>\r
-                * \r
-                * <p>This will return ".html".</p>\r
-                * \r
-                * @param minusDot   If true, this will strip the dot from the extension.\r
-                * If true, the above example would have returned "html".\r
-                * \r
-                * @return  the file extension\r
-                */\r
-               public function getExtension(minusDot:Boolean = false) : String\r
-               {\r
-                       var filename:String = getFilename();\r
-                       var extension:String;\r
-                       var index:int;\r
-               \r
-                       if (filename == "")\r
-                               return String("");\r
-               \r
-                       index = filename.lastIndexOf(".");\r
-               \r
-                       // If it doesn't have an extension, or if it is a "hidden" file,\r
-                       // it doesn't have an extension.  Hidden files on unix start with\r
-                       // a dot (e.g. ".login").\r
-                       if (index == -1 || index == 0)\r
-                               return String("");\r
-               \r
-                       extension = filename.substr(index);\r
-               \r
-                       // If the caller does not want the dot, remove it.\r
-                       if (minusDot && extension.charAt(0) == ".")\r
-                               extension = extension.substr(1);\r
-               \r
-                       return extension;\r
-               }\r
-               \r
-               /**\r
-                * Quick function to retrieve the file name off the end of a URI.\r
-                * \r
-                * <p>For example, if the URI is:</p>\r
-                * <listing>http://something.com/some/path/to/my/file.html</listing>\r
-                * <p>this function will return "file.html".</p>\r
-                * \r
-                * @param minusExtension true if the file extension should be stripped\r
-                * \r
-                * @return the file name.  If this URI is a directory, the return\r
-                * value will be empty string.\r
-                */\r
-               public function getFilename(minusExtension:Boolean = false) : String\r
-               {\r
-                       if (isDirectory())\r
-                               return String("");\r
-               \r
-                       var pathStr:String = this.path;\r
-                       var filename:String;\r
-                       var index:int;\r
-               \r
-                       // Find the last path separator.\r
-                       index = pathStr.lastIndexOf("/");\r
-               \r
-                       if (index != -1)\r
-                               filename = pathStr.substr(index + 1);\r
-                       else\r
-                               filename = pathStr;\r
-               \r
-                       if (minusExtension)\r
-                       {\r
-                               // The caller has requested that the extension be removed\r
-                               index = filename.lastIndexOf(".");\r
-               \r
-                               if (index != -1)\r
-                                       filename = filename.substr(0, index);\r
-                       }\r
-               \r
-                       return filename;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * @private\r
-                * Helper function to compare strings.\r
-                * \r
-                * @return true if the two strings are identical, false otherwise.\r
-                */\r
-               static protected function compareStr(str1:String, str2:String,\r
-                       sensitive:Boolean = true) : Boolean\r
-               {\r
-                       if (sensitive == false)\r
-                       {\r
-                               str1 = str1.toLowerCase();\r
-                               str2 = str2.toLowerCase();\r
-                       }\r
-                       \r
-                       return (str1 == str2)\r
-               }\r
-               \r
-               /**\r
-                * Based on the type of this URI (http, ftp, etc.) get\r
-                * the default port used for that protocol.  This is\r
-                * just intended to be a helper function for the most\r
-                * common cases.\r
-                */\r
-               public function getDefaultPort() : String\r
-               {\r
-                       if (_scheme == "http")\r
-                               return String("80");\r
-                       else if (_scheme == "ftp")\r
-                               return String("21");\r
-                       else if (_scheme == "file")\r
-                               return String("");\r
-                       else if (_scheme == "sftp")\r
-                               return String("22"); // ssh standard port\r
-                       else\r
-                       {\r
-                               // Don't know the port for this URI type\r
-                               return String("");\r
-                       }\r
-               }\r
-               \r
-               /**\r
-                * @private\r
-                * \r
-                * This resolves the given URI if the application has a\r
-                * resolver interface defined.  This function does not\r
-                * modify the passed in URI and returns a new URI.\r
-                */\r
-               static protected function resolve(uri:URI) : URI\r
-               {\r
-                       var copy:URI = new URI();\r
-                       copy.copyURI(uri);\r
-                       \r
-                       if (_resolver != null)\r
-                       {\r
-                               // A resolver class has been registered.  Call it.\r
-                               return _resolver.resolve(copy);\r
-                       }\r
-                       else\r
-                       {\r
-                               // No resolver.  Nothing to do, but we don't\r
-                               // want to reuse the one passed in.\r
-                               return copy;\r
-                       }\r
-               }\r
-               \r
-               /**\r
-                * Accessor to set and get the resolver object used by all URI\r
-                * objects to dynamically resolve URI's before comparison.\r
-                */\r
-               static public function set resolver(resolver:IURIResolver) : void\r
-               {\r
-                       _resolver = resolver;\r
-               }\r
-               static public function get resolver() : IURIResolver\r
-               {\r
-                       return _resolver;\r
-               }\r
-               \r
-               /**\r
-                * Given another URI, return this URI object's relation to the one given.\r
-                * URI's can have 1 of 4 possible relationships.  They can be unrelated,\r
-                * equal, parent, or a child of the given URI.\r
-                * \r
-                * @param uri   URI to compare this URI object to.\r
-                * @param caseSensitive  true if the URI comparison should be done\r
-                * taking case into account, false if the comparison should be\r
-                * performed case insensitive.\r
-                * \r
-                * @return URI.NOT_RELATED, URI.CHILD, URI.PARENT, or URI.EQUAL\r
-                */\r
-               public function getRelation(uri:URI, caseSensitive:Boolean = true) : int\r
-               {\r
-                       // Give the app a chance to resolve these URI's before we compare them.\r
-                       var thisURI:URI = URI.resolve(this);\r
-                       var thatURI:URI = URI.resolve(uri);\r
-                       \r
-                       if (thisURI.isRelative() || thatURI.isRelative())\r
-                       {\r
-                               // You cannot compare relative URI's due to their lack of context.\r
-                               // You could have two relative URI's that look like:\r
-                               //              ../../images/\r
-                               //              ../../images/marketing/logo.gif\r
-                               // These may appear related, but you have no overall context\r
-                               // from which to make the comparison.  The first URI could be\r
-                               // from one site and the other URI could be from another site.\r
-                               return URI.NOT_RELATED;\r
-                       }\r
-                       else if (thisURI.isHierarchical() == false || thatURI.isHierarchical() == false)\r
-                       {\r
-                               // One or both of the URI's are non-hierarchical.\r
-                               if (((thisURI.isHierarchical() == false) && (thatURI.isHierarchical() == true)) ||\r
-                                       ((thisURI.isHierarchical() == true) && (thatURI.isHierarchical() == false)))\r
-                               {\r
-                                       // XOR.  One is hierarchical and the other is\r
-                                       // non-hierarchical.  They cannot be compared.\r
-                                       return URI.NOT_RELATED;\r
-                               }\r
-                               else\r
-                               {\r
-                                       // They are both non-hierarchical\r
-                                       if (thisURI.scheme != thatURI.scheme)\r
-                                               return URI.NOT_RELATED;\r
-               \r
-                                       if (thisURI.nonHierarchical != thatURI.nonHierarchical)\r
-                                               return URI.NOT_RELATED;\r
-                                               \r
-                                       // The two non-hierarcical URI's are equal.\r
-                                       return URI.EQUAL;\r
-                               }\r
-                       }\r
-                       \r
-                       // Ok, this URI and the one we are being compared to are both\r
-                       // absolute hierarchical URI's.\r
-               \r
-                       if (thisURI.scheme != thatURI.scheme)\r
-                               return URI.NOT_RELATED;\r
-               \r
-                       if (thisURI.authority != thatURI.authority)\r
-                               return URI.NOT_RELATED;\r
-               \r
-                       var thisPort:String = thisURI.port;\r
-                       var thatPort:String = thatURI.port;\r
-                       \r
-                       // Different ports are considered completely different servers.\r
-                       if (thisPort == "")\r
-                               thisPort = thisURI.getDefaultPort();\r
-                       if (thatPort == "")\r
-                               thatPort = thatURI.getDefaultPort();\r
-               \r
-                       // Check to see if the port is the default port.\r
-                       if (thisPort != thatPort)\r
-                               return URI.NOT_RELATED;\r
-               \r
-                       if (compareStr(thisURI.path, thatURI.path, caseSensitive))\r
-                               return URI.EQUAL;\r
-               \r
-                       // Special case check.  If we are here, the scheme, authority,\r
-                       // and port match, and it is not a relative path, but the\r
-                       // paths did not match.  There is a special case where we\r
-                       // could have:\r
-                       //              http://something.com/\r
-                       //              http://something.com\r
-                       // Technically, these are equal.  So lets, check for this case.\r
-                       var thisPath:String = thisURI.path;\r
-                       var thatPath:String = thatURI.path;\r
-               \r
-                       if ( (thisPath == "/" || thatPath == "/") &&\r
-                                (thisPath == "" || thatPath == "") )\r
-                       {\r
-                               // We hit the special case.  These two are equal.\r
-                               return URI.EQUAL;\r
-                       }\r
-               \r
-                       // Ok, the paths do not match, but one path may be a parent/child\r
-                       // of the other.  For example, we may have:\r
-                       //              http://something.com/path/to/homepage/\r
-                       //              http://something.com/path/to/homepage/images/logo.gif\r
-                       // In this case, the first is a parent of the second (or the second\r
-                       // is a child of the first, depending on which you compare to the\r
-                       // other).  To make this comparison, we must split the path into\r
-                       // its component parts (split the string on the '/' path delimiter).\r
-                       // We then compare the \r
-                       var thisParts:Array, thatParts:Array;\r
-                       var thisPart:String, thatPart:String;\r
-                       var i:int;\r
-               \r
-                       thisParts = thisPath.split("/");\r
-                       thatParts = thatPath.split("/");\r
-               \r
-                       if (thisParts.length > thatParts.length)\r
-                       {\r
-                               thatPart = thatParts[thatParts.length - 1];\r
-                               if (thatPart.length > 0)\r
-                               {\r
-                                       // if the last part is not empty, the passed URI is\r
-                                       // not a directory.  There is no way the passed URI\r
-                                       // can be a parent.\r
-                                       return URI.NOT_RELATED;\r
-                               }\r
-                               else\r
-                               {\r
-                                       // Remove the empty trailing part\r
-                                       thatParts.pop();\r
-                               }\r
-                               \r
-                               // This may be a child of the one passed in\r
-                               for (i = 0; i < thatParts.length; i++)\r
-                               {\r
-                                       thisPart = thisParts[i];\r
-                                       thatPart = thatParts[i];\r
-                                               \r
-                                       if (compareStr(thisPart, thatPart, caseSensitive) == false)\r
-                                               return URI.NOT_RELATED;\r
-                               }\r
-               \r
-                               return URI.CHILD;\r
-                       }\r
-                       else if (thisParts.length < thatParts.length)\r
-                       {\r
-                               thisPart = thisParts[thisParts.length - 1];\r
-                               if (thisPart.length > 0)\r
-                               {\r
-                                       // if the last part is not empty, this URI is not a\r
-                                       // directory.  There is no way this object can be\r
-                                       // a parent.\r
-                                       return URI.NOT_RELATED;\r
-                               }\r
-                               else\r
-                               {\r
-                                       // Remove the empty trailing part\r
-                                       thisParts.pop();\r
-                               }\r
-                               \r
-                               // This may be the parent of the one passed in\r
-                               for (i = 0; i < thisParts.length; i++)\r
-                               {\r
-                                       thisPart = thisParts[i];\r
-                                       thatPart = thatParts[i];\r
-               \r
-                                       if (compareStr(thisPart, thatPart, caseSensitive) == false)\r
-                                               return URI.NOT_RELATED;\r
-                               }\r
-                               \r
-                               return URI.PARENT;\r
-                       }\r
-                       else\r
-                       {\r
-                               // Both URI's have the same number of path components, but\r
-                               // it failed the equivelence check above.  This means that\r
-                               // the two URI's are not related.\r
-                               return URI.NOT_RELATED;\r
-                       }\r
-                       \r
-                       // If we got here, the scheme and authority are the same,\r
-                       // but the paths pointed to two different locations that\r
-                       // were in different parts of the file system tree\r
-                       return URI.NOT_RELATED;\r
-               }\r
-               \r
-               /**\r
-                * Given another URI, return the common parent between this one\r
-                * and the provided URI.\r
-                * \r
-                * @param uri the other URI from which to find a common parent\r
-                * @para caseSensitive true if this operation should be done\r
-                * with case sensitive comparisons.\r
-                * \r
-                * @return the parent URI if successful, null otherwise.\r
-                */\r
-               public function getCommonParent(uri:URI, caseSensitive:Boolean = true) : URI\r
-               {\r
-                       var thisURI:URI = URI.resolve(this);\r
-                       var thatURI:URI = URI.resolve(uri);\r
-               \r
-                       if(!thisURI.isAbsolute() || !thatURI.isAbsolute() ||\r
-                               thisURI.isHierarchical() == false ||\r
-                               thatURI.isHierarchical() == false)\r
-                       {\r
-                               // Both URI's must be absolute hierarchical for this to\r
-                               // make sense.\r
-                               return null;\r
-                       }\r
-                       \r
-                       var relation:int = thisURI.getRelation(thatURI);\r
-                       if (relation == URI.NOT_RELATED)\r
-                       {\r
-                               // The given URI is not related to this one.  No\r
-                               // common parent.\r
-                               return null;\r
-                       }\r
-               \r
-                       thisURI.chdir(".");\r
-                       thatURI.chdir(".");\r
-                       \r
-                       var strBefore:String, strAfter:String;\r
-                       do\r
-                       {\r
-                               relation = thisURI.getRelation(thatURI, caseSensitive);\r
-                               if(relation == URI.EQUAL || relation == URI.PARENT)\r
-                                       break;\r
-               \r
-                               // If strBefore and strAfter end up being the same,\r
-                               // we know we are at the root of the path because\r
-                               // chdir("..") is doing nothing.\r
-                               strBefore = thisURI.toString();\r
-                               thisURI.chdir("..");\r
-                               strAfter = thisURI.toString();\r
-                       }\r
-                       while(strBefore != strAfter);\r
-               \r
-                       return thisURI;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * This function is used to move around in a URI in a way similar\r
-                * to the 'cd' or 'chdir' commands on Unix.  These operations are\r
-                * completely string based, using the context of the URI to\r
-                * determine the position within the path.  The heuristics used\r
-                * to determine the action are based off Appendix C in RFC 2396.\r
-                * \r
-                * <p>URI paths that end in '/' are considered paths that point to\r
-                * directories, while paths that do not end in '/' are files.  For\r
-                * example, if you execute chdir("d") on the following URI's:<br/>\r
-                *    1.  http://something.com/a/b/c/  (directory)<br/>\r
-                *    2.  http://something.com/a/b/c  (not directory)<br/>\r
-                * you will get:<br/>\r
-                *    1.  http://something.com/a/b/c/d<br/>\r
-                *    2.  http://something.com/a/b/d<br/></p>\r
-                * \r
-                * <p>See RFC 2396, Appendix C for more info.</p>\r
-                * \r
-                * @param reference     the URI or path to "cd" to.\r
-                * @param escape true if the passed reference string should be URI\r
-                * escaped before using it.\r
-                * \r
-                * @return true if the chdir was successful, false otherwise.\r
-                */\r
-               public function chdir(reference:String, escape:Boolean = false) : Boolean\r
-               {\r
-                       var uriReference:URI;\r
-                       var ref:String = reference;\r
-               \r
-                       if (escape)\r
-                               ref = URI.escapeChars(reference);\r
-               \r
-                       if (ref == "")\r
-                       {\r
-                               // NOOP\r
-                               return true;\r
-                       }\r
-                       else if (ref.substr(0, 2) == "//")\r
-                       {\r
-                               // Special case.  This is an absolute URI but without the scheme.\r
-                               // Take the scheme from this URI and tack it on.  This is\r
-                               // intended to make working with chdir() a little more\r
-                               // tolerant.\r
-                               var final:String = this.scheme + ":" + ref;\r
-                               \r
-                               return constructURI(final);\r
-                       }\r
-                       else if (ref.charAt(0) == "?")\r
-                       {\r
-                               // A relative URI that is just a query part is essentially\r
-                               // a "./?query".  We tack on the "./" here to make the rest\r
-                               // of our logic work.\r
-                               ref = "./" + ref;\r
-                       }\r
-               \r
-                       // Parse the reference passed in as a URI.  This way we\r
-                       // get any query and fragments parsed out as well.\r
-                       uriReference = new URI(ref);\r
-               \r
-                       if (uriReference.isAbsolute() ||\r
-                               uriReference.isHierarchical() == false)\r
-                       {\r
-                               // If the URI given is a full URI, it replaces this one.\r
-                               copyURI(uriReference);\r
-                               return true;\r
-                       }\r
-               \r
-               \r
-                       var thisPath:String, thatPath:String;\r
-                       var thisParts:Array, thatParts:Array;\r
-                       var thisIsDir:Boolean = false, thatIsDir:Boolean = false;\r
-                       var thisIsAbs:Boolean = false, thatIsAbs:Boolean = false;\r
-                       var lastIsDotOperation:Boolean = false;\r
-                       var curDir:String;\r
-                       var i:int;\r
-               \r
-                       thisPath = this.path;\r
-                       thatPath = uriReference.path;\r
-               \r
-                       if (thisPath.length > 0)\r
-                               thisParts = thisPath.split("/");\r
-                       else\r
-                               thisParts = new Array();\r
-                               \r
-                       if (thatPath.length > 0)\r
-                               thatParts = thatPath.split("/");\r
-                       else\r
-                               thatParts = new Array();\r
-                       \r
-                       if (thisParts.length > 0 && thisParts[0] == "")\r
-                       {\r
-                               thisIsAbs = true;\r
-                               thisParts.shift(); // pop the first one off the array\r
-                       }\r
-                       if (thisParts.length > 0 && thisParts[thisParts.length - 1] == "")\r
-                       {\r
-                               thisIsDir = true;\r
-                               thisParts.pop();  // pop the last one off the array\r
-                       }\r
-                               \r
-                       if (thatParts.length > 0 && thatParts[0] == "")\r
-                       {\r
-                               thatIsAbs = true;\r
-                               thatParts.shift(); // pop the first one off the array\r
-                       }\r
-                       if (thatParts.length > 0 && thatParts[thatParts.length - 1] == "")\r
-                       {\r
-                               thatIsDir = true;\r
-                               thatParts.pop();  // pop the last one off the array\r
-                       }\r
-                               \r
-                       if (thatIsAbs)\r
-                       {\r
-                               // The reference is an absolute path (starts with a slash).\r
-                               // It replaces this path wholesale.\r
-                               this.path = uriReference.path;\r
-               \r
-                               // And it inherits the query and fragment\r
-                               this.queryRaw = uriReference.queryRaw;\r
-                               this.fragment = uriReference.fragment;\r
-               \r
-                               return true;\r
-                       }\r
-                       else if (thatParts.length == 0 && uriReference.query == "")\r
-                       {\r
-                               // The reference must have only been a fragment.  Fragments just\r
-                               // get appended to whatever the current path is.  We don't want\r
-                               // to overwrite any query that may already exist, so this case\r
-                               // only takes on the new fragment.\r
-                               this.fragment = uriReference.fragment;\r
-                               return true;\r
-                       }\r
-                       else if (thisIsDir == false && thisParts.length > 0)\r
-                       {\r
-                               // This path ends in a file.  It goes away no matter what.\r
-                               thisParts.pop();\r
-                       }\r
-               \r
-                       // By default, this assumes the query and fragment of the reference\r
-                       this.queryRaw = uriReference.queryRaw;\r
-                       this.fragment = uriReference.fragment;\r
-               \r
-                       // Append the parts of the path from the passed in reference\r
-                       // to this object's path.\r
-                       thisParts = thisParts.concat(thatParts);\r
-                                       \r
-                       for(i = 0; i < thisParts.length; i++)\r
-                       {\r
-                               curDir = thisParts[i];\r
-                               lastIsDotOperation = false;\r
-               \r
-                               if (curDir == ".")\r
-                               {\r
-                                       thisParts.splice(i, 1);\r
-                                       i = i - 1;  // account for removing this item\r
-                                       lastIsDotOperation = true;\r
-                               }\r
-                               else if (curDir == "..")\r
-                               {\r
-                                       if (i >= 1)\r
-                                       {\r
-                                               if (thisParts[i - 1] == "..")\r
-                                               {\r
-                                                       // If the previous is a "..", we must have skipped\r
-                                                       // it due to this URI being relative.  We can't\r
-                                                       // collapse leading ".."s in a relative URI, so\r
-                                                       // do nothing.\r
-                                               }\r
-                                               else\r
-                                               {\r
-                                                       thisParts.splice(i - 1, 2);\r
-                                                       i = i - 2;  // move back to account for the 2 we removed\r
-                                               }\r
-                                       }\r
-                                       else\r
-                                       {\r
-                                               // This is the first thing in the path.\r
-               \r
-                                               if (isRelative())\r
-                                               {\r
-                                                       // We can't collapse leading ".."s in a relative\r
-                                                       // path.  Do noting.\r
-                                               }\r
-                                               else\r
-                                               {\r
-                                                       // This is an abnormal case.  We have dot-dotted up\r
-                                                       // past the base of our "file system".  This is a\r
-                                                       // case where we had a /path/like/this.htm and were\r
-                                                       // given a path to chdir to like this:\r
-                                                       // ../../../../../../mydir\r
-                                                       // Obviously, it has too many ".." and will take us\r
-                                                       // up beyond the top of the URI.  However, according\r
-                                                       // RFC 2396 Appendix C.2, we should try to handle\r
-                                                       // these abnormal cases appropriately.  In this case,\r
-                                                       // we will do what UNIX command lines do if you are\r
-                                                       // at the root (/) of the filesystem and execute:\r
-                                                       // # cd ../../../../../bin\r
-                                                       // Which will put you in /bin.  Essentially, the extra\r
-                                                       // ".."'s will just get eaten.\r
-               \r
-                                                       thisParts.splice(i, 1);\r
-                                                       i = i - 1;  // account for the ".." we just removed\r
-                                               }\r
-                                       }\r
-               \r
-                                       lastIsDotOperation = true;\r
-                               }\r
-                       }\r
-                       \r
-                       var finalPath:String = "";\r
-               \r
-                       // If the last thing in the path was a "." or "..", then this thing is a\r
-                       // directory.  If the last thing isn't a dot-op, then we don't want to \r
-                       // blow away any information about the directory (hence the "|=" binary\r
-                       // assignment).\r
-                       thatIsDir = thatIsDir || lastIsDotOperation;\r
-               \r
-                       // Reconstruct the path with the abs/dir info we have\r
-                       finalPath = joinPath(thisParts, thisIsAbs, thatIsDir);\r
-               \r
-                       // Set the path (automatically escaping it)\r
-                       this.path = finalPath;\r
-               \r
-                       return true;\r
-               }\r
-               \r
-               /**\r
-                * @private\r
-                * Join an array of path parts back into a URI style path string.\r
-                * This is used by the various path logic functions to recombine\r
-                * a path.  This is different than the standard Array.join()\r
-                * function because we need to take into account the starting and\r
-                * ending path delimiters if this is an absolute path or a\r
-                * directory.\r
-                * \r
-                * @param parts the Array that contains strings of each path part.\r
-                * @param isAbs         true if the given path is absolute\r
-                * @param isDir         true if the given path is a directory\r
-                * \r
-                * @return the combined path string.\r
-                */\r
-               protected function joinPath(parts:Array, isAbs:Boolean, isDir:Boolean) : String\r
-               {\r
-                       var pathStr:String = "";\r
-                       var i:int;\r
-               \r
-                       for (i = 0; i < parts.length; i++)\r
-                       {\r
-                               if (pathStr.length > 0)\r
-                                       pathStr += "/";\r
-               \r
-                               pathStr += parts[i];\r
-                       }\r
-               \r
-                       // If this path is a directory, tack on the directory delimiter,\r
-                       // but only if the path contains something.  Adding this to an\r
-                       // empty path would make it "/", which is an absolute path that\r
-                       // starts at the root.\r
-                       if (isDir && pathStr.length > 0)\r
-                               pathStr += "/";\r
-               \r
-                       if (isAbs)\r
-                               pathStr = "/" + pathStr;\r
-               \r
-                       return pathStr;\r
-               }\r
-               \r
-               /**\r
-                * Given an absolute URI, make this relative URI absolute using\r
-                * the given URI as a base.  This URI instance must be relative\r
-                * and the base_uri must be absolute.\r
-                * \r
-                * @param base_uri      URI to use as the base from which to make\r
-                * this relative URI into an absolute URI.\r
-                * \r
-                * @return true if successful, false otherwise.\r
-                */\r
-               public function makeAbsoluteURI(base_uri:URI) : Boolean\r
-               {\r
-                       if (isAbsolute() || base_uri.isRelative())\r
-                       {\r
-                               // This URI needs to be relative, and the base needs to be\r
-                               // absolute otherwise we won't know what to do!\r
-                               return false;\r
-                       }\r
-               \r
-                       // Make a copy of the base URI.  We don't want to modify\r
-                       // the passed URI.\r
-                       var base:URI = new URI();\r
-                       base.copyURI(base_uri);\r
-               \r
-                       // ChDir on the base URI.  This will preserve any query\r
-                       // and fragment we have.\r
-                       if (base.chdir(toString()) == false)\r
-                               return false;\r
-               \r
-                       // It worked, so copy the base into this one\r
-                       copyURI(base);\r
-               \r
-                       return true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Given a URI to use as a base from which this object should be\r
-                * relative to, convert this object into a relative URI.  For example,\r
-                * if you have:\r
-                * \r
-                * <listing>\r
-                * var uri1:URI = new URI("http://something.com/path/to/some/file.html");\r
-                * var uri2:URI = new URI("http://something.com/path/to/another/file.html");\r
-                * \r
-                * uri1.MakeRelativePath(uri2);</listing>\r
-                * \r
-                * <p>uri1 will have a final value of "../some/file.html"</p>\r
-                * \r
-                * <p>Note! This function is brute force.  If you have two URI's\r
-                * that are completely unrelated, this will still attempt to make\r
-                * the relative URI.  In that case, you will most likely get a\r
-                * relative path that looks something like:</p>\r
-                * \r
-                * <p>../../../../../../some/path/to/my/file.html</p>\r
-                * \r
-                * @param base_uri the URI from which to make this URI relative\r
-                * \r
-                * @return true if successful, false if the base_uri and this URI\r
-                * are not related, of if error.\r
-                */\r
-               public function makeRelativeURI(base_uri:URI, caseSensitive:Boolean = true) : Boolean\r
-               {\r
-                       var base:URI = new URI();\r
-                       base.copyURI(base_uri);\r
-                       \r
-                       var thisParts:Array, thatParts:Array;\r
-                       var finalParts:Array = new Array();\r
-                       var thisPart:String, thatPart:String, finalPath:String;\r
-                       var pathStr:String = this.path;\r
-                       var queryStr:String = this.queryRaw;\r
-                       var fragmentStr:String = this.fragment;\r
-                       var i:int;\r
-                       var diff:Boolean = false;\r
-                       var isDir:Boolean = false;\r
-               \r
-                       if (isRelative())\r
-                       {\r
-                               // We're already relative.\r
-                               return true;\r
-                       }\r
-               \r
-                       if (base.isRelative())\r
-                       {\r
-                               // The base is relative.  A relative base doesn't make sense.\r
-                               return false;\r
-                       }\r
-               \r
-               \r
-                       if ( (isOfType(base_uri.scheme) == false) ||\r
-                               (this.authority != base_uri.authority) )\r
-                       {\r
-                               // The schemes and/or authorities are different.  We can't\r
-                               // make a relative path to something that is completely\r
-                               // unrelated.\r
-                               return false;\r
-                       }\r
-               \r
-                       // Record the state of this URI\r
-                       isDir = isDirectory();\r
-               \r
-                       // We are based of the directory of the given URI.  We need to\r
-                       // make sure the URI is pointing to a directory.  Changing\r
-                       // directory to "." will remove any file name if the base is\r
-                       // not a directory.\r
-                       base.chdir(".");\r
-               \r
-                       thisParts = pathStr.split("/");\r
-                       thatParts = base.path.split("/");\r
-                       \r
-                       if (thisParts.length > 0 && thisParts[0] == "")\r
-                               thisParts.shift();\r
-                       \r
-                       if (thisParts.length > 0 && thisParts[thisParts.length - 1] == "")\r
-                       {\r
-                               isDir = true;\r
-                               thisParts.pop();\r
-                       }\r
-                       \r
-                       if (thatParts.length > 0 && thatParts[0] == "")\r
-                               thatParts.shift();\r
-                       if (thatParts.length > 0 && thatParts[thatParts.length - 1] == "")\r
-                               thatParts.pop();\r
-               \r
-               \r
-                       // Now that we have the paths split into an array of directories,\r
-                       // we can compare the two paths.  We start from the left of side\r
-                       // of the path and start comparing.  When we either run out of\r
-                       // directories (one path is longer than the other), or we find\r
-                       // a directory that is different, we stop.  The remaining parts\r
-                       // of each path is then used to determine the relative path.  For\r
-                       // example, lets say we have:\r
-                       //    path we want to make relative: /a/b/c/d/e.txt\r
-                       //    path to use as base for relative: /a/b/f/\r
-                       //\r
-                       // This loop will start at the left, and remove directories\r
-                       // until we get a mismatch or run off the end of one of them.\r
-                       // In this example, the result will be:\r
-                       //    c/d/e.txt\r
-                       //    f\r
-                       //\r
-                       // For every part left over in the base path, we prepend a ".."\r
-                       // to the relative to get the final path:\r
-                       //   ../c/d/e.txt\r
-                       while(thatParts.length > 0)\r
-                       {\r
-                               if (thisParts.length == 0)\r
-                               {\r
-                                       // we matched all there is to match, we are done.\r
-                                       // This is the case where "this" object is a parent\r
-                                       // path of the given URI.  eg:\r
-                                       //   this.path = /a/b/                          (thisParts)\r
-                                       //   base.path = /a/b/c/d/e/            (thatParts)\r
-                                       break;\r
-                               }\r
-               \r
-                               thisPart = thisParts[0];\r
-                               thatPart = thatParts[0];\r
-               \r
-                               if (compareStr(thisPart, thatPart, caseSensitive))\r
-                               {\r
-                                       thisParts.shift();\r
-                                       thatParts.shift();\r
-                               }\r
-                               else\r
-                                       break;\r
-                       }\r
-               \r
-                       // If there are any path info left from the base URI, that means\r
-                       // **this** object is above the given URI in the file tree.  For\r
-                       // each part left over in the given URI, we need to move up one\r
-                       // directory to get where we are.\r
-                       var dotdot:String = "..";\r
-                       for (i = 0; i < thatParts.length; i++)\r
-                       {\r
-                               finalParts.push(dotdot);\r
-                       }\r
-               \r
-                       // Append the parts of this URI to any dot-dot's we have\r
-                       finalParts = finalParts.concat(thisParts);\r
-               \r
-                       // Join the parts back into a path\r
-                       finalPath = joinPath(finalParts, false /* not absolute */, isDir);\r
-               \r
-                       if (finalPath.length == 0)\r
-                       {\r
-                               // The two URI's are exactly the same.  The proper relative\r
-                               // path is:\r
-                               finalPath = "./";\r
-                       }\r
-               \r
-                       // Set the parts of the URI, preserving the original query and\r
-                       // fragment parts.\r
-                       setParts("", "", "", finalPath, queryStr, fragmentStr);\r
-               \r
-                       return true;\r
-               }\r
-               \r
-               /**\r
-                * Given a string, convert it to a URI.  The string could be a\r
-                * full URI that is improperly escaped, a malformed URI (e.g.\r
-                * missing a protocol like "www.something.com"), a relative URI,\r
-                * or any variation there of.\r
-                * \r
-                * <p>The intention of this function is to take anything that a\r
-                * user might manually enter as a URI/URL and try to determine what\r
-                * they mean.  This function differs from the URI constructor in\r
-                * that it makes some assumptions to make it easy to import user\r
-                * entered URI data.</p>\r
-                * \r
-                * <p>This function is intended to be a helper function.\r
-                * It is not all-knowning and will probably make mistakes\r
-                * when attempting to parse a string of unknown origin.  If\r
-                * your applicaiton is receiving input from the user, your\r
-                * application should already have a good idea what the user\r
-                * should  be entering, and your application should be\r
-                * pre-processing the user's input to make sure it is well formed\r
-                * before passing it to this function.</p>\r
-                * \r
-                * <p>It is assumed that the string given to this function is\r
-                * something the user may have manually entered.  Given this,\r
-                * the URI string is probably unescaped or improperly escaped.\r
-                * This function will attempt to properly escape the URI by\r
-                * using forceEscape().  The result is that a toString() call\r
-                * on a URI that was created from unknownToURI() may not match\r
-                * the input string due to the difference in escaping.</p>\r
-                *\r
-                * @param unknown       a potental URI string that should be parsed\r
-                * and loaded into this object.\r
-                * @param defaultScheme if it is determined that the passed string\r
-                * looks like a URI, but it is missing the scheme part, this\r
-                * string will be used as the missing scheme.\r
-                * \r
-                * @return      true if the given string was successfully parsed into\r
-                * a valid URI object, false otherwise.\r
-                */\r
-               public function unknownToURI(unknown:String, defaultScheme:String = "http") : Boolean\r
-               {\r
-                       var temp:String;\r
-                       \r
-                       if (unknown.length == 0)\r
-                       {\r
-                               this.initialize();\r
-                               return false;\r
-                       }\r
-                       \r
-                       // Some users love the backslash key.  Fix it.\r
-                       unknown = unknown.replace(/\\/g, "/");\r
-                       \r
-                       // Check for any obviously missing scheme.\r
-                       if (unknown.length >= 2)\r
-                       {\r
-                               temp = unknown.substr(0, 2);\r
-                               if (temp == "//")\r
-                                       unknown = defaultScheme + ":" + unknown;\r
-                       }\r
-                       \r
-                       if (unknown.length >= 3)\r
-                       {\r
-                               temp = unknown.substr(0, 3);\r
-                               if (temp == "://")\r
-                                       unknown = defaultScheme + unknown;\r
-                       }\r
-\r
-                       // Try parsing it as a normal URI\r
-                       var uri:URI = new URI(unknown);\r
-               \r
-                       if (uri.isHierarchical() == false)\r
-                       {\r
-                               if (uri.scheme == UNKNOWN_SCHEME)\r
-                               {\r
-                                       this.initialize();\r
-                                       return false;\r
-                               }\r
-               \r
-                               // It's a non-hierarchical URI\r
-                               copyURI(uri);\r
-                               forceEscape();\r
-                               return true;\r
-                       }\r
-                       else if ((uri.scheme != UNKNOWN_SCHEME) &&\r
-                               (uri.scheme.length > 0))\r
-                       {\r
-                               if ( (uri.authority.length > 0) ||\r
-                                       (uri.scheme == "file") )\r
-                               {\r
-                                       // file://... URI\r
-                                       copyURI(uri);\r
-                                       forceEscape();  // ensure proper escaping\r
-                                       return true;\r
-                               }\r
-                               else if (uri.authority.length == 0 && uri.path.length == 0)\r
-                               {\r
-                                       // It's is an incomplete URI (eg "http://")\r
-                                       \r
-                                       setParts(uri.scheme, "", "", "", "", "");\r
-                                       return false;\r
-                               }\r
-                       }\r
-                       else\r
-                       {\r
-                               // Possible relative URI.  We can only detect relative URI's\r
-                               // that start with "." or "..".  If it starts with something\r
-                               // else, the parsing is ambiguous.\r
-                               var path:String = uri.path;\r
-               \r
-                               if (path == ".." || path == "." || \r
-                                       (path.length >= 3 && path.substr(0, 3) == "../") ||\r
-                                       (path.length >= 2 && path.substr(0, 2) == "./") )\r
-                               {\r
-                                       // This is a relative URI.\r
-                                       copyURI(uri);\r
-                                       forceEscape();\r
-                                       return true;\r
-                               }\r
-                       }\r
-               \r
-                       // Ok, it looks like we are just a normal URI missing the scheme.  Tack\r
-                       // on the scheme.\r
-                       uri = new URI(defaultScheme + "://" + unknown);\r
-               \r
-                       // Check to see if we are good now\r
-                       if (uri.scheme.length > 0 && uri.authority.length > 0)\r
-                       {\r
-                               // It was just missing the scheme.\r
-                               copyURI(uri);\r
-                               forceEscape();  // Make sure we are properly encoded.\r
-                               return true;\r
-                       }\r
-               \r
-                       // don't know what this is\r
-                       this.initialize();\r
-                       return false;\r
-               }\r
-               \r
-       } // end URI class\r
-} // end package
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/URIEncodingBitmap.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/URIEncodingBitmap.as
deleted file mode 100644 (file)
index d786b33..0000000
+++ /dev/null
@@ -1,139 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.net\r
-{\r
-       import flash.utils.ByteArray;\r
-       \r
-       /**\r
-        * This class implements an efficient lookup table for URI\r
-        * character escaping.  This class is only needed if you\r
-        * create a derived class of URI to handle custom URI\r
-        * syntax.  This class is used internally by URI.\r
-        * \r
-        * @langversion ActionScript 3.0\r
-        * @playerversion Flash 9.0* \r
-        */\r
-       public class URIEncodingBitmap extends ByteArray\r
-       {\r
-               /**\r
-                * Constructor.  Creates an encoding bitmap using the given\r
-                * string of characters as the set of characters that need\r
-                * to be URI escaped.\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */\r
-               public function URIEncodingBitmap(charsToEscape:String) : void\r
-               {\r
-                       var i:int;\r
-                       var data:ByteArray = new ByteArray();\r
-                       \r
-                       // Initialize our 128 bits (16 bytes) to zero\r
-                       for (i = 0; i < 16; i++)\r
-                               this.writeByte(0);\r
-                               \r
-                       data.writeUTFBytes(charsToEscape);\r
-                       data.position = 0;\r
-                       \r
-                       while (data.bytesAvailable)\r
-                       {\r
-                               var c:int = data.readByte();\r
-                               \r
-                               if (c > 0x7f)\r
-                                       continue;  // only escape low bytes\r
-                                       \r
-                               var enc:int;\r
-                               this.position = (c >> 3);\r
-                               enc = this.readByte();\r
-                               enc |= 1 << (c & 0x7);\r
-                               this.position = (c >> 3);\r
-                               this.writeByte(enc);\r
-                       }\r
-               }\r
-               \r
-               /**\r
-                * Based on the data table contained in this object, check\r
-                * if the given character should be escaped.\r
-                * \r
-                * @param char  the character to be escaped.  Only the first\r
-                * character in the string is used.  Any other characters\r
-                * are ignored.\r
-                * \r
-                * @return      the integer value of the raw UTF8 character.  For\r
-                * example, if '%' is given, the return value is 37 (0x25).\r
-                * If the character given does not need to be escaped, the\r
-                * return value is zero.\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0 \r
-                */\r
-               public function ShouldEscape(char:String) : int\r
-               {\r
-                       var data:ByteArray = new ByteArray();\r
-                       var c:int, mask:int;\r
-                       \r
-                       // write the character into a ByteArray so\r
-                       // we can pull it out as a raw byte value.\r
-                       data.writeUTFBytes(char);\r
-                       data.position = 0;\r
-                       c = data.readByte();\r
-                       \r
-                       if (c & 0x80)\r
-                       {\r
-                               // don't escape high byte characters.  It can make international\r
-                               // URI's unreadable.  We just want to escape characters that would\r
-                               // make URI syntax ambiguous.\r
-                               return 0;\r
-                       }\r
-                       else if ((c < 0x1f) || (c == 0x7f))\r
-                       {\r
-                               // control characters must be escaped.\r
-                               return c;\r
-                       }\r
-                       \r
-                       this.position = (c >> 3);\r
-                       mask = this.readByte();\r
-                       \r
-                       if (mask & (1 << (c & 0x7)))\r
-                       {\r
-                               // we need to escape this, return the numeric value\r
-                               // of the character\r
-                               return c;\r
-                       }\r
-                       else\r
-                       {\r
-                               return 0;\r
-                       }\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/RFC2817Socket.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/RFC2817Socket.as
deleted file mode 100644 (file)
index e73e9e7..0000000
+++ /dev/null
@@ -1,198 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-package com.adobe.net.proxies\r
-{\r
-       import flash.events.Event;\r
-       import flash.events.IOErrorEvent;\r
-       import flash.events.ProgressEvent;\r
-       import flash.net.Socket;\r
-\r
-       /**\r
-        * This class allows TCP socket connections through HTTP proxies in accordance with\r
-        * RFC 2817:\r
-        * \r
-        * ftp://ftp.rfc-editor.org/in-notes/rfc2817.txt\r
-        * \r
-        * It can also be used to make direct connections to a destination, as well. If you\r
-        * pass the host and port into the constructor, no proxy will be used. You can also\r
-        * call connect, passing in the host and the port, and if you didn't set the proxy\r
-        * info, a direct connection will be made. A proxy is only used after you have called\r
-        * the setProxyInfo function.\r
-        * \r
-        * The connection to and negotiation with the proxy is completely hidden. All the\r
-        * same events are thrown whether you are using a proxy or not, and the data you\r
-        * receive from the target server will look exact as it would if you were connected\r
-        * to it directly rather than through a proxy.\r
-        * \r
-        * @author Christian Cantrell\r
-        * \r
-        **/\r
-       public class RFC2817Socket\r
-               extends Socket\r
-       {\r
-               private var proxyHost:String = null;\r
-               private var host:String = null;\r
-               private var proxyPort:int = 0;\r
-               private var port:int = 0;\r
-               private var deferredEventHandlers:Object = new Object();\r
-               private var buffer:String = new String();\r
-\r
-               /**\r
-                * Construct a new RFC2817Socket object. If you pass in the host and the port,\r
-                * no proxy will be used. If you want to use a proxy, instantiate with no\r
-                * arguments, call setProxyInfo, then call connect.\r
-                **/\r
-               public function RFC2817Socket(host:String = null, port:int = 0)\r
-               {\r
-                       super(host, port);\r
-               }\r
-               \r
-               /**\r
-                * Set the proxy host and port number. Your connection will only proxied if\r
-                * this function has been called.\r
-                **/\r
-               public function setProxyInfo(host:String, port:int):void\r
-               {\r
-                       this.proxyHost = host;\r
-                       this.proxyPort = port;\r
-\r
-                       var deferredSocketDataHandler:Object = this.deferredEventHandlers[ProgressEvent.SOCKET_DATA];\r
-                       var deferredConnectHandler:Object = this.deferredEventHandlers[Event.CONNECT];\r
-\r
-                       if (deferredSocketDataHandler != null)\r
-                       {\r
-                               super.removeEventListener(ProgressEvent.SOCKET_DATA, deferredSocketDataHandler.listener, deferredSocketDataHandler.useCapture);\r
-                       }\r
-\r
-                       if (deferredConnectHandler != null)\r
-                       {\r
-                               super.removeEventListener(Event.CONNECT, deferredConnectHandler.listener, deferredConnectHandler.useCapture);\r
-                       }\r
-               }\r
-               \r
-               /**\r
-                * Connect to the specified host over the specified port. If you want your\r
-                * connection proxied, call the setProxyInfo function first.\r
-                **/\r
-               public override function connect(host:String, port:int):void\r
-               {\r
-                       if (this.proxyHost == null)\r
-                       {\r
-                               this.redirectConnectEvent();\r
-                               this.redirectSocketDataEvent();\r
-                               super.connect(host, port);\r
-                       }\r
-                       else\r
-                       {\r
-                               this.host = host;\r
-                               this.port = port;\r
-                               super.addEventListener(Event.CONNECT, this.onConnect);\r
-                               super.addEventListener(ProgressEvent.SOCKET_DATA, this.onSocketData);\r
-                               super.connect(this.proxyHost, this.proxyPort);\r
-                       }\r
-               }\r
-\r
-               private function onConnect(event:Event):void\r
-               {\r
-                       this.writeUTFBytes("CONNECT "+this.host+":"+this.port+" HTTP/1.1\n\n");\r
-                       this.flush();\r
-                       this.redirectConnectEvent();\r
-               }\r
-               \r
-               private function onSocketData(event:ProgressEvent):void\r
-               {\r
-                       while (this.bytesAvailable != 0)\r
-                       {\r
-                               this.buffer += this.readUTFBytes(1);\r
-                               if (this.buffer.search(/\r?\n\r?\n$/) != -1)\r
-                               {\r
-                                       this.checkResponse(event);\r
-                                       break;\r
-                               }\r
-                       }\r
-               }\r
-               \r
-               private function checkResponse(event:ProgressEvent):void\r
-               {\r
-                       var responseCode:String = this.buffer.substr(this.buffer.indexOf(" ")+1, 3);\r
-\r
-                       if (responseCode.search(/^2/) == -1)\r
-                       {\r
-                               var ioError:IOErrorEvent = new IOErrorEvent(IOErrorEvent.IO_ERROR);\r
-                               ioError.text = "Error connecting to the proxy ["+this.proxyHost+"] on port ["+this.proxyPort+"]: " + this.buffer;\r
-                               this.dispatchEvent(ioError);\r
-                       }\r
-                       else\r
-                       {\r
-                               this.redirectSocketDataEvent();\r
-                               this.dispatchEvent(new Event(Event.CONNECT));\r
-                               if (this.bytesAvailable > 0)\r
-                               {\r
-                                       this.dispatchEvent(event);\r
-                               }\r
-                       }\r
-                       this.buffer = null;\r
-               }\r
-               \r
-               private function redirectConnectEvent():void\r
-               {\r
-                       super.removeEventListener(Event.CONNECT, onConnect);\r
-                       var deferredEventHandler:Object = this.deferredEventHandlers[Event.CONNECT];\r
-                       if (deferredEventHandler != null)\r
-                       {\r
-                               super.addEventListener(Event.CONNECT, deferredEventHandler.listener, deferredEventHandler.useCapture, deferredEventHandler.priority, deferredEventHandler.useWeakReference);                    \r
-                       }\r
-               }\r
-               \r
-               private function redirectSocketDataEvent():void\r
-               {\r
-                       super.removeEventListener(ProgressEvent.SOCKET_DATA, onSocketData);\r
-                       var deferredEventHandler:Object = this.deferredEventHandlers[ProgressEvent.SOCKET_DATA];\r
-                       if (deferredEventHandler != null)\r
-                       {\r
-                               super.addEventListener(ProgressEvent.SOCKET_DATA, deferredEventHandler.listener, deferredEventHandler.useCapture, deferredEventHandler.priority, deferredEventHandler.useWeakReference);                        \r
-                       }\r
-               }\r
-               \r
-               public override function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int=0.0, useWeakReference:Boolean=false):void\r
-               {\r
-                       if (type == Event.CONNECT || type == ProgressEvent.SOCKET_DATA)\r
-                       {\r
-                               this.deferredEventHandlers[type] = {listener:listener,useCapture:useCapture, priority:priority, useWeakReference:useWeakReference};\r
-                       }\r
-                       else\r
-                       {\r
-                               super.addEventListener(type, listener, useCapture, priority, useWeakReference);\r
-                       }\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Database.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Database.as
deleted file mode 100644 (file)
index 0ddeef5..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.adobe.protocols.dict\r
-{\r
-       public class Database\r
-       {\r
-               private var _name:String;\r
-               private var _description:String;\r
-\r
-               public function Database(name:String, description:String)\r
-               {\r
-                       this._name = name;\r
-                       this._description = description;\r
-               }\r
-\r
-               public function set name(name:String):void\r
-               {\r
-                       this._name = name;\r
-               }\r
-\r
-               public function get name():String\r
-               {\r
-                       return this._name;\r
-               }\r
-\r
-               public function set description(description:String):void\r
-               {\r
-                       this._description = description;\r
-               }\r
-\r
-               public function get description():String\r
-               {\r
-                       return this._description;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Definition.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Definition.as
deleted file mode 100644 (file)
index 934a330..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-package com.adobe.protocols.dict\r
-{\r
-       public class Definition\r
-       {\r
-               private var _definition:String;\r
-               private var _database:String;\r
-               private var _term:String;\r
-               \r
-               public function set definition(definition:String):void\r
-               {\r
-                       this._definition = definition;\r
-               }\r
-               \r
-               public function get definition():String\r
-               {\r
-                       return this._definition;\r
-               }\r
-\r
-               public function set database(database:String):void\r
-               {\r
-                       this._database = database;\r
-               }\r
-               \r
-               public function get database():String\r
-               {\r
-                       return this._database;\r
-               }\r
-\r
-               public function set term(term:String):void\r
-               {\r
-                       this._term = term;\r
-               }\r
-               \r
-               public function get term():String\r
-               {\r
-                       return this._term;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Dict.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Dict.as
deleted file mode 100644 (file)
index 07d2530..0000000
+++ /dev/null
@@ -1,328 +0,0 @@
-package com.adobe.protocols.dict\r
-{\r
-       import com.adobe.protocols.dict.events.*;\r
-       import com.adobe.protocols.dict.util.*;\r
-       \r
-       import flash.events.Event;\r
-       import flash.events.EventDispatcher;\r
-       import flash.events.IOErrorEvent;\r
-       import flash.events.ProgressEvent;\r
-       import flash.events.SecurityErrorEvent;\r
-       import flash.net.Socket;\r
-       import mx.rpc.http.HTTPService;\r
-       import mx.rpc.events.ResultEvent;\r
-       import mx.rpc.events.FaultEvent;\r
-       import flash.xml.XMLNode;\r
-       import mx.utils.StringUtil;\r
-\r
-       public class Dict\r
-               extends EventDispatcher\r
-       {\r
-               // Event type names.\r
-               public static var CONNECTED:String = "connected";\r
-               public static var DISCONNECTED:String = "disconnected";\r
-               public static var IO_ERROR:String = IOErrorEvent.IO_ERROR;\r
-               public static var ERROR:String = "error";\r
-               public static var SERVERS:String = "servers";\r
-               public static var DATABASES:String = "databases";\r
-               public static var MATCH_STRATEGIES:String = "matchStrategies";\r
-               public static var DEFINITION:String = "definition";\r
-               public static var DEFINITION_HEADER:String = "definitionHeader";\r
-               public static var MATCH:String = "match";\r
-               public static var NO_MATCH:String = "noMatch";\r
-\r
-               public static var FIRST_MATCH:uint = 0;\r
-               public static var ALL_DATABASES:uint = 1;\r
-\r
-               private var socket:SocketHelper;\r
-               \r
-               private var dbShortList:Boolean;\r
-\r
-               public function Dict()\r
-               {\r
-                       this.socket = new SocketHelper();\r
-                       this.socket.addEventListener(Event.CONNECT, connected);\r
-                       this.socket.addEventListener(Event.CLOSE, disconnected);\r
-                       this.socket.addEventListener(SocketHelper.COMPLETE_RESPONSE, incomingData);\r
-                       this.socket.addEventListener(IOErrorEvent.IO_ERROR, ioError);\r
-                       this.socket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityError);\r
-               }\r
-\r
-               public function connect(server:String, port:uint = 2628):void\r
-               {\r
-                       if (this.socket.connected)\r
-                       {\r
-                               this.socket.close();\r
-                       }\r
-                       this.socket.connect(server, port);\r
-               }\r
-\r
-               public function connectThroughProxy(proxyServer:String,\r
-                                                                                       proxyPort:int,\r
-                                                                                       server:String,\r
-                                                                                       port:uint = 2628):void\r
-               {\r
-                       if (this.socket.connected)\r
-                       {\r
-                               this.socket.close();\r
-                       }\r
-                       this.socket.setProxyInfo(proxyServer, proxyPort);\r
-                       this.socket.connect(server, port);\r
-               }\r
-\r
-               public function disconnect():void\r
-               {\r
-                       this.socket.close();\r
-                       this.disconnected(null);\r
-               }\r
-\r
-               public function getServers():void\r
-               {\r
-                       var http:HTTPService = new HTTPService();\r
-                       http.url = "http://luetzschena-stahmeln.de/dictd/xmllist.php";\r
-                       http.addEventListener(ResultEvent.RESULT, incomingServerXML);\r
-                       http.addEventListener(FaultEvent.FAULT, httpError);\r
-                       http.resultFormat = HTTPService.RESULT_FORMAT_E4X;\r
-                       http.send();\r
-               }\r
-\r
-               public function getDatabases(shortList:Boolean=true):void\r
-               {\r
-                       this.dbShortList = shortList;\r
-                       this.socket.writeUTFBytes("show db\r\n");\r
-                       this.socket.flush();\r
-               }\r
-\r
-               public function getMatchStrategies():void\r
-               {\r
-                       this.socket.writeUTFBytes("show strat\r\n");\r
-                       this.socket.flush();\r
-               }\r
-\r
-               public function match(database:String, term:String, scope:String="prefix"):void\r
-               {\r
-                       this.socket.writeUTFBytes("match " + database + " " + scope + " \"" + term + "\"\r\n");\r
-                       this.socket.flush();\r
-               }\r
-\r
-               public function define(database:String, term:String):void\r
-               {\r
-                       this.socket.writeUTFBytes("define " + database + " \"" + term + "\"\r\n");\r
-                       this.socket.flush();\r
-               }\r
-\r
-               public function lookup(term:String, scope:uint):void\r
-               {\r
-                       var flag:String;\r
-                       if (scope == Dict.ALL_DATABASES)\r
-                       {\r
-                               flag = "*";\r
-                       }\r
-                       else if (scope == Dict.FIRST_MATCH)\r
-                       {\r
-                               flag = "!";\r
-                       }\r
-                       this.socket.writeUTFBytes("define " + flag + " \"" + term + "\"\r\n");\r
-                       this.socket.flush();\r
-               }\r
-\r
-               //// Private functions ////\r
-\r
-               private function connected(event:Event):void\r
-               {\r
-               // Wait to dispatch an event until we get the 220 response.\r
-       }\r
-\r
-               private function disconnected(event:Event):void\r
-               {\r
-               dispatchEvent(new DisconnectedEvent());\r
-       }\r
-\r
-               private function incomingServerXML(event:ResultEvent):void\r
-               {\r
-                       var dictd:Namespace = new Namespace("http://www.luetzschena-stahmeln.de/dictd/");\r
-                       var result:XML = event.result as XML;\r
-                       var server:String, description:String;\r
-                       var servers:Array = new Array();\r
-                       for each (var serverNode:XML in result.dictd::server)\r
-                       {\r
-                               server = serverNode.dictd::dictdurl;\r
-                               description = serverNode.dictd::description;\r
-                               if (StringUtil.trim(server).length != 0 &&\r
-                                       StringUtil.trim(description).length != 0)\r
-                               {\r
-                                       var dServer:DictionaryServer = new DictionaryServer();\r
-                                       dServer.server = server.replace("dict://", "");\r
-                                       dServer.description = description;\r
-                                       servers.push(dServer);\r
-                               }\r
-                       }\r
-                       var dEvent:DictionaryServerEvent = new DictionaryServerEvent();\r
-                       dEvent.servers = servers;\r
-                       dispatchEvent(dEvent);\r
-               }\r
-\r
-               private function incomingData(event:CompleteResponseEvent):void\r
-               {                       \r
-                       var rawResponse:String = event.response;\r
-                       var response:Response = this.parseRawResponse(rawResponse);\r
-                       var responseCode:uint = response.code;\r
-                       if (responseCode == 552) // no matches\r
-                       {\r
-                               throwNoMatchEvent(response);\r
-                       }\r
-                       else if (responseCode >= 400 && responseCode <= 599) // error\r
-                       {\r
-                               throwErrorEvent(response);\r
-                       }\r
-                       else if (responseCode == 220) // successful connection\r
-                       {\r
-                               dispatchEvent(new ConnectedEvent());\r
-                       }\r
-                       else if (responseCode == 110) // databases are being returned\r
-                       {\r
-                               throwDatabasesEvent(response);                          \r
-                       }\r
-                       else if (responseCode == 111) // matches strategies\r
-                       {\r
-                               throwMatchStrategiesEvent(response);\r
-                       }\r
-                       else if (responseCode == 152) // matches\r
-                       {\r
-                               throwMatchEvent(response);\r
-                       }\r
-                       else if (responseCode == 150)\r
-                       {\r
-                               throwDefinitionHeaderEvent(response);\r
-                       }\r
-                       else if (responseCode == 151)\r
-                       {\r
-                               throwDefinitionEvent(response);\r
-                       }\r
-       }\r
-\r
-       private function ioError(event:IOErrorEvent):void\r
-       {\r
-                       dispatchEvent(event);\r
-       }\r
-\r
-       private function httpError(event:FaultEvent):void\r
-       {\r
-               trace("httpError!");\r
-       }\r
-\r
-       private function securityError(event:SecurityErrorEvent):void\r
-       {\r
-               trace("security error!");\r
-               trace(event.text);\r
-       }\r
-\r
-       // Dispatch new events.\r
-\r
-       private function throwDatabasesEvent(response:Response):void\r
-       {\r
-                       var databases:Array = new Array();\r
-                       var responseArray:Array = response.body.split("\r\n");\r
-               for each (var line:String in responseArray)\r
-               {\r
-                       var name:String = line.substring(0, line.indexOf(" "));\r
-                       if (name == "--exit--")\r
-                       {\r
-                               if (this.dbShortList)\r
-                               {\r
-                                       break;\r
-                               }\r
-                               continue;\r
-                       }\r
-                       var description:String = line.substring(line.indexOf(" ")+1, line.length).replace(/\"/g,"");\r
-                       databases.push(new Database(name, description));\r
-               }\r
-               var event:DatabaseEvent = new DatabaseEvent();\r
-               event.databases = databases;\r
-               dispatchEvent(event);\r
-       }\r
-\r
-       private function throwMatchStrategiesEvent(response:Response):void\r
-       {\r
-                       var strategies:Array = new Array();\r
-                       var responseArray:Array = response.body.split("\r\n");\r
-               for each (var line:String in responseArray)\r
-               {\r
-                       var name:String = line.substring(0, line.indexOf(" "));\r
-                       var description:String = line.substring(line.indexOf(" ")+1, line.length).replace(/\"/g,"");\r
-                       strategies.push(new MatchStrategy(name, description));\r
-               }\r
-               var event:MatchStrategiesEvent = new MatchStrategiesEvent();\r
-               event.strategies = strategies;\r
-               dispatchEvent(event);\r
-       }\r
-\r
-       private function throwMatchEvent(response:Response):void\r
-       {\r
-                       var matches:Array = new Array();\r
-                       var responseArray:Array = response.body.split("\r\n");\r
-               for each (var line:String in responseArray)\r
-               {\r
-                       var match:String = line.substring(line.indexOf(" ")+1, line.length).replace(/\"/g,"");\r
-                       matches.push(match);\r
-               }\r
-               var event:MatchEvent = new MatchEvent();\r
-               event.matches = matches;\r
-               dispatchEvent(event);\r
-       }\r
-\r
-       private function throwErrorEvent(response:Response):void\r
-       {\r
-               var event:ErrorEvent = new ErrorEvent();\r
-               event.code = response.code;\r
-               event.message = response.headerText;\r
-                       dispatchEvent(event);\r
-       }\r
-\r
-       private function throwNoMatchEvent(response:Response):void\r
-       {\r
-                       dispatchEvent(new NoMatchEvent());\r
-       }\r
-\r
-       private function throwDefinitionHeaderEvent(response:Response):void\r
-       {\r
-                       var event:DefinitionHeaderEvent = new DefinitionHeaderEvent();\r
-                       event.definitionCount = uint(response.headerText.substring(0, response.headerText.indexOf(" ")));\r
-                       dispatchEvent(event);\r
-       }\r
-\r
-       private function throwDefinitionEvent(response:Response):void\r
-       {\r
-               var event:DefinitionEvent = new DefinitionEvent();\r
-               var def:Definition = new Definition();\r
-               var headerText:String = response.headerText;\r
-               var tokens:Array = headerText.match(/"[^"]+"/g);\r
-               def.term = String(tokens[0]).replace(/"/g, "");\r
-               def.database = String(tokens[1]).replace(/"/g, "");\r
-               def.definition = response.body;\r
-               event.definition = def;\r
-                       dispatchEvent(event);\r
-       }\r
-\r
-       private function parseRawResponse(rawResponse:String):Response\r
-       {\r
-               var response:Response = new Response();\r
-               var fullHeader:String;\r
-               if (rawResponse.indexOf("\r\n") != -1)\r
-               {\r
-                       fullHeader = rawResponse.substring(0, rawResponse.indexOf("\r\n"));\r
-               }\r
-               else\r
-               {\r
-                       fullHeader = rawResponse;\r
-               }\r
-               var responseCodeMatch:Array = fullHeader.match(/^\d{3}/);\r
-               response.code = uint(responseCodeMatch[0]);\r
-               response.headerText = fullHeader.substring(fullHeader.indexOf(" ")+1, fullHeader.length);\r
-                       var body:String = rawResponse.substring(rawResponse.indexOf("\r\n")+2, rawResponse.length);\r
-                       body = body.replace(/\r\n\.\./, "\r\n.");\r
-                       response.body = body;\r
-               return response;\r
-       }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/DictionaryServer.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/DictionaryServer.as
deleted file mode 100644 (file)
index 422b603..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.adobe.protocols.dict\r
-{\r
-       public class DictionaryServer\r
-       {\r
-               private var _server:String;\r
-               private var _description:String;\r
-\r
-               public function set server(server:String):void\r
-               {\r
-                       this._server = server;\r
-               }\r
-               \r
-               public function get server():String\r
-               {\r
-                       return this._server;\r
-               }\r
-\r
-               public function set description(description:String):void\r
-               {\r
-                       this._description = description;\r
-               }\r
-               \r
-               public function get description():String\r
-               {\r
-                       return this._description;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/MatchStrategy.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/MatchStrategy.as
deleted file mode 100644 (file)
index 1e17da3..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.adobe.protocols.dict\r
-{\r
-       public class MatchStrategy\r
-       {\r
-               private var _name:String;\r
-               private var _description:String;\r
-\r
-               public function MatchStrategy(name:String, description:String)\r
-               {\r
-                       this._name = name;\r
-                       this._description = description;\r
-               }\r
-\r
-               public function set name(name:String):void\r
-               {\r
-                       this._name = name;\r
-               }\r
-\r
-               public function get name():String\r
-               {\r
-                       return this._name;\r
-               }\r
-\r
-               public function set description(description:String):void\r
-               {\r
-                       this._description = description;\r
-               }\r
-\r
-               public function get description():String\r
-               {\r
-                       return this._description;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Response.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Response.as
deleted file mode 100644 (file)
index 619a8e9..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-package com.adobe.protocols.dict\r
-{\r
-       public class Response\r
-       {\r
-               private var _code:uint;\r
-               private var _headerText:String;\r
-               private var _body:String;\r
-\r
-               public function set code(code:uint):void\r
-               {\r
-                       this._code = code;\r
-               }\r
-\r
-               public function set headerText(headerText:String):void\r
-               {\r
-                       this._headerText = headerText;\r
-               }\r
-\r
-               public function set body(body:String):void\r
-               {\r
-                       this._body = body;\r
-               }\r
-\r
-               public function get code():uint\r
-               {\r
-                       return this._code;\r
-               }\r
-\r
-               public function get headerText():String\r
-               {\r
-                       return this._headerText;\r
-               }\r
-\r
-               public function get body():String\r
-               {\r
-                       return this._body;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/ConnectedEvent.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/ConnectedEvent.as
deleted file mode 100644 (file)
index c4a4145..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class ConnectedEvent extends Event\r
-       {\r
-               public function ConnectedEvent()\r
-               {\r
-                       super(Dict.CONNECTED);\r
-               }\r
-               \r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DatabaseEvent.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DatabaseEvent.as
deleted file mode 100644 (file)
index fdd2cc1..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class DatabaseEvent\r
-               extends Event\r
-       {\r
-               private var _databases:Array;\r
-               \r
-               public function DatabaseEvent()\r
-               {\r
-                       super(Dict.DATABASES);\r
-               }\r
-               \r
-               public function set databases(databases:Array):void\r
-               {\r
-                       this._databases = databases;\r
-               }\r
-               \r
-               public function get databases():Array\r
-               {\r
-                       return this._databases;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionEvent.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionEvent.as
deleted file mode 100644 (file)
index 8107173..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-       import com.adobe.protocols.dict.Definition;\r
-\r
-       public class DefinitionEvent\r
-               extends Event\r
-       {\r
-               private var _definition:Definition;\r
-               \r
-               public function DefinitionEvent()\r
-               {\r
-                       super(Dict.DEFINITION);\r
-               }\r
-               \r
-               public function set definition(definition:Definition):void\r
-               {\r
-                       this._definition = definition;\r
-               }\r
-               \r
-               public function get definition():Definition\r
-               {\r
-                       return this._definition;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as
deleted file mode 100644 (file)
index e77c402..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class DefinitionHeaderEvent\r
-               extends Event\r
-       {\r
-               private var _definitionCount:uint;\r
-               \r
-               public function DefinitionHeaderEvent()\r
-               {\r
-                       super(Dict.DEFINITION_HEADER);\r
-               }\r
-               \r
-               public function set definitionCount(definitionCount:uint):void\r
-               {\r
-                       this._definitionCount = definitionCount;\r
-               }\r
-               \r
-               public function get definitionCount():uint\r
-               {\r
-                       return this._definitionCount;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DictionaryServerEvent.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DictionaryServerEvent.as
deleted file mode 100644 (file)
index 9b406e9..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class DictionaryServerEvent\r
-               extends Event\r
-       {\r
-               private var _servers:Array;\r
-               \r
-               public function DictionaryServerEvent()\r
-               {\r
-                       super(Dict.SERVERS);\r
-               }\r
-               \r
-               public function set servers(servers:Array):void\r
-               {\r
-                       this._servers = servers;\r
-               }\r
-               \r
-               public function get servers():Array\r
-               {\r
-                       return this._servers;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DisconnectedEvent.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DisconnectedEvent.as
deleted file mode 100644 (file)
index 485b3ed..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class DisconnectedEvent extends Event\r
-       {\r
-               public function DisconnectedEvent()\r
-               {\r
-                       super(Dict.DISCONNECTED);\r
-               }\r
-               \r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/ErrorEvent.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/ErrorEvent.as
deleted file mode 100644 (file)
index 9e5fc7a..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-       \r
-       public class ErrorEvent\r
-               extends Event\r
-       {\r
-               private var _code:uint;\r
-               private var _message:String;\r
-               \r
-               public function ErrorEvent()\r
-               {\r
-                       super(Dict.ERROR);\r
-               }\r
-\r
-               public function set code(code:uint):void\r
-               {\r
-                       this._code = code;\r
-               }\r
-\r
-               public function set message(message:String):void\r
-               {\r
-                       this._message = message;\r
-               }\r
-\r
-               public function get code():uint\r
-               {\r
-                       return this._code;\r
-               }\r
-\r
-               public function get message():String\r
-               {\r
-                       return this._message;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchEvent.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchEvent.as
deleted file mode 100644 (file)
index 65b8688..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class MatchEvent\r
-               extends Event\r
-       {\r
-               private var _matches:Array;\r
-               \r
-               public function MatchEvent()\r
-               {\r
-                       super(Dict.MATCH);\r
-               }\r
-               \r
-               public function set matches(matches:Array):void\r
-               {\r
-                       this._matches = matches;\r
-               }\r
-               \r
-               public function get matches():Array\r
-               {\r
-                       return this._matches;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchStrategiesEvent.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchStrategiesEvent.as
deleted file mode 100644 (file)
index 75b76f8..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class MatchStrategiesEvent\r
-               extends Event\r
-       {\r
-               private var _strategies:Array;\r
-               \r
-               public function MatchStrategiesEvent()\r
-               {\r
-                       super(Dict.MATCH_STRATEGIES);\r
-               }\r
-               \r
-               public function set strategies(strategies:Array):void\r
-               {\r
-                       this._strategies = strategies;\r
-               }\r
-               \r
-               public function get strategies():Array\r
-               {\r
-                       return this._strategies;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/NoMatchEvent.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/NoMatchEvent.as
deleted file mode 100644 (file)
index 894d1ae..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class NoMatchEvent\r
-               extends Event\r
-       {\r
-               public function NoMatchEvent()\r
-               {\r
-                       super(Dict.NO_MATCH);\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/CompleteResponseEvent.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/CompleteResponseEvent.as
deleted file mode 100644 (file)
index fc552f1..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.adobe.protocols.dict.util\r
-{\r
-       import flash.events.Event;\r
-\r
-       public class CompleteResponseEvent\r
-               extends Event\r
-       {\r
-               private var _response:String;\r
-\r
-               public function CompleteResponseEvent()\r
-               {\r
-                       super(SocketHelper.COMPLETE_RESPONSE);\r
-               }\r
-\r
-               public function set response(response:String):void\r
-               {\r
-                       this._response = response;\r
-               }\r
-               \r
-               public function get response():String\r
-               {\r
-                       return this._response;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/SocketHelper.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/SocketHelper.as
deleted file mode 100644 (file)
index feb494b..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-package com.adobe.protocols.dict.util\r
-{\r
-       import com.adobe.net.proxies.RFC2817Socket;\r
-       import flash.events.ProgressEvent;\r
-\r
-       public class SocketHelper\r
-               extends RFC2817Socket\r
-       {\r
-               private var terminator:String = "\r\n.\r\n";\r
-               private var buffer:String;\r
-               public static var COMPLETE_RESPONSE:String = "completeResponse";\r
-\r
-               public function SocketHelper()\r
-               {\r
-                       super();\r
-                       buffer = new String();\r
-                       addEventListener(ProgressEvent.SOCKET_DATA, incomingData);\r
-               }\r
-\r
-               private function incomingData(event:ProgressEvent):void\r
-               {\r
-                       buffer += readUTFBytes(bytesAvailable);\r
-                       buffer = buffer.replace(/250[^\r\n]+\r\n/, ""); // Get rid of all 250s. Don't need them.\r
-                       var codeStr:String = buffer.substring(0, 3);\r
-                       if (!isNaN(parseInt(codeStr)))\r
-                       {\r
-                               var code:uint = uint(codeStr);\r
-                               if (code == 150 || code >= 200)\r
-                               {\r
-                                       buffer = buffer.replace("\r\n", this.terminator);\r
-                               }\r
-                       }\r
-\r
-                       while (buffer.indexOf(this.terminator) != -1)\r
-                       {\r
-                               var chunk:String = buffer.substring(0, buffer.indexOf(this.terminator));\r
-                               buffer = buffer.substring(chunk.length + this.terminator.length, buffer.length);\r
-                               throwResponseEvent(chunk);\r
-                       }\r
-               }\r
-               \r
-               private function throwResponseEvent(response:String):void\r
-               {\r
-                       var responseEvent:CompleteResponseEvent = new CompleteResponseEvent();\r
-                       responseEvent.response = response;\r
-                       dispatchEvent(responseEvent);                   \r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSON.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSON.as
deleted file mode 100644 (file)
index bfee6d9..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.serialization.json {\r
-\r
-       /**\r
-        * This class provides encoding and decoding of the JSON format.\r
-        *\r
-        * Example usage:\r
-        * <code>\r
-        *              // create a JSON string from an internal object\r
-        *              JSON.encode( myObject );\r
-        *\r
-        *              // read a JSON string into an internal object\r
-        *              var myObject:Object = JSON.decode( jsonString );\r
-        *      </code>\r
-        */\r
-       public class JSON {\r
-       \r
-       \r
-               /**\r
-                * Encodes a object into a JSON string.\r
-                *\r
-                * @param o The object to create a JSON string for\r
-                * @return the JSON string representing o\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public static function encode( o:Object ):String {\r
-                       \r
-                       var encoder:JSONEncoder = new JSONEncoder( o );\r
-                       return encoder.getString();\r
-               \r
-               }\r
-               \r
-               /**\r
-                * Decodes a JSON string into a native object.\r
-                * \r
-                * @param s The JSON string representing the object\r
-                * @return A native object as specified by s\r
-                * @throw JSONParseError\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public static function decode( s:String ):* {\r
-                       \r
-                       var decoder:JSONDecoder = new JSONDecoder( s )\r
-                       return decoder.getValue();\r
-                       \r
-               }\r
-       \r
-       }\r
-\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONDecoder.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONDecoder.as
deleted file mode 100644 (file)
index 82ade19..0000000
+++ /dev/null
@@ -1,221 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.serialization.json {\r
-\r
-       public class JSONDecoder {\r
-               \r
-               /** The value that will get parsed from the JSON string */\r
-               private var value:*;\r
-               \r
-               /** The tokenizer designated to read the JSON string */\r
-               private var tokenizer:JSONTokenizer;\r
-               \r
-               /** The current token from the tokenizer */\r
-               private var token:JSONToken;\r
-               \r
-               /**\r
-                * Constructs a new JSONDecoder to parse a JSON string \r
-                * into a native object.\r
-                *\r
-                * @param s The JSON string to be converted\r
-                *              into a native object\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function JSONDecoder( s:String ) {\r
-                       \r
-                       tokenizer = new JSONTokenizer( s );\r
-                       \r
-                       nextToken();\r
-                       value = parseValue();\r
-               }\r
-               \r
-               /**\r
-                * Gets the internal object that was created by parsing\r
-                * the JSON string passed to the constructor.\r
-                *\r
-                * @return The internal object representation of the JSON\r
-                *              string that was passed to the constructor\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function getValue():* {\r
-                       return value;\r
-               }\r
-               \r
-               /**\r
-                * Returns the next token from the tokenzier reading\r
-                * the JSON string\r
-                */\r
-               private function nextToken():JSONToken {\r
-                       return token = tokenizer.getNextToken();\r
-               }\r
-               \r
-               /**\r
-                * Attempt to parse an array\r
-                */\r
-               private function parseArray():Array {\r
-                       // create an array internally that we're going to attempt\r
-                       // to parse from the tokenizer\r
-                       var a:Array = new Array();\r
-                       \r
-                       // grab the next token from the tokenizer to move\r
-                       // past the opening [\r
-                       nextToken();\r
-                       \r
-                       // check to see if we have an empty array\r
-                       if ( token.type == JSONTokenType.RIGHT_BRACKET ) {\r
-                               // we're done reading the array, so return it\r
-                               return a;\r
-                       }\r
-                       \r
-                       // deal with elements of the array, and use an "infinite"\r
-                       // loop because we could have any amount of elements\r
-                       while ( true ) {\r
-                               // read in the value and add it to the array\r
-                               a.push ( parseValue() );\r
-                       \r
-                               // after the value there should be a ] or a ,\r
-                               nextToken();\r
-                               \r
-                               if ( token.type == JSONTokenType.RIGHT_BRACKET ) {\r
-                                       // we're done reading the array, so return it\r
-                                       return a;\r
-                               } else if ( token.type == JSONTokenType.COMMA ) {\r
-                                       // move past the comma and read another value\r
-                                       nextToken();\r
-                               } else {\r
-                                       tokenizer.parseError( "Expecting ] or , but found " + token.value );\r
-                               }\r
-                       }\r
-            return null;\r
-               }\r
-               \r
-               /**\r
-                * Attempt to parse an object\r
-                */\r
-               private function parseObject():Object {\r
-                       // create the object internally that we're going to\r
-                       // attempt to parse from the tokenizer\r
-                       var o:Object = new Object();\r
-                                               \r
-                       // store the string part of an object member so\r
-                       // that we can assign it a value in the object\r
-                       var key:String\r
-                       \r
-                       // grab the next token from the tokenizer\r
-                       nextToken();\r
-                       \r
-                       // check to see if we have an empty object\r
-                       if ( token.type == JSONTokenType.RIGHT_BRACE ) {\r
-                               // we're done reading the object, so return it\r
-                               return o;\r
-                       }\r
-                       \r
-                       // deal with members of the object, and use an "infinite"\r
-                       // loop because we could have any amount of members\r
-                       while ( true ) {\r
-                       \r
-                               if ( token.type == JSONTokenType.STRING ) {\r
-                                       // the string value we read is the key for the object\r
-                                       key = String( token.value );\r
-                                       \r
-                                       // move past the string to see what's next\r
-                                       nextToken();\r
-                                       \r
-                                       // after the string there should be a :\r
-                                       if ( token.type == JSONTokenType.COLON ) {\r
-                                               \r
-                                               // move past the : and read/assign a value for the key\r
-                                               nextToken();\r
-                                               o[key] = parseValue();  \r
-                                               \r
-                                               // move past the value to see what's next\r
-                                               nextToken();\r
-                                               \r
-                                               // after the value there's either a } or a ,\r
-                                               if ( token.type == JSONTokenType.RIGHT_BRACE ) {\r
-                                                       // // we're done reading the object, so return it\r
-                                                       return o;\r
-                                                       \r
-                                               } else if ( token.type == JSONTokenType.COMMA ) {\r
-                                                       // skip past the comma and read another member\r
-                                                       nextToken();\r
-                                               } else {\r
-                                                       tokenizer.parseError( "Expecting } or , but found " + token.value );\r
-                                               }\r
-                                       } else {\r
-                                               tokenizer.parseError( "Expecting : but found " + token.value );\r
-                                       }\r
-                               } else {\r
-                                       tokenizer.parseError( "Expecting string but found " + token.value );\r
-                               }\r
-                       }\r
-            return null;\r
-               }\r
-               \r
-               /**\r
-                * Attempt to parse a value\r
-                */\r
-               private function parseValue():Object\r
-               {\r
-                       // Catch errors when the input stream ends abruptly\r
-                       if ( token == null )\r
-                       {\r
-                               tokenizer.parseError( "Unexpected end of input" );\r
-                       }\r
-                                       \r
-                       switch ( token.type ) {\r
-                               case JSONTokenType.LEFT_BRACE:\r
-                                       return parseObject();\r
-                                       \r
-                               case JSONTokenType.LEFT_BRACKET:\r
-                                       return parseArray();\r
-                                       \r
-                               case JSONTokenType.STRING:\r
-                               case JSONTokenType.NUMBER:\r
-                               case JSONTokenType.TRUE:\r
-                               case JSONTokenType.FALSE:\r
-                               case JSONTokenType.NULL:\r
-                                       return token.value;\r
-\r
-                               default:\r
-                                       tokenizer.parseError( "Unexpected " + token.value );\r
-                                       \r
-                       }\r
-            return null;\r
-               }\r
-       }\r
-}\r
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONEncoder.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONEncoder.as
deleted file mode 100644 (file)
index 44469d0..0000000
+++ /dev/null
@@ -1,299 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.serialization.json \r
-{\r
-\r
-       import flash.utils.describeType;\r
-\r
-       public class JSONEncoder {\r
-       \r
-               /** The string that is going to represent the object we're encoding */\r
-               private var jsonString:String;\r
-               \r
-               /**\r
-                * Creates a new JSONEncoder.\r
-                *\r
-                * @param o The object to encode as a JSON string\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function JSONEncoder( value:* ) {\r
-                       jsonString = convertToString( value );\r
-               \r
-               }\r
-               \r
-               /**\r
-                * Gets the JSON string from the encoder.\r
-                *\r
-                * @return The JSON string representation of the object\r
-                *              that was passed to the constructor\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function getString():String {\r
-                       return jsonString;\r
-               }\r
-               \r
-               /**\r
-                * Converts a value to it's JSON string equivalent.\r
-                *\r
-                * @param value The value to convert.  Could be any \r
-                *              type (object, number, array, etc)\r
-                */\r
-               private function convertToString( value:* ):String {\r
-                       \r
-                       // determine what value is and convert it based on it's type\r
-                       if ( value is String ) {\r
-                               \r
-                               // escape the string so it's formatted correctly\r
-                               return escapeString( value as String );\r
-                               \r
-                       } else if ( value is Number ) {\r
-                               \r
-                               // only encode numbers that finate\r
-                               return isFinite( value as Number) ? value.toString() : "null";\r
-\r
-                       } else if ( value is Boolean ) {\r
-                               \r
-                               // convert boolean to string easily\r
-                               return value ? "true" : "false";\r
-\r
-                       } else if ( value is Array ) {\r
-                       \r
-                               // call the helper method to convert an array\r
-                               return arrayToString( value as Array );\r
-                       \r
-                       } else if ( value is Object && value != null ) {\r
-                       \r
-                               // call the helper method to convert an object\r
-                               return objectToString( value );\r
-                       }\r
-            return "null";\r
-               }\r
-               \r
-               /**\r
-                * Escapes a string accoding to the JSON specification.\r
-                *\r
-                * @param str The string to be escaped\r
-                * @return The string with escaped special characters\r
-                *              according to the JSON specification\r
-                */\r
-               private function escapeString( str:String ):String {\r
-                       // create a string to store the string's jsonstring value\r
-                       var s:String = "";\r
-                       // current character in the string we're processing\r
-                       var ch:String;\r
-                       // store the length in a local variable to reduce lookups\r
-                       var len:Number = str.length;\r
-                       \r
-                       // loop over all of the characters in the string\r
-                       for ( var i:int = 0; i < len; i++ ) {\r
-                       \r
-                               // examine the character to determine if we have to escape it\r
-                               ch = str.charAt( i );\r
-                               switch ( ch ) {\r
-                               \r
-                                       case '"':       // quotation mark\r
-                                               s += "\\\"";\r
-                                               break;\r
-                                               \r
-                                       //case '/':     // solidus\r
-                                       //      s += "\\/";\r
-                                       //      break;\r
-                                               \r
-                                       case '\\':      // reverse solidus\r
-                                               s += "\\\\";\r
-                                               break;\r
-                                               \r
-                                       case '\b':      // bell\r
-                                               s += "\\b";\r
-                                               break;\r
-                                               \r
-                                       case '\f':      // form feed\r
-                                               s += "\\f";\r
-                                               break;\r
-                                               \r
-                                       case '\n':      // newline\r
-                                               s += "\\n";\r
-                                               break;\r
-                                               \r
-                                       case '\r':      // carriage return\r
-                                               s += "\\r";\r
-                                               break;\r
-                                               \r
-                                       case '\t':      // horizontal tab\r
-                                               s += "\\t";\r
-                                               break;\r
-                                               \r
-                                       default:        // everything else\r
-                                               \r
-                                               // check for a control character and escape as unicode\r
-                                               if ( ch < ' ' ) {\r
-                                                       // get the hex digit(s) of the character (either 1 or 2 digits)\r
-                                                       var hexCode:String = ch.charCodeAt( 0 ).toString( 16 );\r
-                                                       \r
-                                                       // ensure that there are 4 digits by adjusting\r
-                                                       // the # of zeros accordingly.\r
-                                                       var zeroPad:String = hexCode.length == 2 ? "00" : "000";\r
-                                                       \r
-                                                       // create the unicode escape sequence with 4 hex digits\r
-                                                       s += "\\u" + zeroPad + hexCode;\r
-                                               } else {\r
-                                               \r
-                                                       // no need to do any special encoding, just pass-through\r
-                                                       s += ch;\r
-                                                       \r
-                                               }\r
-                               }       // end switch\r
-                               \r
-                       }       // end for loop\r
-                                               \r
-                       return "\"" + s + "\"";\r
-               }\r
-               \r
-               /**\r
-                * Converts an array to it's JSON string equivalent\r
-                *\r
-                * @param a The array to convert\r
-                * @return The JSON string representation of <code>a</code>\r
-                */\r
-               private function arrayToString( a:Array ):String {\r
-                       // create a string to store the array's jsonstring value\r
-                       var s:String = "";\r
-                       \r
-                       // loop over the elements in the array and add their converted\r
-                       // values to the string\r
-                       for ( var i:int = 0; i < a.length; i++ ) {\r
-                               // when the length is 0 we're adding the first element so\r
-                               // no comma is necessary\r
-                               if ( s.length > 0 ) {\r
-                                       // we've already added an element, so add the comma separator\r
-                                       s += ","\r
-                               }\r
-                               \r
-                               // convert the value to a string\r
-                               s += convertToString( a[i] );   \r
-                       }\r
-                       \r
-                       // KNOWN ISSUE:  In ActionScript, Arrays can also be associative\r
-                       // objects and you can put anything in them, ie:\r
-                       //              myArray["foo"] = "bar";\r
-                       //\r
-                       // These properties aren't picked up in the for loop above because\r
-                       // the properties don't correspond to indexes.  However, we're\r
-                       // sort of out luck because the JSON specification doesn't allow\r
-                       // these types of array properties.\r
-                       //\r
-                       // So, if the array was also used as an associative object, there\r
-                       // may be some values in the array that don't get properly encoded.\r
-                       //\r
-                       // A possible solution is to instead encode the Array as an Object\r
-                       // but then it won't get decoded correctly (and won't be an\r
-                       // Array instance)\r
-                                               \r
-                       // close the array and return it's string value\r
-                       return "[" + s + "]";\r
-               }\r
-               \r
-               /**\r
-                * Converts an object to it's JSON string equivalent\r
-                *\r
-                * @param o The object to convert\r
-                * @return The JSON string representation of <code>o</code>\r
-                */\r
-               private function objectToString( o:Object ):String\r
-               {\r
-                       // create a string to store the object's jsonstring value\r
-                       var s:String = "";\r
-                       \r
-                       // determine if o is a class instance or a plain object\r
-                       var classInfo:XML = describeType( o );\r
-                       if ( classInfo.@name.toString() == "Object" )\r
-                       {\r
-                               // the value of o[key] in the loop below - store this \r
-                               // as a variable so we don't have to keep looking up o[key]\r
-                               // when testing for valid values to convert\r
-                               var value:Object;\r
-                               \r
-                               // loop over the keys in the object and add their converted\r
-                               // values to the string\r
-                               for ( var key:String in o )\r
-                               {\r
-                                       // assign value to a variable for quick lookup\r
-                                       value = o[key];\r
-                                       \r
-                                       // don't add function's to the JSON string\r
-                                       if ( value is Function )\r
-                                       {\r
-                                               // skip this key and try another\r
-                                               continue;\r
-                                       }\r
-                                       \r
-                                       // when the length is 0 we're adding the first item so\r
-                                       // no comma is necessary\r
-                                       if ( s.length > 0 ) {\r
-                                               // we've already added an item, so add the comma separator\r
-                                               s += ","\r
-                                       }\r
-                                       \r
-                                       s += escapeString( key ) + ":" + convertToString( value );\r
-                               }\r
-                       }\r
-                       else // o is a class instance\r
-                       {\r
-                               // Loop over all of the variables and accessors in the class and \r
-                               // serialize them along with their values.\r
-                               for each ( var v:XML in classInfo..*.( name() == "variable" || name() == "accessor" ) )\r
-                               {\r
-                                       // When the length is 0 we're adding the first item so\r
-                                       // no comma is necessary\r
-                                       if ( s.length > 0 ) {\r
-                                               // We've already added an item, so add the comma separator\r
-                                               s += ","\r
-                                       }\r
-                                       \r
-                                       s += escapeString( v.@name.toString() ) + ":" \r
-                                                       + convertToString( o[ v.@name ] );\r
-                               }\r
-                               \r
-                       }\r
-                       \r
-                       return "{" + s + "}";\r
-               }\r
-\r
-               \r
-       }\r
-       \r
-}\r
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONParseError.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONParseError.as
deleted file mode 100644 (file)
index 5aec1e3..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.serialization.json {\r
-\r
-       /**\r
-        *\r
-        *\r
-        */\r
-       public class JSONParseError extends Error       {\r
-       \r
-               /** The location in the string where the error occurred */\r
-               private var _location:int;\r
-               \r
-               /** The string in which the parse error occurred */\r
-               private var _text:String;\r
-       \r
-               /**\r
-                * Constructs a new JSONParseError.\r
-                *\r
-                * @param message The error message that occured during parsing\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function JSONParseError( message:String = "", location:int = 0, text:String = "") {\r
-                       super( message );\r
-                       name = "JSONParseError";\r
-                       _location = location;\r
-                       _text = text;\r
-               }\r
-\r
-               /**\r
-                * Provides read-only access to the location variable.\r
-                *\r
-                * @return The location in the string where the error occurred\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function get location():int {\r
-                       return _location;\r
-               }\r
-               \r
-               /**\r
-                * Provides read-only access to the text variable.\r
-                *\r
-                * @return The string in which the error occurred\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function get text():String {\r
-                       return _text;\r
-               }\r
-       }\r
-       \r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONToken.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONToken.as
deleted file mode 100644 (file)
index 258d63c..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.serialization.json {\r
-\r
-       public class JSONToken {\r
-       \r
-               private var _type:int;\r
-               private var _value:Object;\r
-               \r
-               /**\r
-                * Creates a new JSONToken with a specific token type and value.\r
-                *\r
-                * @param type The JSONTokenType of the token\r
-                * @param value The value of the token\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function JSONToken( type:int = -1 /* JSONTokenType.UNKNOWN */, value:Object = null ) {\r
-                       _type = type;\r
-                       _value = value;\r
-               }\r
-               \r
-               /**\r
-                * Returns the type of the token.\r
-                *\r
-                * @see com.adobe.serialization.json.JSONTokenType\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function get type():int {\r
-                       return _type;   \r
-               }\r
-               \r
-               /**\r
-                * Sets the type of the token.\r
-                *\r
-                * @see com.adobe.serialization.json.JSONTokenType\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function set type( value:int ):void {\r
-                       _type = value;  \r
-               }\r
-               \r
-               /**\r
-                * Gets the value of the token\r
-                *\r
-                * @see com.adobe.serialization.json.JSONTokenType\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function get value():Object {\r
-                       return _value;  \r
-               }\r
-               \r
-               /**\r
-                * Sets the value of the token\r
-                *\r
-                * @see com.adobe.serialization.json.JSONTokenType\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function set value ( v:Object ):void {\r
-                       _value = v;     \r
-               }\r
-\r
-       }\r
-       \r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenType.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenType.as
deleted file mode 100644 (file)
index fceb3f0..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.serialization.json {\r
-\r
-       /**\r
-        * Class containing constant values for the different types\r
-        * of tokens in a JSON encoded string.\r
-        */\r
-       public class JSONTokenType {\r
-       \r
-               public static const UNKNOWN:int = -1;\r
-               \r
-               public static const COMMA:int = 0;\r
-               \r
-               public static const LEFT_BRACE:int = 1;\r
-               \r
-               public static const RIGHT_BRACE:int = 2;\r
-               \r
-               public static const LEFT_BRACKET:int = 3;\r
-               \r
-               public static const RIGHT_BRACKET:int = 4;\r
-               \r
-               public static const COLON:int = 6;\r
-               \r
-               public static const TRUE:int = 7;\r
-               \r
-               public static const FALSE:int = 8;\r
-               \r
-               public static const NULL:int = 9;\r
-               \r
-               public static const STRING:int = 10;\r
-               \r
-               public static const NUMBER:int = 11;\r
-               \r
-       }\r
-       \r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenizer.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenizer.as
deleted file mode 100644 (file)
index dc36bfc..0000000
+++ /dev/null
@@ -1,583 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.serialization.json {\r
-\r
-       public class JSONTokenizer {\r
-       \r
-               /** The object that will get parsed from the JSON string */\r
-               private var obj:Object;\r
-               \r
-               /** The JSON string to be parsed */\r
-               private var jsonString:String;\r
-               \r
-               /** The current parsing location in the JSON string */\r
-               private var loc:int;\r
-               \r
-               /** The current character in the JSON string during parsing */\r
-               private var ch:String;\r
-               \r
-               /**\r
-                * Constructs a new JSONDecoder to parse a JSON string \r
-                * into a native object.\r
-                *\r
-                * @param s The JSON string to be converted\r
-                *              into a native object\r
-                */\r
-               public function JSONTokenizer( s:String ) {\r
-                       jsonString = s;\r
-                       loc = 0;\r
-                       \r
-                       // prime the pump by getting the first character\r
-                       nextChar();\r
-               }\r
-               \r
-               /**\r
-                * Gets the next token in the input sting and advances\r
-               * the character to the next character after the token\r
-                */\r
-               public function getNextToken():JSONToken {\r
-                       var token:JSONToken = new JSONToken();\r
-                       \r
-                       // skip any whitespace / comments since the last \r
-                       // token was read\r
-                       skipIgnored();\r
-                                               \r
-                       // examine the new character and see what we have...\r
-                       switch ( ch ) {\r
-                               \r
-                               case '{':\r
-                                       token.type = JSONTokenType.LEFT_BRACE;\r
-                                       token.value = '{';\r
-                                       nextChar();\r
-                                       break\r
-                                       \r
-                               case '}':\r
-                                       token.type = JSONTokenType.RIGHT_BRACE;\r
-                                       token.value = '}';\r
-                                       nextChar();\r
-                                       break\r
-                                       \r
-                               case '[':\r
-                                       token.type = JSONTokenType.LEFT_BRACKET;\r
-                                       token.value = '[';\r
-                                       nextChar();\r
-                                       break\r
-                                       \r
-                               case ']':\r
-                                       token.type = JSONTokenType.RIGHT_BRACKET;\r
-                                       token.value = ']';\r
-                                       nextChar();\r
-                                       break\r
-                               \r
-                               case ',':\r
-                                       token.type = JSONTokenType.COMMA;\r
-                                       token.value = ',';\r
-                                       nextChar();\r
-                                       break\r
-                                       \r
-                               case ':':\r
-                                       token.type = JSONTokenType.COLON;\r
-                                       token.value = ':';\r
-                                       nextChar();\r
-                                       break;\r
-                                       \r
-                               case 't': // attempt to read true\r
-                                       var possibleTrue:String = "t" + nextChar() + nextChar() + nextChar();\r
-                                       \r
-                                       if ( possibleTrue == "true" ) {\r
-                                               token.type = JSONTokenType.TRUE;\r
-                                               token.value = true;\r
-                                               nextChar();\r
-                                       } else {\r
-                                               parseError( "Expecting 'true' but found " + possibleTrue );\r
-                                       }\r
-                                       \r
-                                       break;\r
-                                       \r
-                               case 'f': // attempt to read false\r
-                                       var possibleFalse:String = "f" + nextChar() + nextChar() + nextChar() + nextChar();\r
-                                       \r
-                                       if ( possibleFalse == "false" ) {\r
-                                               token.type = JSONTokenType.FALSE;\r
-                                               token.value = false;\r
-                                               nextChar();\r
-                                       } else {\r
-                                               parseError( "Expecting 'false' but found " + possibleFalse );\r
-                                       }\r
-                                       \r
-                                       break;\r
-                                       \r
-                               case 'n': // attempt to read null\r
-                               \r
-                                       var possibleNull:String = "n" + nextChar() + nextChar() + nextChar();\r
-                                       \r
-                                       if ( possibleNull == "null" ) {\r
-                                               token.type = JSONTokenType.NULL;\r
-                                               token.value = null;\r
-                                               nextChar();\r
-                                       } else {\r
-                                               parseError( "Expecting 'null' but found " + possibleNull );\r
-                                       }\r
-                                       \r
-                                       break;\r
-                                       \r
-                               case '"': // the start of a string\r
-                                       token = readString();\r
-                                       break;\r
-                                       \r
-                               default: \r
-                                       // see if we can read a number\r
-                                       if ( isDigit( ch ) || ch == '-' ) {\r
-                                               token = readNumber();\r
-                                       } else if ( ch == '' ) {\r
-                                               // check for reading past the end of the string\r
-                                               return null;\r
-                                       } else {                                                \r
-                                               // not sure what was in the input string - it's not\r
-                                               // anything we expected\r
-                                               parseError( "Unexpected " + ch + " encountered" );\r
-                                       }\r
-                       }\r
-                       \r
-                       return token;\r
-               }\r
-               \r
-               /**\r
-                * Attempts to read a string from the input string.  Places\r
-                * the character location at the first character after the\r
-                * string.  It is assumed that ch is " before this method is called.\r
-                *\r
-                * @return the JSONToken with the string value if a string could\r
-                *              be read.  Throws an error otherwise.\r
-                */\r
-               private function readString():JSONToken {\r
-                       // the token for the string we'll try to read\r
-                       var token:JSONToken = new JSONToken();\r
-                       token.type = JSONTokenType.STRING;\r
-                       \r
-                       // the string to store the string we'll try to read\r
-                       var string:String = "";\r
-                       \r
-                       // advance past the first "\r
-                       nextChar();\r
-                       \r
-                       while ( ch != '"' && ch != '' ) {\r
-                                                               \r
-                               // unescape the escape sequences in the string\r
-                               if ( ch == '\\' ) {\r
-                                       \r
-                                       // get the next character so we know what\r
-                                       // to unescape\r
-                                       nextChar();\r
-                                       \r
-                                       switch ( ch ) {\r
-                                               \r
-                                               case '"': // quotation mark\r
-                                                       string += '"';\r
-                                                       break;\r
-                                               \r
-                                               case '/':       // solidus\r
-                                                       string += "/";\r
-                                                       break;\r
-                                                       \r
-                                               case '\\':      // reverse solidus\r
-                                                       string += '\\';\r
-                                                       break;\r
-                                                       \r
-                                               case 'b':       // bell\r
-                                                       string += '\b';\r
-                                                       break;\r
-                                                       \r
-                                               case 'f':       // form feed\r
-                                                       string += '\f';\r
-                                                       break;\r
-                                                       \r
-                                               case 'n':       // newline\r
-                                                       string += '\n';\r
-                                                       break;\r
-                                                       \r
-                                               case 'r':       // carriage return\r
-                                                       string += '\r';\r
-                                                       break;\r
-                                                       \r
-                                               case 't':       // horizontal tab\r
-                                                       string += '\t'\r
-                                                       break;\r
-                                               \r
-                                               case 'u':\r
-                                                       // convert a unicode escape sequence\r
-                                                       // to it's character value - expecting\r
-                                                       // 4 hex digits\r
-                                                       \r
-                                                       // save the characters as a string we'll convert to an int\r
-                                                       var hexValue:String = "";\r
-                                                       \r
-                                                       // try to find 4 hex characters\r
-                                                       for ( var i:int = 0; i < 4; i++ ) {\r
-                                                               // get the next character and determine\r
-                                                               // if it's a valid hex digit or not\r
-                                                               if ( !isHexDigit( nextChar() ) ) {\r
-                                                                       parseError( " Excepted a hex digit, but found: " + ch );\r
-                                                               }\r
-                                                               // valid, add it to the value\r
-                                                               hexValue += ch;\r
-                                                       }\r
-                                                       \r
-                                                       // convert hexValue to an integer, and use that\r
-                                                       // integrer value to create a character to add\r
-                                                       // to our string.\r
-                                                       string += String.fromCharCode( parseInt( hexValue, 16 ) );\r
-                                                       \r
-                                                       break;\r
-                                       \r
-                                               default:\r
-                                                       // couldn't unescape the sequence, so just\r
-                                                       // pass it through\r
-                                                       string += '\\' + ch;\r
-                                               \r
-                                       }\r
-                                       \r
-                               } else {\r
-                                       // didn't have to unescape, so add the character to the string\r
-                                       string += ch;\r
-                                       \r
-                               }\r
-                               \r
-                               // move to the next character\r
-                               nextChar();\r
-                               \r
-                       }\r
-                       \r
-                       // we read past the end of the string without closing it, which\r
-                       // is a parse error\r
-                       if ( ch == '' ) {\r
-                               parseError( "Unterminated string literal" );\r
-                       }\r
-                       \r
-                       // move past the closing " in the input string\r
-                       nextChar();\r
-                       \r
-                       // attach to the string to the token so we can return it\r
-                       token.value = string;\r
-                       \r
-                       return token;\r
-               }\r
-               \r
-               /**\r
-                * Attempts to read a number from the input string.  Places\r
-                * the character location at the first character after the\r
-                * number.\r
-                * \r
-                * @return The JSONToken with the number value if a number could\r
-                *              be read.  Throws an error otherwise.\r
-                */\r
-               private function readNumber():JSONToken {\r
-                       // the token for the number we'll try to read\r
-                       var token:JSONToken = new JSONToken();\r
-                       token.type = JSONTokenType.NUMBER;\r
-                       \r
-                       // the string to accumulate the number characters\r
-                       // into that we'll convert to a number at the end\r
-                       var input:String = "";\r
-                       \r
-                       // check for a negative number\r
-                       if ( ch == '-' ) {\r
-                               input += '-';\r
-                               nextChar();\r
-                       }\r
-                       \r
-                       // the number must start with a digit\r
-                       if ( !isDigit( ch ) )\r
-                       {\r
-                               parseError( "Expecting a digit" );\r
-                       }\r
-                       \r
-                       // 0 can only be the first digit if it\r
-                       // is followed by a decimal point\r
-                       if ( ch == '0' )\r
-                       {\r
-                               input += ch;\r
-                               nextChar();\r
-                               \r
-                               // make sure no other digits come after 0\r
-                               if ( isDigit( ch ) )\r
-                               {\r
-                                       parseError( "A digit cannot immediately follow 0" );\r
-                               }\r
-// Commented out - this should only be available when "strict" is false\r
-//                             // unless we have 0x which starts a hex number\\r
-//                             else if ( ch == 'x' )\r
-//                             {\r
-//                                     // include the x in the input\r
-//                                     input += ch;\r
-//                                     nextChar();\r
-//                                     \r
-//                                     // need at least one hex digit after 0x to\r
-//                                     // be valid\r
-//                                     if ( isHexDigit( ch ) )\r
-//                                     {\r
-//                                             input += ch;\r
-//                                             nextChar();\r
-//                                     }\r
-//                                     else\r
-//                                     {\r
-//                                             parseError( "Number in hex format require at least one hex digit after \"0x\"" );       \r
-//                                     }\r
-//                                     \r
-//                                     // consume all of the hex values\r
-//                                     while ( isHexDigit( ch ) )\r
-//                                     {\r
-//                                             input += ch;\r
-//                                             nextChar();\r
-//                                     }\r
-//                             }\r
-                       }\r
-                       else\r
-                       {\r
-                               // read numbers while we can\r
-                               while ( isDigit( ch ) ) {\r
-                                       input += ch;\r
-                                       nextChar();\r
-                               }\r
-                       }\r
-                       \r
-                       // check for a decimal value\r
-                       if ( ch == '.' ) {\r
-                               input += '.';\r
-                               nextChar();\r
-                               \r
-                               // after the decimal there has to be a digit\r
-                               if ( !isDigit( ch ) )\r
-                               {\r
-                                       parseError( "Expecting a digit" );\r
-                               }\r
-                               \r
-                               // read more numbers to get the decimal value\r
-                               while ( isDigit( ch ) ) {\r
-                                       input += ch;\r
-                                       nextChar();\r
-                               }\r
-                       }\r
-                       \r
-                       // check for scientific notation\r
-                       if ( ch == 'e' || ch == 'E' )\r
-                       {\r
-                               input += "e"\r
-                               nextChar();\r
-                               // check for sign\r
-                               if ( ch == '+' || ch == '-' )\r
-                               {\r
-                                       input += ch;\r
-                                       nextChar();\r
-                               }\r
-                               \r
-                               // require at least one number for the exponent\r
-                               // in this case\r
-                               if ( !isDigit( ch ) )\r
-                               {\r
-                                       parseError( "Scientific notation number needs exponent value" );\r
-                               }\r
-                                                       \r
-                               // read in the exponent\r
-                               while ( isDigit( ch ) )\r
-                               {\r
-                                       input += ch;\r
-                                       nextChar();\r
-                               }\r
-                       }\r
-                       \r
-                       // convert the string to a number value\r
-                       var num:Number = Number( input );\r
-                       \r
-                       if ( isFinite( num ) && !isNaN( num ) ) {\r
-                               token.value = num;\r
-                               return token;\r
-                       } else {\r
-                               parseError( "Number " + num + " is not valid!" );\r
-                       }\r
-            return null;\r
-               }\r
-\r
-               /**\r
-                * Reads the next character in the input\r
-                * string and advances the character location.\r
-                *\r
-                * @return The next character in the input string, or\r
-                *              null if we've read past the end.\r
-                */\r
-               private function nextChar():String {\r
-                       return ch = jsonString.charAt( loc++ );\r
-               }\r
-               \r
-               /**\r
-                * Advances the character location past any\r
-                * sort of white space and comments\r
-                */\r
-               private function skipIgnored():void\r
-               {\r
-                       var originalLoc:int;\r
-                       \r
-                       // keep trying to skip whitespace and comments as long\r
-                       // as we keep advancing past the original location \r
-                       do\r
-                       {\r
-                               originalLoc = loc;\r
-                               skipWhite();\r
-                               skipComments();\r
-                       }\r
-                       while ( originalLoc != loc );\r
-               }\r
-               \r
-               /**\r
-                * Skips comments in the input string, either\r
-                * single-line or multi-line.  Advances the character\r
-                * to the first position after the end of the comment.\r
-                */\r
-               private function skipComments():void {\r
-                       if ( ch == '/' ) {\r
-                               // Advance past the first / to find out what type of comment\r
-                               nextChar();\r
-                               switch ( ch ) {\r
-                                       case '/': // single-line comment, read through end of line\r
-                                               \r
-                                               // Loop over the characters until we find\r
-                                               // a newline or until there's no more characters left\r
-                                               do {\r
-                                                       nextChar();\r
-                                               } while ( ch != '\n' && ch != '' )\r
-                                               \r
-                                               // move past the \n\r
-                                               nextChar();\r
-                                               \r
-                                               break;\r
-                                       \r
-                                       case '*': // multi-line comment, read until closing */\r
-\r
-                                               // move past the opening *\r
-                                               nextChar();\r
-                                               \r
-                                               // try to find a trailing */\r
-                                               while ( true ) {\r
-                                                       if ( ch == '*' ) {\r
-                                                               // check to see if we have a closing /\r
-                                                               nextChar();\r
-                                                               if ( ch == '/') {\r
-                                                                       // move past the end of the closing */\r
-                                                                       nextChar();\r
-                                                                       break;\r
-                                                               }\r
-                                                       } else {\r
-                                                               // move along, looking if the next character is a *\r
-                                                               nextChar();\r
-                                                       }\r
-                                                       \r
-                                                       // when we're here we've read past the end of \r
-                                                       // the string without finding a closing */, so error\r
-                                                       if ( ch == '' ) {\r
-                                                               parseError( "Multi-line comment not closed" );\r
-                                                       }\r
-                                               }\r
-\r
-                                               break;\r
-                                       \r
-                                       // Can't match a comment after a /, so it's a parsing error\r
-                                       default:\r
-                                               parseError( "Unexpected " + ch + " encountered (expecting '/' or '*' )" );\r
-                               }\r
-                       }\r
-                       \r
-               }\r
-               \r
-               \r
-               /**\r
-                * Skip any whitespace in the input string and advances\r
-                * the character to the first character after any possible\r
-                * whitespace.\r
-                */\r
-               private function skipWhite():void {\r
-                       \r
-                       // As long as there are spaces in the input \r
-                       // stream, advance the current location pointer\r
-                       // past them\r
-                       while ( isWhiteSpace( ch ) ) {\r
-                               nextChar();\r
-                       }\r
-                       \r
-               }\r
-               \r
-               /**\r
-                * Determines if a character is whitespace or not.\r
-                *\r
-                * @return True if the character passed in is a whitespace\r
-                *      character\r
-                */\r
-               private function isWhiteSpace( ch:String ):Boolean {\r
-                       return ( ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r' );\r
-               }\r
-               \r
-               /**\r
-                * Determines if a character is a digit [0-9].\r
-                *\r
-                * @return True if the character passed in is a digit\r
-                */\r
-               private function isDigit( ch:String ):Boolean {\r
-                       return ( ch >= '0' && ch <= '9' );\r
-               }\r
-               \r
-               /**\r
-                * Determines if a character is a digit [0-9].\r
-                *\r
-                * @return True if the character passed in is a digit\r
-                */\r
-               private function isHexDigit( ch:String ):Boolean {\r
-                       // get the uppercase value of ch so we only have\r
-                       // to compare the value between 'A' and 'F'\r
-                       var uc:String = ch.toUpperCase();\r
-                       \r
-                       // a hex digit is a digit of A-F, inclusive ( using\r
-                       // our uppercase constraint )\r
-                       return ( isDigit( ch ) || ( uc >= 'A' && uc <= 'F' ) );\r
-               }\r
-       \r
-               /**\r
-                * Raises a parsing error with a specified message, tacking\r
-                * on the error location and the original string.\r
-                *\r
-                * @param message The message indicating why the error occurred\r
-                */\r
-               public function parseError( message:String ):void {\r
-                       throw new JSONParseError( message, loc, jsonString );\r
-               }\r
-       }\r
-       \r
-}\r
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/ArrayUtil.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/ArrayUtil.as
deleted file mode 100644 (file)
index e656120..0000000
+++ /dev/null
@@ -1,187 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.utils\r
-{\r
-       \r
-       /**\r
-       *       Class that contains static utility methods for manipulating and working\r
-       *       with Arrays.\r
-       * \r
-       *       Note that all APIs assume that they are working with well formed arrays.\r
-       *       i.e. they will only manipulate indexed values.  \r
-       * \r
-       *       @langversion ActionScript 3.0\r
-       *       @playerversion Flash 9.0\r
-       *       @tiptext\r
-       */              \r
-       public class ArrayUtil\r
-       {\r
-                               \r
-               /**\r
-               *       Determines whether the specified array contains the specified value.    \r
-               * \r
-               *       @param arr The array that will be checked for the specified value.\r
-               *\r
-               *       @param value The object which will be searched for within the array\r
-               * \r
-               *       @return True if the array contains the value, False if it does not.\r
-               *\r
-               *       @langversion ActionScript 3.0\r
-               *       @playerversion Flash 9.0\r
-               *       @tiptext\r
-               */                      \r
-               public static function arrayContainsValue(arr:Array, value:Object):Boolean\r
-               {\r
-                       return (arr.indexOf(value) != -1);\r
-               }       \r
-               \r
-               /**\r
-               *       Remove all instances of the specified value from the array,\r
-               * \r
-               *       @param arr The array from which the value will be removed\r
-               *\r
-               *       @param value The object that will be removed from the array.\r
-               *\r
-               *       @langversion ActionScript 3.0\r
-               *       @playerversion Flash 9.0\r
-               *       @tiptext\r
-               */              \r
-               public static function removeValueFromArray(arr:Array, value:Object):void\r
-               {\r
-                       var len:uint = arr.length;\r
-                       \r
-                       for(var i:Number = len; i > -1; i--)\r
-                       {\r
-                               if(arr[i] === value)\r
-                               {\r
-                                       arr.splice(i, 1);\r
-                               }\r
-                       }                                       \r
-               }\r
-\r
-               /**\r
-               *       Create a new array that only contains unique instances of objects\r
-               *       in the specified array.\r
-               *\r
-               *       Basically, this can be used to remove duplication object instances\r
-               *       from an array\r
-               * \r
-               *       @param arr The array which contains the values that will be used to\r
-               *       create the new array that contains no duplicate values.\r
-               *\r
-               *       @return A new array which only contains unique items from the specified\r
-               *       array.\r
-               *\r
-               *       @langversion ActionScript 3.0\r
-               *       @playerversion Flash 9.0\r
-               *       @tiptext\r
-               */      \r
-               public static function createUniqueCopy(a:Array):Array\r
-               {\r
-                       var newArray:Array = new Array();\r
-                       \r
-                       var len:Number = a.length;\r
-                       var item:Object;\r
-                       \r
-                       for (var i:uint = 0; i < len; ++i)\r
-                       {\r
-                               item = a[i];\r
-                               \r
-                               if(ArrayUtil.arrayContainsValue(newArray, item))\r
-                               {\r
-                                       continue;\r
-                               }\r
-                               \r
-                               newArray.push(item);\r
-                       }\r
-                       \r
-                       return newArray;\r
-               }\r
-               \r
-               /**\r
-               *       Creates a copy of the specified array.\r
-               *\r
-               *       Note that the array returned is a new array but the items within the\r
-               *       array are not copies of the items in the original array (but rather \r
-               *       references to the same items)\r
-               * \r
-               *       @param arr The array that will be copies\r
-               *\r
-               *       @return A new array which contains the same items as the array passed\r
-               *       in.\r
-               *\r
-               *       @langversion ActionScript 3.0\r
-               *       @playerversion Flash 9.0\r
-               *       @tiptext\r
-               */                      \r
-               public static function copyArray(arr:Array):Array\r
-               {       \r
-                       return arr.slice();\r
-               }\r
-               \r
-               /**\r
-               *       Compares two arrays and returns a boolean indicating whether the arrays\r
-               *       contain the same values at the same indexes.\r
-               * \r
-               *       @param arr1 The first array that will be compared to the second.\r
-               *\r
-               *       @param arr2 The second array that will be compared to the first.\r
-               *\r
-               *       @return True if the arrays contains the same values at the same indexes.\r
-                       False if they do not.\r
-               *\r
-               *       @langversion ActionScript 3.0\r
-               *       @playerversion Flash 9.0\r
-               *       @tiptext\r
-               */              \r
-               public static function arraysAreEqual(arr1:Array, arr2:Array):Boolean\r
-               {\r
-                       if(arr1.length != arr2.length)\r
-                       {\r
-                               return false;\r
-                       }\r
-                       \r
-                       var len:Number = arr1.length;\r
-                       \r
-                       for(var i:Number = 0; i < len; i++)\r
-                       {\r
-                               if(arr1[i] !== arr2[i])\r
-                               {\r
-                                       return false;\r
-                               }\r
-                       }\r
-                       \r
-                       return true;\r
-               }\r
-       }\r
-}\r
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/DateUtil.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/DateUtil.as
deleted file mode 100644 (file)
index a49fe43..0000000
+++ /dev/null
@@ -1,699 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package com.adobe.utils
-{
-       import mx.formatters.DateBase;
-
-       /**
-       *       Class that contains static utility methods for manipulating and working
-       *       with Dates.
-       * 
-       *       @langversion ActionScript 3.0
-       *       @playerversion Flash 9.0
-       *       @tiptext
-       */      
-       public class DateUtil
-       {
-       
-               /**
-               *       Returns the English Short Month name (3 letters) for the Month that
-               *       the Date represents.    
-               * 
-               *       @param d The Date instance whose month will be used to retrieve the
-               *       short month name.
-               * 
-               *       @return An English 3 Letter Month abbreviation.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see SHORT_MONTH
-               */      
-               public static function getShortMonthName(d:Date):String
-               {
-                       return DateBase.monthNamesShort[d.getMonth()];
-               }
-
-               /**
-               *       Returns the index of the month that the short month name string
-               *       represents.     
-               * 
-               *       @param m The 3 letter abbreviation representing a short month name.
-               *
-               *       @param Optional parameter indicating whether the search should be case
-               *       sensitive
-               * 
-               *       @return A int that represents that month represented by the specifed
-               *       short name.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see SHORT_MONTH
-               */      
-               public static function getShortMonthIndex(m:String):int
-               {
-                       return DateBase.monthNamesShort.indexOf(m);
-               }
-               
-               /**
-               *       Returns the English full Month name for the Month that
-               *       the Date represents.    
-               * 
-               *       @param d The Date instance whose month will be used to retrieve the
-               *       full month name.
-               * 
-               *       @return An English full month name.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see FULL_MONTH
-               */      
-               public static function getFullMonthName(d:Date):String
-               {
-                       return DateBase.monthNamesLong[d.getMonth()];   
-               }
-
-               /**
-               *       Returns the index of the month that the full month name string
-               *       represents.     
-               * 
-               *       @param m A full month name.
-               * 
-               *       @return A int that represents that month represented by the specifed
-               *       full month name.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see FULL_MONTH
-               */      
-               public static function getFullMonthIndex(m:String):int
-               {
-                       return DateBase.monthNamesLong.indexOf(m);
-               }
-
-               /**
-               *       Returns the English Short Day name (3 letters) for the day that
-               *       the Date represents.    
-               * 
-               *       @param d The Date instance whose day will be used to retrieve the
-               *       short day name.
-               * 
-               *       @return An English 3 Letter day abbreviation.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see SHORT_DAY
-               */      
-               public static function getShortDayName(d:Date):String
-               {
-                       return DateBase.dayNamesShort[d.getDay()];      
-               }
-               
-               /**
-               *       Returns the index of the day that the short day name string
-               *       represents.     
-               * 
-               *       @param m A short day name.
-               * 
-               *       @return A int that represents that short day represented by the specifed
-               *       full month name.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see SHORT_DAY
-               */                      
-               public static function getShortDayIndex(d:String):int
-               {
-                       return DateBase.dayNamesShort.indexOf(d);
-               }
-
-               /**
-               *       Returns the English full day name for the day that
-               *       the Date represents.    
-               * 
-               *       @param d The Date instance whose day will be used to retrieve the
-               *       full day name.
-               * 
-               *       @return An English full day name.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see FULL_DAY
-               */      
-               public static function getFullDayName(d:Date):String
-               {
-                       return DateBase.dayNamesLong[d.getDay()];       
-               }               
-
-               /**
-               *       Returns the index of the day that the full day name string
-               *       represents.     
-               * 
-               *       @param m A full day name.
-               * 
-               *       @return A int that represents that full day represented by the specifed
-               *       full month name.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see FULL_DAY
-               */              
-               public static function getFullDayIndex(d:String):int
-               {
-                       return DateBase.dayNamesLong.indexOf(d);
-               }
-
-               /**
-               *       Returns a two digit representation of the year represented by the 
-               *       specified date.
-               * 
-               *       @param d The Date instance whose year will be used to generate a two
-               *       digit string representation of the year.
-               * 
-               *       @return A string that contains a 2 digit representation of the year.
-               *       Single digits will be padded with 0.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function getShortYear(d:Date):String
-               {
-                       var dStr:String = String(d.getFullYear());
-                       
-                       if(dStr.length < 3)
-                       {
-                               return dStr;
-                       }
-
-                       return (dStr.substr(dStr.length - 2));
-               }
-
-               /**
-               *       Compares two dates and returns an integer depending on their relationship.
-               *
-               *       Returns -1 if d1 is greater than d2.
-               *       Returns 1 if d2 is greater than d1.
-               *       Returns 0 if both dates are equal.
-               * 
-               *       @param d1 The date that will be compared to the second date.
-               *       @param d2 The date that will be compared to the first date.
-               * 
-               *       @return An int indicating how the two dates compare.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function compareDates(d1:Date, d2:Date):int
-               {
-                       var d1ms:Number = d1.getTime();
-                       var d2ms:Number = d2.getTime();
-                       
-                       if(d1ms > d2ms)
-                       {
-                               return -1;
-                       }
-                       else if(d1ms < d2ms)
-                       {
-                               return 1;
-                       }
-                       else
-                       {
-                               return 0;
-                       }
-               }
-
-               /**
-               *       Returns a short hour (0 - 12) represented by the specified date.
-               *
-               *       If the hour is less than 12 (0 - 11 AM) then the hour will be returned.
-               *
-               *       If the hour is greater than 12 (12 - 23 PM) then the hour minus 12
-               *       will be returned.
-               * 
-               *       @param d1 The Date from which to generate the short hour
-               * 
-               *       @return An int between 0 and 13 ( 1 - 12 ) representing the short hour.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function getShortHour(d:Date):int
-               {
-                       var h:int = d.hours;
-                       
-                       if(h == 0 || h == 12)
-                       {
-                               return 12;
-                       }
-                       else if(h > 12)
-                       {
-                               return h - 12;
-                       }
-                       else
-                       {
-                               return h;
-                       }
-               }
-               
-               /**
-               *       Returns a string indicating whether the date represents a time in the
-               *       ante meridiem (AM) or post meridiem (PM).
-               *
-               *       If the hour is less than 12 then "AM" will be returned.
-               *
-               *       If the hour is greater than 12 then "PM" will be returned.
-               * 
-               *       @param d1 The Date from which to generate the 12 hour clock indicator.
-               * 
-               *       @return A String ("AM" or "PM") indicating which half of the day the 
-               *       hour represents.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function getAMPM(d:Date):String
-               {
-                       return (d.hours > 11)? "PM" : "AM";
-               }
-
-               /**
-               * Parses dates that conform to RFC822 into Date objects. This method also
-               * supports four-digit years (not supported in RFC822), but two-digit years
-               * (referring to the 20th century) are fine, too.
-               *
-               * This function is useful for parsing RSS .91, .92, and 2.0 dates.
-               *
-               * @param str
-               *
-               * @returns
-               *
-               * @langversion ActionScript 3.0
-               * @playerversion Flash 9.0
-               * @tiptext
-               *
-               * @see http://asg.web.cmu.edu/rfc/rfc822.html
-               */              
-               public static function parseRFC822(str:String):Date
-               {
-            var finalDate:Date;
-                       try
-                       {
-                               var dateParts:Array = str.split(" ");
-                               var day:String = null;
-                               
-                               if (dateParts[0].search(/\d/) == -1)
-                               {
-                                       day = dateParts.shift().replace(/\W/, "");
-                               }
-                               
-                               var date:Number = Number(dateParts.shift());
-                               var month:Number = Number(DateUtil.getShortMonthIndex(dateParts.shift()));
-                               var year:Number = Number(dateParts.shift());
-                               var timeParts:Array = dateParts.shift().split(":");
-                               var hour:Number = int(timeParts.shift());
-                               var minute:Number = int(timeParts.shift());
-                               var second:Number = (timeParts.length > 0) ? int(timeParts.shift()): 0;
-       
-                               var milliseconds:Number = Date.UTC(year, month, date, hour, minute, second, 0);
-       
-                               var timezone:String = dateParts.shift();
-                               var offset:Number = 0;
-
-                               if (timezone.search(/\d/) == -1)
-                               {
-                                       switch(timezone)
-                                       {
-                                               case "UT":
-                                                       offset = 0;
-                                                       break;
-                                               case "UTC":
-                                                       offset = 0;
-                                                       break;
-                                               case "GMT":
-                                                       offset = 0;
-                                                       break;
-                                               case "EST":
-                                                       offset = (-5 * 3600000);
-                                                       break;
-                                               case "EDT":
-                                                       offset = (-4 * 3600000);
-                                                       break;
-                                               case "CST":
-                                                       offset = (-6 * 3600000);
-                                                       break;
-                                               case "CDT":
-                                                       offset = (-5 * 3600000);
-                                                       break;
-                                               case "MST":
-                                                       offset = (-7 * 3600000);
-                                                       break;
-                                               case "MDT":
-                                                       offset = (-6 * 3600000);
-                                                       break;
-                                               case "PST":
-                                                       offset = (-8 * 3600000);
-                                                       break;
-                                               case "PDT":
-                                                       offset = (-7 * 3600000);
-                                                       break;
-                                               case "Z":
-                                                       offset = 0;
-                                                       break;
-                                               case "A":
-                                                       offset = (-1 * 3600000);
-                                                       break;
-                                               case "M":
-                                                       offset = (-12 * 3600000);
-                                                       break;
-                                               case "N":
-                                                       offset = (1 * 3600000);
-                                                       break;
-                                               case "Y":
-                                                       offset = (12 * 3600000);
-                                                       break;
-                                               default:
-                                                       offset = 0;
-                                       }
-                               }
-                               else
-                               {
-                                       var multiplier:Number = 1;
-                                       var oHours:Number = 0;
-                                       var oMinutes:Number = 0;
-                                       if (timezone.length != 4)
-                                       {
-                                               if (timezone.charAt(0) == "-")
-                                               {
-                                                       multiplier = -1;
-                                               }
-                                               timezone = timezone.substr(1, 4);
-                                       }
-                                       oHours = Number(timezone.substr(0, 2));
-                                       oMinutes = Number(timezone.substr(2, 2));
-                                       offset = (((oHours * 3600000) + (oMinutes * 60000)) * multiplier);
-                               }
-
-                               finalDate = new Date(milliseconds - offset);
-
-                               if (finalDate.toString() == "Invalid Date")
-                               {
-                                       throw new Error("This date does not conform to RFC822.");
-                               }
-                       }
-                       catch (e:Error)
-                       {
-                               var eStr:String = "Unable to parse the string [" +str+ "] into a date. ";
-                               eStr += "The internal error was: " + e.toString();
-                               throw new Error(eStr);
-                       }
-            return finalDate;
-               }
-            
-               /**
-               * Returns a date string formatted according to RFC822.
-               *
-               * @param d
-               *
-               * @returns
-               *
-               * @langversion ActionScript 3.0
-               * @playerversion Flash 9.0
-               * @tiptext
-               *
-               * @see http://asg.web.cmu.edu/rfc/rfc822.html
-               */      
-               public static function toRFC822(d:Date):String
-               {
-                       var date:Number = d.getUTCDate();
-                       var hours:Number = d.getUTCHours();
-                       var minutes:Number = d.getUTCMinutes();
-                       var seconds:Number = d.getUTCSeconds();
-                       var sb:String = new String();
-                       sb += DateBase.dayNamesShort[d.getUTCDay()];
-                       sb += ", ";
-                       
-                       if (date < 10)
-                       {
-                               sb += "0";
-                       }
-                       sb += date;
-                       sb += " ";
-                       //sb += DateUtil.SHORT_MONTH[d.getUTCMonth()];
-                       sb += DateBase.monthNamesShort[d.getUTCMonth()];
-                       sb += " ";
-                       sb += d.getUTCFullYear();
-                       sb += " ";
-                       if (hours < 10)
-                       {                       
-                               sb += "0";
-                       }
-                       sb += hours;
-                       sb += ":";
-                       if (minutes < 10)
-                       {                       
-                               sb += "0";
-                       }
-                       sb += minutes;
-                       sb += ":";
-                       if (seconds < 10)
-                       {                       
-                               sb += "0";
-                       }
-                       sb += seconds;
-                       sb += " GMT";
-                       return sb;
-               }
-            
-               /**
-               * Parses dates that conform to the W3C Date-time Format into Date objects.
-               *
-               * This function is useful for parsing RSS 1.0 and Atom 1.0 dates.
-               *
-               * @param str
-               *
-               * @returns
-               *
-               * @langversion ActionScript 3.0
-               * @playerversion Flash 9.0
-               * @tiptext
-               *
-               * @see http://www.w3.org/TR/NOTE-datetime
-               */                   
-               public static function parseW3CDTF(str:String):Date
-               {
-            var finalDate:Date;
-                       try
-                       {
-                               var dateStr:String = str.substring(0, str.indexOf("T"));
-                               var timeStr:String = str.substring(str.indexOf("T")+1, str.length);
-                               var dateArr:Array = dateStr.split("-");
-                               var year:Number = Number(dateArr.shift());
-                               var month:Number = Number(dateArr.shift());
-                               var date:Number = Number(dateArr.shift());
-                               
-                               var multiplier:Number;
-                               var offsetHours:Number;
-                               var offsetMinutes:Number;
-                               var offsetStr:String;
-                               
-                               if (timeStr.indexOf("Z") != -1)
-                               {
-                                       multiplier = 1;
-                                       offsetHours = 0;
-                                       offsetMinutes = 0;
-                                       timeStr = timeStr.replace("Z", "");
-                               }
-                               else if (timeStr.indexOf("+") != -1)
-                               {
-                                       multiplier = 1;
-                                       offsetStr = timeStr.substring(timeStr.indexOf("+")+1, timeStr.length);
-                                       offsetHours = Number(offsetStr.substring(0, offsetStr.indexOf(":")));
-                                       offsetMinutes = Number(offsetStr.substring(offsetStr.indexOf(":")+1, offsetStr.length));
-                                       timeStr = timeStr.substring(0, timeStr.indexOf("+"));
-                               }
-                               else // offset is -
-                               {
-                                       multiplier = -1;
-                                       offsetStr = timeStr.substring(timeStr.indexOf("-")+1, timeStr.length);
-                                       offsetHours = Number(offsetStr.substring(0, offsetStr.indexOf(":")));
-                                       offsetMinutes = Number(offsetStr.substring(offsetStr.indexOf(":")+1, offsetStr.length));
-                                       timeStr = timeStr.substring(0, timeStr.indexOf("-"));
-                               }
-                               var timeArr:Array = timeStr.split(":");
-                               var hour:Number = Number(timeArr.shift());
-                               var minutes:Number = Number(timeArr.shift());
-                               var secondsArr:Array = (timeArr.length > 0) ? String(timeArr.shift()).split(".") : null;
-                               var seconds:Number = (secondsArr != null && secondsArr.length > 0) ? Number(secondsArr.shift()) : 0;
-                               var milliseconds:Number = (secondsArr != null && secondsArr.length > 0) ? Number(secondsArr.shift()) : 0;
-                               var utc:Number = Date.UTC(year, month-1, date, hour, minutes, seconds, milliseconds);
-                               var offset:Number = (((offsetHours * 3600000) + (offsetMinutes * 60000)) * multiplier);
-                               finalDate = new Date(utc - offset);
-       
-                               if (finalDate.toString() == "Invalid Date")
-                               {
-                                       throw new Error("This date does not conform to W3CDTF.");
-                               }
-                       }
-                       catch (e:Error)
-                       {
-                               var eStr:String = "Unable to parse the string [" +str+ "] into a date. ";
-                               eStr += "The internal error was: " + e.toString();
-                               throw new Error(eStr);
-                       }
-            return finalDate;
-               }
-            
-               /**
-               * Returns a date string formatted according to W3CDTF.
-               *
-               * @param d
-               * @param includeMilliseconds Determines whether to include the
-               * milliseconds value (if any) in the formatted string.
-               *
-               * @returns
-               *
-               * @langversion ActionScript 3.0
-               * @playerversion Flash 9.0
-               * @tiptext
-               *
-               * @see http://www.w3.org/TR/NOTE-datetime
-               */                   
-               public static function toW3CDTF(d:Date,includeMilliseconds:Boolean=false):String
-               {
-                       var date:Number = d.getUTCDate();
-                       var month:Number = d.getUTCMonth();
-                       var hours:Number = d.getUTCHours();
-                       var minutes:Number = d.getUTCMinutes();
-                       var seconds:Number = d.getUTCSeconds();
-                       var milliseconds:Number = d.getUTCMilliseconds();
-                       var sb:String = new String();
-                       
-                       sb += d.getUTCFullYear();
-                       sb += "-";
-                       
-                       //thanks to "dom" who sent in a fix for the line below
-                       if (month + 1 < 10)
-                       {
-                               sb += "0";
-                       }
-                       sb += month + 1;
-                       sb += "-";
-                       if (date < 10)
-                       {
-                               sb += "0";
-                       }
-                       sb += date;
-                       sb += "T";
-                       if (hours < 10)
-                       {
-                               sb += "0";
-                       }
-                       sb += hours;
-                       sb += ":";
-                       if (minutes < 10)
-                       {
-                               sb += "0";
-                       }
-                       sb += minutes;
-                       sb += ":";
-                       if (seconds < 10)
-                       {
-                               sb += "0";
-                       }
-                       sb += seconds;
-                       if (includeMilliseconds && milliseconds > 0)
-                       {
-                               sb += ".";
-                               sb += milliseconds;
-                       }
-                       sb += "-00:00";
-                       return sb;
-               }
-               
-               /**
-                * Converts a date into just after midnight.
-                */
-               public static function makeMorning(d:Date):Date
-               {
-                       var d:Date = new Date(d.time);
-                       d.hours = 0;
-            d.minutes = 0;
-            d.seconds = 0;
-            d.milliseconds = 0;
-            return d;
-               }
-               
-               /**
-                * Converts a date into just befor midnight.
-                */
-               public static function makeNight(d:Date):Date
-               {
-                       var d:Date = new Date(d.time);
-                       d.hours = 23;
-            d.minutes = 59;
-            d.seconds = 59;
-            d.milliseconds = 999;                              
-            return d;
-               }
-
-               /**
-                * Sort of converts a date into UTC.
-                */
-               public static function getUTCDate(d:Date):Date
-               {
-                       var nd:Date = new Date();
-                       var offset:Number = d.getTimezoneOffset() * 60 * 1000; 
-                       nd.setTime(d.getTime() + offset);
-                       return nd;
-               }
-       }
-}
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/DictionaryUtil.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/DictionaryUtil.as
deleted file mode 100644 (file)
index 9552ef4..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package com.adobe.utils
-{
-       import flash.utils.Dictionary;
-       
-       public class DictionaryUtil
-       {
-               
-               /**
-               *       Returns an Array of all keys within the specified dictionary.   
-               * 
-               *       @param d The Dictionary instance whose keys will be returned.
-               * 
-               *       @return Array of keys contained within the Dictionary
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */                                      
-               public static function getKeys(d:Dictionary):Array
-               {
-                       var a:Array = new Array();
-                       
-                       for (var key:Object in d)
-                       {
-                               a.push(key);
-                       }
-                       
-                       return a;
-               }
-               
-               /**
-               *       Returns an Array of all values within the specified dictionary.         
-               * 
-               *       @param d The Dictionary instance whose values will be returned.
-               * 
-               *       @return Array of values contained within the Dictionary
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */                                      
-               public static function getValues(d:Dictionary):Array
-               {
-                       var a:Array = new Array();
-                       
-                       for each (var value:Object in d)
-                       {
-                               a.push(value);
-                       }
-                       
-                       return a;
-               }
-               
-       }
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/IntUtil.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/IntUtil.as
deleted file mode 100644 (file)
index 8c812fe..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-package com.adobe.utils {\r
-       \r
-       import flash.utils.Endian;\r
-       \r
-       /**\r
-        * Contains reusable methods for operations pertaining \r
-        * to int values.\r
-        */\r
-       public class IntUtil {\r
-               \r
-               /**\r
-                * Rotates x left n bits\r
-                *\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public static function rol ( x:int, n:int ):int {\r
-                       return ( x << n ) | ( x >>> ( 32 - n ) );\r
-               }\r
-               \r
-               /**\r
-                * Rotates x right n bits\r
-                *\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public static function ror ( x:int, n:int ):uint {\r
-                       var nn:int = 32 - n;\r
-                       return ( x << nn ) | ( x >>> ( 32 - nn ) );\r
-               }\r
-               \r
-               /** String for quick lookup of a hex character based on index */\r
-               private static var hexChars:String = "0123456789abcdef";\r
-               \r
-               /**\r
-                * Outputs the hex value of a int, allowing the developer to specify\r
-                * the endinaness in the process.  Hex output is lowercase.\r
-                *\r
-                * @param n The int value to output as hex\r
-                * @param bigEndian Flag to output the int as big or little endian\r
-                * @return A string of length 8 corresponding to the \r
-                *              hex representation of n ( minus the leading "0x" )\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public static function toHex( n:int, bigEndian:Boolean = false ):String {\r
-                       var s:String = "";\r
-                       \r
-                       if ( bigEndian ) {\r
-                               for ( var i:int = 0; i < 4; i++ ) {\r
-                                       s += hexChars.charAt( ( n >> ( ( 3 - i ) * 8 + 4 ) ) & 0xF ) \r
-                                               + hexChars.charAt( ( n >> ( ( 3 - i ) * 8 ) ) & 0xF );\r
-                               }\r
-                       } else {\r
-                               for ( var x:int = 0; x < 4; x++ ) {\r
-                                       s += hexChars.charAt( ( n >> ( x * 8 + 4 ) ) & 0xF )\r
-                                               + hexChars.charAt( ( n >> ( x * 8 ) ) & 0xF );\r
-                               }\r
-                       }\r
-                       \r
-                       return s;\r
-               }\r
-       }\r
-               \r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/NumberFormatter.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/NumberFormatter.as
deleted file mode 100644 (file)
index 6fe12e1..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.utils\r
-{\r
-\r
-       /**\r
-       *       Class that contains static utility methods for formatting Numbers\r
-       * \r
-       *       @langversion ActionScript 3.0\r
-       *       @playerversion Flash 9.0\r
-       *       @tiptext\r
-       *\r
-       *       @see #mx.formatters.NumberFormatter\r
-       */              \r
-       public class NumberFormatter\r
-       {\r
-       \r
-               /**\r
-               *       Formats a number to include a leading zero if it is a single digit\r
-               *       between -1 and 10.      \r
-               * \r
-               *       @param n The number that will be formatted\r
-               *\r
-               *       @return A string with single digits between -1 and 10 padded with a \r
-               *       leading zero.\r
-               *\r
-               *       @langversion ActionScript 3.0\r
-               *       @playerversion Flash 9.0\r
-               *       @tiptext\r
-               */              \r
-               public static function addLeadingZero(n:Number):String\r
-               {\r
-                       var out:String = String(n);\r
-                       \r
-                       if(n < 10 && n > -1)\r
-                       {\r
-                               out = "0" + out;\r
-                       }\r
-                       \r
-                       return out;\r
-               }       \r
-       \r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/StringUtil.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/StringUtil.as
deleted file mode 100644 (file)
index 6aa1979..0000000
+++ /dev/null
@@ -1,270 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package com.adobe.utils
-{
-       
-       /**
-       *       Class that contains static utility methods for manipulating Strings.
-       * 
-       *       @langversion ActionScript 3.0
-       *       @playerversion Flash 9.0
-       *       @tiptext
-       */              
-       public class StringUtil
-       {
-
-               
-               /**
-               *       Does a case insensitive compare or two strings and returns true if
-               *       they are equal.
-               * 
-               *       @param s1 The first string to compare.
-               *
-               *       @param s2 The second string to compare.
-               *
-               *       @returns A boolean value indicating whether the strings' values are 
-               *       equal in a case sensitive compare.      
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */                      
-               public static function stringsAreEqual(s1:String, s2:String, 
-                                                                                       caseSensitive:Boolean):Boolean
-               {
-                       if(caseSensitive)
-                       {
-                               return (s1 == s2);
-                       }
-                       else
-                       {
-                               return (s1.toUpperCase() == s2.toUpperCase());
-                       }
-               }
-               
-               /**
-               *       Removes whitespace from the front and the end of the specified
-               *       string.
-               * 
-               *       @param input The String whose beginning and ending whitespace will
-               *       will be removed.
-               *
-               *       @returns A String with whitespace removed from the begining and end     
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */                      
-               public static function trim(input:String):String
-               {
-                       return StringUtil.ltrim(StringUtil.rtrim(input));
-               }
-
-               /**
-               *       Removes whitespace from the front of the specified string.
-               * 
-               *       @param input The String whose beginning whitespace will will be removed.
-               *
-               *       @returns A String with whitespace removed from the begining     
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function ltrim(input:String):String
-               {
-                       var size:Number = input.length;
-                       for(var i:Number = 0; i < size; i++)
-                       {
-                               if(input.charCodeAt(i) > 32)
-                               {
-                                       return input.substring(i);
-                               }
-                       }
-                       return "";
-               }
-
-               /**
-               *       Removes whitespace from the end of the specified string.
-               * 
-               *       @param input The String whose ending whitespace will will be removed.
-               *
-               *       @returns A String with whitespace removed from the end  
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function rtrim(input:String):String
-               {
-                       var size:Number = input.length;
-                       for(var i:Number = size; i > 0; i--)
-                       {
-                               if(input.charCodeAt(i - 1) > 32)
-                               {
-                                       return input.substring(0, i);
-                               }
-                       }
-
-                       return "";
-               }
-
-               /**
-               *       Determines whether the specified string begins with the spcified prefix.
-               * 
-               *       @param input The string that the prefix will be checked against.
-               *
-               *       @param prefix The prefix that will be tested against the string.
-               *
-               *       @returns True if the string starts with the prefix, false if it does not.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function beginsWith(input:String, prefix:String):Boolean
-               {                       
-                       return (prefix == input.substring(0, prefix.length));
-               }       
-
-               /**
-               *       Determines whether the specified string ends with the spcified suffix.
-               * 
-               *       @param input The string that the suffic will be checked against.
-               *
-               *       @param prefix The suffic that will be tested against the string.
-               *
-               *       @returns True if the string ends with the suffix, false if it does not.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function endsWith(input:String, suffix:String):Boolean
-               {
-                       return (suffix == input.substring(input.length - suffix.length));
-               }       
-
-               /**
-               *       Removes all instances of the remove string in the input string.
-               * 
-               *       @param input The string that will be checked for instances of remove
-               *       string
-               *
-               *       @param remove The string that will be removed from the input string.
-               *
-               *       @returns A String with the remove string removed.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function remove(input:String, remove:String):String
-               {
-                       return StringUtil.replace(input, remove, "");
-               }
-
-               /**
-               *       Replaces all instances of the replace string in the input string
-               *       with the replaceWith string.
-               * 
-               *       @param input The string that instances of replace string will be 
-               *       replaces with removeWith string.
-               *
-               *       @param replace The string that will be replaced by instances of 
-               *       the replaceWith string.
-               *
-               *       @param replaceWith The string that will replace instances of replace
-               *       string.
-               *
-               *       @returns A new String with the replace string replaced with the 
-               *       replaceWith string.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */
-               public static function replace(input:String, replace:String, replaceWith:String):String
-               {
-                       //change to StringBuilder
-                       var sb:String = new String();
-                       var found:Boolean = false;
-
-                       var sLen:Number = input.length;
-                       var rLen:Number = replace.length;
-
-                       for (var i:Number = 0; i < sLen; i++)
-                       {
-                               if(input.charAt(i) == replace.charAt(0))
-                               {   
-                                       found = true;
-                                       for(var j:Number = 0; j < rLen; j++)
-                                       {
-                                               if(!(input.charAt(i + j) == replace.charAt(j)))
-                                               {
-                                                       found = false;
-                                                       break;
-                                               }
-                                       }
-
-                                       if(found)
-                                       {
-                                               sb += replaceWith;
-                                               i = i + (rLen - 1);
-                                               continue;
-                                       }
-                               }
-                               sb += input.charAt(i);
-                       }
-                       //TODO : if the string is not found, should we return the original
-                       //string?
-                       return sb;
-               }
-               
-               /**
-               *       Specifies whether the specified string is either non-null, or contains
-               *       characters (i.e. length is greater that 0)
-               * 
-               *       @param s The string which is being checked for a value
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */              
-               public static function stringHasValue(s:String):Boolean
-               {
-                       //todo: this needs a unit test
-                       return (s != null && s.length > 0);                     
-               }
-       }
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/XMLUtil.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/XMLUtil.as
deleted file mode 100644 (file)
index 24fce00..0000000
+++ /dev/null
@@ -1,168 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.utils\r
-{\r
-\r
-       public class XMLUtil\r
-       {\r
-               /**\r
-                * Constant representing a text node type returned from XML.nodeKind.\r
-                * \r
-                * @see XML.nodeKind()\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */\r
-               public static const TEXT:String = "text";\r
-               \r
-               /**\r
-                * Constant representing a comment node type returned from XML.nodeKind.\r
-                * \r
-                * @see XML.nodeKind()\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */             \r
-               public static const COMMENT:String = "comment";\r
-               \r
-               /**\r
-                * Constant representing a processing instruction type returned from XML.nodeKind.\r
-                * \r
-                * @see XML.nodeKind()\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */             \r
-               public static const PROCESSING_INSTRUCTION:String = "processing-instruction";\r
-               \r
-               /**\r
-                * Constant representing an attribute type returned from XML.nodeKind.\r
-                * \r
-                * @see XML.nodeKind()\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */             \r
-               public static const ATTRIBUTE:String = "attribute";\r
-               \r
-               /**\r
-                * Constant representing a element type returned from XML.nodeKind.\r
-                * \r
-                * @see XML.nodeKind()\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */             \r
-               public static const ELEMENT:String = "element";\r
-               \r
-               /**\r
-                * Checks whether the specified string is valid and well formed XML.\r
-                * \r
-                * @param data The string that is being checked to see if it is valid XML.\r
-                * \r
-                * @return A Boolean value indicating whether the specified string is\r
-                * valid XML.\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */\r
-               public static function isValidXML(data:String):Boolean\r
-               {\r
-                       var xml:XML;\r
-                       \r
-                       try\r
-                       {\r
-                               xml = new XML(data);\r
-                       }\r
-                       catch(e:Error)\r
-                       {\r
-                               return false;\r
-                       }\r
-                       \r
-                       if(xml.nodeKind() != XMLUtil.ELEMENT)\r
-                       {\r
-                               return false;\r
-                       }\r
-                       \r
-                       return true;\r
-               }\r
-               \r
-               /**\r
-                * Returns the next sibling of the specified node relative to the node's parent.\r
-                * \r
-                * @param x The node whose next sibling will be returned.\r
-                * \r
-                * @return The next sibling of the node. null if the node does not have \r
-                * a sibling after it, or if the node has no parent.\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */             \r
-               public static function getNextSibling(x:XML):XML\r
-               {       \r
-                       return XMLUtil.getSiblingByIndex(x, 1);\r
-               }\r
-               \r
-               /**\r
-                * Returns the sibling before the specified node relative to the node's parent.\r
-                * \r
-                * @param x The node whose sibling before it will be returned.\r
-                * \r
-                * @return The sibling before the node. null if the node does not have \r
-                * a sibling before it, or if the node has no parent.\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */                     \r
-               public static function getPreviousSibling(x:XML):XML\r
-               {       \r
-                       return XMLUtil.getSiblingByIndex(x, -1);\r
-               }               \r
-               \r
-               protected static function getSiblingByIndex(x:XML, count:int):XML       \r
-               {\r
-                       var out:XML;\r
-                       \r
-                       try\r
-                       {\r
-                               out = x.parent().children()[x.childIndex() + count];    \r
-                       }               \r
-                       catch(e:Error)\r
-                       {\r
-                               return null;\r
-                       }\r
-                       \r
-                       return out;                     \r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/ServiceBase.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/ServiceBase.as
deleted file mode 100644 (file)
index 7080287..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-\r
-package com.adobe.webapis \r
-{\r
-       import flash.events.EventDispatcher;\r
-\r
-       /**\r
-       * Base class for remote service classes.\r
-       */\r
-       public class ServiceBase extends EventDispatcher\r
-       {\r
-               public function ServiceBase()\r
-               {\r
-               }\r
-               \r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/URLLoaderBase.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/URLLoaderBase.as
deleted file mode 100644 (file)
index fc0085c..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.webapis\r
-{\r
-       import flash.events.IOErrorEvent;\r
-       import flash.events.SecurityErrorEvent;\r
-       import flash.events.ProgressEvent;\r
-       \r
-       import com.adobe.net.DynamicURLLoader;\r
-       \r
-               /**\r
-               *       Dispatched when data is \r
-               *       received as the download operation progresses.\r
-               *        \r
-               *       @eventType flash.events.ProgressEvent.PROGRESS\r
-               * \r
-               * @langversion ActionScript 3.0\r
-               * @playerversion Flash 9.0\r
-               */\r
-               [Event(name="progress", type="flash.events.ProgressEvent")]             \r
-       \r
-               /**\r
-               *       Dispatched if a call to the server results in a fatal \r
-               *       error that terminates the download.\r
-               * \r
-               *       @eventType flash.events.IOErrorEvent.IO_ERROR\r
-               * \r
-               * @langversion ActionScript 3.0\r
-               * @playerversion Flash 9.0\r
-               */\r
-               [Event(name="ioError", type="flash.events.IOErrorEvent")]               \r
-               \r
-               /**\r
-               *       A securityError event occurs if a call attempts to\r
-               *       load data from a server outside the security sandbox.\r
-               * \r
-               *       @eventType flash.events.SecurityErrorEvent.SECURITY_ERROR\r
-               * \r
-               * @langversion ActionScript 3.0\r
-               * @playerversion Flash 9.0\r
-               */\r
-               [Event(name="securityError", type="flash.events.SecurityErrorEvent")]   \r
-       \r
-       /**\r
-       *       Base class for services that utilize URLLoader\r
-       *       to communicate with remote APIs / Services.\r
-       * \r
-       * @langversion ActionScript 3.0\r
-       * @playerversion Flash 9.0\r
-       */\r
-       public class URLLoaderBase extends ServiceBase\r
-       {       \r
-               protected function getURLLoader():DynamicURLLoader\r
-               {\r
-                       var loader:DynamicURLLoader = new DynamicURLLoader();\r
-                               loader.addEventListener("progress", onProgress);\r
-                               loader.addEventListener("ioError", onIOError);\r
-                               loader.addEventListener("securityError", onSecurityError);\r
-                       \r
-                       return loader;                  \r
-               }               \r
-               \r
-               private function onIOError(event:IOErrorEvent):void\r
-               {\r
-                       dispatchEvent(event);\r
-               }                       \r
-               \r
-               private function onSecurityError(event:SecurityErrorEvent):void\r
-               {\r
-                       dispatchEvent(event);\r
-               }       \r
-               \r
-               private function onProgress(event:ProgressEvent):void\r
-               {\r
-                       dispatchEvent(event);\r
-               }       \r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/ServiceEvent.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/ServiceEvent.as
deleted file mode 100644 (file)
index d1aaf3d..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-\r
-package com.adobe.webapis.events\r
-{\r
-\r
-       import flash.events.Event;\r
-\r
-       /**\r
-       * Event class that contains data loaded from remote services.\r
-       *\r
-       * @author Mike Chambers\r
-       */\r
-       public class ServiceEvent extends Event\r
-       {\r
-               private var _data:Object = new Object();;\r
-\r
-               /**\r
-               * Constructor for ServiceEvent class.\r
-               *\r
-               * @param type The type of event that the instance represents.\r
-               */\r
-               public function ServiceEvent(type:String, bubbles:Boolean = false, \r
-                                                                                                               cancelable:Boolean=false)\r
-               {\r
-                       super(type, bubbles, cancelable);\r
-               }\r
-\r
-               /**\r
-               *       This object contains data loaded in response\r
-               *       to remote service calls, and properties associated with that call.\r
-               */\r
-               public function get data():Object\r
-               {\r
-                       return _data;\r
-               }\r
-\r
-               public function set data(d:Object):void\r
-               {\r
-                       _data = d;\r
-               }\r
-               \r
-\r
-       }\r
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/_notes/dwsync.xml b/apps/filebrowser/media/filebrowser/uploadify/example/_notes/dwsync.xml
deleted file mode 100644 (file)
index 36ecaa5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>\r
-<dwsync>\r
-<file name="index.php" server="ftp.uploadify.com/www.uploadify.com/" local="128911652226450000" remote="128911651800000000" />\r
-<file name="cancel.png" server="ftp.uploadify.com/www.uploadify.com/" local="128794107540000000" remote="128911638000000000" />\r
-</dwsync>
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/cancel.png b/apps/filebrowser/media/filebrowser/uploadify/example/cancel.png
deleted file mode 100644 (file)
index 1c062ae..0000000
Binary files a/apps/filebrowser/media/filebrowser/uploadify/example/cancel.png and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/dwsync.xml b/apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/dwsync.xml
deleted file mode 100644 (file)
index 049ffa5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>\r
-<dwsync>\r
-<file name="default.css" server="ftp.uploadify.com/www.uploadify.com/" local="128911634053800000" remote="128911633800000000" />\r
-<file name="uploadify.css" server="ftp.uploadify.com/www.uploadify.com/" local="128911650121540000" remote="128911650000000000" />\r
-</dwsync>
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/css/default.css b/apps/filebrowser/media/filebrowser/uploadify/example/css/default.css
deleted file mode 100644 (file)
index 2173d9e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-body {
-       font: 12px/16px Arial, Helvetica, sans-serif;
-}
-#fileQueue {
-       width: 400px;
-       height: 300px;
-       overflow: auto;
-       border: 1px solid #E5E5E5;
-       margin-bottom: 10px;
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/css/uploadify.css b/apps/filebrowser/media/filebrowser/uploadify/example/css/uploadify.css
deleted file mode 100644 (file)
index 754de06..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-Uploadify v2.1.0
-Release Date: August 24, 2009
-
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
-.uploadifyQueueItem {
-       font: 11px Verdana, Geneva, sans-serif;
-       border: 2px solid #E5E5E5;
-       background-color: #F5F5F5;
-       margin-top: 5px;
-       padding: 10px;
-       width: 350px;
-}
-.uploadifyError {
-       border: 2px solid #FBCBBC !important;
-       background-color: #FDE5DD !important;
-}
-.uploadifyQueueItem .cancel {
-       float: right;
-}
-.uploadifyProgress {
-       background-color: #FFFFFF;
-       border-top: 1px solid #808080;
-       border-left: 1px solid #808080;
-       border-right: 1px solid #C5C5C5;
-       border-bottom: 1px solid #C5C5C5;
-       margin-top: 10px;
-       width: 100%;
-}
-.uploadifyProgressBar {
-       background-color: #0099FF;
-       width: 1px;
-       height: 3px;
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/index.php b/apps/filebrowser/media/filebrowser/uploadify/example/index.php
deleted file mode 100644 (file)
index 769d11c..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
-<head>\r
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
-<title>Uploadify Example Script</title>\r
-<link href="/example/css/default.css" rel="stylesheet" type="text/css" />\r
-<link href="/example/css/uploadify.css" rel="stylesheet" type="text/css" />\r
-<script type="text/javascript" src="/example/scripts/jquery-1.3.2.min.js"></script>\r
-<script type="text/javascript" src="/example/scripts/swfobject.js"></script>\r
-<script type="text/javascript" src="/example/scripts/jquery.uploadify.v2.1.0.min.js"></script>\r
-<script type="text/javascript">\r
-$(document).ready(function() {\r
-       $("#uploadify").uploadify({\r
-               'uploader'       : 'scripts/uploadify.swf',\r
-               'script'         : 'scripts/uploadify.php',\r
-               'cancelImg'      : 'cancel.png',\r
-               'folder'         : 'uploads',\r
-               'queueID'        : 'fileQueue',\r
-               'auto'           : true,\r
-               'multi'          : true\r
-       });\r
-});\r
-</script>\r
-</head>\r
-\r
-<body>\r
-<div id="fileQueue"></div>\r
-<input type="file" name="uploadify" id="uploadify" />\r
-<p><a href="javascript:jQuery('#uploadify').uploadifyClearQueue()">Cancel All Uploads</a></p>\r
-</body>\r
-</html>\r
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/dwsync.xml b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/dwsync.xml
deleted file mode 100644 (file)
index 13ca043..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>\r
-<dwsync>\r
-<file name="check.php" server="ftp.uploadify.com/www.uploadify.com/" local="128870002502195719" remote="128911633200000000" />\r
-<file name="expressInstall.swf" server="ftp.uploadify.com/www.uploadify.com/" local="128886114740000000" remote="128911633200000000" />\r
-<file name="jquery-1.3.2.min.js" server="ftp.uploadify.com/www.uploadify.com/" local="128799223180000000" remote="128911633200000000" />\r
-<file name="jquery.uploadify.v2.0.0.min.js" server="ftp.uploadify.com/www.uploadify.com/" local="128911646622270000" remote="128911646400000000" />\r
-<file name="uploadify.php" server="ftp.uploadify.com/www.uploadify.com/" local="128907148701750000" remote="128911633200000000" />\r
-<file name="uploadify.swf" server="ftp.uploadify.com/www.uploadify.com/" local="128911508403330000" remote="128911633200000000" />\r
-<file name="swfobject.js" server="ftp.uploadify.com/www.uploadify.com/" local="128892320400000000" remote="128911637400000000" />\r
-</dwsync>
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/check.php b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/check.php
deleted file mode 100644 (file)
index d7dc571..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php\r
-/*\r
-Uploadify v2.1.0\r
-Release Date: August 24, 2009\r
-\r
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels\r
-\r
-Permission is hereby granted, free of charge, to any person obtaining a copy\r
-of this software and associated documentation files (the "Software"), to deal\r
-in the Software without restriction, including without limitation the rights\r
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-copies of the Software, and to permit persons to whom the Software is\r
-furnished to do so, subject to the following conditions:\r
-\r
-The above copyright notice and this permission notice shall be included in\r
-all copies or substantial portions of the Software.\r
-\r
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-THE SOFTWARE.\r
-*/\r
-$fileArray = array();\r
-foreach ($_POST as $key => $value) {\r
-       if ($key != 'folder') {\r
-               if (file_exists($_SERVER['DOCUMENT_ROOT'] . $_POST['folder'] . '/' . $value)) {\r
-                       $fileArray[$key] = $value;\r
-               }\r
-       }\r
-}\r
-echo json_encode($fileArray);\r
-?>
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/expressInstall.swf b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/expressInstall.swf
deleted file mode 100644 (file)
index 0fbf8fc..0000000
Binary files a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/expressInstall.swf and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/jquery-1.3.2.min.js b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/jquery-1.3.2.min.js
deleted file mode 100644 (file)
index b1ae21d..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * jQuery JavaScript Library v1.3.2
- * http://jquery.com/
- *
- * Copyright (c) 2009 John Resig
- * Dual licensed under the MIT and GPL licenses.
- * http://docs.jquery.com/License
- *
- * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
- * Revision: 6246
- */
-(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
-/*
- * Sizzle CSS Selector Engine - v0.9.3
- *  Copyright 2009, The Dojo Foundation
- *  Released under the MIT, BSD, and GPL Licenses.
- *  More information: http://sizzlejs.com/
- */
-(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/jquery.uploadify.v2.1.0.min.js b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/jquery.uploadify.v2.1.0.min.js
deleted file mode 100644 (file)
index 4305311..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
-Uploadify v2.1.0
-Release Date: August 24, 2009
-
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
-
-if(jQuery){(function(a){a.extend(a.fn,{uploadify:function(b){a(this).each(function(){settings=a.extend({id:a(this).attr("id"),uploader:"uploadify.swf",script:"uploadify.php",expressInstall:null,folder:"",height:30,width:110,cancelImg:"cancel.png",wmode:"opaque",scriptAccess:"sameDomain",fileDataName:"Filedata",method:"POST",queueSizeLimit:999,simUploadLimit:1,queueID:false,displayData:"percentage",onInit:function(){},onSelect:function(){},onQueueFull:function(){},onCheck:function(){},onCancel:function(){},onError:function(){},onProgress:function(){},onComplete:function(){},onAllComplete:function(){}},b);var e=location.pathname;e=e.split("/");e.pop();e=e.join("/")+"/";var f={};f.uploadifyID=settings.id;f.pagepath=e;if(settings.buttonImg){f.buttonImg=escape(settings.buttonImg)}if(settings.buttonText){f.buttonText=escape(settings.buttonText)}if(settings.rollover){f.rollover=true}f.script=settings.script;f.folder=escape(settings.folder);if(settings.scriptData){var g="";for(var d in settings.scriptData){g+="&"+d+"="+settings.scriptData[d]}f.scriptData=escape(g.substr(1))}f.width=settings.width;f.height=settings.height;f.wmode=settings.wmode;f.method=settings.method;f.queueSizeLimit=settings.queueSizeLimit;f.simUploadLimit=settings.simUploadLimit;if(settings.hideButton){f.hideButton=true}if(settings.fileDesc){f.fileDesc=settings.fileDesc}if(settings.fileExt){f.fileExt=settings.fileExt}if(settings.multi){f.multi=true}if(settings.auto){f.auto=true}if(settings.sizeLimit){f.sizeLimit=settings.sizeLimit}if(settings.checkScript){f.checkScript=settings.checkScript}if(settings.fileDataName){f.fileDataName=settings.fileDataName}if(settings.queueID){f.queueID=settings.queueID}if(settings.onInit()!==false){a(this).css("display","none");a(this).after('<div id="'+a(this).attr("id")+'Uploader"></div>');swfobject.embedSWF(settings.uploader,settings.id+"Uploader",settings.width,settings.height,"9.0.24",settings.expressInstall,f,{quality:"high",wmode:settings.wmode,allowScriptAccess:settings.scriptAccess});if(settings.queueID==false){a("#"+a(this).attr("id")+"Uploader").after('<div id="'+a(this).attr("id")+'Queue" class="uploadifyQueue"></div>')}}if(typeof(settings.onOpen)=="function"){a(this).bind("uploadifyOpen",settings.onOpen)}a(this).bind("uploadifySelect",{action:settings.onSelect,queueID:settings.queueID},function(j,h,i){if(j.data.action(j,h,i)!==false){var k=Math.round(i.size/1024*100)*0.01;var l="KB";if(k>1000){k=Math.round(k*0.001*100)*0.01;l="MB"}var m=k.toString().split(".");if(m.length>1){k=m[0]+"."+m[1].substr(0,2)}else{k=m[0]}if(i.name.length>20){fileName=i.name.substr(0,20)+"..."}else{fileName=i.name}queue="#"+a(this).attr("id")+"Queue";if(j.data.queueID){queue="#"+j.data.queueID}a(queue).append('<div id="'+a(this).attr("id")+h+'" class="uploadifyQueueItem"><div class="cancel"><a href="javascript:jQuery(\'#'+a(this).attr("id")+"').uploadifyCancel('"+h+'\')"><img src="'+settings.cancelImg+'" border="0" /></a></div><span class="fileName">'+fileName+" ("+k+l+')</span><span class="percentage"></span><div class="uploadifyProgress"><div id="'+a(this).attr("id")+h+'ProgressBar" class="uploadifyProgressBar"><!--Progress Bar--></div></div></div>')}});if(typeof(settings.onSelectOnce)=="function"){a(this).bind("uploadifySelectOnce",settings.onSelectOnce)}a(this).bind("uploadifyQueueFull",{action:settings.onQueueFull},function(h,i){if(h.data.action(h,i)!==false){alert("The queue is full.  The max size is "+i+".")}});a(this).bind("uploadifyCheckExist",{action:settings.onCheck},function(m,l,k,j,o){var i=new Object();i=k;i.folder=e+j;if(o){for(var h in k){var n=h}}a.post(l,i,function(r){for(var p in r){if(m.data.action(m,l,k,j,o)!==false){var q=confirm("Do you want to replace the file "+r[p]+"?");if(!q){document.getElementById(a(m.target).attr("id")+"Uploader").cancelFileUpload(p,true,true)}}}if(o){document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(n,true)}else{document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(null,true)}},"json")});a(this).bind("uploadifyCancel",{action:settings.onCancel},function(l,h,k,m,j){if(l.data.action(l,h,k,m,j)!==false){var i=(j==true)?0:250;a("#"+a(this).attr("id")+h).fadeOut(i,function(){a(this).remove()})}});if(typeof(settings.onClearQueue)=="function"){a(this).bind("uploadifyClearQueue",settings.onClearQueue)}var c=[];a(this).bind("uploadifyError",{action:settings.onError},function(l,h,k,j){if(l.data.action(l,h,k,j)!==false){var i=new Array(h,k,j);c.push(i);a("#"+a(this).attr("id")+h+" .percentage").text(" - "+j.type+" Error");a("#"+a(this).attr("id")+h).addClass("uploadifyError")}});a(this).bind("uploadifyProgress",{action:settings.onProgress,toDisplay:settings.displayData},function(j,h,i,k){if(j.data.action(j,h,i,k)!==false){a("#"+a(this).attr("id")+h+"ProgressBar").css("width",k.percentage+"%");if(j.data.toDisplay=="percentage"){displayData=" - "+k.percentage+"%"}if(j.data.toDisplay=="speed"){displayData=" - "+k.speed+"KB/s"}if(j.data.toDisplay==null){displayData=" "}a("#"+a(this).attr("id")+h+" .percentage").text(displayData)}});a(this).bind("uploadifyComplete",{action:settings.onComplete},function(k,h,j,i,l){if(k.data.action(k,h,j,unescape(i),l)!==false){a("#"+a(this).attr("id")+h+" .percentage").text(" - Completed");a("#"+a(this).attr("id")+h).fadeOut(250,function(){a(this).remove()})}});if(typeof(settings.onAllComplete)=="function"){a(this).bind("uploadifyAllComplete",{action:settings.onAllComplete},function(h,i){if(h.data.action(h,i)!==false){c=[]}})}})},uploadifySettings:function(f,j,c){var g=false;a(this).each(function(){if(f=="scriptData"&&j!=null){if(c){var i=j}else{var i=a.extend(settings.scriptData,j)}var l="";for(var k in i){l+="&"+k+"="+escape(i[k])}j=l.substr(1)}g=document.getElementById(a(this).attr("id")+"Uploader").updateSettings(f,j)});if(j==null){if(f=="scriptData"){var b=unescape(g).split("&");var e=new Object();for(var d=0;d<b.length;d++){var h=b[d].split("=");e[h[0]]=h[1]}g=e}return g}},uploadifyUpload:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").startFileUpload(b,false)})},uploadifyCancel:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").cancelFileUpload(b,true,false)})},uploadifyClearQueue:function(){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").clearFileUploadQueue(false)})}})})(jQuery)};
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/swfobject.js b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/swfobject.js
deleted file mode 100644 (file)
index acc7da4..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-/*     SWFObject v2.2 <http://code.google.com/p/swfobject/>
-       is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
-*/
-var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/uploadify.php b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/uploadify.php
deleted file mode 100644 (file)
index 8bf14a6..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php\r
-/*\r
-Uploadify v2.1.0\r
-Release Date: August 24, 2009\r
-\r
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels\r
-\r
-Permission is hereby granted, free of charge, to any person obtaining a copy\r
-of this software and associated documentation files (the "Software"), to deal\r
-in the Software without restriction, including without limitation the rights\r
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-copies of the Software, and to permit persons to whom the Software is\r
-furnished to do so, subject to the following conditions:\r
-\r
-The above copyright notice and this permission notice shall be included in\r
-all copies or substantial portions of the Software.\r
-\r
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-THE SOFTWARE.\r
-*/\r
-if (!empty($_FILES)) {\r
-       $tempFile = $_FILES['Filedata']['tmp_name'];\r
-       $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/';\r
-       $targetFile =  str_replace('//','/',$targetPath) . $_FILES['Filedata']['name'];\r
-       \r
-       // $fileTypes  = str_replace('*.','',$_REQUEST['fileext']);\r
-       // $fileTypes  = str_replace(';','|',$fileTypes);\r
-       // $typesArray = split('\|',$fileTypes);\r
-       // $fileParts  = pathinfo($_FILES['Filedata']['name']);\r
-       \r
-       // if (in_array($fileParts['extension'],$typesArray)) {\r
-               // Uncomment the following line if you want to make the directory if it doesn't exist\r
-               // mkdir(str_replace('//','/',$targetPath), 0755, true);\r
-               \r
-               move_uploaded_file($tempFile,$targetFile);\r
-               echo "1";\r
-       // } else {\r
-       //      echo 'Invalid file type.';\r
-       // }\r
-}\r
-?>
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/uploadify.swf b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/uploadify.swf
deleted file mode 100644 (file)
index 4d27952..0000000
Binary files a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/uploadify.swf and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/expressInstall.swf b/apps/filebrowser/media/filebrowser/uploadify/expressInstall.swf
deleted file mode 100644 (file)
index 0fbf8fc..0000000
Binary files a/apps/filebrowser/media/filebrowser/uploadify/expressInstall.swf and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/jquery-1.3.2.min.js b/apps/filebrowser/media/filebrowser/uploadify/jquery-1.3.2.min.js
deleted file mode 100644 (file)
index b1ae21d..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * jQuery JavaScript Library v1.3.2
- * http://jquery.com/
- *
- * Copyright (c) 2009 John Resig
- * Dual licensed under the MIT and GPL licenses.
- * http://docs.jquery.com/License
- *
- * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
- * Revision: 6246
- */
-(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
-/*
- * Sizzle CSS Selector Engine - v0.9.3
- *  Copyright 2009, The Dojo Foundation
- *  Released under the MIT, BSD, and GPL Licenses.
- *  More information: http://sizzlejs.com/
- */
-(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/jquery.uploadify.v2.1.0.js b/apps/filebrowser/media/filebrowser/uploadify/jquery.uploadify.v2.1.0.js
deleted file mode 100644 (file)
index 43c87be..0000000
+++ /dev/null
@@ -1,258 +0,0 @@
-/*
-Uploadify v2.1.0
-Release Date: August 24, 2009
-
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
-
-if(jQuery)(
-       function(jQuery){
-               jQuery.extend(jQuery.fn,{
-                       uploadify:function(options) {
-                               jQuery(this).each(function(){
-                                       settings = jQuery.extend({
-                                       id             : jQuery(this).attr('id'), // The ID of the object being Uploadified
-                                       uploader       : 'uploadify.swf', // The path to the uploadify swf file
-                                       script         : 'uploadify.php', // The path to the uploadify backend upload script
-                                       expressInstall : null, // The path to the express install swf file
-                                       folder         : '', // The path to the upload folder
-                                       height         : 30, // The height of the flash button
-                                       width          : 110, // The width of the flash button
-                                       cancelImg      : 'cancel.png', // The path to the cancel image for the default file queue item container
-                                       wmode          : 'opaque', // The wmode of the flash file
-                                       scriptAccess   : 'sameDomain', // Set to "always" to allow script access across domains
-                                       fileDataName   : 'Filedata', // The name of the file collection object in the backend upload script
-                                       method         : 'POST', // The method for sending variables to the backend upload script
-                                       queueSizeLimit : 999, // The maximum size of the file queue
-                                       simUploadLimit : 1, // The number of simultaneous uploads allowed
-                                       queueID        : false, // The optional ID of the queue container
-                                       displayData    : 'percentage', // Set to "speed" to show the upload speed in the default queue item
-                                       onInit         : function() {}, // Function to run when uploadify is initialized
-                                       onSelect       : function() {}, // Function to run when a file is selected
-                                       onQueueFull    : function() {}, // Function to run when the queue reaches capacity
-                                       onCheck        : function() {}, // Function to run when script checks for duplicate files on the server
-                                       onCancel       : function() {}, // Function to run when an item is cleared from the queue
-                                       onError        : function() {}, // Function to run when an upload item returns an error
-                                       onProgress     : function() {}, // Function to run each time the upload progress is updated
-                                       onComplete     : function() {}, // Function to run when an upload is completed
-                                       onAllComplete  : function() {}  // Functino to run when all uploads are completed
-                               }, options);
-                               var pagePath = location.pathname;
-                               pagePath = pagePath.split('/');
-                               pagePath.pop();
-                               pagePath = pagePath.join('/') + '/';
-                               var data = {};
-                               data.uploadifyID = settings.id;
-                               data.pagepath = pagePath;
-                               if (settings.buttonImg) data.buttonImg = escape(settings.buttonImg);
-                               if (settings.buttonText) data.buttonText = escape(settings.buttonText);
-                               if (settings.rollover) data.rollover = true;
-                               data.script = settings.script;
-                               data.folder = escape(settings.folder);
-                               if (settings.scriptData) {
-                                       var scriptDataString = '';
-                                       for (var name in settings.scriptData) {
-                                               scriptDataString += '&' + name + '=' + settings.scriptData[name];
-                                       }
-                                       data.scriptData = escape(scriptDataString.substr(1));
-                               }
-                               data.width          = settings.width;
-                               data.height         = settings.height;
-                               data.wmode          = settings.wmode;
-                               data.method         = settings.method;
-                               data.queueSizeLimit = settings.queueSizeLimit;
-                               data.simUploadLimit = settings.simUploadLimit;
-                               if (settings.hideButton)   data.hideButton   = true;
-                               if (settings.fileDesc)     data.fileDesc     = settings.fileDesc;
-                               if (settings.fileExt)      data.fileExt      = settings.fileExt;
-                               if (settings.multi)        data.multi        = true;
-                               if (settings.auto)         data.auto         = true;
-                               if (settings.sizeLimit)    data.sizeLimit    = settings.sizeLimit;
-                               if (settings.checkScript)  data.checkScript  = settings.checkScript;
-                               if (settings.fileDataName) data.fileDataName = settings.fileDataName;
-                               if (settings.queueID)      data.queueID      = settings.queueID;
-                               if (settings.onInit() !== false) {
-                                       jQuery(this).css('display','none');
-                                       jQuery(this).after('<div id="' + jQuery(this).attr('id') + 'Uploader"></div>');
-                                       swfobject.embedSWF(settings.uploader, settings.id + 'Uploader', settings.width, settings.height, '9.0.24', settings.expressInstall, data, {'quality':'high','wmode':settings.wmode,'allowScriptAccess':settings.scriptAccess});
-                                       if (settings.queueID == false) {
-                                               jQuery("#" + jQuery(this).attr('id') + "Uploader").after('<div id="' + jQuery(this).attr('id') + 'Queue" class="uploadifyQueue"></div>');
-                                       }
-                               }
-                               if (typeof(settings.onOpen) == 'function') {
-                                       jQuery(this).bind("uploadifyOpen", settings.onOpen);
-                               }
-                               jQuery(this).bind("uploadifySelect", {'action': settings.onSelect, 'queueID': settings.queueID}, function(event, ID, fileObj) {
-                                       if (event.data.action(event, ID, fileObj) !== false) {
-                                               var byteSize = Math.round(fileObj.size / 1024 * 100) * .01;
-                                               var suffix = 'KB';
-                                               if (byteSize > 1000) {
-                                                       byteSize = Math.round(byteSize *.001 * 100) * .01;
-                                                       suffix = 'MB';
-                                               }
-                                               var sizeParts = byteSize.toString().split('.');
-                                               if (sizeParts.length > 1) {
-                                                       byteSize = sizeParts[0] + '.' + sizeParts[1].substr(0,2);
-                                               } else {
-                                                       byteSize = sizeParts[0];
-                                               }
-                                               if (fileObj.name.length > 20) {
-                                                       fileName = fileObj.name.substr(0,20) + '...';
-                                               } else {
-                                                       fileName = fileObj.name;
-                                               }
-                                               queue = '#' + jQuery(this).attr('id') + 'Queue';
-                                               if (event.data.queueID) {
-                                                       queue = '#' + event.data.queueID;
-                                               }
-                                               jQuery(queue).append('<div id="' + jQuery(this).attr('id') + ID + '" class="uploadifyQueueItem">\
-                                                               <div class="cancel">\
-                                                                       <a href="javascript:jQuery(\'#' + jQuery(this).attr('id') + '\').uploadifyCancel(\'' + ID + '\')"><img src="' + settings.cancelImg + '" border="0" /></a>\
-                                                               </div>\
-                                                               <span class="fileName">' + fileName + ' (' + byteSize + suffix + ')</span><span class="percentage"></span>\
-                                                               <div class="uploadifyProgress">\
-                                                                       <div id="' + jQuery(this).attr('id') + ID + 'ProgressBar" class="uploadifyProgressBar"><!--Progress Bar--></div>\
-                                                               </div>\
-                                                       </div>');
-                                       }
-                               });
-                               if (typeof(settings.onSelectOnce) == 'function') {
-                                       jQuery(this).bind("uploadifySelectOnce", settings.onSelectOnce);
-                               }
-                               jQuery(this).bind("uploadifyQueueFull", {'action': settings.onQueueFull}, function(event, queueSizeLimit) {
-                                       if (event.data.action(event, queueSizeLimit) !== false) {
-                                               alert('The queue is full.  The max size is ' + queueSizeLimit + '.');
-                                       }
-                               });
-                               jQuery(this).bind("uploadifyCheckExist", {'action': settings.onCheck}, function(event, checkScript, fileQueueObj, folder, single) {
-                                       var postData = new Object();
-                                       postData = fileQueueObj;
-                                       postData.folder = pagePath + folder;
-                                       if (single) {
-                                               for (var ID in fileQueueObj) {
-                                                       var singleFileID = ID;
-                                               }
-                                       }
-                                       jQuery.post(checkScript, postData, function(data) {
-                                               for(var key in data) {
-                                                       if (event.data.action(event, checkScript, fileQueueObj, folder, single) !== false) {
-                                                               var replaceFile = confirm("Do you want to replace the file " + data[key] + "?");
-                                                               if (!replaceFile) {
-                                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').cancelFileUpload(key, true,true);
-                                                               }
-                                                       }
-                                               }
-                                               if (single) {
-                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').startFileUpload(singleFileID, true);
-                                               } else {
-                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').startFileUpload(null, true);
-                                               }
-                                       }, "json");
-                               });
-                               jQuery(this).bind("uploadifyCancel", {'action': settings.onCancel}, function(event, ID, fileObj, data, clearFast) {
-                                       if (event.data.action(event, ID, fileObj, data, clearFast) !== false) {
-                                               var fadeSpeed = (clearFast == true) ? 0 : 250;
-                                               jQuery("#" + jQuery(this).attr('id') + ID).fadeOut(fadeSpeed, function() { jQuery(this).remove() });
-                                       }
-                               });
-                               if (typeof(settings.onClearQueue) == 'function') {
-                                       jQuery(this).bind("uploadifyClearQueue", settings.onClearQueue);
-                               }
-                               var errorArray = [];
-                               jQuery(this).bind("uploadifyError", {'action': settings.onError}, function(event, ID, fileObj, errorObj) {
-                                       if (event.data.action(event, ID, fileObj, errorObj) !== false) {
-                                               var fileArray = new Array(ID, fileObj, errorObj);
-                                               errorArray.push(fileArray);
-                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(" - " + errorObj.type + " Error");
-                                               jQuery("#" + jQuery(this).attr('id') + ID).addClass('uploadifyError');
-                                       }
-                               });
-                               jQuery(this).bind("uploadifyProgress", {'action': settings.onProgress, 'toDisplay': settings.displayData}, function(event, ID, fileObj, data) {
-                                       if (event.data.action(event, ID, fileObj, data) !== false) {
-                                               jQuery("#" + jQuery(this).attr('id') + ID + "ProgressBar").css('width', data.percentage + '%');
-                                               if (event.data.toDisplay == 'percentage') displayData = ' - ' + data.percentage + '%';
-                                               if (event.data.toDisplay == 'speed') displayData = ' - ' + data.speed + 'KB/s';
-                                               if (event.data.toDisplay == null) displayData = ' ';
-                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(displayData);
-                                       }
-                               });
-                               jQuery(this).bind("uploadifyComplete", {'action': settings.onComplete}, function(event, ID, fileObj, response, data) {
-                                       if (event.data.action(event, ID, fileObj, unescape(response), data) !== false) {
-                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(' - Completed');
-                                               jQuery("#" + jQuery(this).attr('id') + ID).fadeOut(250, function() { jQuery(this).remove()});
-                                       }
-                               });
-                               if (typeof(settings.onAllComplete) == 'function') {
-                                       jQuery(this).bind("uploadifyAllComplete", {'action': settings.onAllComplete}, function(event, uploadObj) {
-                                               if (event.data.action(event, uploadObj) !== false) {
-                                                       errorArray = [];
-                                               }
-                                       });
-                               }
-                       });
-               },
-               uploadifySettings:function(settingName, settingValue, resetObject) {
-                       var returnValue = false;
-                       jQuery(this).each(function() {
-                               if (settingName == 'scriptData' && settingValue != null) {
-                                       if (resetObject) {
-                                               var scriptData = settingValue;
-                                       } else {
-                                               var scriptData = jQuery.extend(settings.scriptData, settingValue);
-                                       }
-                                       var scriptDataString = '';
-                                       for (var name in scriptData) {
-                                               scriptDataString += '&' + name + '=' + escape(scriptData[name]);
-                                       }
-                                       settingValue = scriptDataString.substr(1);
-                               }
-                               returnValue = document.getElementById(jQuery(this).attr('id') + 'Uploader').updateSettings(settingName, settingValue);
-                       });
-                       if (settingValue == null) {
-                               if (settingName == 'scriptData') {
-                                       var returnSplit = unescape(returnValue).split('&');
-                                       var returnObj   = new Object();
-                                       for (var i = 0; i < returnSplit.length; i++) {
-                                               var iSplit = returnSplit[i].split('=');
-                                               returnObj[iSplit[0]] = iSplit[1];
-                                       }
-                                       returnValue = returnObj;
-                               }
-                               return returnValue;
-                       }
-               },
-               uploadifyUpload:function(ID) {
-                       jQuery(this).each(function() {
-                               document.getElementById(jQuery(this).attr('id') + 'Uploader').startFileUpload(ID, false);
-                       });
-               },
-               uploadifyCancel:function(ID) {
-                       jQuery(this).each(function() {
-                               document.getElementById(jQuery(this).attr('id') + 'Uploader').cancelFileUpload(ID, true, false);
-                       });
-               },
-               uploadifyClearQueue:function() {
-                       jQuery(this).each(function() {
-                               document.getElementById(jQuery(this).attr('id') + 'Uploader').clearFileUploadQueue(false);
-                       });
-               }
-       })
-})(jQuery);
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/jquery.uploadify.v2.1.0.min.js b/apps/filebrowser/media/filebrowser/uploadify/jquery.uploadify.v2.1.0.min.js
deleted file mode 100644 (file)
index 4305311..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
-Uploadify v2.1.0
-Release Date: August 24, 2009
-
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
-
-if(jQuery){(function(a){a.extend(a.fn,{uploadify:function(b){a(this).each(function(){settings=a.extend({id:a(this).attr("id"),uploader:"uploadify.swf",script:"uploadify.php",expressInstall:null,folder:"",height:30,width:110,cancelImg:"cancel.png",wmode:"opaque",scriptAccess:"sameDomain",fileDataName:"Filedata",method:"POST",queueSizeLimit:999,simUploadLimit:1,queueID:false,displayData:"percentage",onInit:function(){},onSelect:function(){},onQueueFull:function(){},onCheck:function(){},onCancel:function(){},onError:function(){},onProgress:function(){},onComplete:function(){},onAllComplete:function(){}},b);var e=location.pathname;e=e.split("/");e.pop();e=e.join("/")+"/";var f={};f.uploadifyID=settings.id;f.pagepath=e;if(settings.buttonImg){f.buttonImg=escape(settings.buttonImg)}if(settings.buttonText){f.buttonText=escape(settings.buttonText)}if(settings.rollover){f.rollover=true}f.script=settings.script;f.folder=escape(settings.folder);if(settings.scriptData){var g="";for(var d in settings.scriptData){g+="&"+d+"="+settings.scriptData[d]}f.scriptData=escape(g.substr(1))}f.width=settings.width;f.height=settings.height;f.wmode=settings.wmode;f.method=settings.method;f.queueSizeLimit=settings.queueSizeLimit;f.simUploadLimit=settings.simUploadLimit;if(settings.hideButton){f.hideButton=true}if(settings.fileDesc){f.fileDesc=settings.fileDesc}if(settings.fileExt){f.fileExt=settings.fileExt}if(settings.multi){f.multi=true}if(settings.auto){f.auto=true}if(settings.sizeLimit){f.sizeLimit=settings.sizeLimit}if(settings.checkScript){f.checkScript=settings.checkScript}if(settings.fileDataName){f.fileDataName=settings.fileDataName}if(settings.queueID){f.queueID=settings.queueID}if(settings.onInit()!==false){a(this).css("display","none");a(this).after('<div id="'+a(this).attr("id")+'Uploader"></div>');swfobject.embedSWF(settings.uploader,settings.id+"Uploader",settings.width,settings.height,"9.0.24",settings.expressInstall,f,{quality:"high",wmode:settings.wmode,allowScriptAccess:settings.scriptAccess});if(settings.queueID==false){a("#"+a(this).attr("id")+"Uploader").after('<div id="'+a(this).attr("id")+'Queue" class="uploadifyQueue"></div>')}}if(typeof(settings.onOpen)=="function"){a(this).bind("uploadifyOpen",settings.onOpen)}a(this).bind("uploadifySelect",{action:settings.onSelect,queueID:settings.queueID},function(j,h,i){if(j.data.action(j,h,i)!==false){var k=Math.round(i.size/1024*100)*0.01;var l="KB";if(k>1000){k=Math.round(k*0.001*100)*0.01;l="MB"}var m=k.toString().split(".");if(m.length>1){k=m[0]+"."+m[1].substr(0,2)}else{k=m[0]}if(i.name.length>20){fileName=i.name.substr(0,20)+"..."}else{fileName=i.name}queue="#"+a(this).attr("id")+"Queue";if(j.data.queueID){queue="#"+j.data.queueID}a(queue).append('<div id="'+a(this).attr("id")+h+'" class="uploadifyQueueItem"><div class="cancel"><a href="javascript:jQuery(\'#'+a(this).attr("id")+"').uploadifyCancel('"+h+'\')"><img src="'+settings.cancelImg+'" border="0" /></a></div><span class="fileName">'+fileName+" ("+k+l+')</span><span class="percentage"></span><div class="uploadifyProgress"><div id="'+a(this).attr("id")+h+'ProgressBar" class="uploadifyProgressBar"><!--Progress Bar--></div></div></div>')}});if(typeof(settings.onSelectOnce)=="function"){a(this).bind("uploadifySelectOnce",settings.onSelectOnce)}a(this).bind("uploadifyQueueFull",{action:settings.onQueueFull},function(h,i){if(h.data.action(h,i)!==false){alert("The queue is full.  The max size is "+i+".")}});a(this).bind("uploadifyCheckExist",{action:settings.onCheck},function(m,l,k,j,o){var i=new Object();i=k;i.folder=e+j;if(o){for(var h in k){var n=h}}a.post(l,i,function(r){for(var p in r){if(m.data.action(m,l,k,j,o)!==false){var q=confirm("Do you want to replace the file "+r[p]+"?");if(!q){document.getElementById(a(m.target).attr("id")+"Uploader").cancelFileUpload(p,true,true)}}}if(o){document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(n,true)}else{document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(null,true)}},"json")});a(this).bind("uploadifyCancel",{action:settings.onCancel},function(l,h,k,m,j){if(l.data.action(l,h,k,m,j)!==false){var i=(j==true)?0:250;a("#"+a(this).attr("id")+h).fadeOut(i,function(){a(this).remove()})}});if(typeof(settings.onClearQueue)=="function"){a(this).bind("uploadifyClearQueue",settings.onClearQueue)}var c=[];a(this).bind("uploadifyError",{action:settings.onError},function(l,h,k,j){if(l.data.action(l,h,k,j)!==false){var i=new Array(h,k,j);c.push(i);a("#"+a(this).attr("id")+h+" .percentage").text(" - "+j.type+" Error");a("#"+a(this).attr("id")+h).addClass("uploadifyError")}});a(this).bind("uploadifyProgress",{action:settings.onProgress,toDisplay:settings.displayData},function(j,h,i,k){if(j.data.action(j,h,i,k)!==false){a("#"+a(this).attr("id")+h+"ProgressBar").css("width",k.percentage+"%");if(j.data.toDisplay=="percentage"){displayData=" - "+k.percentage+"%"}if(j.data.toDisplay=="speed"){displayData=" - "+k.speed+"KB/s"}if(j.data.toDisplay==null){displayData=" "}a("#"+a(this).attr("id")+h+" .percentage").text(displayData)}});a(this).bind("uploadifyComplete",{action:settings.onComplete},function(k,h,j,i,l){if(k.data.action(k,h,j,unescape(i),l)!==false){a("#"+a(this).attr("id")+h+" .percentage").text(" - Completed");a("#"+a(this).attr("id")+h).fadeOut(250,function(){a(this).remove()})}});if(typeof(settings.onAllComplete)=="function"){a(this).bind("uploadifyAllComplete",{action:settings.onAllComplete},function(h,i){if(h.data.action(h,i)!==false){c=[]}})}})},uploadifySettings:function(f,j,c){var g=false;a(this).each(function(){if(f=="scriptData"&&j!=null){if(c){var i=j}else{var i=a.extend(settings.scriptData,j)}var l="";for(var k in i){l+="&"+k+"="+escape(i[k])}j=l.substr(1)}g=document.getElementById(a(this).attr("id")+"Uploader").updateSettings(f,j)});if(j==null){if(f=="scriptData"){var b=unescape(g).split("&");var e=new Object();for(var d=0;d<b.length;d++){var h=b[d].split("=");e[h[0]]=h[1]}g=e}return g}},uploadifyUpload:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").startFileUpload(b,false)})},uploadifyCancel:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").cancelFileUpload(b,true,false)})},uploadifyClearQueue:function(){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").clearFileUploadQueue(false)})}})})(jQuery)};
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/swfobject.js b/apps/filebrowser/media/filebrowser/uploadify/swfobject.js
deleted file mode 100644 (file)
index acc7da4..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-/*     SWFObject v2.2 <http://code.google.com/p/swfobject/>
-       is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
-*/
-var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/uploadify.allglyphs.swf b/apps/filebrowser/media/filebrowser/uploadify/uploadify.allglyphs.swf
deleted file mode 100644 (file)
index 4bad011..0000000
Binary files a/apps/filebrowser/media/filebrowser/uploadify/uploadify.allglyphs.swf and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/uploadify.css b/apps/filebrowser/media/filebrowser/uploadify/uploadify.css
deleted file mode 100644 (file)
index 754de06..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-Uploadify v2.1.0
-Release Date: August 24, 2009
-
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
-.uploadifyQueueItem {
-       font: 11px Verdana, Geneva, sans-serif;
-       border: 2px solid #E5E5E5;
-       background-color: #F5F5F5;
-       margin-top: 5px;
-       padding: 10px;
-       width: 350px;
-}
-.uploadifyError {
-       border: 2px solid #FBCBBC !important;
-       background-color: #FDE5DD !important;
-}
-.uploadifyQueueItem .cancel {
-       float: right;
-}
-.uploadifyProgress {
-       background-color: #FFFFFF;
-       border-top: 1px solid #808080;
-       border-left: 1px solid #808080;
-       border-right: 1px solid #C5C5C5;
-       border-bottom: 1px solid #C5C5C5;
-       margin-top: 10px;
-       width: 100%;
-}
-.uploadifyProgressBar {
-       background-color: #0099FF;
-       width: 1px;
-       height: 3px;
-}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/uploadify.fla b/apps/filebrowser/media/filebrowser/uploadify/uploadify.fla
deleted file mode 100644 (file)
index c07bbaf..0000000
Binary files a/apps/filebrowser/media/filebrowser/uploadify/uploadify.fla and /dev/null differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/uploadify.php b/apps/filebrowser/media/filebrowser/uploadify/uploadify.php
deleted file mode 100644 (file)
index 8bf14a6..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php\r
-/*\r
-Uploadify v2.1.0\r
-Release Date: August 24, 2009\r
-\r
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels\r
-\r
-Permission is hereby granted, free of charge, to any person obtaining a copy\r
-of this software and associated documentation files (the "Software"), to deal\r
-in the Software without restriction, including without limitation the rights\r
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-copies of the Software, and to permit persons to whom the Software is\r
-furnished to do so, subject to the following conditions:\r
-\r
-The above copyright notice and this permission notice shall be included in\r
-all copies or substantial portions of the Software.\r
-\r
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-THE SOFTWARE.\r
-*/\r
-if (!empty($_FILES)) {\r
-       $tempFile = $_FILES['Filedata']['tmp_name'];\r
-       $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/';\r
-       $targetFile =  str_replace('//','/',$targetPath) . $_FILES['Filedata']['name'];\r
-       \r
-       // $fileTypes  = str_replace('*.','',$_REQUEST['fileext']);\r
-       // $fileTypes  = str_replace(';','|',$fileTypes);\r
-       // $typesArray = split('\|',$fileTypes);\r
-       // $fileParts  = pathinfo($_FILES['Filedata']['name']);\r
-       \r
-       // if (in_array($fileParts['extension'],$typesArray)) {\r
-               // Uncomment the following line if you want to make the directory if it doesn't exist\r
-               // mkdir(str_replace('//','/',$targetPath), 0755, true);\r
-               \r
-               move_uploaded_file($tempFile,$targetFile);\r
-               echo "1";\r
-       // } else {\r
-       //      echo 'Invalid file type.';\r
-       // }\r
-}\r
-?>
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/uploadify.swf b/apps/filebrowser/media/filebrowser/uploadify/uploadify.swf
deleted file mode 100644 (file)
index 0385d9e..0000000
Binary files a/apps/filebrowser/media/filebrowser/uploadify/uploadify.swf and /dev/null differ
diff --git a/apps/filebrowser/models.py b/apps/filebrowser/models.py
deleted file mode 100644 (file)
index 655d082..0000000
+++ /dev/null
@@ -1 +0,0 @@
-# This file is only necessary for the tests to work
diff --git a/apps/filebrowser/templates/filebrowser/append.html b/apps/filebrowser/templates/filebrowser/append.html
deleted file mode 100644 (file)
index 6d1123f..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-{% load i18n %}
-
-<div class="module">
-    <table>
-        <caption>{% trans "File-Browser" %}</caption>
-        <tr class="row2">
-            <th scope="row"><a href="{% url fb_browse %}">{% trans "File-Browser" %}</a></th>
-            <td> </td>
-            <td> </td>
-        </tr>
-    </table>
-</div>
\ No newline at end of file
diff --git a/apps/filebrowser/templates/filebrowser/custom_field.html b/apps/filebrowser/templates/filebrowser/custom_field.html
deleted file mode 100644 (file)
index ba85198..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-{% load fb_versions %}
-<input id="{{ final_attrs.id }}" type="text" class="vFileBrowseField" name="{{ final_attrs.name }}" value="{{ value }}" />
-<a href="javascript:FileBrowser.show('{{ final_attrs.id }}', '{% url fb_browse %}?pop=1{% if final_attrs.directory %}&amp;dir={{ final_attrs.directory }}{% endif %}{% if final_attrs.format %}&amp;type={{ final_attrs.format }}{% endif %}');" class="fb_show">
-    <img src="{{ final_attrs.search_icon }}" alt="" />
-</a>
-{% ifequal value.filetype "Image" %}
-<p class="help" id="help_{{ final_attrs.id }}">
-    <a href="{{ value.url_full }}" target="_blank" id="link_{{ final_attrs.id }}">
-        <img id="image_{{ final_attrs.id }}" src="{% version value.path final_attrs.ADMIN_THUMBNAIL %}" class="preview" />
-    </a>
-</p>
-{% else %}
-<p class="help" id="help_{{ final_attrs.id }}" style="display: none;">
-    <a href="javascript://" target="_self" id="link_{{ final_attrs.id }}">
-        <img id="image_{{ final_attrs.id }}" class="preview" src="" />
-    </a>
-</p>
-{% endifequal %}
-{% if final_attrs.DEBUG %}
-<p>
-    <strong>Path</strong> {{ value.path }}<br />
-    <strong>FileType</strong> {{ value.filetype }}<br /><br />
-    <strong>Directory</strong> {{ final_attrs.directory }}<br />
-    <strong>Extensions</strong> {{ final_attrs.extensions }}<br />
-    <strong>Format</strong> {{ final_attrs.format }}
-</p>
-{% endif %}
\ No newline at end of file
diff --git a/apps/filebrowser/templates/filebrowser/include/_response.html b/apps/filebrowser/templates/filebrowser/include/_response.html
deleted file mode 100644 (file)
index e7dff2c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{{ response }}
\ No newline at end of file
diff --git a/apps/filebrowser/templates/filebrowser/include/breadcrumbs.html b/apps/filebrowser/templates/filebrowser/include/breadcrumbs.html
deleted file mode 100644 (file)
index 5b9d181..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-{% load i18n fb_tags %}
-<div class="breadcrumbs">
-    {% if not query.pop %}
-    <a href="../../">{% trans "Home" %}</a> &rsaquo;
-    {% endif %}
-    {% if breadcrumbs %}
-    <a href="{% url fb_browse %}{% query_string "" "dir,filename" %}">{% trans 'FileBrowser' %}</a> &rsaquo;
-    {% else %}
-    {% trans 'FileBrowser' %}
-    {% endif %}
-    {% for item in breadcrumbs %}
-    {% if not forloop.last %}
-        <a href="{% url fb_browse %}{% query_string "" "dir,filename" %}&amp;dir={{ item.1 }}">{{ item.0 }}</a> &rsaquo;
-    {% else %}
-        {{ item.0 }}
-    {% endif %}
-    {% endfor %}
-</div>
\ No newline at end of file
diff --git a/apps/filebrowser/templates/filebrowser/include/filelisting.html b/apps/filebrowser/templates/filebrowser/include/filelisting.html
deleted file mode 100644 (file)
index 2ac0a28..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-{% load i18n adminmedia fb_tags fb_versions %}
-<tr class="{% cycle 'row1' 'row2' %}">
-    <!-- FILESELECT FOR FILEBROWSEFIELD -->
-    {% ifequal query.pop '1' %}
-    {% if results_var.select_total %}
-    <td class="fb_icon">
-        {% selectable file.filetype query.type %}
-        {% if selectable %}
-        <a href="javascript://" onclick="FileSubmit('{{ file.url_save }}', '{{ file.url_thumbnail }}', '{{ file.filetype }}');" class="fb_selectlink" title="{% trans 'Select' %}"></a>
-        {% else %}
-        <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
-        {% endif %}
-    </td>
-    {% endif %}
-    {% endifequal %}
-
-    <!-- FILESELECT FOR RTE/TINYMCE -->
-    {% ifequal query.pop '2' %}
-    {% if results_var.select_total %}
-    <td class="fb_icon">
-        {% selectable file.filetype query.type %}
-        {% if selectable %}
-        <a href="javascript:FileBrowserDialogue.fileSubmit('{{ file.url_save }}');" class="fb_selectlink" title="{% trans 'Select File' %}"></a>
-        {% else %}
-        <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
-        {% endif %}
-    </td>
-    {% endif %}
-    {% endifequal %}
-
-    <!-- FILESELECT FOR CKEDITOR (FORMER "FCKEDITOR") -->
-    {% ifequal query.pop '3' %}
-    {% if results_var.select_total %}
-    <td class="fb_icon">
-        {% selectable file.filetype query.type %}
-        {% if selectable %}
-        <a href="#" onclick="OpenFile(ProtectPath('{{ file.url_save }}'));return false;" class="fb_selectlink" title="{% trans 'Select File' %}"></a>
-        {% else %}
-        <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
-        {% endif %}
-    </td>
-    {% endif %}
-    {% endifequal %}
-
-    <!-- SHOW VERSIONS -->
-    {% if settings_var.ADMIN_VERSIONS and results_var.images_total %}
-    <td class="fb_icon">
-        {% ifequal file.filetype 'Image' %}<a href="{% url fb_versions %}{% query_string %}&amp;filename={{ file.filename }}" class="fb_showversionslink" title="{% trans 'Show Versions' %}"></a>{% endifequal %}
-    </td>
-    {% endif %}
-
-    <!-- FILEICON -->
-    <td class="fb_icon"><img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_type_{{ file.filetype|lower }}.gif" /></td>
-
-    <!-- THUMBNAIL -->
-    {% if results_var.images_total %}
-    <td class="fb_icon">
-        {% ifequal file.filetype 'Image' %}
-        <a href="{{ file.url_full }}"><img src="{% version file.path settings_var.ADMIN_THUMBNAIL %}" title="{% trans 'View Image' %}" /></a>
-        {% endifequal %}
-    </td>
-    {% endif %}
-
-    <!-- FILENAME/DIMENSIONS -->
-    {% ifequal file.filetype 'Folder' %}
-    <td><b><a href="{% url fb_browse %}{% query_string '' 'dir' %}&amp;dir={{ file.path_relative_directory|urlencode }}">{{ file.filename }}</a></b></td>
-    {% else %}
-    <td><b><a href="{{ file.url_full }}">{{ file.filename }}</a></b>{% if file.dimensions %}<br /><span class="tiny">{{ file.dimensions.0 }} x {{ file.dimensions.1 }} px</span>{% endif %}</td>
-    {% endifequal %}
-
-    <!-- RENAME -->
-    <td class="fb_icon"><a href="{% url fb_rename %}{% query_string %}&amp;filename={{ file.filename }}" class="fb_renamelink" title="{% trans 'Rename' %}"></a></td>
-
-    <!-- SIZE -->
-    <td>{{ file.filesize|filesizeformat }}</td>
-
-    <!-- DATE -->
-    <td>{{ file.datetime|date:"N j, Y" }}</td>
-
-    <!-- DELETE -->
-    {% if results_var.delete_total %}
-    <td class="fb_icon">
-        {% ifnotequal file.filetype 'Folder' %}
-        <a href="{% url fb_delete %}{% query_string %}&amp;filename={{ file.filename }}&amp;filetype={{ file.filetype }}" class="fb_deletelink" onclick="return confirm('{% trans "Are you sure you want to delete this file?" %}');" title="{% trans 'Delete File' %}"></a>
-        {% else %}
-        {% if file.is_empty %}
-        <a href="{% url fb_delete %}{% query_string %}&amp;filename={{ file.filename }}&amp;filetype={{ file.filetype }}" class="fb_deletelink" onclick="return confirm('{% trans "Are you sure you want to delete this Folder?" %}');" title="{% trans 'Delete Folder' %}"></a>
-        {% endif %}
-        {% endifnotequal %}
-    </td>
-    {% endif %}
-
-    <!-- DEBUG -->
-    {% if settings_var.DEBUG %}
-    <td>
-        <strong>Filename</strong> {{ file.filename }}<br />
-        <strong>Filetype</strong> {{ file.filetype }}<br />
-        <strong>Filesize</strong> {{ file.filesize }}<br />
-        <strong>Extension</strong> {{ file.extension }}<br />
-        <strong>Date</strong> {{ file.date }}<br />
-        <strong>Datetime Object</strong> {{ file.datetime }}<br /><br />
-        <strong>Relative Path</strong> {{ file.path_relative }}<br />
-        <strong>Full Path</strong> {{ file.path_full }}<br />
-        <strong>Relative URL</strong> {{ file.url_relative }}<br />
-        <strong>Full URL</strong> {{ file.url_full }}<br /><br />
-        <strong>URL for FileBrowseField</strong> {{ file.url_save }}<br />
-        <strong>Thumbnail URL</strong> {{ file.url_thumbnail }}
-        {% ifequal file.filetype 'Image' %}<br /><br />
-        <strong>Dimensions</strong> {{ file.dimensions }}<br />
-        <strong>Width</strong> {{ file.width }}<br />
-        <strong>Height</strong> {{ file.height }}<br />
-        <strong>Orientation</strong> {{ file.orientation }}
-        {% endifequal %}
-        {% ifequal file.filetype 'Folder' %}<br /><br />
-        <strong>Is Empty</strong> {{ file.is_empty }}
-        {% endifequal %}
-    </td>
-    {% endif %}
-
-</tr>
diff --git a/apps/filebrowser/templates/filebrowser/include/filter.html b/apps/filebrowser/templates/filebrowser/include/filter.html
deleted file mode 100644 (file)
index 28713d0..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-{% load i18n fb_tags %}
-<div id="changelist-filter">
-<h2>{% trans "Filter" %}</h2>
-{% if query.filter_date %}
-<div class="filterset collapse-open">
-{% else %}
-<div class="filterset collapse-closed">
-{% endif %}
-<h3>{% trans "By Date" %}</h3>
-<ul id="Date">
-     {% if query.filter_date %}<li>{% else %}<li class="selected">{% endif %}<a href="{% query_string "" "filter_date" %}">{% trans "Any Date" %}</a></li>
-     {% ifequal query.filter_date 'today' %}<li class="selected">{% else %}<li>{% endifequal %}
-     <a href="{% query_string "" "filter_date" %}&amp;filter_date=today">{% trans "Today" %}</a></li>
-     {% ifequal query.filter_date 'past7days' %}<li class="selected">{% else %}<li>{% endifequal %}
-     <a href="{% query_string "" "filter_date" %}&amp;filter_date=past7days">{% trans "Past 7 days" %}</a></li>
-     {% ifequal query.filter_date 'thismonth' %}<li class="selected">{% else %}<li>{% endifequal %}
-     <a href="{% query_string "" "filter_date" %}&amp;filter_date=thismonth">{% trans "Past 30 days" %}</a></li>
-     {% ifequal query.filter_date 'thisyear' %}<li class="selected">{% else %}<li>{% endifequal %}
-     <a href="{% query_string "" "filter_date" %}&amp;filter_date=thisyear">{% trans "This year" %}</a></li>
-</ul>
-</div>
-{% if query.filter_type %}
-<div class="filterset collapse-open">
-{% else %}
-<div class="filterset collapse-closed">
-{% endif %}
-<h3>{% trans "By Type" %}</h3>
-<ul id="Type">
-    {% if query.filter_type %}<li>{% else %}<li class="selected">{% endif %}<a href="{% query_string "" "filter_type" %}">{% trans "All" %}</a></li>
-    {% for extension in settings_var.EXTENSIONS %}
-    {% ifequal query.filter_type extension %}<li class="selected">{% else %}<li>{% endifequal %}<a href="{% query_string "" "filter_type" %}&amp;filter_type={{ extension }}">{% trans extension %}</a></li>
-    {% endfor %}
-</ul>
-</div>
-</div>
\ No newline at end of file
diff --git a/apps/filebrowser/templates/filebrowser/include/paginator.html b/apps/filebrowser/templates/filebrowser/include/paginator.html
deleted file mode 100644 (file)
index 73e5006..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-{% load i18n %}
-{% if not results_var.results_current %}
-<p class="paginator" style="background: #fff !important; border-bottom: 1px solid #ddd !important;">
-<span class="error"><strong>{% trans "No Items Found." %}</strong></span>
-</p>
-{% endif %}
-<p class="paginator">
-{% if results_var.results_total %}
-    <strong>{% blocktrans count results_var.results_total as counter %}{{ counter }} Item{% plural %}{{ counter }} Items{% endblocktrans %}</strong>&nbsp;
-    {% for count in counter.items %}
-        {% trans count.0 %}:
-        <strong>{{ count.1 }}</strong>&nbsp;
-    {% endfor %}
-{% else %}
-    <strong>{% trans "No Items." %}</strong>
-{% endif %}
-</p>
\ No newline at end of file
diff --git a/apps/filebrowser/templates/filebrowser/include/tableheader.html b/apps/filebrowser/templates/filebrowser/include/tableheader.html
deleted file mode 100644 (file)
index 0d60e6d..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-{% load i18n fb_tags %}
-<thead>
-    <tr>
-    <!-- SELECT -->
-    {% ifequal query.pop '1' %}{% if results_var.select_total %}<th></th>{% endif %}{% endifequal %}
-    {% ifequal query.pop '2' %}{% if results_var.select_total %}<th></th>{% endif %}{% endifequal %}
-    {% ifequal query.pop '3' %}{% if results_var.select_total %}<th></th>{% endif %}{% endifequal %}
-
-    <!-- SHOW VERSIONS -->
-    {% if settings_var.ADMIN_VERSIONS and results_var.images_total %}<th>&nbsp;</th>{% endif %}
-
-    <!-- FILETYPE -->
-    {% ifequal query.o 'filetype_checked' %}<th class="sorted {{ query.ot }}ending"><a href="{% query_string "" "o,ot" %}&amp;ot={% ifequal query.ot 'desc' %}asc{% else %}desc{% endifequal %}&amp;o=filetype_checked"></a></th>{% endifequal %}
-    {% ifnotequal query.o 'filetype_checked' %}<th><a href="{% query_string "" "o,ot" %}&amp;ot=asc&amp;o=filetype_checked">&nbsp;</a></th>{% endifnotequal %}
-
-    <!-- THUMB -->
-    {% if results_var.images_total %}<th>&nbsp;</th>{% endif %}
-
-    <!-- FILENAME / DIMENSIONS  -->
-    {% ifequal query.o 'filename_lower' %}<th class="sorted {{ query.ot }}ending"><a href="{% query_string "" "o,ot" %}&amp;ot={% ifequal query.ot 'desc' %}asc{% else %}desc{% endifequal %}&amp;o=filename_lower">{% trans 'Filename' %}</a></th>{% endifequal %}
-    {% ifnotequal query.o 'filename_lower' %}<th><a href="{% query_string "" "o,ot" %}&amp;ot=asc&amp;o=filename_lower">{% trans 'Filename' %}</a></th>{% endifnotequal %}
-
-    <!-- RENAME -->
-    <th>&nbsp;</th>
-
-    <!-- SIZE -->
-    {% ifequal query.o 'filesize' %}<th class="sorted {{ query.ot }}ending"><a href="{% query_string "" "o,ot" %}&amp;ot={% ifequal query.ot 'desc' %}asc{% else %}desc{% endifequal %}&amp;o=filesize">{% trans 'Size' %}</a></th>{% endifequal %}
-    {% ifnotequal query.o 'filesize' %}<th><a href="{% query_string "" "o,ot" %}&amp;ot=asc&amp;o=filesize">{% trans 'Size' %}</a></th>{% endifnotequal %}
-
-    <!-- DATE -->
-    {% ifequal query.o 'date' %}<th class="sorted {{ query.ot }}ending"><a href="{% query_string "" "o,ot" %}&amp;ot={% ifequal query.ot 'desc' %}asc{% else %}desc{% endifequal %}&amp;o=date">{% trans 'Date' %}</a></th>{% endifequal %}
-    {% ifnotequal query.o 'date' %}<th><a href="{% query_string "" "o,ot" %}&amp;ot=asc&amp;o=date">{% trans 'Date' %}</a></th>{% endifnotequal %}
-
-    <!-- DELETE -->
-    {% if results_var.delete_total %}<th>&nbsp;</th>{% endif %}
-    {% if settings_var.DEBUG %}<th>Debug</th>{% endif %}
-    </tr>
-</thead>
\ No newline at end of file
diff --git a/apps/filebrowser/templates/filebrowser/include/toolbar.html b/apps/filebrowser/templates/filebrowser/include/toolbar.html
deleted file mode 100644 (file)
index a21d36c..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-{% load i18n adminmedia fb_tags %}
-<div id="toolbar">
-    <form id="changelist-search" action="." method="get">
-        <div><!-- DIV needed for valid HTML -->
-        <label for="searchbar"><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="Search" /></label>
-        <input type="text" size="40" name="q" value="{{ q }}" id="searchbar" />
-        {% if query.filter_type %}<input type="hidden" name="filter_type" value="{{ query.filter_type }}" />{% endif %}
-        {% if query.filter_date %}<input type="hidden" name="filter_date" value="{{ query.filter_date }}" />{% endif %}
-        {% if query.o %}<input type="hidden" name="o" value="{{ query.o }}" />{% endif %}
-        {% if query.ot %}<input type="hidden" name="ot" value="{{ query.ot }}" />{% endif %}
-        {% if query.pop %}<input type="hidden" name="pop" value="{{ query.pop }}" />{% endif %}
-        {% if query.type %}<input type="hidden" name="type" value="{{ query.type }}" />{% endif %}
-        {% if query.format %}<input type="hidden" name="format" value="{{ query.format }}" />{% endif %}
-        {% if query.dir %}<input type="hidden" name="dir" value="{{ query.dir }}" />{% endif %}
-        <input type="submit" value="{% trans "Go" %}" />
-        {% if results_var.results_total %}
-        {% if query.filter_type or query.filter_date or query.q %}
-        <span class="small quiet">{% blocktrans count results_var.results_current as counter %}{{ counter }} Item found{% plural %}{{ counter }} Items found{% endblocktrans %}
-        (<strong><a href="{% query_string "" "filter_date,filter_type,q" %}">{% blocktrans count results_var.results_total as counter %}{{ counter }} Item total{% plural %}{{ counter }} Items total{% endblocktrans %}</a></strong>)</span>
-        {% endif %}
-        {% endif %}
-        </div>
-    </form>
-</div>
-<script type="text/javascript">document.getElementById("searchbar").focus();</script>
\ No newline at end of file
diff --git a/apps/filebrowser/templates/filebrowser/index.html b/apps/filebrowser/templates/filebrowser/index.html
deleted file mode 100644 (file)
index 24100fb..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-{% extends "admin/base_site.html" %}
-
-<!-- LOADING -->
-{% load i18n adminmedia fb_tags %}
-
-<!-- EXTRAHEAD -->
-{% block extrahead %}
-    {{ block.super }}
-    <!-- FileBrowseField -->
-    {% ifequal query.pop '1' %}
-    <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_FileBrowseField.js"></script>
-    {% endifequal %}
-    <!-- TinyMCE -->
-    {% ifequal query.pop '2' %}
-    <script language="javascript" type="text/javascript" src="{{ settings_var.URL_TINYMCE }}tiny_mce_popup.js"></script>
-    <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_TinyMCE.js"></script>
-    {% if query.mce_rdomain %}<script language="javascript">document.domain = "{{ query.mce_rdomain }}"</script>{% endif %}
-    {% endifequal %}
-    <!-- CKeditor (former "FCKeditor") -->
-    {% ifequal query.pop '3' %}
-    <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_CKeditor.js"></script>
-    {% endifequal %}
-    {{ media }}
-{% endblock %}
-
-<!-- COLTYPE/BODYCLASS -->
-{% block coltype %}flex{% endblock %}
-{% block bodyclass %}change-list filebrowser{% if query.pop %} popup{% endif %}{% endblock %}
-
-<!-- EXTRASTYLE -->
-{% block extrastyle %}
-    {{ block.super }}
-    <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/changelists.css" />
-    <link rel="stylesheet" type="text/css" href="{{ settings_var.URL_FILEBROWSER_MEDIA }}css/filebrowser.css" />
-    {% if query.pop %}
-    <style type="text/css">
-    #header { display: none; }
-    </style>
-{% endif %}
-{% endblock %}
-
-<!-- BREADCRUMBS -->
-{% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %}
-
-<!-- CONTENT -->
-{% block content %}
-<div id="content-main">
-    {% block object-tools %}
-    <ul class="object-tools">
-        <li><a href="{% url fb_mkdir %}{% query_string %}">{% trans "New Folder" %}</a></li>
-        <li><a href="{% url fb_upload %}{% query_string %}" class="focus">{% trans "Upload" %}</a></li>
-    </ul>
-    {% endblock %}
-    <div class="module filtered" id="changelist">
-        {% include "filebrowser/include/toolbar.html" %}
-        {% include "filebrowser/include/filter.html" %}
-        <table cellspacing="0">
-            {% if results_var.results_current %}
-                {% include "filebrowser/include/tableheader.html" %}
-            {% endif %}
-            <tbody>
-            {% for file in files %}
-                {% include "filebrowser/include/filelisting.html" %}
-            {% endfor %}
-            </tbody>
-        </table>
-        {% include "filebrowser/include/paginator.html" %}
-    </div>
-</div>
-{% endblock %}
diff --git a/apps/filebrowser/templates/filebrowser/makedir.html b/apps/filebrowser/templates/filebrowser/makedir.html
deleted file mode 100644 (file)
index c0320df..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-{% extends "admin/base_site.html" %}
-
-<!-- LOADING -->
-{% load i18n adminmedia fb_tags %}
-
-<!-- EXTRAHEAD -->
-{% block extrahead %}
-    {{ block.super }}
-    <script type="text/javascript" src="../../jsi18n/"></script>
-    <script type="text/javascript" src="{% admin_media_prefix %}js/core.js"></script>
-    <script type="text/javascript" src="{% admin_media_prefix %}js/admin/CollapsedFieldsets.js"></script>
-{% endblock %}
-
-<!-- COLTYPE/BODYCLASS -->
-{% block coltype %}colM{% endblock %}
-{% block bodyclass %}change-form{% endblock %}
-
-<!-- EXTRASTYLE -->
-{% block extrastyle %}
-    {{ block.super }}
-    <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />
-    <link rel="stylesheet" type="text/css" href="{{ settings_var.URL_FILEBROWSER_MEDIA }}css/filebrowser.css" />
-    {% if query.pop %}
-    <style type="text/css">
-    #header { display: none; }
-    </style>
-{% endif %}
-{% endblock %}
-
-<!-- BREADCRUMBS -->
-{% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %}
-
-<!-- CONTENT -->
-{% block content %}
-<div id="content-main">
-    <form action="{% query_string %}" method="post">
-    {% csrf_token %}
-    <div>
-        {% if form.errors %}<p class="errornote">{% trans 'Please correct the following errors.' %}</p>{% endif %}
-        <fieldset class="module aligned">
-        <div class="form-row {% if form.dir_name.errors %}errors{% endif %}">
-            {% if form.dir_name.errors %}<ul class="errorlist">{{ form.dir_name.errors }}</ul>{% endif %}
-            <label class="required" for="id_dir_name">{{ form.dir_name.label }}</label>
-            {{ form.dir_name }}
-        </div>
-        </fieldset>
-        <fieldset class="module aligned collapse">
-        <h2>{% trans "Help" %}</h2>
-        <div class="form-row" >
-            <label class="required">&nbsp;</label>
-            <p>
-                {{ form.dir_name.help_text|safe }}
-                {% if settings_var.CONVERT_FILENAME %}<br />{% trans "The Name will be converted to lowercase. Spaces will be replaced with underscores." %}{% endif %}
-            </p>
-        </div>
-        </fieldset>
-        <div class="submit-row">
-            <input type="submit" value="{% trans 'Submit' %}" class="default" /><br class="clear" />
-        </div>
-    </div>
-    </form>
-</div>
-{% endblock %}
diff --git a/apps/filebrowser/templates/filebrowser/rename.html b/apps/filebrowser/templates/filebrowser/rename.html
deleted file mode 100644 (file)
index 19e63f9..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-{% extends "admin/base_site.html" %}
-
-<!-- LOADING -->
-{% load i18n adminmedia fb_tags %}
-
-<!-- EXTRAHEAD -->
-{% block extrahead %}
-    {{ block.super }}
-    <script type="text/javascript" src="../../jsi18n/"></script>
-    <script type="text/javascript" src="{% admin_media_prefix %}js/core.js"></script>
-    <script type="text/javascript" src="{% admin_media_prefix %}js/admin/CollapsedFieldsets.js"></script>
-{% endblock %}
-
-<!-- COLTYPE/BODYCLASS -->
-{% block coltype %}colM{% endblock %}
-{% block bodyclass %}change-form{% endblock %}
-
-<!-- EXTRASTYLE -->
-{% block extrastyle %}
-    {{ block.super }}
-    <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />
-    <link rel="stylesheet" type="text/css" href="{{ settings_var.URL_FILEBROWSER_MEDIA }}css/filebrowser.css" />
-    {% if query.pop %}
-    <style type="text/css">
-    #header { display: none; }
-    </style>
-{% endif %}
-{% endblock %}
-
-<!-- BREADCRUMBS -->
-{% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %}
-
-<!-- CONTENT -->
-{% block content %}
-<div id="content-main">
-    <form action="{% query_string "" "filter_date,filter_type,q" %}" method="post">
-    {% csrf_token %}
-    <div>
-        {% if form.errors %}<p class="errornote">{% trans 'Please correct the following errors.' %}</p>{% endif %}
-        <fieldset class="module aligned">
-        <div class="form-row {% if form.dir_name.errors %}errors{% endif %}">
-            {% if form.name.errors %}<ul class="errorlist">{{ form.name.errors }}</ul>{% endif %}
-            <label class="required" for="id_dir_name">{{ form.name.label }}</label>
-            {{ form.name }}
-            {% if file_extension %}<b>{{ file_extension }}</b>{% endif %}
-        </div>
-        </fieldset>
-        <fieldset class="module aligned collapse">
-        <h2>{% trans "Help" %}</h2>
-        <div class="form-row" >
-            <label class="required">&nbsp;</label>
-            <p>
-                {{ form.name.help_text|safe }}
-                {% if settings_var.CONVERT_FILENAME %}<br />{% trans "The Name will be converted to lowercase. Spaces will be replaced with underscores." %}{% endif %}
-            </p>
-        </div>
-        </fieldset>
-        <div class="submit-row">
-            <input type="submit" value="{% trans 'Submit' %}" class="default" />
-        </div>
-    </div>
-    </form>
-</div>
-{% endblock %}
diff --git a/apps/filebrowser/templates/filebrowser/upload.html b/apps/filebrowser/templates/filebrowser/upload.html
deleted file mode 100644 (file)
index fed793e..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-{% extends "admin/base_site.html" %}
-
-<!-- LOADING -->
-{% load i18n adminmedia fb_tags %}
-
-<!-- EXTRAHEAD -->
-{% block extrahead %}
-    {{ block.super }}
-    <script type="text/javascript" src="../../jsi18n/"></script>
-    <script type="text/javascript" src="{% admin_media_prefix %}js/core.js"></script>
-    <script type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/jquery-1.3.2.min.js"></script>
-    <script type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}uploadify/jquery.uploadify.v2.1.0.js"></script>
-    <script type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}uploadify/swfobject.js"></script>
-    <script type="text/javascript" src="{% admin_media_prefix %}js/admin/CollapsedFieldsets.js"></script>
-    <script type="text/javascript">
-    $(document).ready(function() {
-        $('#id_file').uploadify({
-            'uploader'          : '{{ settings_var.URL_FILEBROWSER_MEDIA }}uploadify/uploadify.swf',
-            'script'            : '{% url fb_do_upload %}',
-            'scriptData'        : {'session_key': '{{session_key}}'},
-            'checkScript'       : '{% url fb_check %}',
-            'cancelImg'         : '{{ settings_var.URL_FILEBROWSER_MEDIA }}uploadify/cancel.png',
-            'auto'              : false,
-            'folder'            : '{{ query.dir }}',
-            'multi'             : true,
-            'fileDesc'          : '{% for extension in settings_var.EXTENSIONS.items %}{% ifnotequal extension.0 'Folder' %}{% for item in extension.1 %}*{{ item|safe }};{% endfor %}{% endifnotequal %}{% endfor %}',
-            'fileExt'           : '{% for extension in settings_var.EXTENSIONS.items %}{% ifnotequal extension.0 'Folder' %}{% for item in extension.1 %}*{{ item|safe }};{% endfor %}{% endifnotequal %}{% endfor %}',
-            'sizeLimit'         : {{ settings_var.MAX_UPLOAD_SIZE }},
-            'scriptAccess'      : 'sameDomain',
-            'queueSizeLimit'    : 50,
-            'simUploadLimit'    : 1,
-            'width'             : 300,
-            'height'            : 30,
-            translations        : {
-                                  browseButton: '{% trans "BROWSE" %}',
-                                  error: '{% trans "An Error occured" %}',
-                                  completed: '{% trans "Completed" %}',
-                                  replaceFile: '{% trans "Do you want to replace the file" %}',
-                                  unitKb: '{% trans "KB" %}',
-                                  unitMb: '{% trans "MB" %}'
-            }
-        });
-        $('input:submit').click(function(){
-            $('#id_file').uploadifyUpload();
-            return false;
-        });
-    });
-    </script>
-{% endblock %}
-
-<!-- COLTYPE/BODYCLASS -->
-{% block coltype %}colM{% endblock %}
-{% block bodyclass %}change-form{% endblock %}
-
-<!-- EXTRASTYLE -->
-{% block extrastyle %}
-    {{ block.super }}
-    <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />
-    <link rel="stylesheet" type="text/css" href="{{ settings_var.URL_FILEBROWSER_MEDIA }}css/filebrowser.css" />
-    <link rel="stylesheet" type="text/css" href="{{ settings_var.URL_FILEBROWSER_MEDIA }}uploadify/uploadify.css" />
-    {% if query.pop %}
-    <style type="text/css">
-    #header { display: none; }
-    </style>
-    {% endif %}
-{% endblock %}
-
-<!-- BREADCRUMBS -->
-{% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %}
-
-<!-- CONTENT -->
-{% block content %}
-<div id="content-main">
-    <form>
-    <div>
-        <fieldset class="module aligned">
-        <div class="form-row">
-            <input type="File" id="id_file" />
-        </div>
-        </fieldset>
-
-        <fieldset class="module aligned collapse">
-        <h2>{% trans "Help" %}</h2>
-        <div class="form-row" >
-            {% for extension in settings_var.EXTENSIONS.items %}
-            {% ifnotequal extension.0 'Folder' %}
-            <label class="required">{% if forloop.first %}{% trans "Allowed" %}:{% else %}&nbsp;{% endif %}</label>
-            <p>{{ extension.0|safe }} ({{ extension.1|join:", "|safe }})</p>
-            {% endifnotequal %}
-            {% endfor %}
-        </div>
-        <div class="form-row" >
-            <label class="required">{% trans "Max. Filesize" %}:</label>
-            <p>{{ settings_var.MAX_UPLOAD_SIZE|filesizeformat }}</p>
-        </div>
-        {% if settings_var.CONVERT_FILENAME %}
-        <div class="form-row" >
-            <label class="required">&nbsp;</label>
-            <p>
-                {% trans "The Name will be converted to lowercase. Spaces will be replaced with underscores." %}
-            </p>
-        </div>
-        {% endif %}
-        </fieldset>
-
-        <div class="submit-row">
-            <p class="deletelink-box">
-                <a class="deletelink" href="javascript:$('#id_file').uploadifyClearQueue()">{% trans "Clear Queue" %}</a>
-            </p>
-            <input class="default" type="submit" name="_save" value='{% trans "Upload" %}' />
-        </div>
-
-    </div>
-    </form>
-</div>
-{% endblock %}
diff --git a/apps/filebrowser/templates/filebrowser/versions.html b/apps/filebrowser/templates/filebrowser/versions.html
deleted file mode 100644 (file)
index 05093a3..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-{% extends "admin/base_site.html" %}
-
-<!-- LOADING -->
-{% load i18n adminmedia fb_tags fb_versions %}
-
-<!-- EXTRAHEAD -->
-{% block extrahead %}
-    {{ block.super }}
-    {% ifequal query.pop '1' %} <!-- FileBrowseField -->
-    <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_FileBrowseField.js"></script>
-    {% endifequal %}
-    {% ifequal query.pop '2' %} <!-- TinyMCE -->
-    <script language="javascript" type="text/javascript" src="{{ settings_var.URL_TINYMCE }}tiny_mce_popup.js"></script>
-    <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_TinyMCE.js"></script>
-    {% if query.mce_rdomain %}<script language="javascript">document.domain = "{{ query.mce_rdomain }}"</script>{% endif %}
-    {% endifequal %}
-    {% ifequal query.pop '3' %} <!-- CKeditor (former "FCKeditor") -->
-    <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_CKeditor.js"></script>
-    {% endifequal %}
-    {{ media }}
-{% endblock %}
-
-<!-- COLTYPE/BODYCLASS -->
-{% block coltype %}colM{% endblock %}
-{% block bodyclass %}change-list filebrowser{% endblock %}
-
-<!-- EXTRASTYLE -->
-{% block extrastyle %}
-    {{ block.super }}
-    <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css-development/changelists.css" />
-    <link rel="stylesheet" type="text/css" href="{{ settings_var.URL_FILEBROWSER_MEDIA }}css/filebrowser.css" />
-    {% if query.pop %}
-    <style type="text/css">
-    #header { display: none; }
-    </style>
-{% endif %}
-{% endblock %}
-
-<!-- BREADCRUMBS -->
-{% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %}
-
-<!-- CONTENT -->
-{% block content %}
-<div id="content-main">
-    <div class="module" id="changelist">
-        <div class="changelist-content">
-        <table cellspacing="0">
-            <thead>
-                <tr>
-                <!-- SELECT -->
-                {% ifequal query.pop '1' %}<th></th>{% endifequal %}
-                {% ifequal query.pop '2' %}<th></th>{% endifequal %}
-                {% ifequal query.pop '3' %}<th></th>{% endifequal %}
-                <!-- FILENAME / DIMENSIONS  -->
-                <th>{% trans 'Name' %}</th>
-                <!-- THUMB -->
-                <th>{% trans 'Image Version' %}</th>
-                {% if settings_var.DEBUG %}<th>{% trans "Debug" %}</th>{% endif %}
-                </tr>
-            </thead>
-            <tbody>
-            {% for version in settings_var.ADMIN_VERSIONS %}
-                {% version_object original version as image_version %}
-                <tr class="{% cycle 'row1' 'row2' %}">
-                <!-- Fileselect for FileBrowseField -->
-                {% ifequal query.pop '1' %}
-                <td class="fb_icon">
-                    {% selectable image_version.filetype query.type %}
-                    {% if selectable %}
-                    <a href="javascript://" onclick="FileSubmit('{{ image_version.url_save }}', '{{ image_version.url_thumbnail }}', '{{ image_version.filetype }}');" class="fb_selectlink" title="{% trans 'Select' %}"></a>
-                    {% else %}
-                    <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
-                    {% endif %}
-                </td>
-                {% endifequal %}
-                <!-- Fileselect for RTE/TinyMCE -->
-                {% ifequal query.pop '2' %}
-                <td class="fb_icon">
-                    {% selectable image_version.filetype query.type %}
-                    {% if selectable %}
-                    <a href="javascript:FileBrowserDialogue.fileSubmit('{{ image_version.url_save }}');" class="fb_selectlink" title="{% trans 'Select File' %}"></a>
-                    {% else %}
-                    <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
-                    {% endif %}
-                </td>
-                {% endifequal %}
-                <!-- Fileselect for CKeditor (former "FCKeditor") -->
-                {% ifequal query.pop '3' %}
-                <td class="fb_icon">
-                    {% selectable image_version.filetype query.type %}
-                    {% if selectable %}
-                    <a href="#" onclick="OpenFile(ProtectPath('{{ image_version.url_save }}'));return false;" class="fb_selectlink" title="{% trans 'Select File' %}"></a>
-                    {% else %}
-                    <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
-                    {% endif %}
-                </td>
-                {% endifequal %}
-                <!-- FILENAME / DIMENSIONS  -->
-                <td>
-                    {% version_setting version %}
-                    <strong>{{ version_setting.verbose_name }}</strong><br />
-                    {% if version_setting.width %}{% trans "Width" %}: {{ version_setting.width }}px<br />{% endif %}
-                    {% if version_setting.height %}{% trans "Height" %}: {{ version_setting.height }}px{% endif %}
-                </td>
-                <!-- THUMB -->
-                <th><img src="{{ image_version.url_full }}" /></th>
-                <!-- DEBUG -->
-                {% if settings_var.DEBUG %}
-                <td>
-                    <strong>Filename</strong> {{ image_version.filename }}<br />
-                    <strong>Filetype</strong> {{ image_version.filetype }}<br />
-                    <strong>Filesize</strong> {{ image_version.filesize }}<br />
-                    <strong>Extension</strong> {{ image_version.extension }}<br />
-                    <strong>Date</strong> {{ image_version.date }}<br />
-                    <strong>Datetime Object</strong> {{ image_version.datetime }}<br /><br />
-
-                    <strong>Relative Path</strong> {{ image_version.path_relative }}<br />
-                    <strong>Full Path</strong> {{ image_version.path_full }}<br />
-                    <strong>Relative URL</strong> {{ image_version.url_relative }}<br />
-                    <strong>Full URL</strong> {{ image_version.url_full }}<br /><br />
-
-                    <strong>URL for FileBrowseField</strong> {{ image_version.url_save }}<br />
-                    <strong>Thumbnail URL</strong> {{ image_version.url_thumbnail }}<br /><br />
-
-                    <strong>Dimensions</strong> {{ image_version.dimensions }}<br />
-                    <strong>Width</strong> {{ image_version.width }}<br />
-                    <strong>Height</strong> {{ image_version.height }}<br />
-                    <strong>Orientation</strong> {{ image_version.orientation }}
-                </td>
-                {% endif %}
-                </tr>
-            {% endfor %}
-            </tbody>
-        </table>
-        </div>
-    </div>
-</div>
-{% endblock %}
\ No newline at end of file
diff --git a/apps/filebrowser/templatetags/__init__.py b/apps/filebrowser/templatetags/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/apps/filebrowser/templatetags/fb_tags.py b/apps/filebrowser/templatetags/fb_tags.py
deleted file mode 100644 (file)
index 5bc9b40..0000000
+++ /dev/null
@@ -1,136 +0,0 @@
-# coding: utf-8
-
-from django import template
-from django.utils.encoding import smart_unicode
-from django.utils.safestring import mark_safe
-
-from filebrowser.fb_settings import SELECT_FORMATS
-
-register = template.Library()
-
-
-@register.inclusion_tag('filebrowser/include/_response.html', takes_context=True)
-def query_string(context, add=None, remove=None):
-    """
-    Allows the addition and removal of query string parameters.
-
-    _response.html is just {{ response }}
-
-    Usage:
-    http://www.url.com/{% query_string "param_to_add=value, param_to_add=value" "param_to_remove, params_to_remove" %}
-    http://www.url.com/{% query_string "" "filter" %}filter={{new_filter}}
-    http://www.url.com/{% query_string "sort=value" "sort" %}
-    """
-    # Written as an inclusion tag to simplify getting the context.
-    add = string_to_dict(add)
-    remove = string_to_list(remove)
-    params = context['query'].copy()
-    response = get_query_string(params, add, remove)
-    return {'response': smart_unicode(response)}
-
-
-def query_helper(query, add=None, remove=None):
-    """
-    Helper Function for use within views.
-    """
-    add = string_to_dict(add)
-    remove = string_to_list(remove)
-    params = query.copy()
-    return get_query_string(params, add, remove)
-
-
-def get_query_string(p, new_params=None, remove=None):
-    """
-    Add and remove query parameters. From `django.contrib.admin`.
-    """
-    if new_params is None:
-        new_params = {}
-
-    if remove is None:
-        remove = []
-
-    for r in remove:
-        for k in p.keys():
-            if k.startswith(r):
-                del p[k]
-    for k, v in new_params.items():
-        if k in p and v is None:
-            del p[k]
-        elif v is not None:
-            p[k] = v
-    return mark_safe('?' + '&'.join([u'%s=%s' % (k, v) for k, v in p.items()]).replace(' ', '%20'))
-
-
-def string_to_dict(string):
-    """
-    Usage::
-
-        {{ url|thumbnail:"width=10,height=20" }}
-        {{ url|thumbnail:"width=10" }}
-        {{ url|thumbnail:"height=20" }}
-    """
-    kwargs = {}
-
-    if string:
-        string = str(string)
-
-        args = (arg.strip() for arg in string.split(',') if not arg.isspace())
-        kwargs.update(arg.split('=', 1) for arg in args)
-
-    return kwargs
-
-
-def string_to_list(string):
-    """
-    Usage::
-
-        {{ url|thumbnail:"width,height" }}
-    """
-    args = []
-    if string:
-        string = str(string)
-        if ',' not in string:
-            # ensure at least one ','
-            string += ','
-        for arg in string.split(','):
-            arg = arg.strip()
-            if arg == '':
-                continue
-            args.append(arg)
-    return args
-
-
-class SelectableNode(template.Node):
-    def __init__(self, filetype, format):
-        self.filetype = template.Variable(filetype)
-        self.format = template.Variable(format)
-
-    def render(self, context):
-        try:
-            filetype = self.filetype.resolve(context)
-        except template.VariableDoesNotExist:
-            filetype = ''
-        try:
-            format = self.format.resolve(context)
-        except template.VariableDoesNotExist:
-            format = ''
-        if filetype and format and filetype in SELECT_FORMATS[format]:
-            selectable = True
-        elif filetype and format and filetype not in SELECT_FORMATS[format]:
-            selectable = False
-        else:
-            selectable = True
-        context['selectable'] = selectable
-        return ''
-
-
-def selectable(parser, token):
-
-    try:
-        tag, filetype, format = token.split_contents()
-    except:
-        raise TemplateSyntaxError("%s tag requires 2 arguments" % token.contents.split()[0])
-
-    return SelectableNode(filetype, format)
-
-register.tag(selectable)
diff --git a/apps/filebrowser/templatetags/fb_versions.py b/apps/filebrowser/templatetags/fb_versions.py
deleted file mode 100644 (file)
index cb67b2f..0000000
+++ /dev/null
@@ -1,178 +0,0 @@
-# coding: utf-8
-
-import os
-import re
-from django.template import Library, Node, Variable, VariableDoesNotExist, TemplateSyntaxError
-from django.conf import settings
-from django.utils.encoding import force_unicode
-
-# filebrowser imports
-from filebrowser.fb_settings import MEDIA_ROOT, MEDIA_URL, VERSIONS
-from filebrowser.functions import _url_to_path, _path_to_url, _get_version_path, _version_generator
-from filebrowser.base import FileObject
-
-import logging
-logger = logging.getLogger("django.filebrowser")
-
-register = Library()
-
-
-class VersionNode(Node):
-    def __init__(self, src, version_prefix):
-        self.src = Variable(src)
-        if (version_prefix[0] == version_prefix[-1] and version_prefix[0] in ('"', "'")):
-            self.version_prefix = version_prefix[1:-1]
-        else:
-            self.version_prefix = None
-            self.version_prefix_var = Variable(version_prefix)
-
-    def render(self, context):
-        try:
-            source = self.src.resolve(context)
-        except VariableDoesNotExist:
-            return None
-
-        if self.version_prefix:
-            version_prefix = self.version_prefix
-        else:
-            try:
-                version_prefix = self.version_prefix_var.resolve(context)
-            except VariableDoesNotExist:
-                return None
-
-        try:
-            version_path = _get_version_path(_url_to_path(str(source)), version_prefix)
-            if not os.path.isfile(os.path.join(MEDIA_ROOT, version_path)):
-                # create version
-                version_path = _version_generator(_url_to_path(str(source)), version_prefix)
-            elif os.path.getmtime(os.path.join(MEDIA_ROOT, _url_to_path(str(source)))) > os.path.getmtime(os.path.join(MEDIA_ROOT, version_path)):
-                # recreate version if original image was updated
-                version_path = _version_generator(_url_to_path(str(source)), version_prefix, force=True)
-            return _path_to_url(version_path)
-        except Exception:
-            logger.exception("Version error")
-            return u""
-
-
-def version(parser, token):
-    """
-    Displaying a version of an existing Image according to the predefined VERSIONS settings (see fb_settings).
-    {% version field_name version_prefix %}
-
-    Use {% version my_image 'medium' %} in order to display the medium-size
-    version of an Image stored in a field name my_image.
-
-    version_prefix can be a string or a variable. if version_prefix is a string, use quotes.
-    """
-
-    try:
-        tag, src, version_prefix = token.split_contents()
-    except:
-        raise TemplateSyntaxError("%s tag requires 2 arguments" % token.contents.split()[0])
-    if (version_prefix[0] == version_prefix[-1] and version_prefix[0] in ('"', "'")) and version_prefix.lower()[1:-1] not in VERSIONS:
-        raise TemplateSyntaxError("%s tag received bad version_prefix %s" % (tag, version_prefix))
-    return VersionNode(src, version_prefix)
-
-
-class VersionObjectNode(Node):
-
-    def __init__(self, src, version_prefix, var_name):
-        self.var_name = var_name
-        self.src = Variable(src)
-        if (version_prefix[0] == version_prefix[-1] and version_prefix[0] in ('"', "'")):
-            self.version_prefix = version_prefix[1:-1]
-        else:
-            self.version_prefix = None
-            self.version_prefix_var = Variable(version_prefix)
-
-    def render(self, context):
-        try:
-            source = self.src.resolve(context)
-        except VariableDoesNotExist:
-            return None
-        if self.version_prefix:
-            version_prefix = self.version_prefix
-        else:
-            try:
-                version_prefix = self.version_prefix_var.resolve(context)
-            except VariableDoesNotExist:
-                return None
-        try:
-            version_path = _get_version_path(_url_to_path(str(source)), version_prefix)
-            if not os.path.isfile(os.path.join(MEDIA_ROOT, version_path)):
-                # create version
-                version_path = _version_generator(_url_to_path(str(source)), version_prefix)
-            elif os.path.getmtime(os.path.join(MEDIA_ROOT, _url_to_path(str(source)))) > os.path.getmtime(os.path.join(MEDIA_ROOT, version_path)):
-                # recreate version if original image was updated
-                version_path = _version_generator(_url_to_path(str(source)), version_prefix, force=True)
-            context[self.var_name] = FileObject(version_path)
-        except:
-            context[self.var_name] = ""
-        return ''
-
-
-def version_object(parser, token):
-    """
-    Returns a context variable 'version_object'.
-    {% version_object field_name version_prefix %}
-
-    Use {% version_object my_image 'medium' %} in order to retrieve the medium
-    version of an Image stored in a field name my_image.
-    Use {% version_object my_image 'medium' as var %} in order to use 'var' as
-    your context variable.
-
-    version_prefix can be a string or a variable. if version_prefix is a string, use quotes.
-    """
-
-    try:
-        #tag, src, version_prefix = token.split_contents()
-        tag, arg = token.contents.split(None, 1)
-    except:
-        raise TemplateSyntaxError("%s tag requires arguments" % token.contents.split()[0])
-    m = re.search(r'(.*?) (.*?) as (\w+)', arg)
-    if not m:
-        raise TemplateSyntaxError("%r tag had invalid arguments" % tag)
-    src, version_prefix, var_name = m.groups()
-    if (version_prefix[0] == version_prefix[-1] and version_prefix[0] in ('"', "'")) and version_prefix.lower()[1:-1] not in VERSIONS:
-        raise TemplateSyntaxError("%s tag received bad version_prefix %s" % (tag, version_prefix))
-    return VersionObjectNode(src, version_prefix, var_name)
-
-
-class VersionSettingNode(Node):
-
-    def __init__(self, version_prefix):
-        if (version_prefix[0] == version_prefix[-1] and version_prefix[0] in ('"', "'")):
-            self.version_prefix = version_prefix[1:-1]
-        else:
-            self.version_prefix = None
-            self.version_prefix_var = Variable(version_prefix)
-
-    def render(self, context):
-        if self.version_prefix:
-            version_prefix = self.version_prefix
-        else:
-            try:
-                version_prefix = self.version_prefix_var.resolve(context)
-            except VariableDoesNotExist:
-                return None
-        context['version_setting'] = VERSIONS[version_prefix]
-        return ''
-
-
-def version_setting(parser, token):
-    """
-    Get Information about a version setting.
-    """
-
-    try:
-        tag, version_prefix = token.split_contents()
-    except:
-        raise TemplateSyntaxError("%s tag requires 1 argument" % token.contents.split()[0])
-    if (version_prefix[0] == version_prefix[-1] and version_prefix[0] in ('"', "'")) and version_prefix.lower()[1:-1] not in VERSIONS:
-        raise TemplateSyntaxError("%s tag received bad version_prefix %s" % (tag, version_prefix))
-    return VersionSettingNode(version_prefix)
-
-
-register.tag(version)
-register.tag(version_object)
-register.tag(version_setting)
diff --git a/apps/filebrowser/urls.py b/apps/filebrowser/urls.py
deleted file mode 100644 (file)
index 60bfff8..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-from django.conf.urls.defaults import *
-
-urlpatterns = patterns('',
-
-    # filebrowser urls
-    url(r'^browse/$', 'filebrowser.views.browse', name="fb_browse"),
-    url(r'^mkdir/', 'filebrowser.views.mkdir', name="fb_mkdir"),
-    url(r'^upload/', 'filebrowser.views.upload', name="fb_upload"),
-    url(r'^rename/$', 'filebrowser.views.rename', name="fb_rename"),
-    url(r'^delete/$', 'filebrowser.views.delete', name="fb_delete"),
-    url(r'^versions/$', 'filebrowser.views.versions', name="fb_versions"),
-
-    url(r'^check_file/$', 'filebrowser.views._check_file', name="fb_check"),
-    url(r'^upload_file/$', 'filebrowser.views._upload_file', name="fb_do_upload"),
-
-)
diff --git a/apps/filebrowser/views.py b/apps/filebrowser/views.py
deleted file mode 100644 (file)
index 6c1c92d..0000000
+++ /dev/null
@@ -1,446 +0,0 @@
-# coding: utf-8
-
-# general imports
-import re
-
-# django imports
-from django.shortcuts import render_to_response, HttpResponse
-from django.template import RequestContext as Context
-from django.http import HttpResponseRedirect
-from django.contrib.admin.views.decorators import staff_member_required
-from django.views.decorators.cache import never_cache
-from django.utils.translation import ugettext as _
-from django.conf import settings
-from django import forms
-from django.core.urlresolvers import reverse
-from django.core.exceptions import ImproperlyConfigured
-from django.dispatch import Signal
-from django.views.decorators.csrf import csrf_exempt
-
-from django.utils.encoding import smart_unicode, smart_str
-
-# filebrowser imports
-from filebrowser.fb_settings import *
-
-from filebrowser.functions import (
-        _url_to_path, _path_to_url, _get_path, _get_file, _get_version_path,
-        _get_breadcrumbs, _get_filterdate, _get_settings_var, _handle_file_upload,
-        _get_file_type, _url_join, _convert_filename)
-
-from filebrowser.templatetags.fb_tags import query_helper
-from filebrowser.base import FileObject
-from filebrowser.decorators import flash_login_required
-
-# Precompile regular expressions
-filter_re = []
-
-for exp in EXCLUDE:
-    filter_re.append(re.compile(exp))
-for k, v in VERSIONS.iteritems():
-    exp = (r'_%s.(%s)') % (k, '|'.join(EXTENSION_LIST))
-    filter_re.append(re.compile(exp))
-
-
-def browse(request):
-    """
-    Browse Files/Directories.
-    """
-
-    # QUERY / PATH CHECK
-    query = request.GET
-    path = _get_path(query.get('dir', ''))
-    directory = _get_path('')
-
-    if path is None:
-        msg = _('Directory/File does not exist.')
-        request.user.message_set.create(message=msg)
-        if directory is None:
-            # The DIRECTORY does not exist, raise an error to prevent eternal redirecting.
-            raise ImproperlyConfigured(_("Error finding upload directory: %s. Maybe it does not exist?" % os.path.join(MEDIA_ROOT, DIRECTORY)))
-        redirect_url = reverse("fb_browse") + query_helper(query, "", "dir")
-        return HttpResponseRedirect(redirect_url)
-    abs_path = os.path.join(MEDIA_ROOT, DIRECTORY, path)
-
-    # INITIAL VARIABLES
-    results_var = {'results_total': 0, 'results_current': 0, 'delete_total': 0, 'images_total': 0, 'select_total': 0}
-    counter = {}
-    for k, v in EXTENSIONS.iteritems():
-        counter[k] = 0
-
-    dir_list = os.listdir(abs_path)
-    files = []
-    # print "LISTING FILES: ", dir_list
-    for file in dir_list:
-        # print repr(file)
-        # EXCLUDE FILES MATCHING VERSIONS_PREFIX OR ANY OF THE EXCLUDE PATTERNS
-        filtered = file.startswith('.')
-        for re_prefix in filter_re:
-            if re_prefix.search(file):
-                filtered = True
-        if filtered:
-            continue
-        results_var['results_total'] += 1
-
-        # CREATE FILEOBJECT
-        fileobject = FileObject(os.path.join(smart_str(DIRECTORY), smart_str(path), smart_str(file)))
-
-        # FILTER / SEARCH
-        append = False
-        if fileobject.filetype == request.GET.get('filter_type', fileobject.filetype) and _get_filterdate(request.GET.get('filter_date', ''), fileobject.date):
-            append = True
-        if request.GET.get('q') and not re.compile(request.GET.get('q').lower(), re.M).search(file.lower()):
-            append = False
-
-        # APPEND FILE_LIST
-        if append:
-            files.append(fileobject)
-            results_var['results_current'] += 1
-            # COUNTER/RESULTS
-            if fileobject.filetype == 'Image':
-                results_var['images_total'] += 1
-            if fileobject.filetype != 'Folder':
-                results_var['delete_total'] += 1
-            elif fileobject.filetype == 'Folder' and fileobject.is_empty:
-                results_var['delete_total'] += 1
-            if query.get('type') and query.get('type') in SELECT_FORMATS and fileobject.filetype in SELECT_FORMATS[query.get('type')]:
-                results_var['select_total'] += 1
-            elif not query.get('type'):
-                results_var['select_total'] += 1
-
-        # COUNTER/RESULTS
-        if fileobject.filetype:
-            counter[fileobject.filetype] += 1
-
-    # SORTING
-    files.sort(key=lambda e: getattr(e, request.GET.get('o', DEFAULT_ORDER)))
-    if request.GET.get('ot') == "desc":
-        files.reverse()
-
-    return render_to_response('filebrowser/index.html', {
-        'dir': path,
-        'files': files,
-        'results_var': results_var,
-        'counter': counter,
-        'query': query,
-        'title': _(u'FileBrowser'),
-        'settings_var': _get_settings_var(),
-        'breadcrumbs': _get_breadcrumbs(query, path, ''),
-    }, context_instance=Context(request))
-browse = staff_member_required(never_cache(browse))
-
-
-# mkdir signals
-filebrowser_pre_createdir = Signal(providing_args=["path", "dirname"])
-filebrowser_post_createdir = Signal(providing_args=["path", "dirname"])
-
-
-def mkdir(request):
-    """
-    Make Directory.
-    """
-
-    from filebrowser.forms import MakeDirForm
-
-    # QUERY / PATH CHECK
-    query = request.GET
-    path = _get_path(query.get('dir', ''))
-    if path is None:
-        msg = _('Directory/File does not exist.')
-        request.user.message_set.create(message=msg)
-        return HttpResponseRedirect(reverse("fb_browse"))
-    abs_path = os.path.join(MEDIA_ROOT, DIRECTORY, path)
-
-    if request.method == 'POST':
-        form = MakeDirForm(abs_path, request.POST)
-        if form.is_valid():
-            server_path = os.path.join(abs_path, form.cleaned_data['dir_name'])
-            try:
-                # PRE CREATE SIGNAL
-                filebrowser_pre_createdir.send(sender=request, path=path, dirname=form.cleaned_data['dir_name'])
-                # CREATE FOLDER
-                os.mkdir(server_path)
-                os.chmod(server_path, 0775)
-                # POST CREATE SIGNAL
-                filebrowser_post_createdir.send(sender=request, path=path, dirname=form.cleaned_data['dir_name'])
-                # MESSAGE & REDIRECT
-                msg = _('The Folder %s was successfully created.') % (form.cleaned_data['dir_name'])
-                request.user.message_set.create(message=msg)
-                # on redirect, sort by date desc to see the new directory on top of the list
-                # remove filter in order to actually _see_ the new folder
-                redirect_url = reverse("fb_browse") + query_helper(query, "ot=desc,o=date", "ot,o,filter_type,filter_date,q")
-                return HttpResponseRedirect(redirect_url)
-            except OSError, (errno, strerror):
-                if errno == 13:
-                    form.errors['dir_name'] = forms.util.ErrorList([_('Permission denied.')])
-                else:
-                    form.errors['dir_name'] = forms.util.ErrorList([_('Error creating directory.')])
-    else:
-        form = MakeDirForm(abs_path)
-
-    return render_to_response('filebrowser/makedir.html', {
-        'form': form,
-        'query': query,
-        'title': _(u'New Folder'),
-        'settings_var': _get_settings_var(),
-        'breadcrumbs': _get_breadcrumbs(query, path, _(u'New Folder')),
-    }, context_instance=Context(request))
-mkdir = staff_member_required(never_cache(mkdir))
-
-
-@csrf_exempt
-def upload(request):
-    """
-    Multipe File Upload.
-    """
-
-    from django.http import parse_cookie
-
-    # QUERY / PATH CHECK
-    query = request.GET
-    path = _get_path(query.get('dir', ''))
-    if path is None:
-        msg = _('Directory/File does not exist.')
-        request.user.message_set.create(message=msg)
-        return HttpResponseRedirect(reverse("fb_browse"))
-    abs_path = os.path.join(MEDIA_ROOT, DIRECTORY, path)
-
-    # SESSION (used for flash-uploading)
-    cookie_dict = parse_cookie(request.META.get('HTTP_COOKIE', ''))
-    engine = __import__(settings.SESSION_ENGINE, {}, {}, [''])
-    session_key = cookie_dict.get(settings.SESSION_COOKIE_NAME, None)
-
-    return render_to_response('filebrowser/upload.html', {
-        'query': query,
-        'title': _(u'Select files to upload'),
-        'settings_var': _get_settings_var(),
-        'breadcrumbs': _get_breadcrumbs(query, path, _(u'Upload')),
-        'session_key': session_key,
-    }, context_instance=Context(request))
-upload = staff_member_required(never_cache(upload))
-
-
-@csrf_exempt
-def _check_file(request):
-    """
-    Check if file already exists on the server.
-    """
-
-    from django.utils import simplejson
-
-    folder = request.POST.get('folder')
-    fb_uploadurl_re = re.compile(r'^(%s)' % reverse("fb_upload"))
-    folder = fb_uploadurl_re.sub('', folder)
-
-    fileArray = {}
-    if request.method == 'POST':
-        for k, v in request.POST.items():
-            if k != "folder":
-                v = _convert_filename(v)
-                if os.path.isfile(os.path.join(MEDIA_ROOT, DIRECTORY, folder, v)):
-                    fileArray[k] = v
-
-    return HttpResponse(simplejson.dumps(fileArray))
-
-
-# upload signals
-filebrowser_pre_upload = Signal(providing_args=["path", "file"])
-filebrowser_post_upload = Signal(providing_args=["path", "file"])
-
-
-def _upload_file(request):
-    """
-    Upload file to the server.
-    """
-
-    from django.core.files.move import file_move_safe
-
-    if request.method == 'POST':
-        folder = request.POST.get('folder')
-        fb_uploadurl_re = re.compile(r'^(%s)' % reverse("fb_upload"))
-        folder = fb_uploadurl_re.sub('', folder)
-        abs_path = os.path.join(MEDIA_ROOT, DIRECTORY, folder)
-        if request.FILES:
-            filedata = request.FILES['Filedata']
-            filedata.name = _convert_filename(filedata.name)
-            # PRE UPLOAD SIGNAL
-            filebrowser_pre_upload.send(sender=request, path=request.POST.get('folder'), file=filedata)
-            # HANDLE UPLOAD
-            uploadedfile = _handle_file_upload(abs_path, filedata)
-            # MOVE UPLOADED FILE
-            # if file already exists
-            if os.path.isfile(os.path.join(MEDIA_ROOT, DIRECTORY, folder, filedata.name)):
-                old_file = os.path.join(abs_path, filedata.name)
-                new_file = os.path.join(abs_path, uploadedfile)
-                file_move_safe(new_file, old_file)
-            # POST UPLOAD SIGNAL
-            filebrowser_post_upload.send(sender=request, path=request.POST.get('folder'), file=FileObject(os.path.join(DIRECTORY, folder, filedata.name)))
-    return HttpResponse('True')
-_upload_file = csrf_exempt(flash_login_required(_upload_file))
-
-
-# delete signals
-filebrowser_pre_delete = Signal(providing_args=["path", "filename"])
-filebrowser_post_delete = Signal(providing_args=["path", "filename"])
-
-
-def delete(request):
-    """
-    Delete existing File/Directory.
-
-    When trying to delete a Directory, the Directory has to be empty.
-    """
-
-    # QUERY / PATH CHECK
-    query = request.GET
-    path = _get_path(query.get('dir', ''))
-    filename = _get_file(query.get('dir', ''), query.get('filename', ''))
-    if path is None or filename is None:
-        msg = _('Directory/File does not exist.')
-        request.user.message_set.create(message=msg)
-        return HttpResponseRedirect(reverse("fb_browse"))
-    abs_path = os.path.join(MEDIA_ROOT, DIRECTORY, path)
-
-    msg = ""
-    if request.GET:
-        if request.GET.get('filetype') != "Folder":
-            relative_server_path = os.path.join(DIRECTORY, path, filename)
-            try:
-                # PRE DELETE SIGNAL
-                filebrowser_pre_delete.send(sender=request, path=path, filename=filename)
-                # DELETE IMAGE VERSIONS/THUMBNAILS
-                for version in VERSIONS:
-                    try:
-                        os.unlink(os.path.join(MEDIA_ROOT, _get_version_path(relative_server_path, version)))
-                    except:
-                        pass
-                # DELETE FILE
-                os.unlink(os.path.join(abs_path, filename))
-                # POST DELETE SIGNAL
-                filebrowser_post_delete.send(sender=request, path=path, filename=filename)
-                # MESSAGE & REDIRECT
-                msg = _('The file %s was successfully deleted.') % (filename.lower())
-                request.user.message_set.create(message=msg)
-                redirect_url = reverse("fb_browse") + query_helper(query, "", "filename,filetype")
-                return HttpResponseRedirect(redirect_url)
-            except OSError:
-                # todo: define error message
-                msg = OSError
-        else:
-            try:
-                # PRE DELETE SIGNAL
-                filebrowser_pre_delete.send(sender=request, path=path, filename=filename)
-                # DELETE FOLDER
-                os.rmdir(os.path.join(abs_path, filename))
-                # POST DELETE SIGNAL
-                filebrowser_post_delete.send(sender=request, path=path, filename=filename)
-                # MESSAGE & REDIRECT
-                msg = _('The directory %s was successfully deleted.') % (filename.lower())
-                request.user.message_set.create(message=msg)
-                redirect_url = reverse("fb_browse") + query_helper(query, "", "filename,filetype")
-                return HttpResponseRedirect(redirect_url)
-            except OSError:
-                # todo: define error message
-                msg = OSError
-
-    if msg:
-        request.user.message_set.create(message=msg)
-
-    return render_to_response('filebrowser/index.html', {
-        'dir': dir_name,
-        'file': request.GET.get('filename', ''),
-        'query': query,
-        'settings_var': _get_settings_var(),
-        'breadcrumbs': _get_breadcrumbs(query, dir_name, ''),
-    }, context_instance=Context(request))
-delete = staff_member_required(never_cache(delete))
-
-
-# delete signals
-filebrowser_pre_rename = Signal(providing_args=["path", "filename"])
-filebrowser_post_rename = Signal(providing_args=["path", "filename"])
-
-
-def rename(request):
-    """
-    Rename existing File/Directory.
-
-    Includes renaming existing Image Versions/Thumbnails.
-    """
-
-    from filebrowser.forms import RenameForm
-
-    # QUERY / PATH CHECK
-    query = request.GET
-    path = _get_path(query.get('dir', ''))
-    filename = _get_file(query.get('dir', ''), query.get('filename', ''))
-    if path is None or filename is None:
-        msg = _('Directory/File does not exist.')
-        request.user.message_set.create(message=msg)
-        return HttpResponseRedirect(reverse("fb_browse"))
-    abs_path = os.path.join(MEDIA_ROOT, DIRECTORY, path)
-    file_extension = os.path.splitext(filename)[1].lower()
-
-    if request.method == 'POST':
-        form = RenameForm(abs_path, file_extension, request.POST)
-        if form.is_valid():
-            relative_server_path = os.path.join(DIRECTORY, path, filename)
-            new_relative_server_path = os.path.join(DIRECTORY, path, form.cleaned_data['name'] + file_extension)
-            try:
-                # PRE RENAME SIGNAL
-                filebrowser_pre_delete.send(sender=request, path=path, filename=filename)
-                # DELETE IMAGE VERSIONS/THUMBNAILS
-                # regenerating versions/thumbs will be done automatically
-                for version in VERSIONS:
-                    try:
-                        os.unlink(os.path.join(MEDIA_ROOT, _get_version_path(relative_server_path, version)))
-                    except:
-                        pass
-                # RENAME ORIGINAL
-                os.rename(os.path.join(MEDIA_ROOT, relative_server_path), os.path.join(MEDIA_ROOT, new_relative_server_path))
-                # POST RENAME SIGNAL
-                filebrowser_post_delete.send(sender=request, path=path, filename=filename)
-                # MESSAGE & REDIRECT
-                msg = _('Renaming was successful.')
-                request.user.message_set.create(message=msg)
-                redirect_url = reverse("fb_browse") + query_helper(query, "", "filename")
-                return HttpResponseRedirect(redirect_url)
-            except OSError, (errno, strerror):
-                form.errors['name'] = forms.util.ErrorList([_('Error.')])
-    else:
-        form = RenameForm(abs_path, file_extension)
-
-    return render_to_response('filebrowser/rename.html', {
-        'form': form,
-        'query': query,
-        'file_extension': file_extension,
-        'title': _(u'Rename "%s"') % filename,
-        'settings_var': _get_settings_var(),
-        'breadcrumbs': _get_breadcrumbs(query, path, _(u'Rename')),
-    }, context_instance=Context(request))
-rename = staff_member_required(never_cache(rename))
-
-
-def versions(request):
-    """
-    Show all Versions for an Image according to ADMIN_VERSIONS.
-    """
-
-    # QUERY / PATH CHECK
-    query = request.GET
-    path = _get_path(query.get('dir', ''))
-    filename = _get_file(query.get('dir', ''), query.get('filename', ''))
-    if path is None or filename is None:
-        msg = _('Directory/File does not exist.')
-        request.user.message_set.create(message=msg)
-        return HttpResponseRedirect(reverse("fb_browse"))
-    abs_path = os.path.join(MEDIA_ROOT, DIRECTORY, path)
-
-    return render_to_response('filebrowser/versions.html', {
-        'original': _path_to_url(os.path.join(DIRECTORY, path, filename)),
-        'query': query,
-        'title': _(u'Versions for "%s"') % filename,
-        'settings_var': _get_settings_var(),
-        'breadcrumbs': _get_breadcrumbs(query, path, _(u'Versions for "%s"') % filename),
-    }, context_instance=Context(request))
-
-versions = staff_member_required(never_cache(versions))
diff --git a/apps/fileupload/__init__.py b/apps/fileupload/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/apps/fileupload/forms.py b/apps/fileupload/forms.py
new file mode 100644 (file)
index 0000000..f5e1069
--- /dev/null
@@ -0,0 +1,4 @@
+from django import forms
+
+class UploadForm(forms.Form):
+    files = forms.FileField()
diff --git a/apps/fileupload/locale/pl/LC_MESSAGES/django.mo b/apps/fileupload/locale/pl/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..8fdb9c4
Binary files /dev/null and b/apps/fileupload/locale/pl/LC_MESSAGES/django.mo differ
diff --git a/apps/fileupload/locale/pl/LC_MESSAGES/django.po b/apps/fileupload/locale/pl/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..a4b6099
--- /dev/null
@@ -0,0 +1,39 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-03-07 16:27+0100\n"
+"PO-Revision-Date: 2013-03-07 16:27+0100\n"
+"Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#: templates/fileupload/picture_form.html:18
+msgid "Browse:"
+msgstr "Przeglądanie:"
+
+#: templates/fileupload/picture_form.html:35
+msgid "Add files..."
+msgstr "Dodaj pliki..."
+
+#: templates/fileupload/picture_form.html:40
+msgid "Start upload"
+msgstr "Zacznij wysyłać"
+
+#: templates/fileupload/picture_form.html:44
+msgid "Cancel upload"
+msgstr "Anuluj wysyłanie"
+
+#: templates/fileupload/picture_form.html:48
+msgid "Delete"
+msgstr "Usuń"
+
diff --git a/apps/fileupload/models.py b/apps/fileupload/models.py
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
@@ -0,0 +1 @@
+
diff --git a/apps/fileupload/static/fileupload/css/bootstrap-image-gallery.min.css b/apps/fileupload/static/fileupload/css/bootstrap-image-gallery.min.css
new file mode 100644 (file)
index 0000000..a2bffbf
--- /dev/null
@@ -0,0 +1,21 @@
+@charset 'UTF-8';
+.modal-gallery{width:auto;max-height:none;}
+.modal-gallery .modal-body{max-height:none;}
+.modal-gallery .modal-title{display:inline-block;max-height:54px;overflow:hidden;}
+.modal-gallery .modal-image{position:relative;margin:auto;min-width:128px;min-height:128px;overflow:hidden;cursor:pointer;}
+.modal-gallery .modal-image:hover:before,.modal-gallery .modal-image:hover:after{content:'‹';position:absolute;top:50%;left:15px;width:40px;height:40px;margin-top:-20px;font-size:60px;font-weight:100;line-height:30px;color:#ffffff;text-align:center;background:#222222;border:3px solid #ffffff;-webkit-border-radius:23px;-moz-border-radius:23px;border-radius:23px;opacity:0.5;filter:alpha(opacity=50);z-index:1;}
+.modal-gallery .modal-image:hover:after{content:'›';left:auto;right:15px;}
+.modal-single .modal-image:hover:before,.modal-single .modal-image:hover:after{display:none;}
+.modal-loading .modal-image{background:url(../img/loading.gif) center no-repeat;}
+.modal-gallery.fade .modal-image{-webkit-transition:width 0.15s ease, height 0.15s ease;-moz-transition:width 0.15s ease, height 0.15s ease;-ms-transition:width 0.15s ease, height 0.15s ease;-o-transition:width 0.15s ease, height 0.15s ease;transition:width 0.15s ease, height 0.15s ease;}
+.modal-gallery .modal-image *{position:absolute;top:0;opacity:0;filter:alpha(opacity=0);}
+.modal-gallery.fade .modal-image *{-webkit-transition:opacity 0.5s linear;-moz-transition:opacity 0.5s linear;-ms-transition:opacity 0.5s linear;-o-transition:opacity 0.5s linear;transition:opacity 0.5s linear;}
+.modal-gallery .modal-image *.in{opacity:1;filter:alpha(opacity=100);}
+.modal-fullscreen{border:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;background:transparent;overflow:hidden;}
+.modal-fullscreen.modal-loading{border:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
+.modal-fullscreen .modal-body{padding:0;}
+.modal-fullscreen .modal-header,.modal-fullscreen .modal-footer{position:absolute;top:0;right:0;left:0;background:transparent;border:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;opacity:0;z-index:2000;}
+.modal-fullscreen .modal-footer{top:auto;bottom:0;}
+.modal-fullscreen .close,.modal-fullscreen .modal-title{color:#fff;text-shadow:0 0 2px rgba(33, 33, 33, 0.8);}
+.modal-fullscreen .modal-header:hover,.modal-fullscreen .modal-footer:hover{opacity:1;}
+@media (max-width:480px){.modal-gallery .btn span{display:none;}}
diff --git a/apps/fileupload/static/fileupload/css/bootstrap.min.css b/apps/fileupload/static/fileupload/css/bootstrap.min.css
new file mode 100644 (file)
index 0000000..9999524
--- /dev/null
@@ -0,0 +1,766 @@
+article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block;}
+audio,canvas,video{display:inline-block;*display:inline;*zoom:1;}
+audio:not([controls]){display:none;}
+a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;}
+a:hover,a:active{outline:0;}
+sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline;}
+sup{top:-0.5em;}
+sub{bottom:-0.25em;}
+img{max-width:100%;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic;}
+button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle;}
+button,input{*overflow:visible;line-height:normal;}
+button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0;}
+button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button;}
+input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield;}
+input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none;}
+textarea{overflow:auto;vertical-align:top;}
+.clearfix{*zoom:1;}
+.clearfix:before,.clearfix:after{display:table;content:"";}
+.clearfix:after{clear:both;}
+.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0;}
+.input-block-level{display:block;width:100%;min-height:28px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;}
+.row{margin-left:-20px;*zoom:1;}
+.row:before,.row:after{display:table;content:"";}
+.row:after{clear:both;}
+[class*="span"]{float:left;margin-left:20px;}
+.container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px;}
+.span12{width:940px;}
+.span11{width:860px;}
+.span10{width:780px;}
+.span9{width:700px;}
+.span8{width:620px;}
+.span7{width:540px;}
+.span6{width:460px;}
+.span5{width:380px;}
+.span4{width:300px;}
+.span3{width:220px;}
+.span2{width:140px;}
+.span1{width:60px;}
+.offset12{margin-left:980px;}
+.offset11{margin-left:900px;}
+.offset10{margin-left:820px;}
+.offset9{margin-left:740px;}
+.offset8{margin-left:660px;}
+.offset7{margin-left:580px;}
+.offset6{margin-left:500px;}
+.offset5{margin-left:420px;}
+.offset4{margin-left:340px;}
+.offset3{margin-left:260px;}
+.offset2{margin-left:180px;}
+.offset1{margin-left:100px;}
+.row-fluid{width:100%;*zoom:1;}
+.row-fluid:before,.row-fluid:after{display:table;content:"";}
+.row-fluid:after{clear:both;}
+.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:28px;margin-left:2.127659574%;*margin-left:2.0744680846382977%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;}
+.row-fluid [class*="span"]:first-child{margin-left:0;}
+.row-fluid .span12{width:99.99999998999999%;*width:99.94680850063828%;}
+.row-fluid .span11{width:91.489361693%;*width:91.4361702036383%;}
+.row-fluid .span10{width:82.97872339599999%;*width:82.92553190663828%;}
+.row-fluid .span9{width:74.468085099%;*width:74.4148936096383%;}
+.row-fluid .span8{width:65.95744680199999%;*width:65.90425531263828%;}
+.row-fluid .span7{width:57.446808505%;*width:57.3936170156383%;}
+.row-fluid .span6{width:48.93617020799999%;*width:48.88297871863829%;}
+.row-fluid .span5{width:40.425531911%;*width:40.3723404216383%;}
+.row-fluid .span4{width:31.914893614%;*width:31.8617021246383%;}
+.row-fluid .span3{width:23.404255317%;*width:23.3510638276383%;}
+.row-fluid .span2{width:14.89361702%;*width:14.8404255306383%;}
+.row-fluid .span1{width:6.382978723%;*width:6.329787233638298%;}
+.container{margin-right:auto;margin-left:auto;*zoom:1;}
+.container:before,.container:after{display:table;content:"";}
+.container:after{clear:both;}
+.container-fluid{padding-right:20px;padding-left:20px;*zoom:1;}
+.container-fluid:before,.container-fluid:after{display:table;content:"";}
+.container-fluid:after{clear:both;}
+p{margin:0 0 9px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;}
+p small{font-size:11px;color:#999999;}
+.lead{margin-bottom:18px;font-size:20px;font-weight:200;line-height:27px;}
+.page-header{padding-bottom:17px;margin:18px 0;border-bottom:1px solid #eeeeee;}
+.page-header h1{line-height:1;}
+ul,ol{padding:0;margin:0 0 9px 25px;}
+ul ul,ul ol,ol ol,ol ul{margin-bottom:0;}
+ul{list-style:disc;}
+ol{list-style:decimal;}
+li{line-height:18px;}
+ul.unstyled,ol.unstyled{margin-left:0;list-style:none;}
+dl{margin-bottom:18px;}
+dt,dd{line-height:18px;}
+dt{font-weight:bold;line-height:17px;}
+dd{margin-left:9px;}
+.dl-horizontal dt{float:left;width:120px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap;}
+.dl-horizontal dd{margin-left:130px;}
+hr{margin:18px 0;border:0;border-top:1px solid #eeeeee;border-bottom:1px solid #ffffff;}
+strong{font-weight:bold;}
+em{font-style:italic;}
+.muted{color:#999999;}
+abbr[title]{cursor:help;border-bottom:1px dotted #ddd;}
+abbr.initialism{font-size:90%;text-transform:uppercase;}
+blockquote{padding:0 0 0 15px;margin:0 0 18px;border-left:5px solid #eeeeee;}
+blockquote p{margin-bottom:0;font-size:16px;font-weight:300;line-height:22.5px;}
+blockquote small{display:block;line-height:18px;color:#999999;}
+blockquote small:before{content:'\2014 \00A0';}
+blockquote.pull-right{float:right;padding-right:15px;padding-left:0;border-right:5px solid #eeeeee;border-left:0;}
+blockquote.pull-right p,blockquote.pull-right small{text-align:right;}
+q:before,q:after,blockquote:before,blockquote:after{content:"";}
+address{display:block;margin-bottom:18px;font-style:normal;line-height:18px;}
+small{font-size:100%;}
+cite{font-style:normal;}
+code,pre{padding:0 3px 2px;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:12px;color:#333333;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
+code{padding:2px 4px;color:#d14;background-color:#f7f7f9;border:1px solid #e1e1e8;}
+pre{display:block;padding:8.5px;margin:0 0 9px;font-size:12.025px;line-height:18px;word-break:break-all;word-wrap:break-word;white-space:pre;white-space:pre-wrap;background-color:#f5f5f5;border:1px solid #ccc;border:1px solid rgba(0, 0, 0, 0.15);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
+pre.prettyprint{margin-bottom:18px;}
+pre code{padding:0;color:inherit;background-color:transparent;border:0;}
+.pre-scrollable{max-height:340px;overflow-y:scroll;}
+form{margin:0 0 18px;}
+fieldset{padding:0;margin:0;border:0;}
+legend{display:block;width:100%;padding:0;margin-bottom:27px;font-size:19.5px;line-height:36px;color:#333333;border:0;border-bottom:1px solid #eee;}
+legend small{font-size:13.5px;color:#999999;}
+label,input,button,select,textarea{font-size:13px;font-weight:normal;line-height:18px;}
+input,button,select,textarea{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;}
+label{display:block;margin-bottom:5px;color:#333333;}
+input,textarea,select,.uneditable-input{display:inline-block;width:210px;height:18px;padding:4px;margin-bottom:9px;font-size:13px;line-height:18px;color:#555555;background-color:#ffffff;border:1px solid #cccccc;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
+.uneditable-textarea{width:auto;height:auto;}
+label input,label textarea,label select{display:block;}
+input[type="image"],input[type="checkbox"],input[type="radio"]{width:auto;height:auto;padding:0;margin:3px 0;*margin-top:0;line-height:normal;cursor:pointer;background-color:transparent;border:0 \9;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}
+input[type="image"]{border:0;}
+input[type="file"]{width:auto;padding:initial;line-height:initial;background-color:#ffffff;background-color:initial;border:initial;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
+input[type="button"],input[type="reset"],input[type="submit"]{width:auto;height:auto;}
+select,input[type="file"]{height:28px;*margin-top:4px;line-height:28px;}
+input[type="file"]{line-height:18px \9;}
+select{width:220px;background-color:#ffffff;}
+select[multiple],select[size]{height:auto;}
+input[type="image"]{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
+textarea{height:auto;}
+input[type="hidden"]{display:none;}
+.radio,.checkbox{min-height:18px;padding-left:18px;}
+.radio input[type="radio"],.checkbox input[type="checkbox"]{float:left;margin-left:-18px;}
+.controls>.radio:first-child,.controls>.checkbox:first-child{padding-top:5px;}
+.radio.inline,.checkbox.inline{display:inline-block;padding-top:5px;margin-bottom:0;vertical-align:middle;}
+.radio.inline+.radio.inline,.checkbox.inline+.checkbox.inline{margin-left:10px;}
+input,textarea{-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-webkit-transition:border linear 0.2s,box-shadow linear 0.2s;-moz-transition:border linear 0.2s,box-shadow linear 0.2s;-ms-transition:border linear 0.2s,box-shadow linear 0.2s;-o-transition:border linear 0.2s,box-shadow linear 0.2s;transition:border linear 0.2s,box-shadow linear 0.2s;}
+input:focus,textarea:focus{border-color:rgba(82, 168, 236, 0.8);outline:0;outline:thin dotted \9;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6);}
+input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus,select:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
+.input-mini{width:60px;}
+.input-small{width:90px;}
+.input-medium{width:150px;}
+.input-large{width:210px;}
+.input-xlarge{width:270px;}
+.input-xxlarge{width:530px;}
+input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input[class*="span"],.row-fluid input[class*="span"],.row-fluid select[class*="span"],.row-fluid textarea[class*="span"],.row-fluid .uneditable-input[class*="span"]{float:none;margin-left:0;}
+input,textarea,.uneditable-input{margin-left:0;}
+input.span12,textarea.span12,.uneditable-input.span12{width:930px;}
+input.span11,textarea.span11,.uneditable-input.span11{width:850px;}
+input.span10,textarea.span10,.uneditable-input.span10{width:770px;}
+input.span9,textarea.span9,.uneditable-input.span9{width:690px;}
+input.span8,textarea.span8,.uneditable-input.span8{width:610px;}
+input.span7,textarea.span7,.uneditable-input.span7{width:530px;}
+input.span6,textarea.span6,.uneditable-input.span6{width:450px;}
+input.span5,textarea.span5,.uneditable-input.span5{width:370px;}
+input.span4,textarea.span4,.uneditable-input.span4{width:290px;}
+input.span3,textarea.span3,.uneditable-input.span3{width:210px;}
+input.span2,textarea.span2,.uneditable-input.span2{width:130px;}
+input.span1,textarea.span1,.uneditable-input.span1{width:50px;}
+input[disabled],select[disabled],textarea[disabled],input[readonly],select[readonly],textarea[readonly]{cursor:not-allowed;background-color:#eeeeee;border-color:#ddd;}
+input[type="radio"][disabled],input[type="checkbox"][disabled],input[type="radio"][readonly],input[type="checkbox"][readonly]{background-color:transparent;}
+.control-group.warning>label,.control-group.warning .help-block,.control-group.warning .help-inline{color:#c09853;}
+.control-group.warning input,.control-group.warning select,.control-group.warning textarea{color:#c09853;border-color:#c09853;}
+.control-group.warning input:focus,.control-group.warning select:focus,.control-group.warning textarea:focus{border-color:#a47e3c;-webkit-box-shadow:0 0 6px #dbc59e;-moz-box-shadow:0 0 6px #dbc59e;box-shadow:0 0 6px #dbc59e;}
+.control-group.warning .input-prepend .add-on,.control-group.warning .input-append .add-on{color:#c09853;background-color:#fcf8e3;border-color:#c09853;}
+.control-group.error>label,.control-group.error .help-block,.control-group.error .help-inline{color:#b94a48;}
+.control-group.error input,.control-group.error select,.control-group.error textarea{color:#b94a48;border-color:#b94a48;}
+.control-group.error input:focus,.control-group.error select:focus,.control-group.error textarea:focus{border-color:#953b39;-webkit-box-shadow:0 0 6px #d59392;-moz-box-shadow:0 0 6px #d59392;box-shadow:0 0 6px #d59392;}
+.control-group.error .input-prepend .add-on,.control-group.error .input-append .add-on{color:#b94a48;background-color:#f2dede;border-color:#b94a48;}
+.control-group.success>label,.control-group.success .help-block,.control-group.success .help-inline{color:#468847;}
+.control-group.success input,.control-group.success select,.control-group.success textarea{color:#468847;border-color:#468847;}
+.control-group.success input:focus,.control-group.success select:focus,.control-group.success textarea:focus{border-color:#356635;-webkit-box-shadow:0 0 6px #7aba7b;-moz-box-shadow:0 0 6px #7aba7b;box-shadow:0 0 6px #7aba7b;}
+.control-group.success .input-prepend .add-on,.control-group.success .input-append .add-on{color:#468847;background-color:#dff0d8;border-color:#468847;}
+input:focus:required:invalid,textarea:focus:required:invalid,select:focus:required:invalid{color:#b94a48;border-color:#ee5f5b;}
+input:focus:required:invalid:focus,textarea:focus:required:invalid:focus,select:focus:required:invalid:focus{border-color:#e9322d;-webkit-box-shadow:0 0 6px #f8b9b7;-moz-box-shadow:0 0 6px #f8b9b7;box-shadow:0 0 6px #f8b9b7;}
+.form-actions{padding:17px 20px 18px;margin-top:18px;margin-bottom:18px;background-color:#f5f5f5;border-top:1px solid #ddd;*zoom:1;}
+.form-actions:before,.form-actions:after{display:table;content:"";}
+.form-actions:after{clear:both;}
+.uneditable-input{overflow:hidden;white-space:nowrap;cursor:not-allowed;background-color:#ffffff;border-color:#eee;-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.025);-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.025);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.025);}
+:-moz-placeholder{color:#999999;}
+::-webkit-input-placeholder{color:#999999;}
+.help-block,.help-inline{color:#555555;}
+.help-block{display:block;margin-bottom:9px;}
+.help-inline{display:inline-block;*display:inline;padding-left:5px;vertical-align:middle;*zoom:1;}
+.input-prepend,.input-append{margin-bottom:5px;}
+.input-prepend input,.input-append input,.input-prepend select,.input-append select,.input-prepend .uneditable-input,.input-append .uneditable-input{position:relative;margin-bottom:0;*margin-left:0;vertical-align:middle;-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;}
+.input-prepend input:focus,.input-append input:focus,.input-prepend select:focus,.input-append select:focus,.input-prepend .uneditable-input:focus,.input-append .uneditable-input:focus{z-index:2;}
+.input-prepend .uneditable-input,.input-append .uneditable-input{border-left-color:#ccc;}
+.input-prepend .add-on,.input-append .add-on{display:inline-block;width:auto;height:18px;min-width:16px;padding:4px 5px;font-weight:normal;line-height:18px;text-align:center;text-shadow:0 1px 0 #ffffff;vertical-align:middle;background-color:#eeeeee;border:1px solid #ccc;}
+.input-prepend .add-on,.input-append .add-on,.input-prepend .btn,.input-append .btn{margin-left:-1px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}
+.input-prepend .active,.input-append .active{background-color:#a9dba9;border-color:#46a546;}
+.input-prepend .add-on,.input-prepend .btn{margin-right:-1px;}
+.input-prepend .add-on:first-child,.input-prepend .btn:first-child{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;}
+.input-append input,.input-append select,.input-append .uneditable-input{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;}
+.input-append .uneditable-input{border-right-color:#ccc;border-left-color:#eee;}
+.input-append .add-on:last-child,.input-append .btn:last-child{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;}
+.input-prepend.input-append input,.input-prepend.input-append select,.input-prepend.input-append .uneditable-input{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}
+.input-prepend.input-append .add-on:first-child,.input-prepend.input-append .btn:first-child{margin-right:-1px;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;}
+.input-prepend.input-append .add-on:last-child,.input-prepend.input-append .btn:last-child{margin-left:-1px;-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;}
+.search-query{padding-right:14px;padding-right:4px \9;padding-left:14px;padding-left:4px \9;margin-bottom:0;-webkit-border-radius:14px;-moz-border-radius:14px;border-radius:14px;}
+.form-search input,.form-inline input,.form-horizontal input,.form-search textarea,.form-inline textarea,.form-horizontal textarea,.form-search select,.form-inline select,.form-horizontal select,.form-search .help-inline,.form-inline .help-inline,.form-horizontal .help-inline,.form-search .uneditable-input,.form-inline .uneditable-input,.form-horizontal .uneditable-input,.form-search .input-prepend,.form-inline .input-prepend,.form-horizontal .input-prepend,.form-search .input-append,.form-inline .input-append,.form-horizontal .input-append{display:inline-block;*display:inline;margin-bottom:0;*zoom:1;}
+.form-search .hide,.form-inline .hide,.form-horizontal .hide{display:none;}
+.form-search label,.form-inline label{display:inline-block;}
+.form-search .input-append,.form-inline .input-append,.form-search .input-prepend,.form-inline .input-prepend{margin-bottom:0;}
+.form-search .radio,.form-search .checkbox,.form-inline .radio,.form-inline .checkbox{padding-left:0;margin-bottom:0;vertical-align:middle;}
+.form-search .radio input[type="radio"],.form-search .checkbox input[type="checkbox"],.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{float:left;margin-right:3px;margin-left:0;}
+.control-group{margin-bottom:9px;}
+legend+.control-group{margin-top:18px;-webkit-margin-top-collapse:separate;}
+.form-horizontal .control-group{margin-bottom:18px;*zoom:1;}
+.form-horizontal .control-group:before,.form-horizontal .control-group:after{display:table;content:"";}
+.form-horizontal .control-group:after{clear:both;}
+.form-horizontal .control-label{float:left;width:140px;padding-top:5px;text-align:right;}
+.form-horizontal .controls{*display:inline-block;*padding-left:20px;margin-left:160px;*margin-left:0;}
+.form-horizontal .controls:first-child{*padding-left:160px;}
+.form-horizontal .help-block{margin-top:9px;margin-bottom:0;}
+.form-horizontal .form-actions{padding-left:160px;}
+table{max-width:100%;background-color:transparent;border-collapse:collapse;border-spacing:0;}
+.table{width:100%;margin-bottom:18px;}
+.table th,.table td{padding:8px;line-height:18px;text-align:left;vertical-align:top;border-top:1px solid #dddddd;}
+.table th{font-weight:bold;}
+.table thead th{vertical-align:bottom;}
+.table caption+thead tr:first-child th,.table caption+thead tr:first-child td,.table colgroup+thead tr:first-child th,.table colgroup+thead tr:first-child td,.table thead:first-child tr:first-child th,.table thead:first-child tr:first-child td{border-top:0;}
+.table tbody+tbody{border-top:2px solid #dddddd;}
+.table-condensed th,.table-condensed td{padding:4px 5px;}
+.table-bordered{border:1px solid #dddddd;border-collapse:separate;*border-collapse:collapsed;border-left:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
+.table-bordered th,.table-bordered td{border-left:1px solid #dddddd;}
+.table-bordered caption+thead tr:first-child th,.table-bordered caption+tbody tr:first-child th,.table-bordered caption+tbody tr:first-child td,.table-bordered colgroup+thead tr:first-child th,.table-bordered colgroup+tbody tr:first-child th,.table-bordered colgroup+tbody tr:first-child td,.table-bordered thead:first-child tr:first-child th,.table-bordered tbody:first-child tr:first-child th,.table-bordered tbody:first-child tr:first-child td{border-top:0;}
+.table-bordered thead:first-child tr:first-child th:first-child,.table-bordered tbody:first-child tr:first-child td:first-child{-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topleft:4px;}
+.table-bordered thead:first-child tr:first-child th:last-child,.table-bordered tbody:first-child tr:first-child td:last-child{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-topright:4px;}
+.table-bordered thead:last-child tr:last-child th:first-child,.table-bordered tbody:last-child tr:last-child td:first-child{-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;}
+.table-bordered thead:last-child tr:last-child th:last-child,.table-bordered tbody:last-child tr:last-child td:last-child{-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;}
+.table-striped tbody tr:nth-child(odd) td,.table-striped tbody tr:nth-child(odd) th{background-color:#f9f9f9;}
+.table tbody tr:hover td,.table tbody tr:hover th{background-color:#f5f5f5;}
+table .span1{float:none;width:44px;margin-left:0;}
+table .span2{float:none;width:124px;margin-left:0;}
+table .span3{float:none;width:204px;margin-left:0;}
+table .span4{float:none;width:284px;margin-left:0;}
+table .span5{float:none;width:364px;margin-left:0;}
+table .span6{float:none;width:444px;margin-left:0;}
+table .span7{float:none;width:524px;margin-left:0;}
+table .span8{float:none;width:604px;margin-left:0;}
+table .span9{float:none;width:684px;margin-left:0;}
+table .span10{float:none;width:764px;margin-left:0;}
+table .span11{float:none;width:844px;margin-left:0;}
+table .span12{float:none;width:924px;margin-left:0;}
+table .span13{float:none;width:1004px;margin-left:0;}
+table .span14{float:none;width:1084px;margin-left:0;}
+table .span15{float:none;width:1164px;margin-left:0;}
+table .span16{float:none;width:1244px;margin-left:0;}
+table .span17{float:none;width:1324px;margin-left:0;}
+table .span18{float:none;width:1404px;margin-left:0;}
+table .span19{float:none;width:1484px;margin-left:0;}
+table .span20{float:none;width:1564px;margin-left:0;}
+table .span21{float:none;width:1644px;margin-left:0;}
+table .span22{float:none;width:1724px;margin-left:0;}
+table .span23{float:none;width:1804px;margin-left:0;}
+table .span24{float:none;width:1884px;margin-left:0;}
+[class^="icon-"],[class*=" icon-"]{display:inline-block;width:14px;height:14px;*margin-right:.3em;line-height:14px;vertical-align:text-top;background-image:url("../img/glyphicons-halflings.png");background-position:14px 14px;background-repeat:no-repeat;}
+[class^="icon-"]:last-child,[class*=" icon-"]:last-child{*margin-left:0;}
+.icon-white{background-image:url("../img/glyphicons-halflings-white.png");}
+.icon-glass{background-position:0 0;}
+.icon-music{background-position:-24px 0;}
+.icon-search{background-position:-48px 0;}
+.icon-envelope{background-position:-72px 0;}
+.icon-heart{background-position:-96px 0;}
+.icon-star{background-position:-120px 0;}
+.icon-star-empty{background-position:-144px 0;}
+.icon-user{background-position:-168px 0;}
+.icon-film{background-position:-192px 0;}
+.icon-th-large{background-position:-216px 0;}
+.icon-th{background-position:-240px 0;}
+.icon-th-list{background-position:-264px 0;}
+.icon-ok{background-position:-288px 0;}
+.icon-remove{background-position:-312px 0;}
+.icon-zoom-in{background-position:-336px 0;}
+.icon-zoom-out{background-position:-360px 0;}
+.icon-off{background-position:-384px 0;}
+.icon-signal{background-position:-408px 0;}
+.icon-cog{background-position:-432px 0;}
+.icon-trash{background-position:-456px 0;}
+.icon-home{background-position:0 -24px;}
+.icon-file{background-position:-24px -24px;}
+.icon-time{background-position:-48px -24px;}
+.icon-road{background-position:-72px -24px;}
+.icon-download-alt{background-position:-96px -24px;}
+.icon-download{background-position:-120px -24px;}
+.icon-upload{background-position:-144px -24px;}
+.icon-inbox{background-position:-168px -24px;}
+.icon-play-circle{background-position:-192px -24px;}
+.icon-repeat{background-position:-216px -24px;}
+.icon-refresh{background-position:-240px -24px;}
+.icon-list-alt{background-position:-264px -24px;}
+.icon-lock{background-position:-287px -24px;}
+.icon-flag{background-position:-312px -24px;}
+.icon-headphones{background-position:-336px -24px;}
+.icon-volume-off{background-position:-360px -24px;}
+.icon-volume-down{background-position:-384px -24px;}
+.icon-volume-up{background-position:-408px -24px;}
+.icon-qrcode{background-position:-432px -24px;}
+.icon-barcode{background-position:-456px -24px;}
+.icon-tag{background-position:0 -48px;}
+.icon-tags{background-position:-25px -48px;}
+.icon-book{background-position:-48px -48px;}
+.icon-bookmark{background-position:-72px -48px;}
+.icon-print{background-position:-96px -48px;}
+.icon-camera{background-position:-120px -48px;}
+.icon-font{background-position:-144px -48px;}
+.icon-bold{background-position:-167px -48px;}
+.icon-italic{background-position:-192px -48px;}
+.icon-text-height{background-position:-216px -48px;}
+.icon-text-width{background-position:-240px -48px;}
+.icon-align-left{background-position:-264px -48px;}
+.icon-align-center{background-position:-288px -48px;}
+.icon-align-right{background-position:-312px -48px;}
+.icon-align-justify{background-position:-336px -48px;}
+.icon-list{background-position:-360px -48px;}
+.icon-indent-left{background-position:-384px -48px;}
+.icon-indent-right{background-position:-408px -48px;}
+.icon-facetime-video{background-position:-432px -48px;}
+.icon-picture{background-position:-456px -48px;}
+.icon-pencil{background-position:0 -72px;}
+.icon-map-marker{background-position:-24px -72px;}
+.icon-adjust{background-position:-48px -72px;}
+.icon-tint{background-position:-72px -72px;}
+.icon-edit{background-position:-96px -72px;}
+.icon-share{background-position:-120px -72px;}
+.icon-check{background-position:-144px -72px;}
+.icon-move{background-position:-168px -72px;}
+.icon-step-backward{background-position:-192px -72px;}
+.icon-fast-backward{background-position:-216px -72px;}
+.icon-backward{background-position:-240px -72px;}
+.icon-play{background-position:-264px -72px;}
+.icon-pause{background-position:-288px -72px;}
+.icon-stop{background-position:-312px -72px;}
+.icon-forward{background-position:-336px -72px;}
+.icon-fast-forward{background-position:-360px -72px;}
+.icon-step-forward{background-position:-384px -72px;}
+.icon-eject{background-position:-408px -72px;}
+.icon-chevron-left{background-position:-432px -72px;}
+.icon-chevron-right{background-position:-456px -72px;}
+.icon-plus-sign{background-position:0 -96px;}
+.icon-minus-sign{background-position:-24px -96px;}
+.icon-remove-sign{background-position:-48px -96px;}
+.icon-ok-sign{background-position:-72px -96px;}
+.icon-question-sign{background-position:-96px -96px;}
+.icon-info-sign{background-position:-120px -96px;}
+.icon-screenshot{background-position:-144px -96px;}
+.icon-remove-circle{background-position:-168px -96px;}
+.icon-ok-circle{background-position:-192px -96px;}
+.icon-ban-circle{background-position:-216px -96px;}
+.icon-arrow-left{background-position:-240px -96px;}
+.icon-arrow-right{background-position:-264px -96px;}
+.icon-arrow-up{background-position:-289px -96px;}
+.icon-arrow-down{background-position:-312px -96px;}
+.icon-share-alt{background-position:-336px -96px;}
+.icon-resize-full{background-position:-360px -96px;}
+.icon-resize-small{background-position:-384px -96px;}
+.icon-plus{background-position:-408px -96px;}
+.icon-minus{background-position:-433px -96px;}
+.icon-asterisk{background-position:-456px -96px;}
+.icon-exclamation-sign{background-position:0 -120px;}
+.icon-gift{background-position:-24px -120px;}
+.icon-leaf{background-position:-48px -120px;}
+.icon-fire{background-position:-72px -120px;}
+.icon-eye-open{background-position:-96px -120px;}
+.icon-eye-close{background-position:-120px -120px;}
+.icon-warning-sign{background-position:-144px -120px;}
+.icon-plane{background-position:-168px -120px;}
+.icon-calendar{background-position:-192px -120px;}
+.icon-random{background-position:-216px -120px;}
+.icon-comment{background-position:-240px -120px;}
+.icon-magnet{background-position:-264px -120px;}
+.icon-chevron-up{background-position:-288px -120px;}
+.icon-chevron-down{background-position:-313px -119px;}
+.icon-retweet{background-position:-336px -120px;}
+.icon-shopping-cart{background-position:-360px -120px;}
+.icon-folder-close{background-position:-384px -120px;}
+.icon-folder-open{background-position:-408px -120px;}
+.icon-resize-vertical{background-position:-432px -119px;}
+.icon-resize-horizontal{background-position:-456px -118px;}
+.icon-hdd{background-position:0 -144px;}
+.icon-bullhorn{background-position:-24px -144px;}
+.icon-bell{background-position:-48px -144px;}
+.icon-certificate{background-position:-72px -144px;}
+.icon-thumbs-up{background-position:-96px -144px;}
+.icon-thumbs-down{background-position:-120px -144px;}
+.icon-hand-right{background-position:-144px -144px;}
+.icon-hand-left{background-position:-168px -144px;}
+.icon-hand-up{background-position:-192px -144px;}
+.icon-hand-down{background-position:-216px -144px;}
+.icon-circle-arrow-right{background-position:-240px -144px;}
+.icon-circle-arrow-left{background-position:-264px -144px;}
+.icon-circle-arrow-up{background-position:-288px -144px;}
+.icon-circle-arrow-down{background-position:-312px -144px;}
+.icon-globe{background-position:-336px -144px;}
+.icon-wrench{background-position:-360px -144px;}
+.icon-tasks{background-position:-384px -144px;}
+.icon-filter{background-position:-408px -144px;}
+.icon-briefcase{background-position:-432px -144px;}
+.icon-fullscreen{background-position:-456px -144px;}
+.dropup,.dropdown{position:relative;}
+.dropdown-toggle{*margin-bottom:-3px;}
+.dropdown-toggle:active,.open .dropdown-toggle{outline:0;}
+.caret{display:inline-block;width:0;height:0;vertical-align:top;border-top:4px solid #000000;border-right:4px solid transparent;border-left:4px solid transparent;content:"";opacity:0.3;filter:alpha(opacity=30);}
+.dropdown .caret{margin-top:8px;margin-left:2px;}
+.dropdown:hover .caret,.open .caret{opacity:1;filter:alpha(opacity=100);}
+.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:4px 0;margin:1px 0 0;list-style:none;background-color:#ffffff;border:1px solid #ccc;border:1px solid rgba(0, 0, 0, 0.2);*border-right-width:2px;*border-bottom-width:2px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);-moz-box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;}
+.dropdown-menu.pull-right{right:0;left:auto;}
+.dropdown-menu .divider{*width:100%;height:1px;margin:8px 1px;*margin:-5px 0 5px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #ffffff;}
+.dropdown-menu a{display:block;padding:3px 15px;clear:both;font-weight:normal;line-height:18px;color:#333333;white-space:nowrap;}
+.dropdown-menu li>a:hover,.dropdown-menu .active>a,.dropdown-menu .active>a:hover{color:#ffffff;text-decoration:none;background-color:#0088cc;}
+.open{*z-index:1000;}
+.open .dropdown-menu{display:block;}
+.pull-right .dropdown-menu{right:0;left:auto;}
+.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid #000000;content:"\2191";}
+.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px;}
+.typeahead{margin-top:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
+.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #eee;border:1px solid rgba(0, 0, 0, 0.05);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);}
+.well blockquote{border-color:#ddd;border-color:rgba(0, 0, 0, 0.15);}
+.well-large{padding:24px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;}
+.well-small{padding:9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
+.fade{opacity:0;-webkit-transition:opacity 0.15s linear;-moz-transition:opacity 0.15s linear;-ms-transition:opacity 0.15s linear;-o-transition:opacity 0.15s linear;transition:opacity 0.15s linear;}
+.fade.in{opacity:1;}
+.collapse{position:relative;height:0;overflow:hidden;-webkit-transition:height 0.35s ease;-moz-transition:height 0.35s ease;-ms-transition:height 0.35s ease;-o-transition:height 0.35s ease;transition:height 0.35s ease;}
+.collapse.in{height:auto;}
+.close{float:right;font-size:20px;font-weight:bold;line-height:18px;color:#000000;text-shadow:0 1px 0 #ffffff;opacity:0.2;filter:alpha(opacity=20);}
+.close:hover{color:#000000;text-decoration:none;cursor:pointer;opacity:0.4;filter:alpha(opacity=40);}
+button.close{padding:0;cursor:pointer;background-color:transparent;border:0;-webkit-appearance:none;}
+.btn{display:inline-block;*display:inline;padding:4px 10px 4px;margin-bottom:0;*margin-left:.3em;font-size:13px;line-height:18px;*line-height:20px;color:#333333;text-align:center;text-shadow:0 1px 1px rgba(255, 255, 255, 0.75);vertical-align:middle;cursor:pointer;background-color:#f5f5f5;*background-color:#e6e6e6;background-image:-ms-linear-gradient(top, #ffffff, #e6e6e6);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));background-image:-webkit-linear-gradient(top, #ffffff, #e6e6e6);background-image:-o-linear-gradient(top, #ffffff, #e6e6e6);background-image:linear-gradient(top, #ffffff, #e6e6e6);background-image:-moz-linear-gradient(top, #ffffff, #e6e6e6);background-repeat:repeat-x;border:1px solid #cccccc;*border:0;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false);*zoom:1;-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);}
+.btn:hover,.btn:active,.btn.active,.btn.disabled,.btn[disabled]{background-color:#e6e6e6;*background-color:#d9d9d9;}
+.btn:active,.btn.active{background-color:#cccccc \9;}
+.btn:first-child{*margin-left:0;}
+.btn:hover{color:#333333;text-decoration:none;background-color:#e6e6e6;*background-color:#d9d9d9;background-position:0 -15px;-webkit-transition:background-position 0.1s linear;-moz-transition:background-position 0.1s linear;-ms-transition:background-position 0.1s linear;-o-transition:background-position 0.1s linear;transition:background-position 0.1s linear;}
+.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;}
+.btn.active,.btn:active{background-color:#e6e6e6;background-color:#d9d9d9 \9;background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);}
+.btn.disabled,.btn[disabled]{cursor:default;background-color:#e6e6e6;background-image:none;opacity:0.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
+.btn-large{padding:9px 14px;font-size:15px;line-height:normal;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;}
+.btn-large [class^="icon-"]{margin-top:1px;}
+.btn-small{padding:5px 9px;font-size:11px;line-height:16px;}
+.btn-small [class^="icon-"]{margin-top:-1px;}
+.btn-mini{padding:2px 6px;font-size:11px;line-height:14px;}
+.btn-primary,.btn-primary:hover,.btn-warning,.btn-warning:hover,.btn-danger,.btn-danger:hover,.btn-success,.btn-success:hover,.btn-info,.btn-info:hover,.btn-inverse,.btn-inverse:hover{color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);}
+.btn-primary.active,.btn-warning.active,.btn-danger.active,.btn-success.active,.btn-info.active,.btn-inverse.active{color:rgba(255, 255, 255, 0.75);}
+.btn{border-color:#ccc;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);}
+.btn-primary{background-color:#0074cc;*background-color:#0055cc;background-image:-ms-linear-gradient(top, #0088cc, #0055cc);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0055cc));background-image:-webkit-linear-gradient(top, #0088cc, #0055cc);background-image:-o-linear-gradient(top, #0088cc, #0055cc);background-image:-moz-linear-gradient(top, #0088cc, #0055cc);background-image:linear-gradient(top, #0088cc, #0055cc);background-repeat:repeat-x;border-color:#0055cc #0055cc #003580;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#0088cc', endColorstr='#0055cc', GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false);}
+.btn-primary:hover,.btn-primary:active,.btn-primary.active,.btn-primary.disabled,.btn-primary[disabled]{background-color:#0055cc;*background-color:#004ab3;}
+.btn-primary:active,.btn-primary.active{background-color:#004099 \9;}
+.btn-warning{background-color:#faa732;*background-color:#f89406;background-image:-ms-linear-gradient(top, #fbb450, #f89406);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));background-image:-webkit-linear-gradient(top, #fbb450, #f89406);background-image:-o-linear-gradient(top, #fbb450, #f89406);background-image:-moz-linear-gradient(top, #fbb450, #f89406);background-image:linear-gradient(top, #fbb450, #f89406);background-repeat:repeat-x;border-color:#f89406 #f89406 #ad6704;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false);}
+.btn-warning:hover,.btn-warning:active,.btn-warning.active,.btn-warning.disabled,.btn-warning[disabled]{background-color:#f89406;*background-color:#df8505;}
+.btn-warning:active,.btn-warning.active{background-color:#c67605 \9;}
+.btn-danger{background-color:#da4f49;*background-color:#bd362f;background-image:-ms-linear-gradient(top, #ee5f5b, #bd362f);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));background-image:-webkit-linear-gradient(top, #ee5f5b, #bd362f);background-image:-o-linear-gradient(top, #ee5f5b, #bd362f);background-image:-moz-linear-gradient(top, #ee5f5b, #bd362f);background-image:linear-gradient(top, #ee5f5b, #bd362f);background-repeat:repeat-x;border-color:#bd362f #bd362f #802420;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#bd362f', GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false);}
+.btn-danger:hover,.btn-danger:active,.btn-danger.active,.btn-danger.disabled,.btn-danger[disabled]{background-color:#bd362f;*background-color:#a9302a;}
+.btn-danger:active,.btn-danger.active{background-color:#942a25 \9;}
+.btn-success{background-color:#5bb75b;*background-color:#51a351;background-image:-ms-linear-gradient(top, #62c462, #51a351);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));background-image:-webkit-linear-gradient(top, #62c462, #51a351);background-image:-o-linear-gradient(top, #62c462, #51a351);background-image:-moz-linear-gradient(top, #62c462, #51a351);background-image:linear-gradient(top, #62c462, #51a351);background-repeat:repeat-x;border-color:#51a351 #51a351 #387038;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#62c462', endColorstr='#51a351', GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false);}
+.btn-success:hover,.btn-success:active,.btn-success.active,.btn-success.disabled,.btn-success[disabled]{background-color:#51a351;*background-color:#499249;}
+.btn-success:active,.btn-success.active{background-color:#408140 \9;}
+.btn-info{background-color:#49afcd;*background-color:#2f96b4;background-image:-ms-linear-gradient(top, #5bc0de, #2f96b4);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));background-image:-webkit-linear-gradient(top, #5bc0de, #2f96b4);background-image:-o-linear-gradient(top, #5bc0de, #2f96b4);background-image:-moz-linear-gradient(top, #5bc0de, #2f96b4);background-image:linear-gradient(top, #5bc0de, #2f96b4);background-repeat:repeat-x;border-color:#2f96b4 #2f96b4 #1f6377;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#5bc0de', endColorstr='#2f96b4', GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false);}
+.btn-info:hover,.btn-info:active,.btn-info.active,.btn-info.disabled,.btn-info[disabled]{background-color:#2f96b4;*background-color:#2a85a0;}
+.btn-info:active,.btn-info.active{background-color:#24748c \9;}
+.btn-inverse{background-color:#414141;*background-color:#222222;background-image:-ms-linear-gradient(top, #555555, #222222);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#555555), to(#222222));background-image:-webkit-linear-gradient(top, #555555, #222222);background-image:-o-linear-gradient(top, #555555, #222222);background-image:-moz-linear-gradient(top, #555555, #222222);background-image:linear-gradient(top, #555555, #222222);background-repeat:repeat-x;border-color:#222222 #222222 #000000;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#555555', endColorstr='#222222', GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false);}
+.btn-inverse:hover,.btn-inverse:active,.btn-inverse.active,.btn-inverse.disabled,.btn-inverse[disabled]{background-color:#222222;*background-color:#151515;}
+.btn-inverse:active,.btn-inverse.active{background-color:#080808 \9;}
+button.btn,input[type="submit"].btn{*padding-top:2px;*padding-bottom:2px;}
+button.btn::-moz-focus-inner,input[type="submit"].btn::-moz-focus-inner{padding:0;border:0;}
+button.btn.btn-large,input[type="submit"].btn.btn-large{*padding-top:7px;*padding-bottom:7px;}
+button.btn.btn-small,input[type="submit"].btn.btn-small{*padding-top:3px;*padding-bottom:3px;}
+button.btn.btn-mini,input[type="submit"].btn.btn-mini{*padding-top:1px;*padding-bottom:1px;}
+.btn-group{position:relative;*margin-left:.3em;*zoom:1;}
+.btn-group:before,.btn-group:after{display:table;content:"";}
+.btn-group:after{clear:both;}
+.btn-group:first-child{*margin-left:0;}
+.btn-group+.btn-group{margin-left:5px;}
+.btn-toolbar{margin-top:9px;margin-bottom:9px;}
+.btn-toolbar .btn-group{display:inline-block;*display:inline;*zoom:1;}
+.btn-group>.btn{position:relative;float:left;margin-left:-1px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}
+.btn-group>.btn:first-child{margin-left:0;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-bottomleft:4px;-moz-border-radius-topleft:4px;}
+.btn-group>.btn:last-child,.btn-group>.dropdown-toggle{-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-bottomright:4px;}
+.btn-group>.btn.large:first-child{margin-left:0;-webkit-border-bottom-left-radius:6px;border-bottom-left-radius:6px;-webkit-border-top-left-radius:6px;border-top-left-radius:6px;-moz-border-radius-bottomleft:6px;-moz-border-radius-topleft:6px;}
+.btn-group>.btn.large:last-child,.btn-group>.large.dropdown-toggle{-webkit-border-top-right-radius:6px;border-top-right-radius:6px;-webkit-border-bottom-right-radius:6px;border-bottom-right-radius:6px;-moz-border-radius-topright:6px;-moz-border-radius-bottomright:6px;}
+.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active{z-index:2;}
+.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0;}
+.btn-group>.dropdown-toggle{*padding-top:4px;padding-right:8px;*padding-bottom:4px;padding-left:8px;-webkit-box-shadow:inset 1px 0 0 rgba(255, 255, 255, 0.125),inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 1px 0 0 rgba(255, 255, 255, 0.125),inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 1px 0 0 rgba(255, 255, 255, 0.125),inset 0 1px 0 rgba(255, 255, 255, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);}
+.btn-group>.btn-mini.dropdown-toggle{padding-right:5px;padding-left:5px;}
+.btn-group>.btn-small.dropdown-toggle{*padding-top:4px;*padding-bottom:4px;}
+.btn-group>.btn-large.dropdown-toggle{padding-right:12px;padding-left:12px;}
+.btn-group.open .dropdown-toggle{background-image:none;-webkit-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:inset 0 2px 4px rgba(0, 0, 0, 0.15),0 1px 2px rgba(0, 0, 0, 0.05);}
+.btn-group.open .btn.dropdown-toggle{background-color:#e6e6e6;}
+.btn-group.open .btn-primary.dropdown-toggle{background-color:#0055cc;}
+.btn-group.open .btn-warning.dropdown-toggle{background-color:#f89406;}
+.btn-group.open .btn-danger.dropdown-toggle{background-color:#bd362f;}
+.btn-group.open .btn-success.dropdown-toggle{background-color:#51a351;}
+.btn-group.open .btn-info.dropdown-toggle{background-color:#2f96b4;}
+.btn-group.open .btn-inverse.dropdown-toggle{background-color:#222222;}
+.btn .caret{margin-top:7px;margin-left:0;}
+.btn:hover .caret,.open.btn-group .caret{opacity:1;filter:alpha(opacity=100);}
+.btn-mini .caret{margin-top:5px;}
+.btn-small .caret{margin-top:6px;}
+.btn-large .caret{margin-top:6px;border-top-width:5px;border-right-width:5px;border-left-width:5px;}
+.dropup .btn-large .caret{border-top:0;border-bottom:5px solid #000000;}
+.btn-primary .caret,.btn-warning .caret,.btn-danger .caret,.btn-info .caret,.btn-success .caret,.btn-inverse .caret{border-top-color:#ffffff;border-bottom-color:#ffffff;opacity:0.75;filter:alpha(opacity=75);}
+.alert{padding:8px 35px 8px 14px;margin-bottom:18px;color:#c09853;text-shadow:0 1px 0 rgba(255, 255, 255, 0.5);background-color:#fcf8e3;border:1px solid #fbeed5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
+.alert-heading{color:inherit;}
+.alert .close{position:relative;top:-2px;right:-21px;line-height:18px;}
+.alert-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6;}
+.alert-danger,.alert-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7;}
+.alert-info{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1;}
+.alert-block{padding-top:14px;padding-bottom:14px;}
+.alert-block>p,.alert-block>ul{margin-bottom:0;}
+.alert-block p+p{margin-top:5px;}
+.nav{margin-bottom:18px;margin-left:0;list-style:none;}
+.nav>li>a{display:block;}
+.nav>li>a:hover{text-decoration:none;background-color:#eeeeee;}
+.nav>.pull-right{float:right;}
+.nav .nav-header{display:block;padding:3px 15px;font-size:11px;font-weight:bold;line-height:18px;color:#999999;text-shadow:0 1px 0 rgba(255, 255, 255, 0.5);text-transform:uppercase;}
+.nav li+.nav-header{margin-top:9px;}
+.nav-list{padding-right:15px;padding-left:15px;margin-bottom:0;}
+.nav-list>li>a,.nav-list .nav-header{margin-right:-15px;margin-left:-15px;text-shadow:0 1px 0 rgba(255, 255, 255, 0.5);}
+.nav-list>li>a{padding:3px 15px;}
+.nav-list>.active>a,.nav-list>.active>a:hover{color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.2);background-color:#0088cc;}
+.nav-list [class^="icon-"]{margin-right:2px;}
+.nav-list .divider{*width:100%;height:1px;margin:8px 1px;*margin:-5px 0 5px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #ffffff;}
+.nav-tabs,.nav-pills{*zoom:1;}
+.nav-tabs:before,.nav-pills:before,.nav-tabs:after,.nav-pills:after{display:table;content:"";}
+.nav-tabs:after,.nav-pills:after{clear:both;}
+.nav-tabs>li,.nav-pills>li{float:left;}
+.nav-tabs>li>a,.nav-pills>li>a{padding-right:12px;padding-left:12px;margin-right:2px;line-height:14px;}
+.nav-tabs{border-bottom:1px solid #ddd;}
+.nav-tabs>li{margin-bottom:-1px;}
+.nav-tabs>li>a{padding-top:8px;padding-bottom:8px;line-height:18px;border:1px solid transparent;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;}
+.nav-tabs>li>a:hover{border-color:#eeeeee #eeeeee #dddddd;}
+.nav-tabs>.active>a,.nav-tabs>.active>a:hover{color:#555555;cursor:default;background-color:#ffffff;border:1px solid #ddd;border-bottom-color:transparent;}
+.nav-pills>li>a{padding-top:8px;padding-bottom:8px;margin-top:2px;margin-bottom:2px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;}
+.nav-pills>.active>a,.nav-pills>.active>a:hover{color:#ffffff;background-color:#0088cc;}
+.nav-stacked>li{float:none;}
+.nav-stacked>li>a{margin-right:0;}
+.nav-tabs.nav-stacked{border-bottom:0;}
+.nav-tabs.nav-stacked>li>a{border:1px solid #ddd;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}
+.nav-tabs.nav-stacked>li:first-child>a{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;}
+.nav-tabs.nav-stacked>li:last-child>a{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;}
+.nav-tabs.nav-stacked>li>a:hover{z-index:2;border-color:#ddd;}
+.nav-pills.nav-stacked>li>a{margin-bottom:3px;}
+.nav-pills.nav-stacked>li:last-child>a{margin-bottom:1px;}
+.nav-tabs .dropdown-menu{-webkit-border-radius:0 0 5px 5px;-moz-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px;}
+.nav-pills .dropdown-menu{-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
+.nav-tabs .dropdown-toggle .caret,.nav-pills .dropdown-toggle .caret{margin-top:6px;border-top-color:#0088cc;border-bottom-color:#0088cc;}
+.nav-tabs .dropdown-toggle:hover .caret,.nav-pills .dropdown-toggle:hover .caret{border-top-color:#005580;border-bottom-color:#005580;}
+.nav-tabs .active .dropdown-toggle .caret,.nav-pills .active .dropdown-toggle .caret{border-top-color:#333333;border-bottom-color:#333333;}
+.nav>.dropdown.active>a:hover{color:#000000;cursor:pointer;}
+.nav-tabs .open .dropdown-toggle,.nav-pills .open .dropdown-toggle,.nav>li.dropdown.open.active>a:hover{color:#ffffff;background-color:#999999;border-color:#999999;}
+.nav li.dropdown.open .caret,.nav li.dropdown.open.active .caret,.nav li.dropdown.open a:hover .caret{border-top-color:#ffffff;border-bottom-color:#ffffff;opacity:1;filter:alpha(opacity=100);}
+.tabs-stacked .open>a:hover{border-color:#999999;}
+.tabbable{*zoom:1;}
+.tabbable:before,.tabbable:after{display:table;content:"";}
+.tabbable:after{clear:both;}
+.tab-content{overflow:auto;}
+.tabs-below>.nav-tabs,.tabs-right>.nav-tabs,.tabs-left>.nav-tabs{border-bottom:0;}
+.tab-content>.tab-pane,.pill-content>.pill-pane{display:none;}
+.tab-content>.active,.pill-content>.active{display:block;}
+.tabs-below>.nav-tabs{border-top:1px solid #ddd;}
+.tabs-below>.nav-tabs>li{margin-top:-1px;margin-bottom:0;}
+.tabs-below>.nav-tabs>li>a{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;}
+.tabs-below>.nav-tabs>li>a:hover{border-top-color:#ddd;border-bottom-color:transparent;}
+.tabs-below>.nav-tabs>.active>a,.tabs-below>.nav-tabs>.active>a:hover{border-color:transparent #ddd #ddd #ddd;}
+.tabs-left>.nav-tabs>li,.tabs-right>.nav-tabs>li{float:none;}
+.tabs-left>.nav-tabs>li>a,.tabs-right>.nav-tabs>li>a{min-width:74px;margin-right:0;margin-bottom:3px;}
+.tabs-left>.nav-tabs{float:left;margin-right:19px;border-right:1px solid #ddd;}
+.tabs-left>.nav-tabs>li>a{margin-right:-1px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px;}
+.tabs-left>.nav-tabs>li>a:hover{border-color:#eeeeee #dddddd #eeeeee #eeeeee;}
+.tabs-left>.nav-tabs .active>a,.tabs-left>.nav-tabs .active>a:hover{border-color:#ddd transparent #ddd #ddd;*border-right-color:#ffffff;}
+.tabs-right>.nav-tabs{float:right;margin-left:19px;border-left:1px solid #ddd;}
+.tabs-right>.nav-tabs>li>a{margin-left:-1px;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0;}
+.tabs-right>.nav-tabs>li>a:hover{border-color:#eeeeee #eeeeee #eeeeee #dddddd;}
+.tabs-right>.nav-tabs .active>a,.tabs-right>.nav-tabs .active>a:hover{border-color:#ddd #ddd #ddd transparent;*border-left-color:#ffffff;}
+.navbar{*position:relative;*z-index:2;margin-bottom:18px;overflow:visible;}
+.navbar-inner{min-height:40px;padding-right:20px;padding-left:20px;background-color:#2c2c2c;background-image:-moz-linear-gradient(top, #333333, #222222);background-image:-ms-linear-gradient(top, #333333, #222222);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#333333), to(#222222));background-image:-webkit-linear-gradient(top, #333333, #222222);background-image:-o-linear-gradient(top, #333333, #222222);background-image:linear-gradient(top, #333333, #222222);background-repeat:repeat-x;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.1);-moz-box-shadow:0 1px 3px rgba(0, 0, 0, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.1);box-shadow:0 1px 3px rgba(0, 0, 0, 0.25),inset 0 -1px 0 rgba(0, 0, 0, 0.1);}
+.navbar .container{width:auto;}
+.nav-collapse.collapse{height:auto;}
+.navbar{color:#999999;}
+.navbar .brand:hover{text-decoration:none;}
+.navbar .brand{display:block;float:left;padding:8px 20px 12px;margin-left:-20px;font-size:20px;font-weight:200;line-height:1;color:#999999;}
+.navbar .navbar-text{margin-bottom:0;line-height:40px;}
+.navbar .navbar-link{color:#999999;}
+.navbar .navbar-link:hover{color:#ffffff;}
+.navbar .btn,.navbar .btn-group{margin-top:5px;}
+.navbar .btn-group .btn{margin:0;}
+.navbar-form{margin-bottom:0;*zoom:1;}
+.navbar-form:before,.navbar-form:after{display:table;content:"";}
+.navbar-form:after{clear:both;}
+.navbar-form input,.navbar-form select,.navbar-form .radio,.navbar-form .checkbox{margin-top:5px;}
+.navbar-form input,.navbar-form select{display:inline-block;margin-bottom:0;}
+.navbar-form input[type="image"],.navbar-form input[type="checkbox"],.navbar-form input[type="radio"]{margin-top:3px;}
+.navbar-form .input-append,.navbar-form .input-prepend{margin-top:6px;white-space:nowrap;}
+.navbar-form .input-append input,.navbar-form .input-prepend input{margin-top:0;}
+.navbar-search{position:relative;float:left;margin-top:6px;margin-bottom:0;}
+.navbar-search .search-query{padding:4px 9px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;font-weight:normal;line-height:1;color:#ffffff;background-color:#626262;border:1px solid #151515;-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1),0 1px 0 rgba(255, 255, 255, 0.15);-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1),0 1px 0 rgba(255, 255, 255, 0.15);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1),0 1px 0 rgba(255, 255, 255, 0.15);-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none;}
+.navbar-search .search-query:-moz-placeholder{color:#cccccc;}
+.navbar-search .search-query::-webkit-input-placeholder{color:#cccccc;}
+.navbar-search .search-query:focus,.navbar-search .search-query.focused{padding:5px 10px;color:#333333;text-shadow:0 1px 0 #ffffff;background-color:#ffffff;border:0;outline:0;-webkit-box-shadow:0 0 3px rgba(0, 0, 0, 0.15);-moz-box-shadow:0 0 3px rgba(0, 0, 0, 0.15);box-shadow:0 0 3px rgba(0, 0, 0, 0.15);}
+.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030;margin-bottom:0;}
+.navbar-fixed-top .navbar-inner,.navbar-fixed-bottom .navbar-inner{padding-right:0;padding-left:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}
+.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px;}
+.navbar-fixed-top{top:0;}
+.navbar-fixed-bottom{bottom:0;}
+.navbar .nav{position:relative;left:0;display:block;float:left;margin:0 10px 0 0;}
+.navbar .nav.pull-right{float:right;}
+.navbar .nav>li{display:block;float:left;}
+.navbar .nav>li>a{float:none;padding:9px 10px 11px;line-height:19px;color:#999999;text-decoration:none;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);}
+.navbar .btn{display:inline-block;padding:4px 10px 4px;margin:5px 5px 6px;line-height:18px;}
+.navbar .btn-group{padding:5px 5px 6px;margin:0;}
+.navbar .nav>li>a:hover{color:#ffffff;text-decoration:none;background-color:transparent;}
+.navbar .nav .active>a,.navbar .nav .active>a:hover{color:#ffffff;text-decoration:none;background-color:#222222;}
+.navbar .divider-vertical{width:1px;height:40px;margin:0 9px;overflow:hidden;background-color:#222222;border-right:1px solid #333333;}
+.navbar .nav.pull-right{margin-right:0;margin-left:10px;}
+.navbar .btn-navbar{display:none;float:right;padding:7px 10px;margin-right:5px;margin-left:5px;background-color:#2c2c2c;*background-color:#222222;background-image:-ms-linear-gradient(top, #333333, #222222);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#333333), to(#222222));background-image:-webkit-linear-gradient(top, #333333, #222222);background-image:-o-linear-gradient(top, #333333, #222222);background-image:linear-gradient(top, #333333, #222222);background-image:-moz-linear-gradient(top, #333333, #222222);background-repeat:repeat-x;border-color:#222222 #222222 #000000;border-color:rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);filter:progid:dximagetransform.microsoft.gradient(enabled=false);-webkit-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.075);-moz-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.075);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.1),0 1px 0 rgba(255, 255, 255, 0.075);}
+.navbar .btn-navbar:hover,.navbar .btn-navbar:active,.navbar .btn-navbar.active,.navbar .btn-navbar.disabled,.navbar .btn-navbar[disabled]{background-color:#222222;*background-color:#151515;}
+.navbar .btn-navbar:active,.navbar .btn-navbar.active{background-color:#080808 \9;}
+.navbar .btn-navbar .icon-bar{display:block;width:18px;height:2px;background-color:#f5f5f5;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-shadow:0 1px 0 rgba(0, 0, 0, 0.25);-moz-box-shadow:0 1px 0 rgba(0, 0, 0, 0.25);box-shadow:0 1px 0 rgba(0, 0, 0, 0.25);}
+.btn-navbar .icon-bar+.icon-bar{margin-top:3px;}
+.navbar .dropdown-menu:before{position:absolute;top:-7px;left:9px;display:inline-block;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-left:7px solid transparent;border-bottom-color:rgba(0, 0, 0, 0.2);content:'';}
+.navbar .dropdown-menu:after{position:absolute;top:-6px;left:10px;display:inline-block;border-right:6px solid transparent;border-bottom:6px solid #ffffff;border-left:6px solid transparent;content:'';}
+.navbar-fixed-bottom .dropdown-menu:before{top:auto;bottom:-7px;border-top:7px solid #ccc;border-bottom:0;border-top-color:rgba(0, 0, 0, 0.2);}
+.navbar-fixed-bottom .dropdown-menu:after{top:auto;bottom:-6px;border-top:6px solid #ffffff;border-bottom:0;}
+.navbar .nav li.dropdown .dropdown-toggle .caret,.navbar .nav li.dropdown.open .caret{border-top-color:#ffffff;border-bottom-color:#ffffff;}
+.navbar .nav li.dropdown.active .caret{opacity:1;filter:alpha(opacity=100);}
+.navbar .nav li.dropdown.open>.dropdown-toggle,.navbar .nav li.dropdown.active>.dropdown-toggle,.navbar .nav li.dropdown.open.active>.dropdown-toggle{background-color:transparent;}
+.navbar .nav li.dropdown.active>.dropdown-toggle:hover{color:#ffffff;}
+.navbar .pull-right .dropdown-menu,.navbar .dropdown-menu.pull-right{right:0;left:auto;}
+.navbar .pull-right .dropdown-menu:before,.navbar .dropdown-menu.pull-right:before{right:12px;left:auto;}
+.navbar .pull-right .dropdown-menu:after,.navbar .dropdown-menu.pull-right:after{right:13px;left:auto;}
+.breadcrumb{padding:7px 14px;margin:0 0 18px;list-style:none;background-color:#fbfbfb;background-image:-moz-linear-gradient(top, #ffffff, #f5f5f5);background-image:-ms-linear-gradient(top, #ffffff, #f5f5f5);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f5f5f5));background-image:-webkit-linear-gradient(top, #ffffff, #f5f5f5);background-image:-o-linear-gradient(top, #ffffff, #f5f5f5);background-image:linear-gradient(top, #ffffff, #f5f5f5);background-repeat:repeat-x;border:1px solid #ddd;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ffffff', endColorstr='#f5f5f5', GradientType=0);-webkit-box-shadow:inset 0 1px 0 #ffffff;-moz-box-shadow:inset 0 1px 0 #ffffff;box-shadow:inset 0 1px 0 #ffffff;}
+.breadcrumb li{display:inline-block;*display:inline;text-shadow:0 1px 0 #ffffff;*zoom:1;}
+.breadcrumb .divider{padding:0 5px;color:#999999;}
+.breadcrumb .active a{color:#333333;}
+.pagination{height:36px;margin:18px 0;}
+.pagination ul{display:inline-block;*display:inline;margin-bottom:0;margin-left:0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;*zoom:1;-webkit-box-shadow:0 1px 2px rgba(0, 0, 0, 0.05);-moz-box-shadow:0 1px 2px rgba(0, 0, 0, 0.05);box-shadow:0 1px 2px rgba(0, 0, 0, 0.05);}
+.pagination li{display:inline;}
+.pagination a{float:left;padding:0 14px;line-height:34px;text-decoration:none;border:1px solid #ddd;border-left-width:0;}
+.pagination a:hover,.pagination .active a{background-color:#f5f5f5;}
+.pagination .active a{color:#999999;cursor:default;}
+.pagination .disabled span,.pagination .disabled a,.pagination .disabled a:hover{color:#999999;cursor:default;background-color:transparent;}
+.pagination li:first-child a{border-left-width:1px;-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;}
+.pagination li:last-child a{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0;}
+.pagination-centered{text-align:center;}
+.pagination-right{text-align:right;}
+.pager{margin-bottom:18px;margin-left:0;text-align:center;list-style:none;*zoom:1;}
+.pager:before,.pager:after{display:table;content:"";}
+.pager:after{clear:both;}
+.pager li{display:inline;}
+.pager a{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px;}
+.pager a:hover{text-decoration:none;background-color:#f5f5f5;}
+.pager .next a{float:right;}
+.pager .previous a{float:left;}
+.pager .disabled a,.pager .disabled a:hover{color:#999999;cursor:default;background-color:#fff;}
+.modal-open .dropdown-menu{z-index:2050;}
+.modal-open .dropdown.open{*z-index:2050;}
+.modal-open .popover{z-index:2060;}
+.modal-open .tooltip{z-index:2070;}
+.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000000;}
+.modal-backdrop.fade{opacity:0;}
+.modal-backdrop,.modal-backdrop.fade.in{opacity:0.8;filter:alpha(opacity=80);}
+.modal{position:fixed;top:50%;left:50%;z-index:1050;width:560px;margin:-250px 0 0 -280px;overflow:auto;background-color:#ffffff;border:1px solid #999;border:1px solid rgba(0, 0, 0, 0.3);*border:1px solid #999;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);-moz-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box;}
+.modal.fade{top:-25%;-webkit-transition:opacity 0.3s linear,top 0.3s ease-out;-moz-transition:opacity 0.3s linear,top 0.3s ease-out;-ms-transition:opacity 0.3s linear,top 0.3s ease-out;-o-transition:opacity 0.3s linear,top 0.3s ease-out;transition:opacity 0.3s linear,top 0.3s ease-out;}
+.modal.fade.in{top:50%;}
+.modal-header{padding:9px 15px;border-bottom:1px solid #eee;}
+.modal-header .close{margin-top:2px;}
+.modal-body{max-height:400px;padding:15px;overflow-y:auto;}
+.modal-form{margin-bottom:0;}
+.modal-footer{padding:14px 15px 15px;margin-bottom:0;text-align:right;background-color:#f5f5f5;border-top:1px solid #ddd;-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px;*zoom:1;-webkit-box-shadow:inset 0 1px 0 #ffffff;-moz-box-shadow:inset 0 1px 0 #ffffff;box-shadow:inset 0 1px 0 #ffffff;}
+.modal-footer:before,.modal-footer:after{display:table;content:"";}
+.modal-footer:after{clear:both;}
+.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px;}
+.modal-footer .btn-group .btn+.btn{margin-left:-1px;}
+.tooltip{position:absolute;z-index:1020;display:block;padding:5px;font-size:11px;opacity:0;filter:alpha(opacity=0);visibility:visible;}
+.tooltip.in{opacity:0.8;filter:alpha(opacity=80);}
+.tooltip.top{margin-top:-2px;}
+.tooltip.right{margin-left:2px;}
+.tooltip.bottom{margin-top:2px;}
+.tooltip.left{margin-left:-2px;}
+.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-top:5px solid #000000;border-right:5px solid transparent;border-left:5px solid transparent;}
+.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000;}
+.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-right:5px solid transparent;border-bottom:5px solid #000000;border-left:5px solid transparent;}
+.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-right:5px solid #000000;border-bottom:5px solid transparent;}
+.tooltip-inner{max-width:200px;padding:3px 8px;color:#ffffff;text-align:center;text-decoration:none;background-color:#000000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
+.tooltip-arrow{position:absolute;width:0;height:0;}
+.popover{position:absolute;top:0;left:0;z-index:1010;display:none;padding:5px;}
+.popover.top{margin-top:-5px;}
+.popover.right{margin-left:5px;}
+.popover.bottom{margin-top:5px;}
+.popover.left{margin-left:-5px;}
+.popover.top .arrow{bottom:0;left:50%;margin-left:-5px;border-top:5px solid #000000;border-right:5px solid transparent;border-left:5px solid transparent;}
+.popover.right .arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-right:5px solid #000000;border-bottom:5px solid transparent;}
+.popover.bottom .arrow{top:0;left:50%;margin-left:-5px;border-right:5px solid transparent;border-bottom:5px solid #000000;border-left:5px solid transparent;}
+.popover.left .arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000;}
+.popover .arrow{position:absolute;width:0;height:0;}
+.popover-inner{width:280px;padding:3px;overflow:hidden;background:#000000;background:rgba(0, 0, 0, 0.8);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);-moz-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);}
+.popover-title{padding:9px 15px;line-height:1;background-color:#f5f5f5;border-bottom:1px solid #eee;-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;}
+.popover-content{padding:14px;background-color:#ffffff;-webkit-border-radius:0 0 3px 3px;-moz-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;-webkit-background-clip:padding-box;-moz-background-clip:padding-box;background-clip:padding-box;}
+.popover-content p,.popover-content ul,.popover-content ol{margin-bottom:0;}
+.thumbnails{margin-left:-20px;list-style:none;*zoom:1;}
+.thumbnails:before,.thumbnails:after{display:table;content:"";}
+.thumbnails:after{clear:both;}
+.row-fluid .thumbnails{margin-left:0;}
+.thumbnails>li{margin-bottom:18px;}
+.thumbnail{display:block;padding:4px;line-height:1;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);}
+a.thumbnail:hover{border-color:#0088cc;-webkit-box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);-moz-box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);}
+.thumbnail>img{display:block;max-width:100%;margin-right:auto;margin-left:auto;}
+.thumbnail .caption{padding:9px;}
+.label,.badge{font-size:10.998px;font-weight:bold;line-height:14px;color:#ffffff;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);white-space:nowrap;vertical-align:baseline;background-color:#999999;}
+.label{padding:1px 4px 2px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
+.badge{padding:1px 9px 2px;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px;}
+a.label:hover,a.badge:hover{color:#ffffff;text-decoration:none;cursor:pointer;}
+.label-important,.badge-important{background-color:#b94a48;}
+.label-important[href],.badge-important[href]{background-color:#953b39;}
+.label-warning,.badge-warning{background-color:#f89406;}
+.label-warning[href],.badge-warning[href]{background-color:#c67605;}
+.label-success,.badge-success{background-color:#468847;}
+.label-success[href],.badge-success[href]{background-color:#356635;}
+.label-info,.badge-info{background-color:#3a87ad;}
+.label-info[href],.badge-info[href]{background-color:#2d6987;}
+.label-inverse,.badge-inverse{background-color:#333333;}
+.label-inverse[href],.badge-inverse[href]{background-color:#1a1a1a;}
+@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0;} to{background-position:0 0;}}@-moz-keyframes progress-bar-stripes{from{background-position:40px 0;} to{background-position:0 0;}}@-ms-keyframes progress-bar-stripes{from{background-position:40px 0;} to{background-position:0 0;}}@-o-keyframes progress-bar-stripes{from{background-position:0 0;} to{background-position:40px 0;}}@keyframes progress-bar-stripes{from{background-position:40px 0;} to{background-position:0 0;}}.progress{height:18px;margin-bottom:18px;overflow:hidden;background-color:#f7f7f7;background-image:-moz-linear-gradient(top, #f5f5f5, #f9f9f9);background-image:-ms-linear-gradient(top, #f5f5f5, #f9f9f9);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9));background-image:-webkit-linear-gradient(top, #f5f5f5, #f9f9f9);background-image:-o-linear-gradient(top, #f5f5f5, #f9f9f9);background-image:linear-gradient(top, #f5f5f5, #f9f9f9);background-repeat:repeat-x;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#f9f9f9', GradientType=0);-webkit-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);-moz-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.1);}
+.progress .bar{width:0;height:18px;font-size:12px;color:#ffffff;text-align:center;text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);background-color:#0e90d2;background-image:-moz-linear-gradient(top, #149bdf, #0480be);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be));background-image:-webkit-linear-gradient(top, #149bdf, #0480be);background-image:-o-linear-gradient(top, #149bdf, #0480be);background-image:linear-gradient(top, #149bdf, #0480be);background-image:-ms-linear-gradient(top, #149bdf, #0480be);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#149bdf', endColorstr='#0480be', GradientType=0);-webkit-box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.15);-moz-box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.15);box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.15);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width 0.6s ease;-moz-transition:width 0.6s ease;-ms-transition:width 0.6s ease;-o-transition:width 0.6s ease;transition:width 0.6s ease;}
+.progress-striped .bar{background-color:#149bdf;background-image:-o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);-webkit-background-size:40px 40px;-moz-background-size:40px 40px;-o-background-size:40px 40px;background-size:40px 40px;}
+.progress.active .bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-moz-animation:progress-bar-stripes 2s linear infinite;-ms-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite;}
+.progress-danger .bar{background-color:#dd514c;background-image:-moz-linear-gradient(top, #ee5f5b, #c43c35);background-image:-ms-linear-gradient(top, #ee5f5b, #c43c35);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35));background-image:-webkit-linear-gradient(top, #ee5f5b, #c43c35);background-image:-o-linear-gradient(top, #ee5f5b, #c43c35);background-image:linear-gradient(top, #ee5f5b, #c43c35);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#c43c35', GradientType=0);}
+.progress-danger.progress-striped .bar{background-color:#ee5f5b;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);}
+.progress-success .bar{background-color:#5eb95e;background-image:-moz-linear-gradient(top, #62c462, #57a957);background-image:-ms-linear-gradient(top, #62c462, #57a957);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957));background-image:-webkit-linear-gradient(top, #62c462, #57a957);background-image:-o-linear-gradient(top, #62c462, #57a957);background-image:linear-gradient(top, #62c462, #57a957);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#62c462', endColorstr='#57a957', GradientType=0);}
+.progress-success.progress-striped .bar{background-color:#62c462;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);}
+.progress-info .bar{background-color:#4bb1cf;background-image:-moz-linear-gradient(top, #5bc0de, #339bb9);background-image:-ms-linear-gradient(top, #5bc0de, #339bb9);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#339bb9));background-image:-webkit-linear-gradient(top, #5bc0de, #339bb9);background-image:-o-linear-gradient(top, #5bc0de, #339bb9);background-image:linear-gradient(top, #5bc0de, #339bb9);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#5bc0de', endColorstr='#339bb9', GradientType=0);}
+.progress-info.progress-striped .bar{background-color:#5bc0de;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);}
+.progress-warning .bar{background-color:#faa732;background-image:-moz-linear-gradient(top, #fbb450, #f89406);background-image:-ms-linear-gradient(top, #fbb450, #f89406);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));background-image:-webkit-linear-gradient(top, #fbb450, #f89406);background-image:-o-linear-gradient(top, #fbb450, #f89406);background-image:linear-gradient(top, #fbb450, #f89406);background-repeat:repeat-x;filter:progid:dximagetransform.microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0);}
+.progress-warning.progress-striped .bar{background-color:#fbb450;background-image:-webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));background-image:-webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);}
+.accordion{margin-bottom:18px;}
+.accordion-group{margin-bottom:2px;border:1px solid #e5e5e5;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}
+.accordion-heading{border-bottom:0;}
+.accordion-heading .accordion-toggle{display:block;padding:8px 15px;}
+.accordion-toggle{cursor:pointer;}
+.accordion-inner{padding:9px 15px;border-top:1px solid #e5e5e5;}
+.carousel{position:relative;margin-bottom:18px;line-height:1;}
+.carousel-inner{position:relative;width:100%;overflow:hidden;}
+.carousel .item{position:relative;display:none;-webkit-transition:0.6s ease-in-out left;-moz-transition:0.6s ease-in-out left;-ms-transition:0.6s ease-in-out left;-o-transition:0.6s ease-in-out left;transition:0.6s ease-in-out left;}
+.carousel .item>img{display:block;line-height:1;}
+.carousel .active,.carousel .next,.carousel .prev{display:block;}
+.carousel .active{left:0;}
+.carousel .next,.carousel .prev{position:absolute;top:0;width:100%;}
+.carousel .next{left:100%;}
+.carousel .prev{left:-100%;}
+.carousel .next.left,.carousel .prev.right{left:0;}
+.carousel .active.left{left:-100%;}
+.carousel .active.right{left:100%;}
+.carousel-control{position:absolute;top:40%;left:15px;width:40px;height:40px;margin-top:-20px;font-size:60px;font-weight:100;line-height:30px;color:#ffffff;text-align:center;background:#222222;border:3px solid #ffffff;-webkit-border-radius:23px;-moz-border-radius:23px;border-radius:23px;opacity:0.5;filter:alpha(opacity=50);}
+.carousel-control.right{right:15px;left:auto;}
+.carousel-control:hover{color:#ffffff;text-decoration:none;opacity:0.9;filter:alpha(opacity=90);}
+.carousel-caption{position:absolute;right:0;bottom:0;left:0;padding:10px 15px 5px;background:#333333;background:rgba(0, 0, 0, 0.75);}
+.carousel-caption h4,.carousel-caption p{color:#ffffff;}
+.hero-unit{padding:60px;margin-bottom:30px;background-color:#eeeeee;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;}
+.hero-unit h1{margin-bottom:0;font-size:60px;line-height:1;letter-spacing:-1px;color:inherit;}
+.hero-unit p{font-size:18px;font-weight:200;line-height:27px;color:inherit;}
+.pull-right{float:right;}
+.pull-left{float:left;}
+.hide{display:none;}
+.show{display:block;}
+.invisible{visibility:hidden;}
diff --git a/apps/fileupload/static/fileupload/css/jquery.fileupload-ui.css b/apps/fileupload/static/fileupload/css/jquery.fileupload-ui.css
new file mode 100644 (file)
index 0000000..e36a93d
--- /dev/null
@@ -0,0 +1,84 @@
+@charset 'UTF-8';
+/*
+ * jQuery File Upload UI Plugin CSS 6.3
+ * https://github.com/blueimp/jQuery-File-Upload
+ *
+ * Copyright 2010, Sebastian Tschan
+ * https://blueimp.net
+ *
+ * Licensed under the MIT license:
+ * http://www.opensource.org/licenses/MIT
+ */
+
+.fileinput-button {
+  position: relative;
+  overflow: hidden;
+  float: left;
+  margin-right: 4px;
+}
+.fileinput-button input {
+  position: absolute;
+  top: 0;
+  right: 0;
+  margin: 0;
+  border: solid transparent;
+  border-width: 0 0 100px 200px;
+  opacity: 0;
+  filter: alpha(opacity=0);
+  -moz-transform: translate(-300px, 0) scale(4);
+  direction: ltr;
+  cursor: pointer;
+}
+.fileupload-buttonbar .btn,
+.fileupload-buttonbar .toggle {
+  margin-bottom: 5px;
+}
+.files .progress {
+  width: 200px;
+}
+.progress-animated .bar {
+  background: url(../img/progressbar.gif) !important;
+  filter: none;
+}
+.fileupload-loading {
+  position: absolute;
+  left: 50%;
+  width: 128px;
+  height: 128px;
+  background: url(../img/loading.gif) center no-repeat;
+  display: none;
+}
+.fileupload-processing .fileupload-loading {
+  display: block;
+}
+
+/* Fix for IE 6: */
+*html .fileinput-button {
+  line-height: 22px;
+  margin: 1px -3px 0 0;
+}
+
+/* Fix for IE 7: */
+*+html .fileinput-button {
+  margin: 1px 0 0 0;
+}
+
+@media (max-width: 480px) {
+  .files .btn span {
+    display: none;
+  }
+  .files .preview * {
+    width: 40px;
+  }
+  .files .name * {
+    width: 80px;
+    display: inline-block;
+    word-wrap: break-word;
+  }
+  .files .progress {
+    width: 20px;
+  }
+  .files .delete {
+    width: 60px;
+  }
+}
diff --git a/apps/fileupload/static/fileupload/css/style.css b/apps/fileupload/static/fileupload/css/style.css
new file mode 100644 (file)
index 0000000..e45d81d
--- /dev/null
@@ -0,0 +1,10 @@
+.preview img {
+    max-height: 50px;
+}
+
+.delete button[data-type=""] {
+    display: none;
+}
+.delete button[data-type=""] + input {
+    display: none;
+}
diff --git a/apps/fileupload/static/fileupload/img/glyphicons-halflings-white.png b/apps/fileupload/static/fileupload/img/glyphicons-halflings-white.png
new file mode 100644 (file)
index 0000000..3bf6484
Binary files /dev/null and b/apps/fileupload/static/fileupload/img/glyphicons-halflings-white.png differ
diff --git a/apps/fileupload/static/fileupload/img/glyphicons-halflings.png b/apps/fileupload/static/fileupload/img/glyphicons-halflings.png
new file mode 100644 (file)
index 0000000..79bc568
Binary files /dev/null and b/apps/fileupload/static/fileupload/img/glyphicons-halflings.png differ
diff --git a/apps/fileupload/static/fileupload/img/loading.gif b/apps/fileupload/static/fileupload/img/loading.gif
new file mode 100644 (file)
index 0000000..90f28cb
Binary files /dev/null and b/apps/fileupload/static/fileupload/img/loading.gif differ
diff --git a/apps/fileupload/static/fileupload/img/progressbar.gif b/apps/fileupload/static/fileupload/img/progressbar.gif
new file mode 100644 (file)
index 0000000..fbcce6b
Binary files /dev/null and b/apps/fileupload/static/fileupload/img/progressbar.gif differ
diff --git a/apps/fileupload/static/fileupload/js/bootstrap-image-gallery.min.js b/apps/fileupload/static/fileupload/js/bootstrap-image-gallery.min.js
new file mode 100644 (file)
index 0000000..a749f55
--- /dev/null
@@ -0,0 +1 @@
+(function(a){"use strict",typeof define=="function"&&define.amd?define(["jquery","load-image","bootstrap"],a):a(window.jQuery,window.loadImage)})(function(a,b){"use strict",a.extend(a.fn.modal.defaults,{delegate:document,selector:null,filter:"*",index:0,href:null,preloadRange:2,offsetWidth:100,offsetHeight:200,canvas:!1,slideshow:0,imageClickDivision:.5});var c=a.fn.modal.Constructor.prototype.show,d=a.fn.modal.Constructor.prototype.hide;a.extend(a.fn.modal.Constructor.prototype,{initLinks:function(){var b=this,c=this.options,d=c.selector||"a[data-target="+c.target+"]";this.$links=a(c.delegate).find(d).filter(c.filter).each(function(a){b.getUrl(this)===c.href&&(c.index=a)}),this.$links[c.index]||(c.index=0)},getUrl:function(b){return b.href||a(b).data("href")},startSlideShow:function(){var a=this;this.options.slideshow&&(this._slideShow=window.setTimeout(function(){a.next()},this.options.slideshow))},stopSlideShow:function(){window.clearTimeout(this._slideShow)},toggleSlideShow:function(){var a=this.$element.find(".modal-slideshow");this.options.slideshow?(this.options.slideshow=0,this.stopSlideShow()):(this.options.slideshow=a.data("slideshow")||5e3,this.startSlideShow()),a.find("i").toggleClass("icon-play icon-pause")},preloadImages:function(){var b=this.options,c=b.index+b.preloadRange+1,d,e;for(e=b.index-b.preloadRange;e<c;e+=1)d=this.$links[e],d&&e!==b.index&&a("<img>").prop("src",this.getUrl(d))},loadImage:function(){var a=this,c=this.$element,d=this.options.index,e=this.getUrl(this.$links[d]),f;this.abortLoad(),this.stopSlideShow(),c.trigger("beforeLoad"),this._loadingTimeout=window.setTimeout(function(){c.addClass("modal-loading")},100),f=c.find(".modal-image").children().removeClass("in"),window.setTimeout(function(){f.remove()},3e3),c.find(".modal-title").text(this.$links[d].title),c.find(".modal-download").prop("href",e),this._loadingImage=b(e,function(b){a.img=b,window.clearTimeout(a._loadingTimeout),c.removeClass("modal-loading"),c.trigger("load"),a.showImage(b),a.startSlideShow()},this._loadImageOptions),this.preloadImages()},showImage:function(b){var c=this.$element,d=a.support.transition&&c.hasClass("fade"),e=d?c.animate:c.css,f=c.find(".modal-image"),g,h;f.css({width:b.width,height:b.height}),c.find(".modal-title").css({width:Math.max(b.width,380)}),a(window).width()>480&&(d&&(g=c.clone().hide().appendTo(document.body)),e.call(c.stop(),{"margin-top":-((g||c).outerHeight()/2),"margin-left":-((g||c).outerWidth()/2)}),g&&g.remove()),f.append(b),h=b.offsetWidth,c.trigger("display"),d?c.is(":visible")?a(b).on(a.support.transition.end,function(d){d.target===b&&(a(b).off(a.support.transition.end),c.trigger("displayed"))}).addClass("in"):(a(b).addClass("in"),c.one("shown",function(){c.trigger("displayed")})):(a(b).addClass("in"),c.trigger("displayed"))},abortLoad:function(){this._loadingImage&&(this._loadingImage.onload=this._loadingImage.onerror=null),window.clearTimeout(this._loadingTimeout)},prev:function(){var a=this.options;a.index-=1,a.index<0&&(a.index=this.$links.length-1),this.loadImage()},next:function(){var a=this.options;a.index+=1,a.index>this.$links.length-1&&(a.index=0),this.loadImage()},keyHandler:function(a){switch(a.which){case 37:case 38:a.preventDefault(),this.prev();break;case 39:case 40:a.preventDefault(),this.next()}},wheelHandler:function(a){a.preventDefault(),a=a.originalEvent,this._wheelCounter=this._wheelCounter||0,this._wheelCounter+=a.wheelDelta||a.detail||0;if(a.wheelDelta&&this._wheelCounter>=120||!a.wheelDelta&&this._wheelCounter<0)this.prev(),this._wheelCounter=0;else if(a.wheelDelta&&this._wheelCounter<=-120||!a.wheelDelta&&this._wheelCounter>0)this.next(),this._wheelCounter=0},initGalleryEvents:function(){var b=this,c=this.$element;c.find(".modal-image").on("click.modal-gallery",function(c){var d=a(this);b.$links.length===1?b.hide():(c.pageX-d.offset().left)/d.width()<b.options.imageClickDivision?b.prev(c):b.next(c)}),c.find(".modal-prev").on("click.modal-gallery",function(a){b.prev(a)}),c.find(".modal-next").on("click.modal-gallery",function(a){b.next(a)}),c.find(".modal-slideshow").on("click.modal-gallery",function(a){b.toggleSlideShow(a)}),a(document).on("keydown.modal-gallery",function(a){b.keyHandler(a)}).on("mousewheel.modal-gallery, DOMMouseScroll.modal-gallery",function(a){b.wheelHandler(a)})},destroyGalleryEvents:function(){var b=this.$element;this.abortLoad(),this.stopSlideShow(),b.find(".modal-image, .modal-prev, .modal-next, .modal-slideshow").off("click.modal-gallery"),a(document).off("keydown.modal-gallery").off("mousewheel.modal-gallery, DOMMouseScroll.modal-gallery")},show:function(){if(!this.isShown&&this.$element.hasClass("modal-gallery")){var b=this.$element,d=this.options,e=a(window).width(),f=a(window).height();b.hasClass("modal-fullscreen")?(this._loadImageOptions={maxWidth:e,maxHeight:f,canvas:d.canvas},b.hasClass("modal-fullscreen-stretch")&&(this._loadImageOptions.minWidth=e,this._loadImageOptions.minHeight=f)):this._loadImageOptions={maxWidth:e-d.offsetWidth,maxHeight:f-d.offsetHeight,canvas:d.canvas},e>480&&b.css({"margin-top":-(b.outerHeight()/2),"margin-left":-(b.outerWidth()/2)}),this.initGalleryEvents(),this.initLinks(),this.$links.length&&(b.find(".modal-slideshow, .modal-prev, .modal-next").toggle(this.$links.length!==1),b.toggleClass("modal-single",this.$links.length===1),this.loadImage())}c.apply(this,arguments)},hide:function(){this.isShown&&this.$element.hasClass("modal-gallery")&&(this.options.delegate=document,this.options.href=null,this.destroyGalleryEvents()),d.apply(this,arguments)}}),a(function(){a(document.body).on("click.modal-gallery.data-api",'[data-toggle="modal-gallery"]',function(b){var c=a(this),d=c.data(),e=a(d.target),f=e.data("modal"),g;f||(d=a.extend(e.data(),d)),d.selector||(d.selector="a[rel=gallery]"),g=a(b.target).closest(d.selector),g.length&&e.length&&(b.preventDefault(),d.href=g.prop("href")||g.data("href"),d.delegate=g[0]!==this?this:document,f&&a.extend(f.options,d),e.modal(d))})})});
diff --git a/apps/fileupload/static/fileupload/js/bootstrap.min.js b/apps/fileupload/static/fileupload/js/bootstrap.min.js
new file mode 100644 (file)
index 0000000..fcfb38b
--- /dev/null
@@ -0,0 +1,6 @@
+/**
+* Bootstrap.js by @fat & @mdo
+* Copyright 2012 Twitter, Inc.
+* http://www.apache.org/licenses/LICENSE-2.0.txt
+*/
+!function(a){a(function(){"use strict",a.support.transition=function(){var a=function(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"},c;for(c in b)if(a.style[c]!==undefined)return b[c]}();return a&&{end:a}}()})}(window.jQuery),!function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function f(){e.trigger("closed").remove()}var c=a(this),d=c.attr("data-target"),e;d||(d=c.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),e=a(d),b&&b.preventDefault(),e.length||(e=c.hasClass("alert")?c:c.parent()),e.trigger(b=a.Event("close"));if(b.isDefaultPrevented())return;e.removeClass("in"),a.support.transition&&e.hasClass("fade")?e.on(a.support.transition.end,f):f()},a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("alert");e||d.data("alert",e=new c(this)),typeof b=="string"&&e[b].call(d)})},a.fn.alert.Constructor=c,a(function(){a("body").on("click.alert.data-api",b,c.prototype.close)})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.button.defaults,c)};b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.data(),e=c.is("input")?"val":"html";a+="Text",d.resetText||c.data("resetText",c[e]()),c[e](d[a]||this.options[a]),setTimeout(function(){a=="loadingText"?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.parent('[data-toggle="buttons-radio"]');a&&a.find(".active").removeClass("active"),this.$element.toggleClass("active")},a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("button"),f=typeof c=="object"&&c;e||d.data("button",e=new b(this,f)),c=="toggle"?e.toggle():c&&e.setState(c)})},a.fn.button.defaults={loadingText:"loading..."},a.fn.button.Constructor=b,a(function(){a("body").on("click.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle")})})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=c,this.options.slide&&this.slide(this.options.slide),this.options.pause=="hover"&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.prototype={cycle:function(b){return b||(this.paused=!1),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},to:function(b){var c=this.$element.find(".active"),d=c.parent().children(),e=d.index(c),f=this;if(b>d.length-1||b<0)return;return this.sliding?this.$element.one("slid",function(){f.to(b)}):e==b?this.pause().cycle():this.slide(b>e?"next":"prev",a(d[b]))},pause:function(a){return a||(this.paused=!0),clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(b,c){var d=this.$element.find(".active"),e=c||d[b](),f=this.interval,g=b=="next"?"left":"right",h=b=="next"?"first":"last",i=this,j=a.Event("slide");this.sliding=!0,f&&this.pause(),e=e.length?e:this.$element.find(".item")[h]();if(e.hasClass("active"))return;if(a.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(j);if(j.isDefaultPrevented())return;e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),this.$element.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid")},0)})}else{this.$element.trigger(j);if(j.isDefaultPrevented())return;d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return f&&this.cycle(),this}},a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("carousel"),f=a.extend({},a.fn.carousel.defaults,typeof c=="object"&&c);e||d.data("carousel",e=new b(this,f)),typeof c=="number"?e.to(c):typeof c=="string"||(c=f.slide)?e[c]():f.interval&&e.cycle()})},a.fn.carousel.defaults={interval:5e3,pause:"hover"},a.fn.carousel.Constructor=b,a(function(){a("body").on("click.carousel.data-api","[data-slide]",function(b){var c=a(this),d,e=a(c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")),f=!e.data("modal")&&a.extend({},e.data(),c.data());e.carousel(f),b.preventDefault()})})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.collapse.defaults,c),this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.prototype={constructor:b,dimension:function(){var a=this.$element.hasClass("width");return a?"width":"height"},show:function(){var b,c,d,e;if(this.transitioning)return;b=this.dimension(),c=a.camelCase(["scroll",b].join("-")),d=this.$parent&&this.$parent.find("> .accordion-group > .in");if(d&&d.length){e=d.data("collapse");if(e&&e.transitioning)return;d.collapse("hide"),e||d.data("collapse",null)}this.$element[b](0),this.transition("addClass",a.Event("show"),"shown"),this.$element[b](this.$element[0][c])},hide:function(){var b;if(this.transitioning)return;b=this.dimension(),this.reset(this.$element[b]()),this.transition("removeClass",a.Event("hide"),"hidden"),this.$element[b](0)},reset:function(a){var b=this.dimension();return this.$element.removeClass("collapse")[b](a||"auto")[0].offsetWidth,this.$element[a!==null?"addClass":"removeClass"]("collapse"),this},transition:function(b,c,d){var e=this,f=function(){c=="show"&&e.reset(),e.transitioning=0,e.$element.trigger(d)};this.$element.trigger(c);if(c.isDefaultPrevented())return;this.transitioning=1,this.$element[b]("in"),a.support.transition&&this.$element.hasClass("collapse")?this.$element.one(a.support.transition.end,f):f()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}},a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("collapse"),f=typeof c=="object"&&c;e||d.data("collapse",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.collapse.defaults={toggle:!0},a.fn.collapse.Constructor=b,a(function(){a("body").on("click.collapse.data-api","[data-toggle=collapse]",function(b){var c=a(this),d,e=c.attr("data-target")||b.preventDefault()||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),f=a(e).data("collapse")?"toggle":c.data();a(e).collapse(f)})})}(window.jQuery),!function(a){function d(){a(b).parent().removeClass("open")}"use strict";var b='[data-toggle="dropdown"]',c=function(b){var c=a(b).on("click.dropdown.data-api",this.toggle);a("html").on("click.dropdown.data-api",function(){c.parent().removeClass("open")})};c.prototype={constructor:c,toggle:function(b){var c=a(this),e,f,g;if(c.is(".disabled, :disabled"))return;return f=c.attr("data-target"),f||(f=c.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,"")),e=a(f),e.length||(e=c.parent()),g=e.hasClass("open"),d(),g||e.toggleClass("open"),!1}},a.fn.dropdown=function(b){return this.each(function(){var d=a(this),e=d.data("dropdown");e||d.data("dropdown",e=new c(this)),typeof b=="string"&&e[b].call(d)})},a.fn.dropdown.Constructor=c,a(function(){a("html").on("click.dropdown.data-api",d),a("body").on("click.dropdown",".dropdown form",function(a){a.stopPropagation()}).on("click.dropdown.data-api",b,c.prototype.toggle)})}(window.jQuery),!function(a){function c(){var b=this,c=setTimeout(function(){b.$element.off(a.support.transition.end),d.call(b)},500);this.$element.one(a.support.transition.end,function(){clearTimeout(c),d.call(b)})}function d(a){this.$element.hide().trigger("hidden"),e.call(this)}function e(b){var c=this,d=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var e=a.support.transition&&d;this.$backdrop=a('<div class="modal-backdrop '+d+'" />').appendTo(document.body),this.options.backdrop!="static"&&this.$backdrop.click(a.proxy(this.hide,this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),e?this.$backdrop.one(a.support.transition.end,b):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,a.proxy(f,this)):f.call(this)):b&&b()}function f(){this.$backdrop.remove(),this.$backdrop=null}function g(){var b=this;this.isShown&&this.options.keyboard?a(document).on("keyup.dismiss.modal",function(a){a.which==27&&b.hide()}):this.isShown||a(document).off("keyup.dismiss.modal")}"use strict";var b=function(b,c){this.options=c,this.$element=a(b).delegate('[data-dismiss="modal"]',"click.dismiss.modal",a.proxy(this.hide,this))};b.prototype={constructor:b,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var b=this,c=a.Event("show");this.$element.trigger(c);if(this.isShown||c.isDefaultPrevented())return;a("body").addClass("modal-open"),this.isShown=!0,g.call(this),e.call(this,function(){var c=a.support.transition&&b.$element.hasClass("fade");b.$element.parent().length||b.$element.appendTo(document.body),b.$element.show(),c&&b.$element[0].offsetWidth,b.$element.addClass("in"),c?b.$element.one(a.support.transition.end,function(){b.$element.trigger("shown")}):b.$element.trigger("shown")})},hide:function(b){b&&b.preventDefault();var e=this;b=a.Event("hide"),this.$element.trigger(b);if(!this.isShown||b.isDefaultPrevented())return;this.isShown=!1,a("body").removeClass("modal-open"),g.call(this),this.$element.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?c.call(this):d.call(this)}},a.fn.modal=function(c){return this.each(function(){var d=a(this),e=d.data("modal"),f=a.extend({},a.fn.modal.defaults,d.data(),typeof c=="object"&&c);e||d.data("modal",e=new b(this,f)),typeof c=="string"?e[c]():f.show&&e.show()})},a.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},a.fn.modal.Constructor=b,a(function(){a("body").on("click.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d,e=a(c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("modal")?"toggle":a.extend({},e.data(),c.data());b.preventDefault(),e.modal(f)})})}(window.jQuery),!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.enabled=!0,this.options.trigger!="manual"&&(e=this.options.trigger=="hover"?"mouseenter":"focus",f=this.options.trigger=="hover"?"mouseleave":"blur",this.$element.on(e,this.options.selector,a.proxy(this.enter,this)),this.$element.on(f,this.options.selector,a.proxy(this.leave,this))),this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(b){return b=a.extend({},a.fn[this.type].defaults,b,this.$element.data()),b.delay&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay}),b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)return c.show();clearTimeout(this.timeout),c.hoverState="in",this.timeout=setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)return c.hide();clearTimeout(this.timeout),c.hoverState="out",this.timeout=setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip(),this.setContent(),this.options.animation&&a.addClass("fade"),f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,b=/in/.test(f),a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body),c=this.getPosition(b),d=a[0].offsetWidth,e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).addClass("in")}},isHTML:function(a){return typeof a!="string"||a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3||/^(?:[^<]*<[\w\W]+>[^>]*$)/.exec(a)},setContent:function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.isHTML(b)?"html":"text"](b),a.removeClass("fade in top bottom left right")},hide:function(){function d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b),c.remove()})}var b=this,c=this.tip();c.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&a.attr("data-original-title",a.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(b){return a.extend({},b?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title),a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass("in")?"hide":"show"]()}},a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover",title:"",delay:0}}(window.jQuery),!function(a){"use strict";var b=function(a,b){this.init("popover",a,b)};b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype,{constructor:b,setContent:function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.isHTML(b)?"html":"text"](b),a.find(".popover-content > *")[this.isHTML(c)?"html":"text"](c),a.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-content")||(typeof c.content=="function"?c.content.call(b[0]):c.content),a},tip:function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip}}),a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("popover"),f=typeof c=="object"&&c;e||d.data("popover",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.defaults=a.extend({},a.fn.tooltip.defaults,{placement:"right",content:"",template:'<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'})}(window.jQuery),!function(a){function b(b,c){var d=a.proxy(this.process,this),e=a(b).is("body")?a(window):a(b),f;this.options=a.extend({},a.fn.scrollspy.defaults,c),this.$scrollElement=e.on("scroll.scroll.data-api",d),this.selector=(this.options.target||(f=a(b).attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=a("body").on("click.scroll.data-api",this.selector,d),this.refresh(),this.process()}"use strict",b.prototype={constructor:b,refresh:function(){var b=this,c;this.offsets=a([]),this.targets=a([]),c=this.$body.find(this.selector).map(function(){var b=a(this),c=b.data("target")||b.attr("href"),d=/^#\w/.test(c)&&a(c);return d&&c.length&&[[d.position().top,c]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},process:function(){var a=this.$scrollElement.scrollTop()+this.options.offset,b=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,c=b-this.$scrollElement.height(),d=this.offsets,e=this.targets,f=this.activeTarget,g;if(a>=c)return f!=(g=e.last()[0])&&this.activate(g);for(g=d.length;g--;)f!=e[g]&&a>=d[g]&&(!d[g+1]||a<=d[g+1])&&this.activate(e[g])},activate:function(b){var c,d;this.activeTarget=b,a(this.selector).parent(".active").removeClass("active"),d=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',c=a(d).parent("li").addClass("active"),c.parent(".dropdown-menu")&&(c=c.closest("li.dropdown").addClass("active")),c.trigger("activate")}},a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("scrollspy"),f=typeof c=="object"&&c;e||d.data("scrollspy",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.defaults={offset:10},a(function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(window.jQuery),!function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype={constructor:b,show:function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.attr("data-target"),e,f,g;d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,""));if(b.parent("li").hasClass("active"))return;e=c.find(".active a").last()[0],g=a.Event("show",{relatedTarget:e}),b.trigger(g);if(g.isDefaultPrevented())return;f=a(d),this.activate(b.parent("li"),c),this.activate(f,f.parent(),function(){b.trigger({type:"shown",relatedTarget:e})})},activate:function(b,c,d){function g(){e.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),f?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var e=c.find("> .active"),f=d&&a.support.transition&&e.hasClass("fade");f?e.one(a.support.transition.end,g):g(),e.removeClass("in")}},a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("tab");e||d.data("tab",e=new b(this)),typeof c=="string"&&e[c]()})},a.fn.tab.Constructor=b,a(function(){a("body").on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})})}(window.jQuery),!function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.typeahead.defaults,c),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.$menu=a(this.options.menu).appendTo("body"),this.source=this.options.source,this.shown=!1,this.listen()};b.prototype={constructor:b,select:function(){var a=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(a)).change(),this.hide()},updater:function(a){return a},show:function(){var b=a.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return this.$menu.css({top:b.top+b.height,left:b.left}),this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(b){var c=this,d,e;return this.query=this.$element.val(),this.query?(d=a.grep(this.source,function(a){return c.matcher(a)}),d=this.sorter(d),d.length?this.render(d.slice(0,this.options.items)).show():this.shown?this.hide():this):this.shown?this.hide():this},matcher:function(a){return~a.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(a){var b=[],c=[],d=[],e;while(e=a.shift())e.toLowerCase().indexOf(this.query.toLowerCase())?~e.indexOf(this.query)?c.push(e):d.push(e):b.push(e);return b.concat(c,d)},highlighter:function(a){var b=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return a.replace(new RegExp("("+b+")","ig"),function(a,b){return"<strong>"+b+"</strong>"})},render:function(b){var c=this;return b=a(b).map(function(b,d){return b=a(c.options.item).attr("data-value",d),b.find("a").html(c.highlighter(d)),b[0]}),b.first().addClass("active"),this.$menu.html(b),this},next:function(b){var c=this.$menu.find(".active").removeClass("active"),d=c.next();d.length||(d=a(this.$menu.find("li")[0])),d.addClass("active")},prev:function(a){var b=this.$menu.find(".active").removeClass("active"),c=b.prev();c.length||(c=this.$menu.find("li").last()),c.addClass("active")},listen:function(){this.$element.on("blur",a.proxy(this.blur,this)).on("keypress",a.proxy(this.keypress,this)).on("keyup",a.proxy(this.keyup,this)),(a.browser.webkit||a.browser.msie)&&this.$element.on("keydown",a.proxy(this.keypress,this)),this.$menu.on("click",a.proxy(this.click,this)).on("mouseenter","li",a.proxy(this.mouseenter,this))},keyup:function(a){switch(a.keyCode){case 40:case 38:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}a.stopPropagation(),a.preventDefault()},keypress:function(a){if(!this.shown)return;switch(a.keyCode){case 9:case 13:case 27:a.preventDefault();break;case 38:if(a.type!="keydown")break;a.preventDefault(),this.prev();break;case 40:if(a.type!="keydown")break;a.preventDefault(),this.next()}a.stopPropagation()},blur:function(a){var b=this;setTimeout(function(){b.hide()},150)},click:function(a){a.stopPropagation(),a.preventDefault(),this.select()},mouseenter:function(b){this.$menu.find(".active").removeClass("active"),a(b.currentTarget).addClass("active")}},a.fn.typeahead=function(c){return this.each(function(){var d=a(this),e=d.data("typeahead"),f=typeof c=="object"&&c;e||d.data("typeahead",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>'},a.fn.typeahead.Constructor=b,a(function(){a("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(b){var c=a(this);if(c.data("typeahead"))return;b.preventDefault(),c.typeahead(c.data())})})}(window.jQuery);
\ No newline at end of file
diff --git a/apps/fileupload/static/fileupload/js/canvas-to-blob.min.js b/apps/fileupload/static/fileupload/js/canvas-to-blob.min.js
new file mode 100644 (file)
index 0000000..ab9e668
--- /dev/null
@@ -0,0 +1 @@
+(function(a){"use strict";var b=a.HTMLCanvasElement&&a.HTMLCanvasElement.prototype,c=a.BlobBuilder||a.WebKitBlobBuilder||a.MozBlobBuilder,d=c&&a.atob&&a.ArrayBuffer&&a.Uint8Array&&function(a){var b,d,e,f,g,h;a.split(",")[0].indexOf("base64")>=0?b=atob(a.split(",")[1]):b=decodeURIComponent(a.split(",")[1]),d=new ArrayBuffer(b.length),e=new Uint8Array(d);for(f=0;f<b.length;f+=1)e[f]=b.charCodeAt(f);return g=new c,g.append(d),h=a.split(",")[0].split(":")[1].split(";")[0],g.getBlob(h)};a.HTMLCanvasElement&&!b.toBlob&&(b.mozGetAsFile?b.toBlob=function(a,b){a(this.mozGetAsFile("blob",b))}:b.toDataURL&&d&&(b.toBlob=function(a,b){a(d(this.toDataURL(b)))})),typeof define!="undefined"&&define.amd?define(function(){return d}):a.dataURLtoBlob=d})(this);
diff --git a/apps/fileupload/static/fileupload/js/csrf.js b/apps/fileupload/static/fileupload/js/csrf.js
new file mode 100644 (file)
index 0000000..aec99cc
--- /dev/null
@@ -0,0 +1,22 @@
+// modify jquery ajax to add csrtoken when doing "local" requests
+$('html').ajaxSend(function(event, xhr, settings) {
+    function getCookie(name) {
+        var cookieValue = null;
+        if (document.cookie && document.cookie != '') {
+            var cookies = document.cookie.split(';');
+            for (var i = 0; i < cookies.length; i++) {
+                var cookie = jQuery.trim(cookies[i]);
+                // Does this cookie string begin with the name we want?
+                if (cookie.substring(0, name.length + 1) == (name + '=')) {
+                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
+                    break;
+                }
+            }
+        }
+        return cookieValue;
+    }
+    if (!(/^http:.*/.test(settings.url) || /^https:.*/.test(settings.url))) {
+        // Only send the token to relative URLs i.e. locally.
+        xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
+    }
+});
diff --git a/apps/fileupload/static/fileupload/js/jquery.fileupload-fp.js b/apps/fileupload/static/fileupload/js/jquery.fileupload-fp.js
new file mode 100644 (file)
index 0000000..634fb5e
--- /dev/null
@@ -0,0 +1,219 @@
+/*
+ * jQuery File Upload File Processing Plugin 1.0
+ * https://github.com/blueimp/jQuery-File-Upload
+ *
+ * Copyright 2012, Sebastian Tschan
+ * https://blueimp.net
+ *
+ * Licensed under the MIT license:
+ * http://www.opensource.org/licenses/MIT
+ */
+
+/*jslint nomen: true, unparam: true, regexp: true */
+/*global define, window, document */
+
+(function (factory) {
+    'use strict';
+    if (typeof define === 'function' && define.amd) {
+        // Register as an anonymous AMD module:
+        define([
+            'jquery',
+            'load-image',
+            'canvas-to-blob',
+            './jquery.fileupload'
+        ], factory);
+    } else {
+        // Browser globals:
+        factory(
+            window.jQuery,
+            window.loadImage
+        );
+    }
+}(function ($, loadImage) {
+    'use strict';
+
+    // The File Upload IP version extends the basic fileupload widget
+    // with file processing functionality:
+    $.widget('blueimpFP.fileupload', $.blueimp.fileupload, {
+
+        options: {
+            // The list of file processing actions:
+            process: [
+            /*
+                {
+                    action: 'load',
+                    fileTypes: /^image\/(gif|jpeg|png)$/,
+                    maxFileSize: 20000000 // 20MB
+                },
+                {
+                    action: 'resize',
+                    maxWidth: 1920,
+                    maxHeight: 1200,
+                    minWidth: 800,
+                    minHeight: 600
+                },
+                {
+                    action: 'save'
+                }
+            */
+            ],
+
+            // The add callback is invoked as soon as files are added to the
+            // fileupload widget (via file input selection, drag & drop or add
+            // API call). See the basic file upload widget for more information:
+            add: function (e, data) {
+                $(this).fileupload('process', data).done(function () {
+                    data.submit();
+                });
+            }
+        },
+
+        processActions: {
+            // Loads the image given via data.files and data.index
+            // as canvas element.
+            // Accepts the options fileTypes (regular expression)
+            // and maxFileSize (integer) to limit the files to load:
+            load: function (data, options) {
+                var that = this,
+                    file = data.files[data.index],
+                    dfd = $.Deferred();
+                if (window.HTMLCanvasElement &&
+                        window.HTMLCanvasElement.prototype.toBlob &&
+                        ($.type(options.maxFileSize) !== 'number' ||
+                            file.size < options.maxFileSize) &&
+                        (!options.fileTypes ||
+                            options.fileTypes.test(file.type))) {
+                    loadImage(
+                        file,
+                        function (canvas) {
+                            data.canvas = canvas;
+                            dfd.resolveWith(that, [data]);
+                        },
+                        {canvas: true}
+                    );
+                } else {
+                    dfd.rejectWith(that, [data]);
+                }
+                return dfd.promise();
+            },
+            // Resizes the image given as data.canvas and updates
+            // data.canvas with the resized image.
+            // Accepts the options maxWidth, maxHeight, minWidth and
+            // minHeight to scale the given image:
+            resize: function (data, options) {
+                if (data.canvas) {
+                    var canvas = loadImage.scale(data.canvas, options);
+                    if (canvas.width !== data.canvas.width ||
+                            canvas.height !== data.canvas.height) {
+                        data.canvas = canvas;
+                        data.processed = true;
+                    }
+                }
+                return data;
+            },
+            // Saves the processed image given as data.canvas
+            // inplace at data.index of data.files:
+            save: function (data, options) {
+                // Do nothing if no processing has happened:
+                if (!data.canvas || !data.processed) {
+                    return data;
+                }
+                var that = this,
+                    file = data.files[data.index],
+                    name = file.name,
+                    dfd = $.Deferred(),
+                    callback = function (blob) {
+                        if (!blob.name) {
+                            if (file.type === blob.type) {
+                                blob.name = file.name;
+                            } else if (file.name) {
+                                blob.name = file.name.replace(
+                                    /\..+$/,
+                                    '.' + blob.type.substr(6)
+                                );
+                            }
+                        }
+                        // Store the created blob at the position
+                        // of the original file in the files list:
+                        data.files[data.index] = blob;
+                        dfd.resolveWith(that, [data]);
+                    };
+                // Use canvas.mozGetAsFile directly, to retain the filename, as
+                // Gecko doesn't support the filename option for FormData.append:
+                if (data.canvas.mozGetAsFile) {
+                    callback(data.canvas.mozGetAsFile(
+                        (/^image\/(jpeg|png)$/.test(file.type) && name) ||
+                            ((name && name.replace(/\..+$/, '')) ||
+                                'blob') + '.png',
+                        file.type
+                    ));
+                } else {
+                    data.canvas.toBlob(callback, file.type);
+                }
+                return dfd.promise();
+            }
+        },
+
+        // Resizes the file at the given index and stores the created blob at
+        // the original position of the files list, returns a Promise object:
+        _processFile: function (files, index, options) {
+            var that = this,
+                dfd = $.Deferred().resolveWith(that, [{
+                    files: files,
+                    index: index
+                }]),
+                chain = dfd.promise();
+            that._processing += 1;
+            $.each(options.process, function (i, settings) {
+                chain = chain.pipe(function (data) {
+                    return that.processActions[settings.action]
+                        .call(this, data, settings);
+                });
+            });
+            chain.always(function () {
+                that._processing -= 1;
+                if (that._processing === 0) {
+                    that.element
+                        .removeClass('fileupload-processing');
+                }
+            });
+            if (that._processing === 1) {
+                that.element.addClass('fileupload-processing');
+            }
+            return chain;
+        },
+
+        // Processes the files given as files property of the data parameter,
+        // returns a Promise object that allows to bind a done handler, which
+        // will be invoked after processing all files (inplace) is done:
+        process: function (data) {
+            var that = this,
+                options = $.extend({}, this.options, data);
+            if (options.process && options.process.length &&
+                    this._isXHRUpload(options)) {
+                $.each(data.files, function (index, file) {
+                    that._processingQueue = that._processingQueue.pipe(
+                        function () {
+                            var dfd = $.Deferred();
+                            that._processFile(data.files, index, options)
+                                .always(function () {
+                                    dfd.resolveWith(that);
+                                });
+                            return dfd.promise();
+                        }
+                    );
+                });
+            }
+            return this._processingQueue;
+        },
+
+        _create: function () {
+            $.blueimp.fileupload.prototype._create.call(this);
+            this._processing = 0;
+            this._processingQueue = $.Deferred().resolveWith(this)
+                .promise();
+        }
+
+    });
+
+}));
diff --git a/apps/fileupload/static/fileupload/js/jquery.fileupload-ui.js b/apps/fileupload/static/fileupload/js/jquery.fileupload-ui.js
new file mode 100644 (file)
index 0000000..f7fc3bf
--- /dev/null
@@ -0,0 +1,691 @@
+/*
+ * jQuery File Upload User Interface Plugin 6.8.1
+ * https://github.com/blueimp/jQuery-File-Upload
+ *
+ * Copyright 2010, Sebastian Tschan
+ * https://blueimp.net
+ *
+ * Licensed under the MIT license:
+ * http://www.opensource.org/licenses/MIT
+ */
+
+/*jslint nomen: true, unparam: true, regexp: true */
+/*global define, window, document, URL, webkitURL, FileReader */
+
+(function (factory) {
+    'use strict';
+    if (typeof define === 'function' && define.amd) {
+        // Register as an anonymous AMD module:
+        define([
+            'jquery',
+            'tmpl',
+            'load-image',
+            './jquery.fileupload-fp'
+        ], factory);
+    } else {
+        // Browser globals:
+        factory(
+            window.jQuery,
+            window.tmpl,
+            window.loadImage
+        );
+    }
+}(function ($, tmpl, loadImage) {
+    'use strict';
+
+    // The UI version extends the FP (file processing) version or the basic
+    // file upload widget and adds complete user interface interaction:
+    var parentWidget = ($.blueimpFP || $.blueimp).fileupload;
+    $.widget('blueimpUI.fileupload', parentWidget, {
+
+        options: {
+            // By default, files added to the widget are uploaded as soon
+            // as the user clicks on the start buttons. To enable automatic
+            // uploads, set the following option to true:
+            autoUpload: false,
+            // The following option limits the number of files that are
+            // allowed to be uploaded using this widget:
+            maxNumberOfFiles: undefined,
+            // The maximum allowed file size:
+            maxFileSize: undefined,
+            // The minimum allowed file size:
+            minFileSize: undefined,
+            // The regular expression for allowed file types, matches
+            // against either file type or file name:
+            acceptFileTypes:  /.+$/i,
+            // The regular expression to define for which files a preview
+            // image is shown, matched against the file type:
+            previewSourceFileTypes: /^image\/(gif|jpeg|png)$/,
+            // The maximum file size of images that are to be displayed as preview:
+            previewSourceMaxFileSize: 5000000, // 5MB
+            // The maximum width of the preview images:
+            previewMaxWidth: 80,
+            // The maximum height of the preview images:
+            previewMaxHeight: 80,
+            // By default, preview images are displayed as canvas elements
+            // if supported by the browser. Set the following option to false
+            // to always display preview images as img elements:
+            previewAsCanvas: true,
+            // The ID of the upload template:
+            uploadTemplateId: 'template-upload',
+            // The ID of the download template:
+            downloadTemplateId: 'template-download',
+            // The container for the list of files. If undefined, it is set to
+            // an element with class "files" inside of the widget element:
+            filesContainer: undefined,
+            // By default, files are appended to the files container.
+            // Set the following option to true, to prepend files instead:
+            prependFiles: false,
+            // The expected data type of the upload response, sets the dataType
+            // option of the $.ajax upload requests:
+            dataType: 'json',
+
+            // The add callback is invoked as soon as files are added to the fileupload
+            // widget (via file input selection, drag & drop or add API call).
+            // See the basic file upload widget for more information:
+            add: function (e, data) {
+                var that = $(this).data('fileupload'),
+                    options = that.options,
+                    files = data.files;
+                $(this).fileupload('process', data).done(function () {
+                    that._adjustMaxNumberOfFiles(-files.length);
+                    data.isAdjusted = true;
+                    data.files.valid = data.isValidated = that._validate(files);
+                    data.context = that._renderUpload(files).data('data', data);
+                    options.filesContainer[
+                        options.prependFiles ? 'prepend' : 'append'
+                    ](data.context);
+                    that._renderPreviews(files, data.context);
+                    that._forceReflow(data.context);
+                    that._transition(data.context).done(
+                        function () {
+                            if ((that._trigger('added', e, data) !== false) &&
+                                    (options.autoUpload || data.autoUpload) &&
+                                    data.autoUpload !== false && data.isValidated) {
+                                data.submit();
+                            }
+                        }
+                    );
+                });
+            },
+            // Callback for the start of each file upload request:
+            send: function (e, data) {
+                var that = $(this).data('fileupload');
+                if (!data.isValidated) {
+                    if (!data.isAdjusted) {
+                        that._adjustMaxNumberOfFiles(-data.files.length);
+                    }
+                    if (!that._validate(data.files)) {
+                        return false;
+                    }
+                }
+                if (data.context && data.dataType &&
+                        data.dataType.substr(0, 6) === 'iframe') {
+                    // Iframe Transport does not support progress events.
+                    // In lack of an indeterminate progress bar, we set
+                    // the progress to 100%, showing the full animated bar:
+                    data.context
+                        .find('.progress').addClass(
+                            !$.support.transition && 'progress-animated'
+                        )
+                        .find('.bar').css(
+                            'width',
+                            parseInt(100, 10) + '%'
+                        );
+                }
+                return that._trigger('sent', e, data);
+            },
+            // Callback for successful uploads:
+            done: function (e, data) {
+                var that = $(this).data('fileupload'),
+                    template;
+                if (data.context) {
+                    data.context.each(function (index) {
+                        var file = ($.isArray(data.result) &&
+                                data.result[index]) || {error: 'emptyResult'};
+                        if (file.error) {
+                            that._adjustMaxNumberOfFiles(1);
+                        }
+                        that._transition($(this)).done(
+                            function () {
+                                var node = $(this);
+                                template = that._renderDownload([file])
+                                    .css('height', node.height())
+                                    .replaceAll(node);
+                                that._forceReflow(template);
+                                that._transition(template).done(
+                                    function () {
+                                        data.context = $(this);
+                                        that._trigger('completed', e, data);
+                                    }
+                                );
+                            }
+                        );
+                    });
+                } else {
+                    template = that._renderDownload(data.result)
+                        .appendTo(that.options.filesContainer);
+                    that._forceReflow(template);
+                    that._transition(template).done(
+                        function () {
+                            data.context = $(this);
+                            that._trigger('completed', e, data);
+                        }
+                    );
+                }
+            },
+            // Callback for failed (abort or error) uploads:
+            fail: function (e, data) {
+                var that = $(this).data('fileupload'),
+                    template;
+                that._adjustMaxNumberOfFiles(data.files.length);
+                if (data.context) {
+                    data.context.each(function (index) {
+                        if (data.errorThrown !== 'abort') {
+                            var file = data.files[index];
+                            file.error = file.error || data.errorThrown ||
+                                true;
+                            that._transition($(this)).done(
+                                function () {
+                                    var node = $(this);
+                                    template = that._renderDownload([file])
+                                        .replaceAll(node);
+                                    that._forceReflow(template);
+                                    that._transition(template).done(
+                                        function () {
+                                            data.context = $(this);
+                                            that._trigger('failed', e, data);
+                                        }
+                                    );
+                                }
+                            );
+                        } else {
+                            that._transition($(this)).done(
+                                function () {
+                                    $(this).remove();
+                                    that._trigger('failed', e, data);
+                                }
+                            );
+                        }
+                    });
+                } else if (data.errorThrown !== 'abort') {
+                    that._adjustMaxNumberOfFiles(-data.files.length);
+                    data.context = that._renderUpload(data.files)
+                        .appendTo(that.options.filesContainer)
+                        .data('data', data);
+                    that._forceReflow(data.context);
+                    that._transition(data.context).done(
+                        function () {
+                            data.context = $(this);
+                            that._trigger('failed', e, data);
+                        }
+                    );
+                } else {
+                    that._trigger('failed', e, data);
+                }
+            },
+            // Callback for upload progress events:
+            progress: function (e, data) {
+                if (data.context) {
+                    data.context.find('.bar').css(
+                        'width',
+                        parseInt(data.loaded / data.total * 100, 10) + '%'
+                    );
+                }
+            },
+            // Callback for global upload progress events:
+            progressall: function (e, data) {
+                var $this = $(this);
+                $this.find('.fileupload-progress')
+                    .find('.bar').css(
+                        'width',
+                        parseInt(data.loaded / data.total * 100, 10) + '%'
+                    ).end()
+                    .find('.progress-extended').each(function () {
+                        $(this).html(
+                            $this.data('fileupload')
+                                ._renderExtendedProgress(data)
+                        );
+                    });
+            },
+            // Callback for uploads start, equivalent to the global ajaxStart event:
+            start: function (e) {
+                var that = $(this).data('fileupload');
+                that._transition($(this).find('.fileupload-progress')).done(
+                    function () {
+                        that._trigger('started', e);
+                    }
+                );
+            },
+            // Callback for uploads stop, equivalent to the global ajaxStop event:
+            stop: function (e) {
+                var that = $(this).data('fileupload');
+                that._transition($(this).find('.fileupload-progress')).done(
+                    function () {
+                        $(this).find('.bar').css('width', '0%');
+                        $(this).find('.progress-extended').html('&nbsp;');
+                        that._trigger('stopped', e);
+                    }
+                );
+            },
+            // Callback for file deletion:
+            destroy: function (e, data) {
+                var that = $(this).data('fileupload');
+                if (data.url) {
+                    $.ajax(data);
+                }
+                that._adjustMaxNumberOfFiles(1);
+                that._transition(data.context).done(
+                    function () {
+                        $(this).remove();
+                        that._trigger('destroyed', e, data);
+                    }
+                );
+            }
+        },
+
+        // Link handler, that allows to download files
+        // by drag & drop of the links to the desktop:
+        _enableDragToDesktop: function () {
+            var link = $(this),
+                url = link.prop('href'),
+                name = link.prop('download'),
+                type = 'application/octet-stream';
+            link.bind('dragstart', function (e) {
+                try {
+                    e.originalEvent.dataTransfer.setData(
+                        'DownloadURL',
+                        [type, name, url].join(':')
+                    );
+                } catch (err) {}
+            });
+        },
+
+        _adjustMaxNumberOfFiles: function (operand) {
+            if (typeof this.options.maxNumberOfFiles === 'number') {
+                this.options.maxNumberOfFiles += operand;
+                if (this.options.maxNumberOfFiles < 1) {
+                    this._disableFileInputButton();
+                } else {
+                    this._enableFileInputButton();
+                }
+            }
+        },
+
+        _formatFileSize: function (bytes) {
+            if (typeof bytes !== 'number') {
+                return '';
+            }
+            if (bytes >= 1000000000) {
+                return (bytes / 1000000000).toFixed(2) + ' GB';
+            }
+            if (bytes >= 1000000) {
+                return (bytes / 1000000).toFixed(2) + ' MB';
+            }
+            return (bytes / 1000).toFixed(2) + ' KB';
+        },
+
+        _formatBitrate: function (bits) {
+            if (typeof bits !== 'number') {
+                return '';
+            }
+            if (bits >= 1000000000) {
+                return (bits / 1000000000).toFixed(2) + ' Gbit/s';
+            }
+            if (bits >= 1000000) {
+                return (bits / 1000000).toFixed(2) + ' Mbit/s';
+            }
+            if (bits >= 1000) {
+                return (bits / 1000).toFixed(2) + ' kbit/s';
+            }
+            return bits + ' bit/s';
+        },
+
+        _formatTime: function (seconds) {
+            var date = new Date(seconds * 1000),
+                days = parseInt(seconds / 86400, 10);
+            days = days ? days + 'd ' : '';
+            return days +
+                ('0' + date.getUTCHours()).slice(-2) + ':' +
+                ('0' + date.getUTCMinutes()).slice(-2) + ':' +
+                ('0' + date.getUTCSeconds()).slice(-2);
+        },
+
+        _formatPercentage: function (floatValue) {
+            return (floatValue * 100).toFixed(2) + ' %';
+        },
+
+        _renderExtendedProgress: function (data) {
+            return this._formatBitrate(data.bitrate) + ' | ' +
+                this._formatTime(
+                    (data.total - data.loaded) * 8 / data.bitrate
+                ) + ' | ' +
+                this._formatPercentage(
+                    data.loaded / data.total
+                ) + ' | ' +
+                this._formatFileSize(data.loaded) + ' / ' +
+                this._formatFileSize(data.total);
+        },
+
+        _hasError: function (file) {
+            if (file.error) {
+                return file.error;
+            }
+            // The number of added files is subtracted from
+            // maxNumberOfFiles before validation, so we check if
+            // maxNumberOfFiles is below 0 (instead of below 1):
+            if (this.options.maxNumberOfFiles < 0) {
+                return 'maxNumberOfFiles';
+            }
+            // Files are accepted if either the file type or the file name
+            // matches against the acceptFileTypes regular expression, as
+            // only browsers with support for the File API report the type:
+            if (!(this.options.acceptFileTypes.test(file.type) ||
+                    this.options.acceptFileTypes.test(file.name))) {
+                return 'acceptFileTypes';
+            }
+            if (this.options.maxFileSize &&
+                    file.size > this.options.maxFileSize) {
+                return 'maxFileSize';
+            }
+            if (typeof file.size === 'number' &&
+                    file.size < this.options.minFileSize) {
+                return 'minFileSize';
+            }
+            return null;
+        },
+
+        _validate: function (files) {
+            var that = this,
+                valid = !!files.length;
+            $.each(files, function (index, file) {
+                file.error = that._hasError(file);
+                if (file.error) {
+                    valid = false;
+                }
+            });
+            return valid;
+        },
+
+        _renderTemplate: function (func, files) {
+            if (!func) {
+                return $();
+            }
+            var result = func({
+                files: files,
+                formatFileSize: this._formatFileSize,
+                options: this.options
+            });
+            if (result instanceof $) {
+                return result;
+            }
+            return $(this.options.templatesContainer).html(result).children();
+        },
+
+        _renderPreview: function (file, node) {
+            var that = this,
+                options = this.options,
+                dfd = $.Deferred();
+            return ((loadImage && loadImage(
+                file,
+                function (img) {
+                    node.append(img);
+                    that._forceReflow(node);
+                    that._transition(node).done(function () {
+                        dfd.resolveWith(node);
+                    });
+                    if (!$.contains(document.body, node[0])) {
+                        // If the element is not part of the DOM,
+                        // transition events are not triggered,
+                        // so we have to resolve manually:
+                        dfd.resolveWith(node);
+                    }
+                },
+                {
+                    maxWidth: options.previewMaxWidth,
+                    maxHeight: options.previewMaxHeight,
+                    canvas: options.previewAsCanvas
+                }
+            )) || dfd.resolveWith(node)) && dfd;
+        },
+
+        _renderPreviews: function (files, nodes) {
+            var that = this,
+                options = this.options;
+            nodes.find('.preview span').each(function (index, element) {
+                var file = files[index];
+                if (options.previewSourceFileTypes.test(file.type) &&
+                        ($.type(options.previewSourceMaxFileSize) !== 'number' ||
+                        file.size < options.previewSourceMaxFileSize)) {
+                    that._processingQueue = that._processingQueue.pipe(function () {
+                        var dfd = $.Deferred();
+                        that._renderPreview(file, $(element)).done(
+                            function () {
+                                dfd.resolveWith(that);
+                            }
+                        );
+                        return dfd.promise();
+                    });
+                }
+            });
+            return this._processingQueue;
+        },
+
+        _renderUpload: function (files) {
+            return this._renderTemplate(
+                this.options.uploadTemplate,
+                files
+            );
+        },
+
+        _renderDownload: function (files) {
+            return this._renderTemplate(
+                this.options.downloadTemplate,
+                files
+            ).find('a[download]').each(this._enableDragToDesktop).end();
+        },
+
+        _startHandler: function (e) {
+            e.preventDefault();
+            var button = $(this),
+                template = button.closest('.template-upload'),
+                data = template.data('data');
+            if (data && data.submit && !data.jqXHR && data.submit()) {
+                button.prop('disabled', true);
+            }
+        },
+
+        _cancelHandler: function (e) {
+            e.preventDefault();
+            var template = $(this).closest('.template-upload'),
+                data = template.data('data') || {};
+            if (!data.jqXHR) {
+                data.errorThrown = 'abort';
+                e.data.fileupload._trigger('fail', e, data);
+            } else {
+                data.jqXHR.abort();
+            }
+        },
+
+        _deleteHandler: function (e) {
+            e.preventDefault();
+            var button = $(this);
+            e.data.fileupload._trigger('destroy', e, {
+                context: button.closest('.template-download'),
+                url: button.attr('data-url'),
+                type: button.attr('data-type') || 'DELETE',
+                dataType: e.data.fileupload.options.dataType
+            });
+        },
+
+        _forceReflow: function (node) {
+            this._reflow = $.support.transition &&
+                node.length && node[0].offsetWidth;
+        },
+
+        _transition: function (node) {
+            var dfd = $.Deferred();
+            if ($.support.transition && node.hasClass('fade')) {
+                node.bind(
+                    $.support.transition.end,
+                    function (e) {
+                        // Make sure we don't respond to other transitions events
+                        // in the container element, e.g. from button elements:
+                        if (e.target === node[0]) {
+                            node.unbind($.support.transition.end);
+                            dfd.resolveWith(node);
+                        }
+                    }
+                ).toggleClass('in');
+            } else {
+                node.toggleClass('in');
+                dfd.resolveWith(node);
+            }
+            return dfd;
+        },
+
+        _initButtonBarEventHandlers: function () {
+            var fileUploadButtonBar = this.element.find('.fileupload-buttonbar'),
+                filesList = this.options.filesContainer,
+                ns = this.options.namespace;
+            fileUploadButtonBar.find('.start')
+                .bind('click.' + ns, function (e) {
+                    e.preventDefault();
+                    filesList.find('.start button').click();
+                });
+            fileUploadButtonBar.find('.cancel')
+                .bind('click.' + ns, function (e) {
+                    e.preventDefault();
+                    filesList.find('.cancel button').click();
+                });
+            fileUploadButtonBar.find('.delete')
+                .bind('click.' + ns, function (e) {
+                    e.preventDefault();
+                    filesList.find('.delete input:checked')
+                        .siblings('button').click();
+                    fileUploadButtonBar.find('.toggle')
+                        .prop('checked', false);
+                });
+            fileUploadButtonBar.find('.toggle')
+                .bind('change.' + ns, function (e) {
+                    filesList.find('.delete input').prop(
+                        'checked',
+                        $(this).is(':checked')
+                    );
+                });
+        },
+
+        _destroyButtonBarEventHandlers: function () {
+            this.element.find('.fileupload-buttonbar button')
+                .unbind('click.' + this.options.namespace);
+            this.element.find('.fileupload-buttonbar .toggle')
+                .unbind('change.' + this.options.namespace);
+        },
+
+        _initEventHandlers: function () {
+            parentWidget.prototype._initEventHandlers.call(this);
+            var eventData = {fileupload: this};
+            this.options.filesContainer
+                .delegate(
+                    '.start button',
+                    'click.' + this.options.namespace,
+                    eventData,
+                    this._startHandler
+                )
+                .delegate(
+                    '.cancel button',
+                    'click.' + this.options.namespace,
+                    eventData,
+                    this._cancelHandler
+                )
+                .delegate(
+                    '.delete button',
+                    'click.' + this.options.namespace,
+                    eventData,
+                    this._deleteHandler
+                );
+            this._initButtonBarEventHandlers();
+        },
+
+        _destroyEventHandlers: function () {
+            var options = this.options;
+            this._destroyButtonBarEventHandlers();
+            options.filesContainer
+                .undelegate('.start button', 'click.' + options.namespace)
+                .undelegate('.cancel button', 'click.' + options.namespace)
+                .undelegate('.delete button', 'click.' + options.namespace);
+            parentWidget.prototype._destroyEventHandlers.call(this);
+        },
+
+        _enableFileInputButton: function () {
+            this.element.find('.fileinput-button input')
+                .prop('disabled', false)
+                .parent().removeClass('disabled');
+        },
+
+        _disableFileInputButton: function () {
+            this.element.find('.fileinput-button input')
+                .prop('disabled', true)
+                .parent().addClass('disabled');
+        },
+
+        _initTemplates: function () {
+            var options = this.options;
+            options.templatesContainer = document.createElement(
+                options.filesContainer.prop('nodeName')
+            );
+            if (tmpl) {
+                if (options.uploadTemplateId) {
+                    options.uploadTemplate = tmpl(options.uploadTemplateId);
+                }
+                if (options.downloadTemplateId) {
+                    options.downloadTemplate = tmpl(options.downloadTemplateId);
+                }
+            }
+        },
+
+        _initFilesContainer: function () {
+            var options = this.options;
+            if (options.filesContainer === undefined) {
+                options.filesContainer = this.element.find('.files');
+            } else if (!(options.filesContainer instanceof $)) {
+                options.filesContainer = $(options.filesContainer);
+            }
+        },
+
+        _initSpecialOptions: function () {
+            parentWidget.prototype._initSpecialOptions.call(this);
+            this._initFilesContainer();
+            this._initTemplates();
+        },
+
+        _create: function () {
+            parentWidget.prototype._create.call(this);
+            this._refreshOptionsList.push(
+                'filesContainer',
+                'uploadTemplateId',
+                'downloadTemplateId'
+            );
+            if (!$.blueimpFP) {
+                this._processingQueue = $.Deferred().resolveWith(this).promise();
+                this.process = function () {
+                    return this._processingQueue;
+                };
+            }
+        },
+
+        enable: function () {
+            parentWidget.prototype.enable.call(this);
+            this.element.find('input, button').prop('disabled', false);
+            this._enableFileInputButton();
+        },
+
+        disable: function () {
+            this.element.find('input, button').prop('disabled', true);
+            this._disableFileInputButton();
+            parentWidget.prototype.disable.call(this);
+        }
+
+    });
+
+}));
diff --git a/apps/fileupload/static/fileupload/js/jquery.fileupload.js b/apps/fileupload/static/fileupload/js/jquery.fileupload.js
new file mode 100644 (file)
index 0000000..05a654b
--- /dev/null
@@ -0,0 +1,949 @@
+/*
+ * jQuery File Upload Plugin 5.11.2
+ * https://github.com/blueimp/jQuery-File-Upload
+ *
+ * Copyright 2010, Sebastian Tschan
+ * https://blueimp.net
+ *
+ * Licensed under the MIT license:
+ * http://www.opensource.org/licenses/MIT
+ */
+
+/*jslint nomen: true, unparam: true, regexp: true */
+/*global define, window, document, Blob, FormData, location */
+
+(function (factory) {
+    'use strict';
+    if (typeof define === 'function' && define.amd) {
+        // Register as an anonymous AMD module:
+        define([
+            'jquery',
+            'jquery.ui.widget'
+        ], factory);
+    } else {
+        // Browser globals:
+        factory(window.jQuery);
+    }
+}(function ($) {
+    'use strict';
+
+    // The FileReader API is not actually used, but works as feature detection,
+    // as e.g. Safari supports XHR file uploads via the FormData API,
+    // but not non-multipart XHR file uploads:
+    $.support.xhrFileUpload = !!(window.XMLHttpRequestUpload && window.FileReader);
+    $.support.xhrFormDataFileUpload = !!window.FormData;
+
+    // The fileupload widget listens for change events on file input fields defined
+    // via fileInput setting and paste or drop events of the given dropZone.
+    // In addition to the default jQuery Widget methods, the fileupload widget
+    // exposes the "add" and "send" methods, to add or directly send files using
+    // the fileupload API.
+    // By default, files added via file input selection, paste, drag & drop or
+    // "add" method are uploaded immediately, but it is possible to override
+    // the "add" callback option to queue file uploads.
+    $.widget('blueimp.fileupload', {
+
+        options: {
+            // The namespace used for event handler binding on the dropZone and
+            // fileInput collections.
+            // If not set, the name of the widget ("fileupload") is used.
+            namespace: undefined,
+            // The drop target collection, by the default the complete document.
+            // Set to null or an empty collection to disable drag & drop support:
+            dropZone: $(document),
+            // The file input field collection, that is listened for change events.
+            // If undefined, it is set to the file input fields inside
+            // of the widget element on plugin initialization.
+            // Set to null or an empty collection to disable the change listener.
+            fileInput: undefined,
+            // By default, the file input field is replaced with a clone after
+            // each input field change event. This is required for iframe transport
+            // queues and allows change events to be fired for the same file
+            // selection, but can be disabled by setting the following option to false:
+            replaceFileInput: true,
+            // The parameter name for the file form data (the request argument name).
+            // If undefined or empty, the name property of the file input field is
+            // used, or "files[]" if the file input name property is also empty,
+            // can be a string or an array of strings:
+            paramName: undefined,
+            // By default, each file of a selection is uploaded using an individual
+            // request for XHR type uploads. Set to false to upload file
+            // selections in one request each:
+            singleFileUploads: true,
+            // To limit the number of files uploaded with one XHR request,
+            // set the following option to an integer greater than 0:
+            limitMultiFileUploads: undefined,
+            // Set the following option to true to issue all file upload requests
+            // in a sequential order:
+            sequentialUploads: false,
+            // To limit the number of concurrent uploads,
+            // set the following option to an integer greater than 0:
+            limitConcurrentUploads: undefined,
+            // Set the following option to true to force iframe transport uploads:
+            forceIframeTransport: false,
+            // Set the following option to the location of a redirect url on the
+            // origin server, for cross-domain iframe transport uploads:
+            redirect: undefined,
+            // The parameter name for the redirect url, sent as part of the form
+            // data and set to 'redirect' if this option is empty:
+            redirectParamName: undefined,
+            // Set the following option to the location of a postMessage window,
+            // to enable postMessage transport uploads:
+            postMessage: undefined,
+            // By default, XHR file uploads are sent as multipart/form-data.
+            // The iframe transport is always using multipart/form-data.
+            // Set to false to enable non-multipart XHR uploads:
+            multipart: true,
+            // To upload large files in smaller chunks, set the following option
+            // to a preferred maximum chunk size. If set to 0, null or undefined,
+            // or the browser does not support the required Blob API, files will
+            // be uploaded as a whole.
+            maxChunkSize: undefined,
+            // When a non-multipart upload or a chunked multipart upload has been
+            // aborted, this option can be used to resume the upload by setting
+            // it to the size of the already uploaded bytes. This option is most
+            // useful when modifying the options object inside of the "add" or
+            // "send" callbacks, as the options are cloned for each file upload.
+            uploadedBytes: undefined,
+            // By default, failed (abort or error) file uploads are removed from the
+            // global progress calculation. Set the following option to false to
+            // prevent recalculating the global progress data:
+            recalculateProgress: true,
+            // Interval in milliseconds to calculate and trigger progress events:
+            progressInterval: 100,
+            // Interval in milliseconds to calculate progress bitrate:
+            bitrateInterval: 500,
+
+            // Additional form data to be sent along with the file uploads can be set
+            // using this option, which accepts an array of objects with name and
+            // value properties, a function returning such an array, a FormData
+            // object (for XHR file uploads), or a simple object.
+            // The form of the first fileInput is given as parameter to the function:
+            formData: function (form) {
+                return form.serializeArray();
+            },
+
+            // The add callback is invoked as soon as files are added to the fileupload
+            // widget (via file input selection, drag & drop, paste or add API call).
+            // If the singleFileUploads option is enabled, this callback will be
+            // called once for each file in the selection for XHR file uplaods, else
+            // once for each file selection.
+            // The upload starts when the submit method is invoked on the data parameter.
+            // The data object contains a files property holding the added files
+            // and allows to override plugin options as well as define ajax settings.
+            // Listeners for this callback can also be bound the following way:
+            // .bind('fileuploadadd', func);
+            // data.submit() returns a Promise object and allows to attach additional
+            // handlers using jQuery's Deferred callbacks:
+            // data.submit().done(func).fail(func).always(func);
+            add: function (e, data) {
+                data.submit();
+            },
+
+            // Other callbacks:
+            // Callback for the submit event of each file upload:
+            // submit: function (e, data) {}, // .bind('fileuploadsubmit', func);
+            // Callback for the start of each file upload request:
+            // send: function (e, data) {}, // .bind('fileuploadsend', func);
+            // Callback for successful uploads:
+            // done: function (e, data) {}, // .bind('fileuploaddone', func);
+            // Callback for failed (abort or error) uploads:
+            // fail: function (e, data) {}, // .bind('fileuploadfail', func);
+            // Callback for completed (success, abort or error) requests:
+            // always: function (e, data) {}, // .bind('fileuploadalways', func);
+            // Callback for upload progress events:
+            // progress: function (e, data) {}, // .bind('fileuploadprogress', func);
+            // Callback for global upload progress events:
+            // progressall: function (e, data) {}, // .bind('fileuploadprogressall', func);
+            // Callback for uploads start, equivalent to the global ajaxStart event:
+            // start: function (e) {}, // .bind('fileuploadstart', func);
+            // Callback for uploads stop, equivalent to the global ajaxStop event:
+            // stop: function (e) {}, // .bind('fileuploadstop', func);
+            // Callback for change events of the fileInput collection:
+            // change: function (e, data) {}, // .bind('fileuploadchange', func);
+            // Callback for paste events to the dropZone collection:
+            // paste: function (e, data) {}, // .bind('fileuploadpaste', func);
+            // Callback for drop events of the dropZone collection:
+            // drop: function (e, data) {}, // .bind('fileuploaddrop', func);
+            // Callback for dragover events of the dropZone collection:
+            // dragover: function (e) {}, // .bind('fileuploaddragover', func);
+
+            // The plugin options are used as settings object for the ajax calls.
+            // The following are jQuery ajax settings required for the file uploads:
+            processData: false,
+            contentType: false,
+            cache: false
+        },
+
+        // A list of options that require a refresh after assigning a new value:
+        _refreshOptionsList: [
+            'namespace',
+            'dropZone',
+            'fileInput',
+            'multipart',
+            'forceIframeTransport'
+        ],
+
+        _BitrateTimer: function () {
+            this.timestamp = +(new Date());
+            this.loaded = 0;
+            this.bitrate = 0;
+            this.getBitrate = function (now, loaded, interval) {
+                var timeDiff = now - this.timestamp;
+                if (!this.bitrate || !interval || timeDiff > interval) {
+                    this.bitrate = (loaded - this.loaded) * (1000 / timeDiff) * 8;
+                    this.loaded = loaded;
+                    this.timestamp = now;
+                }
+                return this.bitrate;
+            };
+        },
+
+        _isXHRUpload: function (options) {
+            return !options.forceIframeTransport &&
+                ((!options.multipart && $.support.xhrFileUpload) ||
+                $.support.xhrFormDataFileUpload);
+        },
+
+        _getFormData: function (options) {
+            var formData;
+            if (typeof options.formData === 'function') {
+                return options.formData(options.form);
+            }
+                       if ($.isArray(options.formData)) {
+                return options.formData;
+            }
+                       if (options.formData) {
+                formData = [];
+                $.each(options.formData, function (name, value) {
+                    formData.push({name: name, value: value});
+                });
+                return formData;
+            }
+            return [];
+        },
+
+        _getTotal: function (files) {
+            var total = 0;
+            $.each(files, function (index, file) {
+                total += file.size || 1;
+            });
+            return total;
+        },
+
+        _onProgress: function (e, data) {
+            if (e.lengthComputable) {
+                var now = +(new Date()),
+                    total,
+                    loaded;
+                if (data._time && data.progressInterval &&
+                        (now - data._time < data.progressInterval) &&
+                        e.loaded !== e.total) {
+                    return;
+                }
+                data._time = now;
+                total = data.total || this._getTotal(data.files);
+                loaded = parseInt(
+                    e.loaded / e.total * (data.chunkSize || total),
+                    10
+                ) + (data.uploadedBytes || 0);
+                this._loaded += loaded - (data.loaded || data.uploadedBytes || 0);
+                data.lengthComputable = true;
+                data.loaded = loaded;
+                data.total = total;
+                data.bitrate = data._bitrateTimer.getBitrate(
+                    now,
+                    loaded,
+                    data.bitrateInterval
+                );
+                // Trigger a custom progress event with a total data property set
+                // to the file size(s) of the current upload and a loaded data
+                // property calculated accordingly:
+                this._trigger('progress', e, data);
+                // Trigger a global progress event for all current file uploads,
+                // including ajax calls queued for sequential file uploads:
+                this._trigger('progressall', e, {
+                    lengthComputable: true,
+                    loaded: this._loaded,
+                    total: this._total,
+                    bitrate: this._bitrateTimer.getBitrate(
+                        now,
+                        this._loaded,
+                        data.bitrateInterval
+                    )
+                });
+            }
+        },
+
+        _initProgressListener: function (options) {
+            var that = this,
+                xhr = options.xhr ? options.xhr() : $.ajaxSettings.xhr();
+            // Accesss to the native XHR object is required to add event listeners
+            // for the upload progress event:
+            if (xhr.upload) {
+                $(xhr.upload).bind('progress', function (e) {
+                    var oe = e.originalEvent;
+                    // Make sure the progress event properties get copied over:
+                    e.lengthComputable = oe.lengthComputable;
+                    e.loaded = oe.loaded;
+                    e.total = oe.total;
+                    that._onProgress(e, options);
+                });
+                options.xhr = function () {
+                    return xhr;
+                };
+            }
+        },
+
+        _initXHRData: function (options) {
+            var formData,
+                file = options.files[0],
+                // Ignore non-multipart setting if not supported:
+                multipart = options.multipart || !$.support.xhrFileUpload,
+                paramName = options.paramName[0];
+            if (!multipart || options.blob) {
+                // For non-multipart uploads and chunked uploads,
+                // file meta data is not part of the request body,
+                // so we transmit this data as part of the HTTP headers.
+                // For cross domain requests, these headers must be allowed
+                // via Access-Control-Allow-Headers or removed using
+                // the beforeSend callback:
+                options.headers = $.extend(options.headers, {
+                    'X-File-Name': file.name,
+                    'X-File-Type': file.type,
+                    'X-File-Size': file.size
+                });
+                if (!options.blob) {
+                    // Non-chunked non-multipart upload:
+                    options.contentType = file.type;
+                    options.data = file;
+                } else if (!multipart) {
+                    // Chunked non-multipart upload:
+                    options.contentType = 'application/octet-stream';
+                    options.data = options.blob;
+                }
+            }
+            if (multipart && $.support.xhrFormDataFileUpload) {
+                if (options.postMessage) {
+                    // window.postMessage does not allow sending FormData
+                    // objects, so we just add the File/Blob objects to
+                    // the formData array and let the postMessage window
+                    // create the FormData object out of this array:
+                    formData = this._getFormData(options);
+                    if (options.blob) {
+                        formData.push({
+                            name: paramName,
+                            value: options.blob
+                        });
+                    } else {
+                        $.each(options.files, function (index, file) {
+                            formData.push({
+                                name: options.paramName[index] || paramName,
+                                value: file
+                            });
+                        });
+                    }
+                } else {
+                    if (options.formData instanceof FormData) {
+                        formData = options.formData;
+                    } else {
+                        formData = new FormData();
+                        $.each(this._getFormData(options), function (index, field) {
+                            formData.append(field.name, field.value);
+                        });
+                    }
+                    if (options.blob) {
+                        formData.append(paramName, options.blob, file.name);
+                    } else {
+                        $.each(options.files, function (index, file) {
+                            // File objects are also Blob instances.
+                            // This check allows the tests to run with
+                            // dummy objects:
+                            if (file instanceof Blob) {
+                                formData.append(
+                                    options.paramName[index] || paramName,
+                                    file,
+                                    file.name
+                                );
+                            }
+                        });
+                    }
+                }
+                options.data = formData;
+            }
+            // Blob reference is not needed anymore, free memory:
+            options.blob = null;
+        },
+
+        _initIframeSettings: function (options) {
+            // Setting the dataType to iframe enables the iframe transport:
+            options.dataType = 'iframe ' + (options.dataType || '');
+            // The iframe transport accepts a serialized array as form data:
+            options.formData = this._getFormData(options);
+            // Add redirect url to form data on cross-domain uploads:
+            if (options.redirect && $('<a></a>').prop('href', options.url)
+                    .prop('host') !== location.host) {
+                options.formData.push({
+                    name: options.redirectParamName || 'redirect',
+                    value: options.redirect
+                });
+            }
+        },
+
+        _initDataSettings: function (options) {
+            if (this._isXHRUpload(options)) {
+                if (!this._chunkedUpload(options, true)) {
+                    if (!options.data) {
+                        this._initXHRData(options);
+                    }
+                    this._initProgressListener(options);
+                }
+                if (options.postMessage) {
+                    // Setting the dataType to postmessage enables the
+                    // postMessage transport:
+                    options.dataType = 'postmessage ' + (options.dataType || '');
+                }
+            } else {
+                this._initIframeSettings(options, 'iframe');
+            }
+        },
+
+        _getParamName: function (options) {
+            var fileInput = $(options.fileInput),
+                paramName = options.paramName;
+            if (!paramName) {
+                paramName = [];
+                fileInput.each(function () {
+                    var input = $(this),
+                        name = input.prop('name') || 'files[]',
+                        i = (input.prop('files') || [1]).length;
+                    while (i) {
+                        paramName.push(name);
+                        i -= 1;
+                    }
+                });
+                if (!paramName.length) {
+                    paramName = [fileInput.prop('name') || 'files[]'];
+                }
+            } else if (!$.isArray(paramName)) {
+                paramName = [paramName];
+            }
+            return paramName;
+        },
+
+        _initFormSettings: function (options) {
+            // Retrieve missing options from the input field and the
+            // associated form, if available:
+            if (!options.form || !options.form.length) {
+                options.form = $(options.fileInput.prop('form'));
+            }
+            options.paramName = this._getParamName(options);
+            if (!options.url) {
+                options.url = options.form.prop('action') || location.href;
+            }
+            // The HTTP request method must be "POST" or "PUT":
+            options.type = (options.type || options.form.prop('method') || '')
+                .toUpperCase();
+            if (options.type !== 'POST' && options.type !== 'PUT') {
+                options.type = 'POST';
+            }
+        },
+
+        _getAJAXSettings: function (data) {
+            var options = $.extend({}, this.options, data);
+            this._initFormSettings(options);
+            this._initDataSettings(options);
+            return options;
+        },
+
+        // Maps jqXHR callbacks to the equivalent
+        // methods of the given Promise object:
+        _enhancePromise: function (promise) {
+            promise.success = promise.done;
+            promise.error = promise.fail;
+            promise.complete = promise.always;
+            return promise;
+        },
+
+        // Creates and returns a Promise object enhanced with
+        // the jqXHR methods abort, success, error and complete:
+        _getXHRPromise: function (resolveOrReject, context, args) {
+            var dfd = $.Deferred(),
+                promise = dfd.promise();
+            context = context || this.options.context || promise;
+            if (resolveOrReject === true) {
+                dfd.resolveWith(context, args);
+            } else if (resolveOrReject === false) {
+                dfd.rejectWith(context, args);
+            }
+            promise.abort = dfd.promise;
+            return this._enhancePromise(promise);
+        },
+
+        // Uploads a file in multiple, sequential requests
+        // by splitting the file up in multiple blob chunks.
+        // If the second parameter is true, only tests if the file
+        // should be uploaded in chunks, but does not invoke any
+        // upload requests:
+        _chunkedUpload: function (options, testOnly) {
+            var that = this,
+                file = options.files[0],
+                fs = file.size,
+                ub = options.uploadedBytes = options.uploadedBytes || 0,
+                mcs = options.maxChunkSize || fs,
+                // Use the Blob methods with the slice implementation
+                // according to the W3C Blob API specification:
+                slice = file.webkitSlice || file.mozSlice || file.slice,
+                upload,
+                n,
+                jqXHR,
+                pipe;
+            if (!(this._isXHRUpload(options) && slice && (ub || mcs < fs)) ||
+                    options.data) {
+                return false;
+            }
+            if (testOnly) {
+                return true;
+            }
+            if (ub >= fs) {
+                file.error = 'uploadedBytes';
+                return this._getXHRPromise(
+                    false,
+                    options.context,
+                    [null, 'error', file.error]
+                );
+            }
+            // n is the number of blobs to upload,
+            // calculated via filesize, uploaded bytes and max chunk size:
+            n = Math.ceil((fs - ub) / mcs);
+            // The chunk upload method accepting the chunk number as parameter:
+            upload = function (i) {
+                if (!i) {
+                    return that._getXHRPromise(true, options.context);
+                }
+                // Upload the blobs in sequential order:
+                return upload(i -= 1).pipe(function () {
+                    // Clone the options object for each chunk upload:
+                    var o = $.extend({}, options);
+                    o.blob = slice.call(
+                        file,
+                        ub + i * mcs,
+                        ub + (i + 1) * mcs
+                    );
+                    // Store the current chunk size, as the blob itself
+                    // will be dereferenced after data processing:
+                    o.chunkSize = o.blob.size;
+                    // Process the upload data (the blob and potential form data):
+                    that._initXHRData(o);
+                    // Add progress listeners for this chunk upload:
+                    that._initProgressListener(o);
+                    jqXHR = ($.ajax(o) || that._getXHRPromise(false, o.context))
+                        .done(function () {
+                            // Create a progress event if upload is done and
+                            // no progress event has been invoked for this chunk:
+                            if (!o.loaded) {
+                                that._onProgress($.Event('progress', {
+                                    lengthComputable: true,
+                                    loaded: o.chunkSize,
+                                    total: o.chunkSize
+                                }), o);
+                            }
+                            options.uploadedBytes = o.uploadedBytes +=
+                                o.chunkSize;
+                        });
+                    return jqXHR;
+                });
+            };
+            // Return the piped Promise object, enhanced with an abort method,
+            // which is delegated to the jqXHR object of the current upload,
+            // and jqXHR callbacks mapped to the equivalent Promise methods:
+            pipe = upload(n);
+            pipe.abort = function () {
+                return jqXHR.abort();
+            };
+            return this._enhancePromise(pipe);
+        },
+
+        _beforeSend: function (e, data) {
+            if (this._active === 0) {
+                // the start callback is triggered when an upload starts
+                // and no other uploads are currently running,
+                // equivalent to the global ajaxStart event:
+                this._trigger('start');
+                // Set timer for global bitrate progress calculation:
+                this._bitrateTimer = new this._BitrateTimer();
+            }
+            this._active += 1;
+            // Initialize the global progress values:
+            this._loaded += data.uploadedBytes || 0;
+            this._total += this._getTotal(data.files);
+        },
+
+        _onDone: function (result, textStatus, jqXHR, options) {
+            if (!this._isXHRUpload(options)) {
+                // Create a progress event for each iframe load:
+                this._onProgress($.Event('progress', {
+                    lengthComputable: true,
+                    loaded: 1,
+                    total: 1
+                }), options);
+            }
+            options.result = result;
+            options.textStatus = textStatus;
+            options.jqXHR = jqXHR;
+            this._trigger('done', null, options);
+        },
+
+        _onFail: function (jqXHR, textStatus, errorThrown, options) {
+            options.jqXHR = jqXHR;
+            options.textStatus = textStatus;
+            options.errorThrown = errorThrown;
+            this._trigger('fail', null, options);
+            if (options.recalculateProgress) {
+                // Remove the failed (error or abort) file upload from
+                // the global progress calculation:
+                this._loaded -= options.loaded || options.uploadedBytes || 0;
+                this._total -= options.total || this._getTotal(options.files);
+            }
+        },
+
+        _onAlways: function (jqXHRorResult, textStatus, jqXHRorError, options) {
+            this._active -= 1;
+            options.textStatus = textStatus;
+            if (jqXHRorError && jqXHRorError.always) {
+                options.jqXHR = jqXHRorError;
+                options.result = jqXHRorResult;
+            } else {
+                options.jqXHR = jqXHRorResult;
+                options.errorThrown = jqXHRorError;
+            }
+            this._trigger('always', null, options);
+            if (this._active === 0) {
+                // The stop callback is triggered when all uploads have
+                // been completed, equivalent to the global ajaxStop event:
+                this._trigger('stop');
+                // Reset the global progress values:
+                this._loaded = this._total = 0;
+                this._bitrateTimer = null;
+            }
+        },
+
+        _onSend: function (e, data) {
+            var that = this,
+                jqXHR,
+                slot,
+                pipe,
+                options = that._getAJAXSettings(data),
+                send = function (resolve, args) {
+                    that._sending += 1;
+                    // Set timer for bitrate progress calculation:
+                    options._bitrateTimer = new that._BitrateTimer();
+                    jqXHR = jqXHR || (
+                        (resolve !== false &&
+                        that._trigger('send', e, options) !== false &&
+                        (that._chunkedUpload(options) || $.ajax(options))) ||
+                        that._getXHRPromise(false, options.context, args)
+                    ).done(function (result, textStatus, jqXHR) {
+                        that._onDone(result, textStatus, jqXHR, options);
+                    }).fail(function (jqXHR, textStatus, errorThrown) {
+                        that._onFail(jqXHR, textStatus, errorThrown, options);
+                    }).always(function (jqXHRorResult, textStatus, jqXHRorError) {
+                        that._sending -= 1;
+                        that._onAlways(
+                            jqXHRorResult,
+                            textStatus,
+                            jqXHRorError,
+                            options
+                        );
+                        if (options.limitConcurrentUploads &&
+                                options.limitConcurrentUploads > that._sending) {
+                            // Start the next queued upload,
+                            // that has not been aborted:
+                            var nextSlot = that._slots.shift();
+                            while (nextSlot) {
+                                if (!nextSlot.isRejected()) {
+                                    nextSlot.resolve();
+                                    break;
+                                }
+                                nextSlot = that._slots.shift();
+                            }
+                        }
+                    });
+                    return jqXHR;
+                };
+            this._beforeSend(e, options);
+            if (this.options.sequentialUploads ||
+                    (this.options.limitConcurrentUploads &&
+                    this.options.limitConcurrentUploads <= this._sending)) {
+                if (this.options.limitConcurrentUploads > 1) {
+                    slot = $.Deferred();
+                    this._slots.push(slot);
+                    pipe = slot.pipe(send);
+                } else {
+                    pipe = (this._sequence = this._sequence.pipe(send, send));
+                }
+                // Return the piped Promise object, enhanced with an abort method,
+                // which is delegated to the jqXHR object of the current upload,
+                // and jqXHR callbacks mapped to the equivalent Promise methods:
+                pipe.abort = function () {
+                    var args = [undefined, 'abort', 'abort'];
+                    if (!jqXHR) {
+                        if (slot) {
+                            slot.rejectWith(args);
+                        }
+                        return send(false, args);
+                    }
+                    return jqXHR.abort();
+                };
+                return this._enhancePromise(pipe);
+            }
+            return send();
+        },
+
+        _onAdd: function (e, data) {
+            var that = this,
+                result = true,
+                options = $.extend({}, this.options, data),
+                limit = options.limitMultiFileUploads,
+                paramName = this._getParamName(options),
+                paramNameSet,
+                paramNameSlice,
+                fileSet,
+                i;
+            if (!(options.singleFileUploads || limit) ||
+                    !this._isXHRUpload(options)) {
+                fileSet = [data.files];
+                paramNameSet = [paramName];
+            } else if (!options.singleFileUploads && limit) {
+                fileSet = [];
+                paramNameSet = [];
+                for (i = 0; i < data.files.length; i += limit) {
+                    fileSet.push(data.files.slice(i, i + limit));
+                    paramNameSlice = paramName.slice(i, i + limit);
+                    if (!paramNameSlice.length) {
+                        paramNameSlice = paramName;
+                    }
+                    paramNameSet.push(paramNameSlice);
+                }
+            } else {
+                paramNameSet = paramName;
+            }
+            data.originalFiles = data.files;
+            $.each(fileSet || data.files, function (index, element) {
+                var newData = $.extend({}, data);
+                newData.files = fileSet ? element : [element];
+                newData.paramName = paramNameSet[index];
+                newData.submit = function () {
+                    newData.jqXHR = this.jqXHR =
+                        (that._trigger('submit', e, this) !== false) &&
+                        that._onSend(e, this);
+                    return this.jqXHR;
+                };
+                return (result = that._trigger('add', e, newData));
+            });
+            return result;
+        },
+
+        // File Normalization for Gecko 1.9.1 (Firefox 3.5) support:
+        _normalizeFile: function (index, file) {
+            if (file.name === undefined && file.size === undefined) {
+                file.name = file.fileName;
+                file.size = file.fileSize;
+            }
+        },
+
+        _replaceFileInput: function (input) {
+            var inputClone = input.clone(true);
+            $('<form></form>').append(inputClone)[0].reset();
+            // Detaching allows to insert the fileInput on another form
+            // without loosing the file input value:
+            input.after(inputClone).detach();
+            // Avoid memory leaks with the detached file input:
+            $.cleanData(input.unbind('remove'));
+            // Replace the original file input element in the fileInput
+            // collection with the clone, which has been copied including
+            // event handlers:
+            this.options.fileInput = this.options.fileInput.map(function (i, el) {
+                if (el === input[0]) {
+                    return inputClone[0];
+                }
+                return el;
+            });
+            // If the widget has been initialized on the file input itself,
+            // override this.element with the file input clone:
+            if (input[0] === this.element[0]) {
+                this.element = inputClone;
+            }
+        },
+
+        _onChange: function (e) {
+            var that = e.data.fileupload,
+                data = {
+                    files: $.each($.makeArray(e.target.files), that._normalizeFile),
+                    fileInput: $(e.target),
+                    form: $(e.target.form)
+                };
+            if (!data.files.length) {
+                // If the files property is not available, the browser does not
+                // support the File API and we add a pseudo File object with
+                // the input value as name with path information removed:
+                data.files = [{name: e.target.value.replace(/^.*\\/, '')}];
+            }
+            if (that.options.replaceFileInput) {
+                that._replaceFileInput(data.fileInput);
+            }
+            if (that._trigger('change', e, data) === false ||
+                    that._onAdd(e, data) === false) {
+                return false;
+            }
+        },
+
+        _onPaste: function (e) {
+            var that = e.data.fileupload,
+                cbd = e.originalEvent.clipboardData,
+                items = (cbd && cbd.items) || [],
+                data = {files: []};
+            $.each(items, function (index, item) {
+                var file = item.getAsFile && item.getAsFile();
+                if (file) {
+                    data.files.push(file);
+                }
+            });
+            if (that._trigger('paste', e, data) === false ||
+                    that._onAdd(e, data) === false) {
+                return false;
+            }
+        },
+
+        _onDrop: function (e) {
+            var that = e.data.fileupload,
+                dataTransfer = e.dataTransfer = e.originalEvent.dataTransfer,
+                data = {
+                    files: $.each(
+                        $.makeArray(dataTransfer && dataTransfer.files),
+                        that._normalizeFile
+                    )
+                };
+            if (that._trigger('drop', e, data) === false ||
+                    that._onAdd(e, data) === false) {
+                return false;
+            }
+            e.preventDefault();
+        },
+
+        _onDragOver: function (e) {
+            var that = e.data.fileupload,
+                dataTransfer = e.dataTransfer = e.originalEvent.dataTransfer;
+            if (that._trigger('dragover', e) === false) {
+                return false;
+            }
+            if (dataTransfer) {
+                dataTransfer.dropEffect = dataTransfer.effectAllowed = 'copy';
+            }
+            e.preventDefault();
+        },
+
+        _initEventHandlers: function () {
+            var ns = this.options.namespace;
+            if (this._isXHRUpload(this.options)) {
+                this.options.dropZone
+                    .bind('dragover.' + ns, {fileupload: this}, this._onDragOver)
+                    .bind('drop.' + ns, {fileupload: this}, this._onDrop)
+                    .bind('paste.' + ns, {fileupload: this}, this._onPaste);
+            }
+            this.options.fileInput
+                .bind('change.' + ns, {fileupload: this}, this._onChange);
+        },
+
+        _destroyEventHandlers: function () {
+            var ns = this.options.namespace;
+            this.options.dropZone
+                .unbind('dragover.' + ns, this._onDragOver)
+                .unbind('drop.' + ns, this._onDrop)
+                .unbind('paste.' + ns, this._onPaste);
+            this.options.fileInput
+                .unbind('change.' + ns, this._onChange);
+        },
+
+        _setOption: function (key, value) {
+            var refresh = $.inArray(key, this._refreshOptionsList) !== -1;
+            if (refresh) {
+                this._destroyEventHandlers();
+            }
+            $.Widget.prototype._setOption.call(this, key, value);
+            if (refresh) {
+                this._initSpecialOptions();
+                this._initEventHandlers();
+            }
+        },
+
+        _initSpecialOptions: function () {
+            var options = this.options;
+            if (options.fileInput === undefined) {
+                options.fileInput = this.element.is('input:file') ?
+                        this.element : this.element.find('input:file');
+            } else if (!(options.fileInput instanceof $)) {
+                options.fileInput = $(options.fileInput);
+            }
+            if (!(options.dropZone instanceof $)) {
+                options.dropZone = $(options.dropZone);
+            }
+        },
+
+        _create: function () {
+            var options = this.options;
+            // Initialize options set via HTML5 data-attributes:
+            $.extend(options, $(this.element[0].cloneNode(false)).data());
+            options.namespace = options.namespace || this.widgetName;
+            this._initSpecialOptions();
+            this._slots = [];
+            this._sequence = this._getXHRPromise(true);
+            this._sending = this._active = this._loaded = this._total = 0;
+            this._initEventHandlers();
+        },
+
+        destroy: function () {
+            this._destroyEventHandlers();
+            $.Widget.prototype.destroy.call(this);
+        },
+
+        enable: function () {
+            $.Widget.prototype.enable.call(this);
+            this._initEventHandlers();
+        },
+
+        disable: function () {
+            this._destroyEventHandlers();
+            $.Widget.prototype.disable.call(this);
+        },
+
+        // This method is exposed to the widget API and allows adding files
+        // using the fileupload API. The data parameter accepts an object which
+        // must have a files property and can contain additional options:
+        // .fileupload('add', {files: filesList});
+        add: function (data) {
+            if (!data || this.options.disabled) {
+                return;
+            }
+            data.files = $.each($.makeArray(data.files), this._normalizeFile);
+            this._onAdd(null, data);
+        },
+
+        // This method is exposed to the widget API and allows sending files
+        // using the fileupload API. The data parameter accepts an object which
+        // must have a files property and can contain additional options:
+        // .fileupload('send', {files: filesList});
+        // The method returns a Promise object for the file upload call.
+        send: function (data) {
+            if (data && !this.options.disabled) {
+                data.files = $.each($.makeArray(data.files), this._normalizeFile);
+                if (data.files.length) {
+                    return this._onSend(null, data);
+                }
+            }
+            return this._getXHRPromise(false, data && data.context);
+        }
+
+    });
+
+}));
diff --git a/apps/fileupload/static/fileupload/js/jquery.iframe-transport.js b/apps/fileupload/static/fileupload/js/jquery.iframe-transport.js
new file mode 100644 (file)
index 0000000..04a5662
--- /dev/null
@@ -0,0 +1,171 @@
+/*
+ * jQuery Iframe Transport Plugin 1.4
+ * https://github.com/blueimp/jQuery-File-Upload
+ *
+ * Copyright 2011, Sebastian Tschan
+ * https://blueimp.net
+ *
+ * Licensed under the MIT license:
+ * http://www.opensource.org/licenses/MIT
+ */
+
+/*jslint unparam: true, nomen: true */
+/*global define, window, document */
+
+(function (factory) {
+    'use strict';
+    if (typeof define === 'function' && define.amd) {
+        // Register as an anonymous AMD module:
+        define(['jquery'], factory);
+    } else {
+        // Browser globals:
+        factory(window.jQuery);
+    }
+}(function ($) {
+    'use strict';
+
+    // Helper variable to create unique names for the transport iframes:
+    var counter = 0;
+
+    // The iframe transport accepts three additional options:
+    // options.fileInput: a jQuery collection of file input fields
+    // options.paramName: the parameter name for the file form data,
+    //  overrides the name property of the file input field(s),
+    //  can be a string or an array of strings.
+    // options.formData: an array of objects with name and value properties,
+    //  equivalent to the return data of .serializeArray(), e.g.:
+    //  [{name: 'a', value: 1}, {name: 'b', value: 2}]
+    $.ajaxTransport('iframe', function (options) {
+        if (options.async && (options.type === 'POST' || options.type === 'GET')) {
+            var form,
+                iframe;
+            return {
+                send: function (_, completeCallback) {
+                    form = $('<form style="display:none;"></form>');
+                    // javascript:false as initial iframe src
+                    // prevents warning popups on HTTPS in IE6.
+                    // IE versions below IE8 cannot set the name property of
+                    // elements that have already been added to the DOM,
+                    // so we set the name along with the iframe HTML markup:
+                    iframe = $(
+                        '<iframe src="javascript:false;" name="iframe-transport-' +
+                            (counter += 1) + '"></iframe>'
+                    ).bind('load', function () {
+                        var fileInputClones,
+                            paramNames = $.isArray(options.paramName) ?
+                                    options.paramName : [options.paramName];
+                        iframe
+                            .unbind('load')
+                            .bind('load', function () {
+                                var response;
+                                // Wrap in a try/catch block to catch exceptions thrown
+                                // when trying to access cross-domain iframe contents:
+                                try {
+                                    response = iframe.contents();
+                                    // Google Chrome and Firefox do not throw an
+                                    // exception when calling iframe.contents() on
+                                    // cross-domain requests, so we unify the response:
+                                    if (!response.length || !response[0].firstChild) {
+                                        throw new Error();
+                                    }
+                                } catch (e) {
+                                    response = undefined;
+                                }
+                                // The complete callback returns the
+                                // iframe content document as response object:
+                                completeCallback(
+                                    200,
+                                    'success',
+                                    {'iframe': response}
+                                );
+                                // Fix for IE endless progress bar activity bug
+                                // (happens on form submits to iframe targets):
+                                $('<iframe src="javascript:false;"></iframe>')
+                                    .appendTo(form);
+                                form.remove();
+                            });
+                        form
+                            .prop('target', iframe.prop('name'))
+                            .prop('action', options.url)
+                            .prop('method', options.type);
+                        if (options.formData) {
+                            $.each(options.formData, function (index, field) {
+                                $('<input type="hidden"/>')
+                                    .prop('name', field.name)
+                                    .val(field.value)
+                                    .appendTo(form);
+                            });
+                        }
+                        if (options.fileInput && options.fileInput.length &&
+                                options.type === 'POST') {
+                            fileInputClones = options.fileInput.clone();
+                            // Insert a clone for each file input field:
+                            options.fileInput.after(function (index) {
+                                return fileInputClones[index];
+                            });
+                            if (options.paramName) {
+                                options.fileInput.each(function (index) {
+                                    $(this).prop(
+                                        'name',
+                                        paramNames[index] || options.paramName
+                                    );
+                                });
+                            }
+                            // Appending the file input fields to the hidden form
+                            // removes them from their original location:
+                            form
+                                .append(options.fileInput)
+                                .prop('enctype', 'multipart/form-data')
+                                // enctype must be set as encoding for IE:
+                                .prop('encoding', 'multipart/form-data');
+                        }
+                        form.submit();
+                        // Insert the file input fields at their original location
+                        // by replacing the clones with the originals:
+                        if (fileInputClones && fileInputClones.length) {
+                            options.fileInput.each(function (index, input) {
+                                var clone = $(fileInputClones[index]);
+                                $(input).prop('name', clone.prop('name'));
+                                clone.replaceWith(input);
+                            });
+                        }
+                    });
+                    form.append(iframe).appendTo(document.body);
+                },
+                abort: function () {
+                    if (iframe) {
+                        // javascript:false as iframe src aborts the request
+                        // and prevents warning popups on HTTPS in IE6.
+                        // concat is used to avoid the "Script URL" JSLint error:
+                        iframe
+                            .unbind('load')
+                            .prop('src', 'javascript'.concat(':false;'));
+                    }
+                    if (form) {
+                        form.remove();
+                    }
+                }
+            };
+        }
+    });
+
+    // The iframe transport returns the iframe content document as response.
+    // The following adds converters from iframe to text, json, html, and script:
+    $.ajaxSetup({
+        converters: {
+            'iframe text': function (iframe) {
+                return $(iframe[0].body).text();
+            },
+            'iframe json': function (iframe) {
+                return $.parseJSON($(iframe[0].body).text());
+            },
+            'iframe html': function (iframe) {
+                return $(iframe[0].body).html();
+            },
+            'iframe script': function (iframe) {
+                return $.globalEval($(iframe[0].body).text());
+            }
+        }
+    });
+
+}));
diff --git a/apps/fileupload/static/fileupload/js/jquery.ui.widget.js b/apps/fileupload/static/fileupload/js/jquery.ui.widget.js
new file mode 100644 (file)
index 0000000..9da8673
--- /dev/null
@@ -0,0 +1,282 @@
+/*
+ * jQuery UI Widget 1.8.18+amd
+ * https://github.com/blueimp/jQuery-File-Upload
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Widget
+ */
+
+(function (factory) {
+    if (typeof define === "function" && define.amd) {
+        // Register as an anonymous AMD module:
+        define(["jquery"], factory);
+    } else {
+        // Browser globals:
+        factory(jQuery);
+    }
+}(function( $, undefined ) {
+
+// jQuery 1.4+
+if ( $.cleanData ) {
+       var _cleanData = $.cleanData;
+       $.cleanData = function( elems ) {
+               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
+                       try {
+                               $( elem ).triggerHandler( "remove" );
+                       // http://bugs.jquery.com/ticket/8235
+                       } catch( e ) {}
+               }
+               _cleanData( elems );
+       };
+} else {
+       var _remove = $.fn.remove;
+       $.fn.remove = function( selector, keepData ) {
+               return this.each(function() {
+                       if ( !keepData ) {
+                               if ( !selector || $.filter( selector, [ this ] ).length ) {
+                                       $( "*", this ).add( [ this ] ).each(function() {
+                                               try {
+                                                       $( this ).triggerHandler( "remove" );
+                                               // http://bugs.jquery.com/ticket/8235
+                                               } catch( e ) {}
+                                       });
+                               }
+                       }
+                       return _remove.call( $(this), selector, keepData );
+               });
+       };
+}
+
+$.widget = function( name, base, prototype ) {
+       var namespace = name.split( "." )[ 0 ],
+               fullName;
+       name = name.split( "." )[ 1 ];
+       fullName = namespace + "-" + name;
+
+       if ( !prototype ) {
+               prototype = base;
+               base = $.Widget;
+       }
+
+       // create selector for plugin
+       $.expr[ ":" ][ fullName ] = function( elem ) {
+               return !!$.data( elem, name );
+       };
+
+       $[ namespace ] = $[ namespace ] || {};
+       $[ namespace ][ name ] = function( options, element ) {
+               // allow instantiation without initializing for simple inheritance
+               if ( arguments.length ) {
+                       this._createWidget( options, element );
+               }
+       };
+
+       var basePrototype = new base();
+       // we need to make the options hash a property directly on the new instance
+       // otherwise we'll modify the options hash on the prototype that we're
+       // inheriting from
+//     $.each( basePrototype, function( key, val ) {
+//             if ( $.isPlainObject(val) ) {
+//                     basePrototype[ key ] = $.extend( {}, val );
+//             }
+//     });
+       basePrototype.options = $.extend( true, {}, basePrototype.options );
+       $[ namespace ][ name ].prototype = $.extend( true, basePrototype, {
+               namespace: namespace,
+               widgetName: name,
+               widgetEventPrefix: $[ namespace ][ name ].prototype.widgetEventPrefix || name,
+               widgetBaseClass: fullName
+       }, prototype );
+
+       $.widget.bridge( name, $[ namespace ][ name ] );
+};
+
+$.widget.bridge = function( name, object ) {
+       $.fn[ name ] = function( options ) {
+               var isMethodCall = typeof options === "string",
+                       args = Array.prototype.slice.call( arguments, 1 ),
+                       returnValue = this;
+
+               // allow multiple hashes to be passed on init
+               options = !isMethodCall && args.length ?
+                       $.extend.apply( null, [ true, options ].concat(args) ) :
+                       options;
+
+               // prevent calls to internal methods
+               if ( isMethodCall && options.charAt( 0 ) === "_" ) {
+                       return returnValue;
+               }
+
+               if ( isMethodCall ) {
+                       this.each(function() {
+                               var instance = $.data( this, name ),
+                                       methodValue = instance && $.isFunction( instance[options] ) ?
+                                               instance[ options ].apply( instance, args ) :
+                                               instance;
+                               // TODO: add this back in 1.9 and use $.error() (see #5972)
+//                             if ( !instance ) {
+//                                     throw "cannot call methods on " + name + " prior to initialization; " +
+//                                             "attempted to call method '" + options + "'";
+//                             }
+//                             if ( !$.isFunction( instance[options] ) ) {
+//                                     throw "no such method '" + options + "' for " + name + " widget instance";
+//                             }
+//                             var methodValue = instance[ options ].apply( instance, args );
+                               if ( methodValue !== instance && methodValue !== undefined ) {
+                                       returnValue = methodValue;
+                                       return false;
+                               }
+                       });
+               } else {
+                       this.each(function() {
+                               var instance = $.data( this, name );
+                               if ( instance ) {
+                                       instance.option( options || {} )._init();
+                               } else {
+                                       $.data( this, name, new object( options, this ) );
+                               }
+                       });
+               }
+
+               return returnValue;
+       };
+};
+
+$.Widget = function( options, element ) {
+       // allow instantiation without initializing for simple inheritance
+       if ( arguments.length ) {
+               this._createWidget( options, element );
+       }
+};
+
+$.Widget.prototype = {
+       widgetName: "widget",
+       widgetEventPrefix: "",
+       options: {
+               disabled: false
+       },
+       _createWidget: function( options, element ) {
+               // $.widget.bridge stores the plugin instance, but we do it anyway
+               // so that it's stored even before the _create function runs
+               $.data( element, this.widgetName, this );
+               this.element = $( element );
+               this.options = $.extend( true, {},
+                       this.options,
+                       this._getCreateOptions(),
+                       options );
+
+               var self = this;
+               this.element.bind( "remove." + this.widgetName, function() {
+                       self.destroy();
+               });
+
+               this._create();
+               this._trigger( "create" );
+               this._init();
+       },
+       _getCreateOptions: function() {
+               return $.metadata && $.metadata.get( this.element[0] )[ this.widgetName ];
+       },
+       _create: function() {},
+       _init: function() {},
+
+       destroy: function() {
+               this.element
+                       .unbind( "." + this.widgetName )
+                       .removeData( this.widgetName );
+               this.widget()
+                       .unbind( "." + this.widgetName )
+                       .removeAttr( "aria-disabled" )
+                       .removeClass(
+                               this.widgetBaseClass + "-disabled " +
+                               "ui-state-disabled" );
+       },
+
+       widget: function() {
+               return this.element;
+       },
+
+       option: function( key, value ) {
+               var options = key;
+
+               if ( arguments.length === 0 ) {
+                       // don't return a reference to the internal hash
+                       return $.extend( {}, this.options );
+               }
+
+               if  (typeof key === "string" ) {
+                       if ( value === undefined ) {
+                               return this.options[ key ];
+                       }
+                       options = {};
+                       options[ key ] = value;
+               }
+
+               this._setOptions( options );
+
+               return this;
+       },
+       _setOptions: function( options ) {
+               var self = this;
+               $.each( options, function( key, value ) {
+                       self._setOption( key, value );
+               });
+
+               return this;
+       },
+       _setOption: function( key, value ) {
+               this.options[ key ] = value;
+
+               if ( key === "disabled" ) {
+                       this.widget()
+                               [ value ? "addClass" : "removeClass"](
+                                       this.widgetBaseClass + "-disabled" + " " +
+                                       "ui-state-disabled" )
+                               .attr( "aria-disabled", value );
+               }
+
+               return this;
+       },
+
+       enable: function() {
+               return this._setOption( "disabled", false );
+       },
+       disable: function() {
+               return this._setOption( "disabled", true );
+       },
+
+       _trigger: function( type, event, data ) {
+               var prop, orig,
+                       callback = this.options[ type ];
+
+               data = data || {};
+               event = $.Event( event );
+               event.type = ( type === this.widgetEventPrefix ?
+                       type :
+                       this.widgetEventPrefix + type ).toLowerCase();
+               // the original event may come from any element
+               // so we need to reset the target on the new event
+               event.target = this.element[ 0 ];
+
+               // copy original event properties over to the new event
+               orig = event.originalEvent;
+               if ( orig ) {
+                       for ( prop in orig ) {
+                               if ( !( prop in event ) ) {
+                                       event[ prop ] = orig[ prop ];
+                               }
+                       }
+               }
+
+               this.element.trigger( event, data );
+
+               return !( $.isFunction(callback) &&
+                       callback.call( this.element[0], event, data ) === false ||
+                       event.isDefaultPrevented() );
+       }
+};
+
+}));
diff --git a/apps/fileupload/static/fileupload/js/load-image.min.js b/apps/fileupload/static/fileupload/js/load-image.min.js
new file mode 100644 (file)
index 0000000..faac82f
--- /dev/null
@@ -0,0 +1 @@
+(function(a){"use strict";var b=function(a,c,d){var e=document.createElement("img"),f,g;return e.onerror=c,e.onload=function(){g&&b.revokeObjectURL(g),c(b.scale(e,d))},window.Blob&&a instanceof Blob||window.File&&a instanceof File?f=g=b.createObjectURL(a):f=a,f?(e.src=f,e):b.readFile(a,function(a){e.src=a})},c=window.createObjectURL&&window||window.URL&&URL||window.webkitURL&&webkitURL;b.scale=function(a,b){b=b||{};var c=document.createElement("canvas"),d=a.width,e=a.height,f=Math.max((b.minWidth||d)/d,(b.minHeight||e)/e);return f>1&&(d=parseInt(d*f,10),e=parseInt(e*f,10)),f=Math.min((b.maxWidth||d)/d,(b.maxHeight||e)/e),f<1&&(d=parseInt(d*f,10),e=parseInt(e*f,10)),a.getContext||b.canvas&&c.getContext?(c.width=d,c.height=e,c.getContext("2d").drawImage(a,0,0,d,e),c):(a.width=d,a.height=e,a)},b.createObjectURL=function(a){return c?c.createObjectURL(a):!1},b.revokeObjectURL=function(a){return c?c.revokeObjectURL(a):!1},b.readFile=function(a,b){if(window.FileReader&&FileReader.prototype.readAsDataURL){var c=new FileReader;return c.onload=function(a){b(a.target.result)},c.readAsDataURL(a),c}return!1},typeof define!="undefined"&&define.amd?define(function(){return b}):a.loadImage=b})(this);
diff --git a/apps/fileupload/static/fileupload/js/locale-en.js b/apps/fileupload/static/fileupload/js/locale-en.js
new file mode 100644 (file)
index 0000000..ea64b0a
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * jQuery File Upload Plugin Localization Example 6.5.1
+ * https://github.com/blueimp/jQuery-File-Upload
+ *
+ * Copyright 2012, Sebastian Tschan
+ * https://blueimp.net
+ *
+ * Licensed under the MIT license:
+ * http://www.opensource.org/licenses/MIT
+ */
+
+/*global window */
+
+window.locale = {
+    "fileupload": {
+        "errors": {
+            "maxFileSize": "File is too big",
+            "minFileSize": "File is too small",
+            "acceptFileTypes": "Filetype not allowed",
+            "maxNumberOfFiles": "Max number of files exceeded",
+            "uploadedBytes": "Uploaded bytes exceed file size",
+            "emptyResult": "Empty file upload result"
+        },
+        "error": "Error",
+        "start": "Start",
+        "cancel": "Cancel",
+        "destroy": "Delete"
+    }
+};
diff --git a/apps/fileupload/static/fileupload/js/locale-pl.js b/apps/fileupload/static/fileupload/js/locale-pl.js
new file mode 100755 (executable)
index 0000000..9d05227
--- /dev/null
@@ -0,0 +1,16 @@
+window.locale = {
+    "fileupload": {
+        "errors": {
+            "maxFileSize": "Plik jest zbyt duży",
+            "minFileSize": "Plik jest zbyt mały",
+            "acceptFileTypes": "Niedozwolony typ pliku",
+            "maxNumberOfFiles": "Zbyt wiele plików",
+            "uploadedBytes": "Przesłane dane przekraczają rozmiar pliku",
+            "emptyResult": "Wysyłanie plików zwróciło pusty wynik"
+        },
+        "error": "Błąd",
+        "start": "Start",
+        "cancel": "Anuluj",
+        "destroy": "Usuń"
+    }
+};
diff --git a/apps/fileupload/static/fileupload/js/main.js b/apps/fileupload/static/fileupload/js/main.js
new file mode 100644 (file)
index 0000000..64c3064
--- /dev/null
@@ -0,0 +1,15 @@
+$(function () {
+    // Initialize the jQuery File Upload widget:
+    $('#fileupload').fileupload();
+
+    // Load existing files:
+    $('#fileupload').each(function () {
+        var that = this;
+        $.getJSON(this.action, function (result) {
+            if (result && result.length) {
+                $(that).fileupload('option', 'done')
+                    .call(that, null, {result: result});
+            }
+        });
+    });
+});
diff --git a/apps/fileupload/static/fileupload/js/tmpl.min.js b/apps/fileupload/static/fileupload/js/tmpl.min.js
new file mode 100644 (file)
index 0000000..c6e4922
--- /dev/null
@@ -0,0 +1 @@
+(function(a){"use strict";var b=function(a,c){var d=/[^\w\-\.:]/.test(a)?new Function(b.arg+",tmpl","var _e=tmpl.encode"+b.helper+",_s='"+a.replace(b.regexp,b.func)+"';return _s;"):b.cache[a]=b.cache[a]||b(b.load(a));return c?d(c,b):function(a){return d(a,b)}};b.cache={},b.load=function(a){return document.getElementById(a).innerHTML},b.regexp=/([\s'\\])(?![^%]*%\})|(?:\{%(=|#)([\s\S]+?)%\})|(\{%)|(%\})/g,b.func=function(a,b,c,d,e,f){if(b)return{"\n":"\\n","\r":"\\r","\t":"\\t"," ":" "}[a]||"\\"+a;if(c)return c==="="?"'+_e("+d+")+'":"'+("+d+"||'')+'";if(e)return"';";if(f)return"_s+='"},b.encReg=/[<>&"'\x00]/g,b.encMap={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;"},b.encode=function(a){return String(a||"").replace(b.encReg,function(a){return b.encMap[a]||""})},b.arg="o",b.helper=",print=function(s,e){_s+=e&&(s||'')||_e(s);},include=function(s,d){_s+=tmpl(s,d);}",typeof define=="function"&&define.amd?define(function(){return b}):a.tmpl=b})(this);
diff --git a/apps/fileupload/templates/fileupload/picture_form.html b/apps/fileupload/templates/fileupload/picture_form.html
new file mode 100644 (file)
index 0000000..44c37db
--- /dev/null
@@ -0,0 +1,86 @@
+{% extends "catalogue/base.html" %}
+{% load i18n %}
+{% load upload_tags %}
+
+{% block add_css %}
+    <link rel="stylesheet" href="{{ STATIC_URL }}fileupload/css/bootstrap.min.css">
+    <link rel="stylesheet" href="{{ STATIC_URL }}fileupload/css/style.css">
+    <link rel="stylesheet" href="{{ STATIC_URL }}fileupload/css/bootstrap-image-gallery.min.css">
+    <link rel="stylesheet" href="{{ STATIC_URL }}fileupload/css/jquery.fileupload-ui.css">
+    <!-- Shim to make HTML5 elements usable in older Internet Explorer versions -->
+    <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+{% endblock %}
+
+
+{% block content %}
+
+<h1>
+{% trans "Browse:" %}
+{% for crumb in view.breadcrumbs %}
+    {% if crumb.1 %}
+        <a href="{{ crumb.1 }}">{{ crumb.0 }}</a>
+    {% else %}
+        {{ crumb.0 }}
+    {% endif %}
+    {% if not forloop.last %}/{% endif %}
+{% endfor %}
+</h1>
+
+
+    <form id="fileupload" method="post" action="." enctype="multipart/form-data">{% csrf_token %}
+        <div class="row fileupload-buttonbar">
+            <div class="span7">
+                <span class="btn btn-success fileinput-button">
+                    <i class="icon-plus icon-white"></i>
+                    <span>{% trans "Add files..." %}</span>
+                    <input type="file" multiple="" name="files">
+                </span>
+                <button class="btn btn-primary start" type="submit">
+                    <i class="icon-upload icon-white"></i>
+                    <span>{% trans "Start upload" %}</span>
+                </button>
+                <button class="btn btn-warning cancel" type="reset">
+                    <i class="icon-ban-circle icon-white"></i>
+                    <span>{% trans "Cancel upload" %}</span>
+                </button>
+                <button class="btn btn-danger delete" type="button">
+                    <i class="icon-trash icon-white"></i>
+                    <span>{% trans "Delete" %}</span>
+                </button>
+                <input type="checkbox" class="toggle">
+            </div>
+            <div class="span5 fileupload-progress fade">
+                <div class="progress progress-success progres-striped active">
+                    <div class="bar" style="width:0%"></div>
+                </div>
+                <div class="progress-extended">&nbsp;</div>
+            </div>
+        </div>
+        <div class="fileupload-loading"></div>
+        <table class="table table-striped"><tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody></table>
+    </form>
+    <div class="fileupload-content">
+        <table class="files"></table>
+        <div class="fileupload-progressbar"></div>
+    </div>
+
+{% endblock %}
+
+{% block add_js %}
+
+{% upload_js %}
+<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
+<script src="{{ STATIC_URL }}fileupload/js/jquery.ui.widget.js"></script>
+<script src="{{ STATIC_URL }}fileupload/js/tmpl.min.js"></script>
+<script src="{{ STATIC_URL }}fileupload/js/load-image.min.js"></script>
+<script src="{{ STATIC_URL }}fileupload/js/canvas-to-blob.min.js"></script>
+<script src="{{ STATIC_URL }}fileupload/js/bootstrap.min.js"></script>
+<script src="{{ STATIC_URL }}fileupload/js/bootstrap-image-gallery.min.js"></script>
+<script src="{{ STATIC_URL }}fileupload/js/jquery.iframe-transport.js"></script>
+<script src="{{ STATIC_URL }}fileupload/js/jquery.fileupload.js"></script>
+<script src="{{ STATIC_URL }}fileupload/js/jquery.fileupload-fp.js"></script>
+<script src="{{ STATIC_URL }}fileupload/js/jquery.fileupload-ui.js"></script>
+<script src="{{ STATIC_URL }}fileupload/js/locale-{{ LANGUAGE_CODE }}.js"></script>
+<script src="{{ STATIC_URL }}fileupload/js/main.js"></script>
+<script src="{{ STATIC_URL }}fileupload/js/csrf.js"></script>
+{% endblock %}
diff --git a/apps/fileupload/templatetags/__init__.py b/apps/fileupload/templatetags/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/apps/fileupload/templatetags/upload_tags.py b/apps/fileupload/templatetags/upload_tags.py
new file mode 100644 (file)
index 0000000..aefce2e
--- /dev/null
@@ -0,0 +1,68 @@
+from django import template
+
+register = template.Library()
+
+@register.simple_tag
+def upload_js():
+    return """
+<!-- The template to display files available for upload -->
+<script id="template-upload" type="text/x-tmpl">
+{% for (var i=0, file; file=o.files[i]; i++) { %}
+    <tr class="template-upload fade">
+        <td class="preview"><span class="fade"></span></td>
+        <td class="name"><span>{%=file.name%}</span></td>
+        <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
+        {% if (file.error) { %}
+            <td class="error" colspan="2"><span class="label label-important">{%=locale.fileupload.error%}</span> {%=locale.fileupload.errors[file.error] || file.error%}</td>
+        {% } else if (o.files.valid && !i) { %}
+            <td>
+                <div class="progress progress-success progress-striped active"><div class="bar" style="width:0%;"></div></div>
+            </td>
+            <td class="start">{% if (!o.options.autoUpload) { %}
+                <button class="btn btn-success">
+                    <i class="icon-upload icon-white"></i>
+                    <span>{%=locale.fileupload.start%}</span>
+                </button>
+            {% } %}</td>
+        {% } else { %}
+            <td colspan="2"></td>
+        {% } %}
+        <td class="cancel">{% if (!i) { %}
+            <button class="btn btn-warning">
+                <i class="icon-ban-circle icon-white"></i>
+                <span>{%=locale.fileupload.cancel%}</span>
+            </button>
+        {% } %}</td>
+    </tr>
+{% } %}
+</script>
+<!-- The template to display files available for download -->
+<script id="template-download" type="text/x-tmpl">
+{% for (var i=0, file; file=o.files[i]; i++) { %}
+    <tr class="template-download fade">
+        {% if (file.error) { %}
+            <td></td>
+            <td class="name"><span>{%=file.name%}</span></td>
+            <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
+            <td class="error" colspan="2"><span class="label label-important">{%=locale.fileupload.error%}</span> {%=locale.fileupload.errors[file.error] || file.error%}</td>
+        {% } else { %}
+            <td class="preview">{% if (file.thumbnail_url) { %}
+                <a href="{%=file.url%}" title="{%=file.name%}" rel="gallery" download="{%=file.name%}"><img src="{%=file.thumbnail_url%}"></a>
+            {% } %}</td>
+            <td class="name">
+                <a href="{%=file.url%}" title="{%=file.name%}" rel="{%=file.thumbnail_url&&'gallery'%}" download="{%=file.name%}">{%=file.name%}</a>
+            </td>
+            <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
+            <td colspan="2"></td>
+        {% } %}
+        <td class="delete">
+            <button class="btn btn-danger" data-type="{%=file.delete_type%}" data-url="{%=file.delete_url%}">
+                <i class="icon-trash icon-white"></i>
+                <span>{%=locale.fileupload.destroy%}</span>
+            </button>
+            <input type="checkbox" name="delete" value="1">
+        </td>
+    </tr>
+{% } %}
+</script>
+"""
diff --git a/apps/fileupload/urls.py b/apps/fileupload/urls.py
new file mode 100644 (file)
index 0000000..cd4f46c
--- /dev/null
@@ -0,0 +1,7 @@
+from django.conf.urls import patterns, url
+from fileupload.views import UploadView
+
+urlpatterns = patterns('',
+    url(r'^(?P<path>(?:.*/)?)$', UploadView.as_view(), name='fileupload'),
+)
+
diff --git a/apps/fileupload/views.py b/apps/fileupload/views.py
new file mode 100644 (file)
index 0000000..d08bfd3
--- /dev/null
@@ -0,0 +1,152 @@
+import json
+import os
+from urllib import quote
+from django.conf import settings
+from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden, Http404
+from django.utils.decorators import method_decorator
+from django.views.decorators.vary import vary_on_headers
+from django.views.generic import FormView, View
+from .forms import UploadForm
+
+
+# Use sorl.thumbnail if available.
+try:
+    from sorl.thumbnail import default
+except ImportError:
+    def thumbnail(relpath):
+        return settings.MEDIA_URL + relpath
+else:
+    def thumbnail(relpath):
+        try:
+            return default.backend.get_thumbnail(relpath, "x50").url
+        except IOError:
+            # That's not an image. No thumb.
+            return None
+
+
+class JSONResponse(HttpResponse):
+    """JSON response class."""
+    def __init__(self, obj='', mimetype="application/json", *args, **kwargs):
+        content = json.dumps(obj)
+        super(JSONResponse, self).__init__(content, mimetype, *args, **kwargs)
+
+
+class UploadView(FormView):
+    template_name = "fileupload/picture_form.html"
+    form_class = UploadForm
+
+    def get_object(self, request, *args, **kwargs):
+        """Get any data for later use."""
+        return None
+
+    def get_directory(self):
+        """Directory relative to MEDIA_ROOT. Must end with a slash."""
+        return self.kwargs['path']
+
+    def breadcrumbs(self):
+        """List of tuples (name, url) or just (name,) for breadcrumbs.
+
+        Probably only the last item (representing currently browsed dir)
+        should lack url.
+
+        """
+        directory = self.get_directory()
+        now_path = os.path.dirname(self.request.get_full_path())
+        directory = os.path.dirname(directory)
+        if directory:
+            crumbs = [
+                (os.path.basename(directory),)
+            ]
+            directory = os.path.dirname(directory)
+            now_path = (os.path.dirname(now_path))
+            while directory:
+                crumbs.insert(0, (os.path.basename(directory), now_path+'/'))
+                directory = os.path.dirname(directory)
+                now_path = os.path.dirname(now_path)
+            crumbs.insert(0, ('media', now_path))
+        else:
+            crumbs = [('media',)]
+        return crumbs
+
+    def get_safe_path(self, filename=""):
+        """Finds absolute filesystem path of the browsed dir of file.
+        
+        Makes sure it's inside MEDIA_ROOT.
+        
+        """
+        path = os.path.abspath(os.path.join(
+                settings.MEDIA_ROOT,
+                self.get_directory(),
+                filename))
+        if not path.startswith(settings.MEDIA_ROOT):
+            raise Http404
+        if filename:
+            if not path.startswith(self.get_safe_path()):
+                raise Http404
+        return path
+
+    def get_url(self, filename):
+        """Finds URL of a file in browsed dir."""
+        return settings.MEDIA_URL + self.get_directory() + quote(filename.encode('utf-8'))
+
+    @method_decorator(vary_on_headers('Accept'))
+    def dispatch(self, request, *args, **kwargs):
+        self.object = self.get_object(request, *args, **kwargs)
+        return super(UploadView, self).dispatch(request, *args, **kwargs)
+
+    def get(self, request, *args, **kwargs):
+        if request.is_ajax():
+            files = []
+            path = self.get_safe_path()
+            if os.path.isdir(path):
+                for f in sorted(os.listdir(path)):
+                    file_info = {
+                        "name": f,
+                    }
+                    if os.path.isdir(os.path.join(path, f)):
+                        file_info.update({
+                            "url": "%s%s/" % (request.get_full_path(), f),
+                        })
+                    else:
+                        file_info.update({
+                            "url": self.get_url(f),
+                            'thumbnail_url': thumbnail(self.get_directory() + f),
+                            'delete_url': "%s?file=%s" % (
+                                request.get_full_path(),
+                                quote(f.encode('utf-8'))),
+                            'delete_type': "DELETE"
+                        })
+                        thumbnail_url = thumbnail(self.get_directory() + f),
+                    files.append(file_info)
+            return JSONResponse(files)
+        else:
+            return super(UploadView, self).get(request, *args, **kwargs)
+
+    def form_valid(self, form):
+        flist = self.request.FILES.getlist('files')
+        path = self.get_safe_path()
+        if not os.path.isdir(path):
+            os.makedirs(path)
+        data = []
+        for f in flist:
+            with open(self.get_safe_path(f.name), 'w') as destination:
+                for chunk in f.chunks():
+                    destination.write(chunk)
+            data.append({
+                'name': f.name, 
+                'url': self.get_url(f.name),
+                'thumbnail_url': thumbnail(self.get_directory() + f.name),
+                        'delete_url': "%s?file=%s" % (
+                            self.request.get_full_path(),
+                            quote(f.name.encode('utf-8'))),
+                'delete_type': "DELETE"
+            })
+        response = JSONResponse(data)
+        response['Content-Disposition'] = 'inline; filename=files.json'
+        return response
+
+    def delete(self, request, *args, **kwargs):
+        os.unlink(self.get_safe_path(request.GET.get('file')))
+        response = JSONResponse(True)
+        response['Content-Disposition'] = 'inline; filename=files.json'
+        return response
index ea87936..283ab78 100644 (file)
@@ -25,6 +25,6 @@ class ButtonAdmin(admin.ModelAdmin):
     list_editable = ('label', 'tooltip', 'accesskey')
     prepopulated_fields = {'slug': ('label',)}
 
-#admin.site.register(models.Button, ButtonAdmin)
-#admin.site.register(models.ButtonGroup)
-#admin.site.register(models.Scriptlet)
+admin.site.register(models.Button, ButtonAdmin)
+admin.site.register(models.ButtonGroup)
+admin.site.register(models.Scriptlet)
index c2fb84d..539236f 100644 (file)
--   fields: {name: Akapity, position: 0, slug: akapity}
+-   fields: {name: "Nag\u0142\xF3wki", position: 0, slug: naglowki}
     model: toolbar.buttongroup
-    pk: 14
+    pk: 1
 -   fields: {name: Autokorekta, position: 0, slug: autokorekta}
     model: toolbar.buttongroup
     pk: 2
--   fields: {name: Autotagowanie, position: 0, slug: autotagowanie}
-    model: toolbar.buttongroup
-    pk: 28
--   fields: {name: Bloki, position: 0, slug: bloki}
+-   fields: {name: Mastery, position: 0, slug: mastery}
     model: toolbar.buttongroup
-    pk: 21
+    pk: 11
 -   fields: {name: 'Dramat ', position: 0, slug: dramat}
     model: toolbar.buttongroup
     pk: 12
 -   fields: {name: "Elementy pocz\u0105tkowe", position: 0, slug: elementy-poczatkowe}
     model: toolbar.buttongroup
     pk: 13
--   fields: {name: Mastery, position: 0, slug: mastery}
+-   fields: {name: Akapity, position: 0, slug: akapity}
     model: toolbar.buttongroup
-    pk: 11
--   fields: {name: "Nag\u0142\xF3wki", position: 0, slug: naglowki}
+    pk: 14
+-   fields: {name: Style znakowe, position: 0, slug: style-znakowe}
     model: toolbar.buttongroup
-    pk: 1
+    pk: 15
+-   fields: {name: Separatory, position: 0, slug: separatory}
+    model: toolbar.buttongroup
+    pk: 16
+-   fields: {name: Wersy, position: 0, slug: wersy}
+    model: toolbar.buttongroup
+    pk: 17
+-   fields: {name: Bloki, position: 0, slug: bloki}
+    model: toolbar.buttongroup
+    pk: 21
 -   fields: {name: "Pocz\u0105tek dramatu", position: 0, slug: poczatek-dramatu}
     model: toolbar.buttongroup
     pk: 22
 -   fields: {name: Przypisy, position: 0, slug: przypisy}
     model: toolbar.buttongroup
     pk: 26
--   fields: {name: Separatory, position: 0, slug: separatory}
-    model: toolbar.buttongroup
-    pk: 16
--   fields: {name: Style znakowe, position: 0, slug: style-znakowe}
+-   fields: {name: Autotagowanie, position: 0, slug: autotagowanie}
     model: toolbar.buttongroup
-    pk: 15
+    pk: 28
 -   fields: {name: Uwaga, position: 0, slug: uwaga}
     model: toolbar.buttongroup
     pk: 29
--   fields: {name: Wersy, position: 0, slug: wersy}
-    model: toolbar.buttongroup
-    pk: 17
--   fields:
-        accesskey: a
-        group: [14, 12]
-        label: akapit
-        link: ''
-        params: '{"padding_top": 1, "padding_bottom": 3, "tag": "akap"}'
-        scriptlet: insert_tag
-        slug: akapit
-        tooltip: wstawia akapit
-    model: toolbar.button
-    pk: 39
--   fields:
-        accesskey: ''
-        group: [14]
-        label: akapit cd.
-        link: ''
-        params: '{"padding_top": 1, "padding_bottom": 3, "tag": "akap_cd"}'
-        scriptlet: insert_tag
-        slug: akapit-cd
-        tooltip: "ci\u0105g dalszy akapitu po wewn\u0105trzakapitowym wtr\u0105ceniu"
-    model: toolbar.button
-    pk: 40
--   fields:
-        accesskey: d
-        group: [14]
-        label: akapit dialogowy
-        link: ''
-        params: '{"padding_top": 1, "padding_bottom": 3, "tag": "akap_dialog"}'
-        scriptlet: insert_tag
-        slug: akapit-dialogowy
-        tooltip: wstawia akapit dialogowy
-    model: toolbar.button
-    pk: 41
--   fields:
-        accesskey: ''
-        group: [28]
-        label: akapity
-        link: ''
-        params: '{"tag": "akap"}'
-        scriptlet: autotag
-        slug: akapity
-        tooltip: "autotagowanie akapit\xF3w"
-    model: toolbar.button
-    pk: 97
 -   fields:
         accesskey: ''
-        group: [1]
-        label: akt
+        group: [2]
+        label: ",,\u2026\" na \xAB\u2026\xBB"
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_akt"}'
-        scriptlet: insert_tag
-        slug: akt
-        tooltip: ''
+        params: '{"exprs": [[",,", "\u00ab"], ["\"", "\u00bb"]]}'
+        scriptlet: fulltextregexp
+        slug: na-francuskie
+        tooltip: "Zamienia cudzys\u0142owy podw\xF3jne na francuskie"
     model: toolbar.button
-    pk: 14
+    pk: 2
 -   fields:
         accesskey: ''
-        group: [13]
-        label: autor
+        group: [2]
+        label: ",,\u2026\" na \xBB\u2026\xAB"
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 2, "tag": "autor_utworu"}'
-        scriptlet: insert_tag
-        slug: autor
-        tooltip: ''
+        params: '{"exprs": [[",,", "\u00bb"], ["\"", "\u00ab"]]}'
+        scriptlet: fulltextregexp
+        slug: na-niemieckie
+        tooltip: "Zamienia cudzys\u0142owy podw\xF3jne na niemieckie"
     model: toolbar.button
-    pk: 32
+    pk: 3
 -   fields:
         accesskey: ''
         group: [2]
             "<akap_dialog>--- "]]}], ["lineregexp", {"exprs": [["^\\s+|\\s+$", ""],
             ["\\s+", " "], ["(,,)\\s+", "$1"], ["\\s+(\")", "$1"], ["([^\\.])(\\s*)</p",
             "$1.$2</p"], ["([\\.:;!\\?])([^\\s\\\\])", "$1 $2"], ["([^\\s])\\s+([\\.:;!\\?])",
-            "$1$2"], ["\\s+,([^,])", ",$1"], ["([^,]),([^\\s\\\\,])", "$1, $2"]]}]]'
+            "$1$2"], ["\\s+,([^,])", ",$1"], ["([^,]),([^\\s\\\\,])", "$1, $2"],
+            ["([A-Za-z])0", "$1o"], ["(\\. )0([A-Za-z])", "$1O$2"], [" 0([A-Za-z])", " o$1"],
+            ["([A-Za-z])1", "$1l"], ["(\\. )1([A-Za-z])", "$1L$2"], [" 1([A-Za-z])", " l$1"]]}]]'
         scriptlet: macro
         slug: basic_correction
         tooltip: "Wykonuj\u0119 podstawow\u0105 korekt\u0119 tekstu."
     pk: 4
 -   fields:
         accesskey: ''
-        group: [2]
-        label: "zamiana cudzys\u0142ow\xF3w 1"
+        group: [1]
+        label: "cz\u0119\u015B\u0107/ksi\u0119ga"
         link: ''
-        params: '{"exprs": [["\u00ab|\u201e", ",,"], ["\u00bb", "\""], ["([^=])\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])",
-            "$1,,$2"], ["^\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])",
-            ",,$1"], ["(,,)\\s+|\\s+(\")", "$1"]]}'
-        scriptlet: lineregexp
-        slug: cudzyslow-francuski
-        tooltip: "zamiana \" na ,, oraz  \xABa\xBB na ,,a\""
+        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_czesc"}'
+        scriptlet: insert_tag
+        slug: czesc
+        tooltip: ''
     model: toolbar.button
-    pk: 89
+    pk: 10
 -   fields:
         accesskey: ''
-        group: [2]
-        label: "zamiana cudzys\u0142ow\xF3w 2"
+        group: [1]
+        label: "rozdzia\u0142"
         link: ''
-        params: '{"exprs": [["\u00bb|\u201e", ",,"], ["\u00ab", "\""], ["([^=])\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])",
-            "$1,,$2"], ["^\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])",
-            ",,$1"], ["(,,)\\s+|\\s+(\")", "$1"]]}'
-        scriptlet: lineregexp
-        slug: cudzyslow-niemiecki
-        tooltip: "zamienia \" na ,, oraz \xBBa\xAB na ,,a\""
+        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_rozdzial"}'
+        scriptlet: insert_tag
+        slug: rozdzial
+        tooltip: ''
     model: toolbar.button
-    pk: 77
+    pk: 11
 -   fields:
         accesskey: ''
         group: [1]
-        label: "cz\u0119\u015B\u0107/ksi\u0119ga"
+        label: "podrozdzia\u0142"
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_czesc"}'
+        params: '{"tag": "naglowek_podrozdzial"}'
         scriptlet: insert_tag
-        slug: czesc
+        slug: podrozdzial
         tooltip: ''
     model: toolbar.button
-    pk: 10
+    pk: 12
 -   fields:
         accesskey: ''
-        group: [13, 22]
-        label: dedykacja
+        group: [1]
+        label: "\u015Br\xF3dtytu\u0142"
         link: ''
-        params: '{"tag": "dedykacja"}'
+        params: '{"tag": "srodtytul"}'
         scriptlet: insert_tag
-        slug: dedykacja
+        slug: srodtytul
         tooltip: ''
     model: toolbar.button
-    pk: 74
+    pk: 13
 -   fields:
         accesskey: ''
-        group: [12]
-        label: didaskalia
+        group: [1]
+        label: akt
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 2, "tag": "didaskalia"}'
+        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_akt"}'
         scriptlet: insert_tag
-        slug: didaskalia
+        slug: akt
         tooltip: ''
     model: toolbar.button
-    pk: 62
+    pk: 14
 -   fields:
         accesskey: ''
-        group: [22]
-        label: "didaskalia pocz\u0105tkowe"
+        group: [1]
+        label: scena
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 3, "tag": "miejsce_czas"}'
+        params: '{"tag": "naglowek_scena"}'
         scriptlet: insert_tag
-        slug: didaskalia-poczatkowe
-        tooltip: "komentarze wprowadzaj\u0105ce przed tekstem dramatu"
+        slug: scena
+        tooltip: ''
     model: toolbar.button
-    pk: 79
+    pk: 15
 -   fields:
         accesskey: ''
         group: [12]
-        label: didaskalia tekstowe
+        label: "nag\u0142\xF3wek kwestii"
         link: ''
-        params: '{"tag": "didask_tekst"}'
+        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_osoba"}'
         scriptlet: insert_tag
-        slug: didaskalia-tekstowe
-        tooltip: "didaskalia umieszczone w obr\u0119bie innego tekstu"
+        slug: naglowek-kwestii
+        tooltip: "nag\u0142\xF3wek kwestii - nazwa osoby"
     model: toolbar.button
-    pk: 63
+    pk: 16
 -   fields:
         accesskey: ''
-        group: [21]
-        label: "d\u0142ugi cytat"
+        group: [11]
+        label: "tag g\u0142\xF3wny"
         link: ''
-        params: '{"tag": "dlugi_cytat"}'
+        params: '{"tag": "utwor"}'
         scriptlet: insert_tag
-        slug: dlugi-cytat
-        tooltip: "d\u0142ugi cytat wyr\xF3\u017Cniony sk\u0142adem"
+        slug: tag-glowny
+        tooltip: ''
     model: toolbar.button
-    pk: 42
+    pk: 17
 -   fields:
         accesskey: ''
-        group: [21]
-        label: "d\u0142ugi cyt. poet."
+        group: [11]
+        label: opowiadanie
         link: ''
-        params: '{"tag": "poezja_cyt"}'
+        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "opowiadanie"}'
         scriptlet: insert_tag
-        slug: dlugi-cyt-poet
-        tooltip: "d\u0142ugi cytat wierszowany wyr\xF3\u017Cniony sk\u0142adem"
+        slug: opowiadanie
+        tooltip: ''
     model: toolbar.button
-    pk: 67
+    pk: 18
 -   fields:
         accesskey: ''
         group: [11]
-        label: dramat wiersz.
+        label: "powie\u015B\u0107"
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "dramat_wierszowany_l"}'
+        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "powiesc"}'
         scriptlet: insert_tag
-        slug: dramat-wiersz
+        slug: powiesc
         tooltip: ''
     model: toolbar.button
-    pk: 20
+    pk: 19
 -   fields:
         accesskey: ''
         group: [11]
-        label: "dramat wiersz./w. \u0142am"
+        label: dramat wiersz.
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "dramat_wierszowany_lp"}'
+        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "dramat_wierszowany_l"}'
         scriptlet: insert_tag
-        slug: dramat-wiersz-w-lam
-        tooltip: "dramat wierszowany o zw\u0119\u017Conej szeroko\u015Bci \u0142amu"
+        slug: dramat-wiersz
+        tooltip: ''
     model: toolbar.button
-    pk: 22
+    pk: 20
 -   fields:
         accesskey: ''
         group: [11]
     pk: 21
 -   fields:
         accesskey: ''
-        group: [13]
-        label: "dzie\u0142o nadrz\u0119dne"
+        group: [11]
+        label: "dramat wiersz./w. \u0142am"
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 2, "tag": "dzielo_nadrzedne"}'
+        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "dramat_wierszowany_lp"}'
         scriptlet: insert_tag
-        slug: dzielo-nadrzedne
-        tooltip: ''
+        slug: dramat-wiersz-w-lam
+        tooltip: "dramat wierszowany o zw\u0119\u017Conej szeroko\u015Bci \u0142amu"
     model: toolbar.button
-    pk: 38
+    pk: 22
 -   fields:
         accesskey: ''
-        group: []
-        label: extra
+        group: [11]
+        label: liryka
         link: ''
-        params: '{"tag": "extra"}'
+        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "liryka_l"}'
         scriptlet: insert_tag
-        slug: extra
-        tooltip: "uwagi dotycz\u0105ce sk\u0142adu"
+        slug: liryka
+        tooltip: ''
     model: toolbar.button
-    pk: 96
+    pk: 23
 -   fields:
         accesskey: ''
-        group: []
-        label: Wydrukuj
-        link: print/html
-        params: '[]'
+        group: [11]
+        label: "liryka/w. \u0142am"
+        link: ''
+        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "liryka_lp"}'
         scriptlet: insert_tag
-        slug: htmleditor-print
-        tooltip: ''
+        slug: liryka-w-lam
+        tooltip: "utw\xF3r liryczny o zw\u0119\u017Conej szeroko\u015Bci \u0142amu"
     model: toolbar.button
-    pk: 87
+    pk: 24
 -   fields:
-        accesskey: k
-        group: [12]
-        label: kwestia
+        accesskey: ''
+        group: [11]
+        label: wywiad
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 1, "tag": "kwestia"}'
+        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "wywiad"}'
         scriptlet: insert_tag
-        slug: kwestia
-        tooltip: "wstawia kwesti\u0119"
+        slug: wywiad
+        tooltip: ''
     model: toolbar.button
-    pk: 82
+    pk: 25
 -   fields:
         accesskey: ''
-        group: [12]
-        label: kwestioakapit
+        group: [13]
+        label: autor
         link: ''
-        params: '[["insert_tag", {"tag": "akap"}], ["insert_tag", {"padding_top":
-            1, "padding_bottom": 1, "tag": "kwestia"}]]'
-        scriptlet: macro
-        slug: kwestioakapit
+        params: '{"padding_top": 1, "padding_bottom": 2, "tag": "autor_utworu"}'
+        scriptlet: insert_tag
+        slug: autor
         tooltip: ''
     model: toolbar.button
-    pk: 101
+    pk: 32
 -   fields:
         accesskey: ''
-        group: [12]
-        label: kwestiostrofa
+        group: [13]
+        label: nazwa utworu
         link: ''
-        params: '[["insert_stanza", {"tag": "strofa"}], ["insert_tag", {"padding_top":
-            1, "padding_bottom": 1, "tag": "kwestia"}]]'
-        scriptlet: macro
-        slug: kwestiostrofa
+        params: '{"padding_top": 1, "padding_bottom": 2, "tag": "nazwa_utworu"}'
+        scriptlet: insert_tag
+        slug: nazwa-utworu
         tooltip: ''
     model: toolbar.button
-    pk: 102
+    pk: 33
 -   fields:
         accesskey: ''
-        group: [11]
-        label: liryka
+        group: [1]
+        label: "podtytu\u0142"
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "liryka_l"}'
+        params: '{"tag": "podtytul"}'
         scriptlet: insert_tag
-        slug: liryka
+        slug: podtytul
         tooltip: ''
     model: toolbar.button
-    pk: 23
+    pk: 34
 -   fields:
-        accesskey: ''
-        group: [11]
-        label: "liryka/w. \u0142am"
+        accesskey: v
+        group: [13]
+        label: nota
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "liryka_lp"}'
+        params: '{"tag": "nota"}'
         scriptlet: insert_tag
-        slug: liryka-w-lam
-        tooltip: "utw\xF3r liryczny o zw\u0119\u017Conej szeroko\u015Bci \u0142amu"
+        slug: nota
+        tooltip: ''
     model: toolbar.button
-    pk: 24
+    pk: 35
 -   fields:
         accesskey: ''
-        group: [22]
-        label: "lista os\xF3b"
+        group: [13, 22]
+        label: motto podpis
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "lista_osob"}'
+        params: '{"padding_top": 1, "padding_bottom": 2, "tag": "motto_podpis"}'
         scriptlet: insert_tag
-        slug: lista-osob
-        tooltip: "lista os\xF3b poprzedzaj\u0105ca tekst dramatu"
+        slug: motto-podpis
+        tooltip: ''
     model: toolbar.button
-    pk: 93
+    pk: 37
 -   fields:
         accesskey: ''
-        group: [22]
-        label: 'typ osoby '
+        group: [13]
+        label: "dzie\u0142o nadrz\u0119dne"
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 1, "tag": "lista_osoba", "attrs":
-            {"typ": ""}}'
+        params: '{"padding_top": 1, "padding_bottom": 2, "tag": "dzielo_nadrzedne"}'
         scriptlet: insert_tag
-        slug: lista-osob-pole
-        tooltip: osoby z takim samym opisem
+        slug: dzielo-nadrzedne
+        tooltip: ''
     model: toolbar.button
-    pk: 78
+    pk: 38
 -   fields:
-        accesskey: ''
-        group: [15]
-        label: matemat.
+        accesskey: a
+        group: [14, 12]
+        label: akapit
         link: ''
-        params: '{"tag": "mat"}'
+        params: '{"padding_top": 1, "padding_bottom": 3, "tag": "akap"}'
         scriptlet: insert_tag
-        slug: matemat
-        tooltip: "wyra\u017Cenia matematyczne lub zmienne symboliczne"
+        slug: akapit
+        tooltip: wstawia akapit
     model: toolbar.button
-    pk: 47
+    pk: 39
 -   fields:
         accesskey: ''
-        group: [13, 22]
-        label: motto
+        group: [14]
+        label: akapit cd.
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 3, "tag": "motto"}'
+        params: '{"padding_top": 1, "padding_bottom": 3, "tag": "akap_cd"}'
         scriptlet: insert_tag
-        slug: motto
-        tooltip: ''
+        slug: akapit-cd
+        tooltip: "ci\u0105g dalszy akapitu po wewn\u0105trzakapitowym wtr\u0105ceniu"
     model: toolbar.button
-    pk: 75
+    pk: 40
 -   fields:
-        accesskey: ''
-        group: [13, 22]
-        label: motto podpis
+        accesskey: d
+        group: [14]
+        label: akapit dialogowy
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 2, "tag": "motto_podpis"}'
+        params: '{"padding_top": 1, "padding_bottom": 3, "tag": "akap_dialog"}'
         scriptlet: insert_tag
-        slug: motto-podpis
-        tooltip: ''
+        slug: akapit-dialogowy
+        tooltip: wstawia akapit dialogowy
     model: toolbar.button
-    pk: 37
+    pk: 41
 -   fields:
         accesskey: ''
-        group: [2]
-        label: ",,\u2026\" na \xAB\u2026\xBB"
+        group: [21]
+        label: "d\u0142ugi cytat"
         link: ''
-        params: '{"exprs": [[",,", "\u00ab"], ["\"", "\u00bb"]]}'
-        scriptlet: fulltextregexp
-        slug: na-francuskie
-        tooltip: "Zamienia cudzys\u0142owy podw\xF3jne na francuskie"
+        params: '{"tag": "dlugi_cytat"}'
+        scriptlet: insert_tag
+        slug: dlugi-cytat
+        tooltip: "d\u0142ugi cytat wyr\xF3\u017Cniony sk\u0142adem"
     model: toolbar.button
-    pk: 2
+    pk: 42
 -   fields:
-        accesskey: ''
-        group: [28]
-        label: "nag\u0142. dramatu"
+        accesskey: f
+        group: [12, 15]
+        label: "wyr\xF3\u017Cnienie"
         link: ''
-        params: '{"exprs": [["^AKT(\\s\\w*)$", "<naglowek_akt>AKT$1</naglowek_akt>"],
-            ["^SCENA(\\s\\w*)$", "<naglowek_scena>SCENA$1</naglowek_scena>"], ["([A-Z\u0104\u0106\u0118\u0141\u0143\u00d3\u015a\u017b\u0179]{2}[A-Z\u0104\u0106\u0118\u0141\u0143\u00d3\u015a\u017b\u0179\\s]+)$",
-            "<naglowek_osoba>$1</naglowek_osoba>"]]}'
-        scriptlet: lineregexp
-        slug: nagl-dramatu
-        tooltip: "autotagowanie akt\xF3w, scen, nag\u0142\xF3wk\xF3w os\xF3b"
+        params: '{"tag": "wyroznienie"}'
+        scriptlet: insert_tag
+        slug: wyroznienie
+        tooltip: "wyr\xF3\u017Cnienie autorskie"
     model: toolbar.button
-    pk: 103
+    pk: 44
 -   fields:
         accesskey: ''
-        group: [12]
-        label: "nag\u0142\xF3wek kwestii"
+        group: [15]
+        label: "tytu\u0142 dzie\u0142a typ 1"
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_osoba"}'
+        params: '{"tag": "tytul_dziela", "attrs": {"typ": "1"}}'
         scriptlet: insert_tag
-        slug: naglowek-kwestii
-        tooltip: "nag\u0142\xF3wek kwestii - nazwa osoby"
+        slug: tytul-dziela-typ
+        tooltip: "tytu\u0142 dzie\u0142a w cytowanym tytule dzie\u0142a"
     model: toolbar.button
-    pk: 16
+    pk: 45
 -   fields:
-        accesskey: ''
-        group: [22]
-        label: "nag\u0142\xF3wek listy"
+        accesskey: e
+        group: [15]
+        label: "s\u0142owo obce"
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 2, "tag": "naglowek_listy"}'
+        params: '{"tag": "slowo_obce"}'
         scriptlet: insert_tag
-        slug: naglowek-listy
-        tooltip: "nag\u0142\xF3wek listy os\xF3b"
+        slug: slowo-obce
+        tooltip: "frazy w j\u0119zykach innych ni\u017C polski/definiendum w przypisie"
     model: toolbar.button
-    pk: 94
+    pk: 46
 -   fields:
         accesskey: ''
-        group: [2]
-        label: ",,\u2026\" na \xBB\u2026\xAB"
+        group: [15]
+        label: matemat.
         link: ''
-        params: '{"exprs": [[",,", "\u00bb"], ["\"", "\u00ab"]]}'
-        scriptlet: fulltextregexp
-        slug: na-niemieckie
-        tooltip: "Zamienia cudzys\u0142owy podw\xF3jne na niemieckie"
+        params: '{"tag": "mat"}'
+        scriptlet: insert_tag
+        slug: matemat
+        tooltip: "wyra\u017Cenia matematyczne lub zmienne symboliczne"
     model: toolbar.button
-    pk: 3
+    pk: 47
 -   fields:
         accesskey: ''
-        group: [13]
-        label: nazwa utworu
+        group: [15]
+        label: www
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 2, "tag": "nazwa_utworu"}'
+        params: '{"tag": "www"}'
         scriptlet: insert_tag
-        slug: nazwa-utworu
+        slug: www
         tooltip: ''
     model: toolbar.button
-    pk: 33
+    pk: 48
 -   fields:
         accesskey: ''
-        group: [13]
-        label: nota
+        group: [29]
+        label: uwaga
         link: ''
-        params: '{"tag": "nota"}'
+        params: '{"tag": "uwaga"}'
         scriptlet: insert_tag
-        slug: nota
-        tooltip: ''
+        slug: uwaga
+        tooltip: 'uwagi redaktorsko-korektorskie '
     model: toolbar.button
-    pk: 35
+    pk: 51
 -   fields:
         accesskey: ''
-        group: [13]
-        label: nota red.
+        group: [16]
+        label: "\u015Bwiat\u0142o"
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 3, "tag": "nota_red"}'
+        params: '{"nocontent": "true", "tag": "sekcja_swiatlo"}'
         scriptlet: insert_tag
-        slug: nota-red
-        tooltip: nota redakcyjna
+        slug: sep-swiatlo
+        tooltip: "\u015Bwiat\u0142o rozdzielaj\u0105ce sekcje tekstu"
     model: toolbar.button
-    pk: 104
+    pk: 53
 -   fields:
         accesskey: ''
-        group: [11]
-        label: opowiadanie
+        group: [16]
+        label: asterysk
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "opowiadanie"}'
+        params: '{"nocontent": "true", "tag": "sekcja_asterysk"}'
         scriptlet: insert_tag
-        slug: opowiadanie
-        tooltip: ''
+        slug: sep-asterysk
+        tooltip: rozdzielenie partii tekstu asteryskiem
     model: toolbar.button
-    pk: 18
+    pk: 54
 -   fields:
-        accesskey: b
-        group: [12]
-        label: osoba
+        accesskey: ''
+        group: [16]
+        label: linia
         link: ''
-        params: '{"tag": "osoba"}'
+        params: '{"nocontent": "true", "tag": "separator_linia"}'
         scriptlet: insert_tag
-        slug: osoba
-        tooltip: "wstawia nazw\u0119 osoby w didaskaliach"
+        slug: sep-linia
+        tooltip: "rozdzielenie partii tekstu pozioma lini\u0105"
     model: toolbar.button
-    pk: 64
+    pk: 55
 -   fields:
         accesskey: ''
-        group: [22]
-        label: osoba na liscie
+        group: [16]
+        label: "zast\u0119pnik wersu"
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 1, "tag": "lista_osoba"}'
+        params: '{"tag": "zastepnik_wersu"}'
         scriptlet: insert_tag
-        slug: osoba-na-liscie
-        tooltip: "nazwa osoby na liscie os\xF3b"
+        slug: zastepnik-wersu
+        tooltip: wykropkowanie wersu
     model: toolbar.button
-    pk: 95
+    pk: 56
 -   fields:
         accesskey: ''
-        group: [1]
-        label: "podrozdzia\u0142"
+        group: [12]
+        label: didaskalia
         link: ''
-        params: '{"tag": "naglowek_podrozdzial"}'
+        params: '{"padding_top": 1, "padding_bottom": 2, "tag": "didaskalia"}'
         scriptlet: insert_tag
-        slug: podrozdzial
+        slug: didaskalia
         tooltip: ''
     model: toolbar.button
-    pk: 12
+    pk: 62
 -   fields:
         accesskey: ''
-        group: [1]
-        label: "podtytu\u0142"
+        group: [12]
+        label: didaskalia tekstowe
         link: ''
-        params: '{"tag": "podtytul"}'
+        params: '{"tag": "didask_tekst"}'
         scriptlet: insert_tag
-        slug: podtytul
-        tooltip: ''
+        slug: didaskalia-tekstowe
+        tooltip: "didaskalia umieszczone w obr\u0119bie innego tekstu"
     model: toolbar.button
-    pk: 34
+    pk: 63
 -   fields:
-        accesskey: ''
-        group: [11]
-        label: "powie\u015B\u0107"
+        accesskey: b
+        group: [12]
+        label: osoba
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "powiesc"}'
+        params: '{"tag": "osoba"}'
         scriptlet: insert_tag
-        slug: powiesc
-        tooltip: ''
+        slug: osoba
+        tooltip: "wstawia nazw\u0119 osoby w didaskaliach"
     model: toolbar.button
-    pk: 19
+    pk: 64
 -   fields:
         accesskey: ''
-        group: []
-        label: Wydrukuj
-        link: print/xml
-        params: '[]'
+        group: [21]
+        label: "d\u0142ugi cyt. poet."
+        link: ''
+        params: '{"tag": "poezja_cyt"}'
         scriptlet: insert_tag
-        slug: print-xml
-        tooltip: ''
+        slug: dlugi-cyt-poet
+        tooltip: "d\u0142ugi cytat wierszowany wyr\xF3\u017Cniony sk\u0142adem"
     model: toolbar.button
-    pk: 86
+    pk: 67
 -   fields:
         accesskey: ''
         group: [26]
 -   fields:
         accesskey: ''
         group: [26]
-        label: przypis edytorski
+        label: "przypis t\u0142umacza"
         link: ''
-        params: '{"tag": "pe"}'
+        params: '{"tag": "pt"}'
         scriptlet: insert_tag
-        slug: przypis-edytorski
+        slug: przypis-tlumacza
         tooltip: ''
     model: toolbar.button
-    pk: 71
+    pk: 69
 -   fields:
         accesskey: ''
         group: [26]
 -   fields:
         accesskey: ''
         group: [26]
-        label: "przypis t\u0142umacza"
+        label: przypis edytorski
         link: ''
-        params: '{"tag": "pt"}'
+        params: '{"tag": "pe"}'
         scriptlet: insert_tag
-        slug: przypis-tlumacza
+        slug: przypis-edytorski
         tooltip: ''
     model: toolbar.button
-    pk: 69
+    pk: 71
 -   fields:
         accesskey: ''
-        group: [1]
-        label: "rozdzia\u0142"
+        group: [21]
+        label: wywiad pytanie
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_rozdzial"}'
+        params: '{"tag": "wywiad_pyt"}'
         scriptlet: insert_tag
-        slug: rozdzial
+        slug: wywiad-pytanie
         tooltip: ''
     model: toolbar.button
-    pk: 11
+    pk: 72
 -   fields:
         accesskey: ''
-        group: [1]
-        label: scena
+        group: [21]
+        label: "wywiad odpowied\u017A"
         link: ''
-        params: '{"tag": "naglowek_scena"}'
+        params: '{"tag": "wywiad_odp"}'
         scriptlet: insert_tag
-        slug: scena
+        slug: wywiad-odpowiedz
         tooltip: ''
     model: toolbar.button
-    pk: 15
+    pk: 73
 -   fields:
         accesskey: ''
-        group: [16]
-        label: asterysk
+        group: [13, 22]
+        label: dedykacja
         link: ''
-        params: '{"nocontent": "true", "tag": "sekcja_asterysk"}'
+        params: '{"tag": "dedykacja"}'
         scriptlet: insert_tag
-        slug: sep-asterysk
-        tooltip: rozdzielenie partii tekstu asteryskiem
+        slug: dedykacja
+        tooltip: ''
     model: toolbar.button
-    pk: 54
+    pk: 74
 -   fields:
         accesskey: ''
-        group: [16]
-        label: linia
+        group: [13, 22]
+        label: motto
         link: ''
-        params: '{"nocontent": "true", "tag": "separator_linia"}'
+        params: '{"padding_top": 1, "padding_bottom": 3, "tag": "motto"}'
         scriptlet: insert_tag
-        slug: sep-linia
-        tooltip: "rozdzielenie partii tekstu pozioma lini\u0105"
+        slug: motto
+        tooltip: ''
     model: toolbar.button
-    pk: 55
+    pk: 75
 -   fields:
-        accesskey: ''
-        group: [16]
-        label: "\u015Bwiat\u0142o"
+        accesskey: u
+        group: [2]
+        label: "A<sup>\u2193</sup>"
         link: ''
-        params: '{"nocontent": "true", "tag": "sekcja_swiatlo"}'
-        scriptlet: insert_tag
-        slug: sep-swiatlo
-        tooltip: "\u015Bwiat\u0142o rozdzielaj\u0105ce sekcje tekstu"
+        params: '[]'
+        scriptlet: lowercase
+        slug: tolowercase
+        tooltip: "Zamie\u0144 wielkie litery na ma\u0142e"
     model: toolbar.button
-    pk: 53
+    pk: 76
 -   fields:
-        accesskey: e
-        group: [15]
-        label: "s\u0142owo obce"
+        accesskey: ''
+        group: [2]
+        label: "zamiana cudzys\u0142ow\xF3w 2"
         link: ''
-        params: '{"tag": "slowo_obce"}'
-        scriptlet: insert_tag
-        slug: slowo-obce
-        tooltip: "frazy w j\u0119zykach innych ni\u017C polski/definiendum w przypisie"
+        params: '{"exprs": [["\u00bb|\u201e", ",,"], ["\u00ab", "\""], ["([^=])\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])",
+            "$1,,$2"], ["^\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])",
+            ",,$1"], ["(,,)\\s+|\\s+(\")", "$1"]]}'
+        scriptlet: lineregexp
+        slug: cudzyslow-niemiecki
+        tooltip: "zamienia \" na ,, oraz \xBBa\xAB na ,,a\""
     model: toolbar.button
-    pk: 46
+    pk: 77
 -   fields:
         accesskey: ''
-        group: [2]
-        label: slug
+        group: [22]
+        label: 'typ osoby '
         link: ''
-        params: '[]'
-        scriptlet: slugify
-        slug: slug
-        tooltip: slugifikacja
+        params: '{"padding_top": 1, "padding_bottom": 1, "tag": "lista_osoba", "attrs":
+            {"typ": ""}}'
+        scriptlet: insert_tag
+        slug: lista-osob-pole
+        tooltip: osoby z takim samym opisem
     model: toolbar.button
-    pk: 105
+    pk: 78
 -   fields:
         accesskey: ''
-        group: [1]
-        label: "\u015Br\xF3dtytu\u0142"
+        group: [22]
+        label: "didaskalia pocz\u0105tkowe"
         link: ''
-        params: '{"tag": "srodtytul"}'
+        params: '{"padding_top": 1, "padding_bottom": 3, "tag": "miejsce_czas"}'
         scriptlet: insert_tag
-        slug: srodtytul
-        tooltip: ''
+        slug: didaskalia-poczatkowe
+        tooltip: "komentarze wprowadzaj\u0105ce przed tekstem dramatu"
     model: toolbar.button
-    pk: 13
+    pk: 79
 -   fields:
         accesskey: s
         group: [12, 17]
     model: toolbar.button
     pk: 81
 -   fields:
-        accesskey: ''
-        group: [28]
-        label: strofy
+        accesskey: k
+        group: [12]
+        label: kwestia
         link: ''
-        params: '{"tag": "strofa"}'
-        scriptlet: autotag
-        slug: strofy
-        tooltip: autotagowanie strof
+        params: '{"padding_top": 1, "padding_bottom": 1, "tag": "kwestia"}'
+        scriptlet: insert_tag
+        slug: kwestia
+        tooltip: "wstawia kwesti\u0119"
     model: toolbar.button
-    pk: 99
+    pk: 82
 -   fields:
-        accesskey: ''
-        group: [11]
-        label: "tag g\u0142\xF3wny"
+        accesskey: w
+        group: [12, 17]
+        label: "wers mocno wci\u0119ty"
         link: ''
-        params: '{"tag": "utwor"}'
+        params: '{"tag": "wers_wciety", "attrs": {"typ": ""}}'
         scriptlet: insert_tag
-        slug: tag-glowny
-        tooltip: ''
+        slug: wers-mocno-wciety
+        tooltip: "argumenty wersu wci\u0119tego: od 2 do 6"
     model: toolbar.button
-    pk: 17
+    pk: 84
 -   fields:
-        accesskey: u
-        group: [2]
-        label: "A<sup>\u2193</sup>"
+        accesskey: ''
+        group: [12, 17]
+        label: wers cd.
         link: ''
+        params: '{"tag": "wers_cd"}'
+        scriptlet: insert_tag
+        slug: wers-cd
+        tooltip: "cz\u0119\u015B\u0107 wersu przeniesiona do innego wiersza"
+    model: toolbar.button
+    pk: 85
+-   fields:
+        accesskey: ''
+        group: []
+        label: Wydrukuj
+        link: print/xml
         params: '[]'
-        scriptlet: lowercase
-        slug: tolowercase
-        tooltip: "Zamie\u0144 wielkie litery na ma\u0142e"
+        scriptlet: insert_tag
+        slug: print-xml
+        tooltip: ''
     model: toolbar.button
-    pk: 76
+    pk: 86
 -   fields:
         accesskey: ''
-        group: [28]
-        label: trim begin
-        link: ''
-        params: '{"text": "\n<!-- TRIM_BEGIN -->\n"}'
-        scriptlet: insert_text
-        slug: trim-begin
-        tooltip: "Wstawia pocz\u0105tkowy znacznik ci\u0119cia cz\u0119\u015Bci"
+        group: []
+        label: Wydrukuj
+        link: print/html
+        params: '[]'
+        scriptlet: insert_tag
+        slug: htmleditor-print
+        tooltip: ''
     model: toolbar.button
-    pk: 106
+    pk: 87
 -   fields:
         accesskey: ''
-        group: [28]
-        label: trim end
+        group: [2]
+        label: "zamiana cudzys\u0142ow\xF3w 1"
         link: ''
-        params: '{"text": "\n<!-- TRIM_END -->\n"}'
-        scriptlet: insert_text
-        slug: trim-end
-        tooltip: "Wstawia ko\u0144cowy znacznik ci\u0119cia cz\u0119\u015Bci"
+        params: '{"exprs": [["\u00ab|\u201e", ",,"], ["\u00bb", "\""], ["([^=])\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])",
+            "$1,,$2"], ["^\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])",
+            ",,$1"], ["(,,)\\s+|\\s+(\")", "$1"]]}'
+        scriptlet: lineregexp
+        slug: cudzyslow-francuski
+        tooltip: "zamiana \" na ,, oraz  \xABa\xBB na ,,a\""
+    model: toolbar.button
+    pk: 89
+-   fields:
+        accesskey: q
+        group: [12, 17]
+        label: "wers wci\u0119ty"
+        link: ''
+        params: '{"tag": "wers_wciety", "attrs": {"typ": "1"}}'
+        scriptlet: insert_tag
+        slug: wers-wciety
+        tooltip: "wstawia wers wci\u0119ty"
     model: toolbar.button
-    pk: 107
+    pk: 91
 -   fields:
         accesskey: r
         group: [15]
     pk: 92
 -   fields:
         accesskey: ''
-        group: [15]
-        label: "tytu\u0142 dzie\u0142a typ 1"
+        group: [22]
+        label: "lista os\xF3b"
         link: ''
-        params: '{"tag": "tytul_dziela", "attrs": {"typ": "1"}}'
+        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "lista_osob"}'
         scriptlet: insert_tag
-        slug: tytul-dziela-typ
-        tooltip: "tytu\u0142 dzie\u0142a w cytowanym tytule dzie\u0142a"
+        slug: lista-osob
+        tooltip: "lista os\xF3b poprzedzaj\u0105ca tekst dramatu"
     model: toolbar.button
-    pk: 45
+    pk: 93
 -   fields:
         accesskey: ''
-        group: [29]
-        label: uwaga
+        group: [22]
+        label: "nag\u0142\xF3wek listy"
         link: ''
-        params: '{"tag": "uwaga"}'
+        params: '{"padding_top": 1, "padding_bottom": 2, "tag": "naglowek_listy"}'
         scriptlet: insert_tag
-        slug: uwaga
-        tooltip: 'uwagi redaktorsko-korektorskie '
+        slug: naglowek-listy
+        tooltip: "nag\u0142\xF3wek listy os\xF3b"
     model: toolbar.button
-    pk: 51
+    pk: 94
 -   fields:
         accesskey: ''
-        group: [14, 17]
-        label: wers akap.
+        group: [22]
+        label: osoba na liscie
         link: ''
-        params: '{"tag": "wers_akap"}'
+        params: '{"padding_top": 1, "padding_bottom": 1, "tag": "lista_osoba"}'
         scriptlet: insert_tag
-        slug: wers-akap
-        tooltip: "wers rozpoczynaj\u0105cy si\u0119 wci\u0119ciem akapitowym"
+        slug: osoba-na-liscie
+        tooltip: "nazwa osoby na liscie os\xF3b"
     model: toolbar.button
-    pk: 83
+    pk: 95
 -   fields:
         accesskey: ''
-        group: [12, 17]
-        label: wers cd.
+        group: []
+        label: extra
         link: ''
-        params: '{"tag": "wers_cd"}'
+        params: '{"tag": "extra"}'
         scriptlet: insert_tag
-        slug: wers-cd
-        tooltip: "cz\u0119\u015B\u0107 wersu przeniesiona do innego wiersza"
+        slug: extra
+        tooltip: "uwagi dotycz\u0105ce sk\u0142adu"
     model: toolbar.button
-    pk: 85
+    pk: 96
 -   fields:
-        accesskey: w
-        group: [12, 17]
-        label: "wers mocno wci\u0119ty"
+        accesskey: ''
+        group: [28]
+        label: akapity
         link: ''
-        params: '{"tag": "wers_wciety", "attrs": {"typ": ""}}'
-        scriptlet: insert_tag
-        slug: wers-mocno-wciety
-        tooltip: "argumenty wersu wci\u0119tego: od 2 do 6"
+        params: '{"tag": "akap"}'
+        scriptlet: autotag
+        slug: akapity
+        tooltip: "autotagowanie akapit\xF3w"
     model: toolbar.button
-    pk: 84
+    pk: 97
 -   fields:
-        accesskey: q
-        group: [12, 17]
-        label: "wers wci\u0119ty"
+        accesskey: ''
+        group: [28]
+        label: strofy
         link: ''
-        params: '{"tag": "wers_wciety", "attrs": {"typ": "1"}}'
-        scriptlet: insert_tag
-        slug: wers-wciety
-        tooltip: "wstawia wers wci\u0119ty"
+        params: '{"tag": "strofa"}'
+        scriptlet: autotag
+        slug: strofy
+        tooltip: autotagowanie strof
     model: toolbar.button
-    pk: 91
+    pk: 99
 -   fields:
         accesskey: ''
         group: [28]
     model: toolbar.button
     pk: 100
 -   fields:
-        accesskey: ''
-        group: [15]
-        label: www
+        accesskey: g
+        group: [12]
+        label: kwestioakapit
         link: ''
-        params: '{"tag": "www"}'
-        scriptlet: insert_tag
-        slug: www
+        params: '[["insert_tag", {"tag": "akap"}], ["insert_tag", {"padding_top":
+            1, "padding_bottom": 1, "tag": "kwestia"}]]'
+        scriptlet: macro
+        slug: kwestioakapit
         tooltip: ''
     model: toolbar.button
-    pk: 48
+    pk: 101
 -   fields:
-        accesskey: f
-        group: [12, 15]
-        label: "wyr\xF3\u017Cnienie"
+        accesskey: ''
+        group: [12]
+        label: kwestiostrofa
         link: ''
-        params: '{"tag": "wyroznienie"}'
-        scriptlet: insert_tag
-        slug: wyroznienie
-        tooltip: "wyr\xF3\u017Cnienie autorskie"
+        params: '[["insert_stanza", {"tag": "strofa"}], ["insert_tag", {"padding_top":
+            1, "padding_bottom": 1, "tag": "kwestia"}]]'
+        scriptlet: macro
+        slug: kwestiostrofa
+        tooltip: ''
     model: toolbar.button
-    pk: 44
+    pk: 102
 -   fields:
         accesskey: ''
-        group: [11]
-        label: wywiad
+        group: [28]
+        label: "nag\u0142. dramatu"
         link: ''
-        params: '{"padding_top": 1, "padding_bottom": 4, "tag": "wywiad"}'
+        params: '{"exprs": [["^AKT(\\s\\w*)$", "<naglowek_akt>AKT$1</naglowek_akt>"],
+            ["^SCENA(\\s\\w*)$", "<naglowek_scena>SCENA$1</naglowek_scena>"], ["([A-Z\u0104\u0106\u0118\u0141\u0143\u00d3\u015a\u017b\u0179]{2}[A-Z\u0104\u0106\u0118\u0141\u0143\u00d3\u015a\u017b\u0179\\s]+)$",
+            "<naglowek_osoba>$1</naglowek_osoba>"]]}'
+        scriptlet: lineregexp
+        slug: nagl-dramatu
+        tooltip: "autotagowanie akt\xF3w, scen, nag\u0142\xF3wk\xF3w os\xF3b"
+    model: toolbar.button
+    pk: 103
+-   fields:
+        accesskey: x
+        group: [13]
+        label: nota red.
+        link: ''
+        params: '{"padding_top": 1, "padding_bottom": 3, "tag": "nota_red"}'
         scriptlet: insert_tag
-        slug: wywiad
-        tooltip: ''
+        slug: nota-red
+        tooltip: nota redakcyjna
     model: toolbar.button
-    pk: 25
+    pk: 104
 -   fields:
         accesskey: ''
-        group: [21]
-        label: "wywiad odpowied\u017A"
+        group: [2]
+        label: slug
         link: ''
-        params: '{"tag": "wywiad_odp"}'
-        scriptlet: insert_tag
-        slug: wywiad-odpowiedz
-        tooltip: ''
+        params: '[]'
+        scriptlet: slugify
+        slug: slug
+        tooltip: slugifikacja
     model: toolbar.button
-    pk: 73
+    pk: 105
 -   fields:
         accesskey: ''
-        group: [21]
-        label: wywiad pytanie
+        group: [11]
+        label: trim begin
         link: ''
-        params: '{"tag": "wywiad_pyt"}'
-        scriptlet: insert_tag
-        slug: wywiad-pytanie
-        tooltip: ''
+        params: '{"text": "\n<!-- TRIM_BEGIN -->\n"}'
+        scriptlet: insert_text
+        slug: trim-begin
+        tooltip: "Wstawia pocz\u0105tkowy znacznik ci\u0119cia cz\u0119\u015Bci"
     model: toolbar.button
-    pk: 72
+    pk: 106
 -   fields:
         accesskey: ''
-        group: [16]
-        label: "zast\u0119pnik wersu"
+        group: [11]
+        label: trim end
         link: ''
-        params: '{"tag": "zastepnik_wersu"}'
-        scriptlet: insert_tag
-        slug: zastepnik-wersu
-        tooltip: wykropkowanie wersu
+        params: '{"text": "\n<!-- TRIM_END -->\n"}'
+        scriptlet: insert_text
+        slug: trim-end
+        tooltip: "Wstawia ko\u0144cowy znacznik ci\u0119cia cz\u0119\u015Bci"
     model: toolbar.button
-    pk: 56
--   fields: {code: "$(params).each(function() {\n    $.log(this[0], this[1]);\n  \
-            \  editor.callScriptlet(this[0], panel, this[1]);\n\n});"}
+    pk: 107
+-   fields: {code: '-'}
     model: toolbar.scriptlet
-    pk: macro
+    pk: autotag
+-   fields: {code: "editor.showPopup('generic-info', 'Przetwarzanie zaznaczonego tekstu...',\
+            \ '', -1);\n$.log(editor, panel, params);\nvar cm = panel.texteditor;\n\
+            var exprs = $.map(params.exprs, function(expr) {\n    var opts = \"mg\"\
+            ;\n    if(expr.length > 2)\n        opts = expr[2];\n\n    return {rx:\
+            \ new RegExp(expr[0], opts), repl: expr[1]};\n});\n\nvar partial = true;\n\
+            var text = cm.selection();\n\nif(!text) {\n    var cpos = cm.cursorPosition();\n\
+            \    cpos.line = cm.lineNumber(cpos.line)\n    cm.selectLines(cm.firstLine(),\
+            \ 0, cm.lastLine(), 0);\n\n    text = cm.selection();\n    partial = false;\n\
+            }\n\nvar original = text;\n$(exprs).each(function() { \n    text = text.replace(this.rx,\
+            \ this.repl);\n});\n\nif( original != text) \n{    \n    cm.replaceSelection(text);\n\
+            \    panel.fireEvent('contentChanged');\n    editor.showPopup('generic-yes',\
+            \ 'Zmieniono tekst' );\n    editor.advancePopupQueue();\n}\nelse {\n \
+            \   editor.showPopup('generic-info', 'Brak zmian w tek\u015Bcie.');\n\
+            \    editor.advancePopupQueue();\n}\n\nif(!partial) {\n    cm.selectLines(\
+            \ cm.nthLine(cpos.line), cpos.character );\n}"}
+    model: toolbar.scriptlet
+    pk: fulltextregexp
+-   fields: {code: "var texteditor = panel.texteditor;\r\nvar text = texteditor.selection();\r\
+            \n\r\nif(text) {\r\n  var verses = text.split('\\n');\r\n  var text =\
+            \ ''; var buf = ''; var ebuf = '';\r\n  var first = true;\r\n\r\n  for(var\
+            \ i=0;  i < verses.length; i++) {\r\n    verse = verses[i].replace(/^\\\
+            s+/, \"\").replace(/\\s+$/, \"\");   \r\n    if(verse) {\r\n      text\
+            \ += (buf ? buf + '/\\n' : '') + ebuf;\r\n      buf = (first ? '<strofa>\\\
+            n' : '') + verses[i];\r\n      ebuf = '';\r\n      first = false;\r\n\
+            \    } else {    \r\n      ebuf += '\\n' + verses[i];\r\n    }\r\n  };\r\
+            \n  text = text + buf + '\\n</strofa>' + ebuf; \r\n  texteditor.replaceSelection(text);\r\
+            \n}\r\n\r\nif (!text) {\r\n    var pos = texteditor.cursorPosition();\r\
+            \n    texteditor.selectLines(pos.line, pos.character + 6 + 2);\r\n}\r\n\
+            \r\n\r\n\r\n\r\n\r\n\r\n\r\npanel.fireEvent('contentChanged');"}
+    model: toolbar.scriptlet
+    pk: insert_stanza
 -   fields: {code: "var texteditor = panel.texteditor;\nvar text = texteditor.selection();\n\
             var start_tag = '<'+params.tag;\nfor (var attr in params.attrs) {\n  \
             \  start_tag += ' '+attr+'=\"' + params.attrs[attr] + '\"';\n};\nstart_tag\
             \ + 2);\n}\n\npanel.fireEvent('contentChanged');"}
     model: toolbar.scriptlet
     pk: insert_tag
+-   fields: {code: '-'}
+    model: toolbar.scriptlet
+    pk: insert_text
 -   fields: {code: "editor.showPopup('generic-info', 'Przetwarzanie zaznaczonego tekstu...',\
             \ '', -1);\n\nvar cm = panel.texteditor;\nvar exprs = $.map(params.exprs,\
             \ function(expr) {\n\n    var opts = \"g\";\n\n    if(expr.length > 2)\n\
             \ cm.selectLines( cm.nthLine(cpos.line), cpos.character )"}
     model: toolbar.scriptlet
     pk: lineregexp
--   fields: {code: '-'}
-    model: toolbar.scriptlet
-    pk: autotag
--   fields: {code: "editor.showPopup('generic-info', 'Przetwarzanie zaznaczonego tekstu...',\
-            \ '', -1);\n$.log(editor, panel, params);\nvar cm = panel.texteditor;\n\
-            var exprs = $.map(params.exprs, function(expr) {\n    var opts = \"mg\"\
-            ;\n    if(expr.length > 2)\n        opts = expr[2];\n\n    return {rx:\
-            \ new RegExp(expr[0], opts), repl: expr[1]};\n});\n\nvar partial = true;\n\
-            var text = cm.selection();\n\nif(!text) {\n    var cpos = cm.cursorPosition();\n\
-            \    cpos.line = cm.lineNumber(cpos.line)\n    cm.selectLines(cm.firstLine(),\
-            \ 0, cm.lastLine(), 0);\n\n    text = cm.selection();\n    partial = false;\n\
-            }\n\nvar original = text;\n$(exprs).each(function() { \n    text = text.replace(this.rx,\
-            \ this.repl);\n});\n\nif( original != text) \n{    \n    cm.replaceSelection(text);\n\
-            \    panel.fireEvent('contentChanged');\n    editor.showPopup('generic-yes',\
-            \ 'Zmieniono tekst' );\n    editor.advancePopupQueue();\n}\nelse {\n \
-            \   editor.showPopup('generic-info', 'Brak zmian w tek\u015Bcie.');\n\
-            \    editor.advancePopupQueue();\n}\n\nif(!partial) {\n    cm.selectLines(\
-            \ cm.nthLine(cpos.line), cpos.character );\n}"}
-    model: toolbar.scriptlet
-    pk: fulltextregexp
--   fields: {code: '-'}
-    model: toolbar.scriptlet
-    pk: insert_text
 -   fields: {code: "var cm = panel.texteditor;\r\nvar text = cm.selection();\r\n\r\
             \nif(!text) return;\r\nvar repl = '';\r\nvar lcase = text.toLowerCase();\r\
             \nvar ucase = text.toUpperCase();\r\n\r\nif(lcase == text) repl = ucase;\
             \n};"}
     model: toolbar.scriptlet
     pk: lowercase
--   fields: {code: "var texteditor = panel.texteditor;\r\nvar text = texteditor.selection();\r\
-            \n\r\nif(text) {\r\n  var verses = text.split('\\n');\r\n  var text =\
-            \ ''; var buf = ''; var ebuf = '';\r\n  var first = true;\r\n\r\n  for(var\
-            \ i=0;  i < verses.length; i++) {\r\n    verse = verses[i].replace(/^\\\
-            s+/, \"\").replace(/\\s+$/, \"\");   \r\n    if(verse) {\r\n      text\
-            \ += (buf ? buf + '/\\n' : '') + ebuf;\r\n      buf = (first ? '<strofa>\\\
-            n' : '') + verses[i];\r\n      ebuf = '';\r\n      first = false;\r\n\
-            \    } else {    \r\n      ebuf += '\\n' + verses[i];\r\n    }\r\n  };\r\
-            \n  text = text + buf + '\\n</strofa>' + ebuf; \r\n  texteditor.replaceSelection(text);\r\
-            \n}\r\n\r\nif (!text) {\r\n    var pos = texteditor.cursorPosition();\r\
-            \n    texteditor.selectLines(pos.line, pos.character + 6 + 2);\r\n}\r\n\
-            \r\n\r\n\r\n\r\n\r\n\r\n\r\npanel.fireEvent('contentChanged');"}
+-   fields: {code: "$(params).each(function() {\n    $.log(this[0], this[1]);\n  \
+            \  editor.callScriptlet(this[0], panel, this[1]);\n\n});"}
     model: toolbar.scriptlet
-    pk: insert_stanza
+    pk: macro
 -   fields: {code: '-'}
     model: toolbar.scriptlet
     pk: slugify
index 90da85e..ae309a9 100644 (file)
@@ -2,6 +2,7 @@ from django.contrib import admin
 
 from wiki import models
 
+
 class ThemeAdmin(admin.ModelAdmin):
     search_fields = ['name']
 
index d886dce..cc5b3a5 100644 (file)
Binary files a/apps/wiki/locale/pl/LC_MESSAGES/django.mo and b/apps/wiki/locale/pl/LC_MESSAGES/django.mo differ
index 0182abe..a679724 100644 (file)
@@ -7,43 +7,37 @@ msgid ""
 msgstr ""
 "Project-Id-Version: Platforma Redakcyjna\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-11-30 16:07+0100\n"
-"PO-Revision-Date: 2011-11-30 16:08+0100\n"
+"POT-Creation-Date: 2013-07-10 16:58+0200\n"
+"PO-Revision-Date: 2013-07-10 16:58+0100\n"
 "Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
-"Language-Team: Fundacja Nowoczesna Polska <fundacja@nowoczesnapolska.org.pl>\n"
-"Language: \n"
+"Language-Team: Fundacja Nowoczesna Polska <fundacja@nowoczesnapolska.org."
+"pl>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.5.4\n"
 
-#: forms.py:19
-#: forms.py:63
-#: views.py:279
+#: forms.py:19 forms.py:63 views.py:279
 msgid "Publishable"
 msgstr "Gotowe do publikacji"
 
-#: forms.py:38
-#: forms.py:89
+#: forms.py:38 forms.py:89
 msgid "Author"
 msgstr "Autor"
 
-#: forms.py:39
-#: forms.py:90
+#: forms.py:39 forms.py:90
 msgid "Your name"
 msgstr "Imię i nazwisko"
 
-#: forms.py:44
-#: forms.py:95
+#: forms.py:44 forms.py:95
 msgid "Author's email"
 msgstr "E-mail autora"
 
-#: forms.py:45
-#: forms.py:96
+#: forms.py:45 forms.py:96
 msgid "Your email address, so we can show a gravatar :)"
 msgstr "Adres e-mail, żebyśmy mogli pokazać gravatar :)"
 
-#: forms.py:51
-#: forms.py:102
+#: forms.py:51 forms.py:102
 msgid "Your comments"
 msgstr "Twój komentarz"
 
@@ -79,15 +73,19 @@ msgstr "motyw"
 msgid "themes"
 msgstr "motywy"
 
-#: views.py:299
+#: views.py:281
+msgid "Published"
+msgstr "Opublikowano"
+
+#: views.py:302
 msgid "Revision marked"
 msgstr "Wersja oznaczona"
 
-#: views.py:301
+#: views.py:304
 msgid "Nothing changed"
 msgstr "Nic nie uległo zmianie"
 
-#: templates/admin/wiki/theme/change_list.html:21
+#: templates/admin/wiki/theme/change_list.html:22
 msgid "Table for Redmine wiki"
 msgstr "Tabela do wiki na Redmine"
 
@@ -128,8 +126,7 @@ msgstr "Trwa zapisywanie"
 msgid "There is a newer version of this document!"
 msgstr "Istnieje nowsza wersja tego dokumentu!"
 
-#: templates/wiki/pubmark_dialog.html:17
-#: templates/wiki/revert_dialog.html:40
+#: templates/wiki/pubmark_dialog.html:17 templates/wiki/revert_dialog.html:40
 msgid "Cancel"
 msgstr "Anuluj"
 
@@ -145,7 +142,11 @@ msgstr "wszystkie"
 msgid "Annotations"
 msgstr "Przypisy"
 
-#: templates/wiki/tabs/gallery_view.html:7
+#: templates/wiki/tabs/gallery_view.html:5
+msgid "Go to first image of this part"
+msgstr "Przejdź na początek"
+
+#: templates/wiki/tabs/gallery_view.html:8
 msgid "Previous"
 msgstr "Poprzednie"
 
@@ -153,11 +154,11 @@ msgstr "Poprzednie"
 msgid "Next"
 msgstr "Następne"
 
-#: templates/wiki/tabs/gallery_view.html:15
+#: templates/wiki/tabs/gallery_view.html:16
 msgid "Zoom in"
 msgstr "Powiększ"
 
-#: templates/wiki/tabs/gallery_view.html:16
+#: templates/wiki/tabs/gallery_view.html:17
 msgid "Zoom out"
 msgstr "Zmniejsz"
 
@@ -198,7 +199,10 @@ msgstr "Zamień na"
 msgid "Replace"
 msgstr "Zamień"
 
-#: templates/wiki/tabs/search_view.html:13
+#: templates/wiki/tabs/search_view.html:12
+msgid "Replace all"
+msgstr "Zamień wszystko"
+
 msgid "Options"
 msgstr "Opcje"
 
@@ -218,39 +222,43 @@ msgstr "Znajdź i zamień"
 msgid "Source code"
 msgstr "Kod źródłowy"
 
-#: templates/wiki/tabs/summary_view.html:9
+#: templates/wiki/tabs/summary_view.html:13
+msgid "Refresh from working copy"
+msgstr "Odśwież z edytowanej wersji"
+
+#: templates/wiki/tabs/summary_view.html:17
 msgid "Title"
 msgstr "Tytuł"
 
-#: templates/wiki/tabs/summary_view.html:13
+#: templates/wiki/tabs/summary_view.html:21
 msgid "Go to the book's page"
 msgstr "Przejdź do strony książki"
 
-#: templates/wiki/tabs/summary_view.html:16
+#: templates/wiki/tabs/summary_view.html:24
 msgid "Document ID"
 msgstr "ID dokumentu"
 
-#: templates/wiki/tabs/summary_view.html:20
+#: templates/wiki/tabs/summary_view.html:28
 msgid "Current version"
 msgstr "Aktualna wersja"
 
-#: templates/wiki/tabs/summary_view.html:23
+#: templates/wiki/tabs/summary_view.html:31
 msgid "Last edited by"
 msgstr "Ostatnio edytowane przez"
 
-#: templates/wiki/tabs/summary_view.html:27
+#: templates/wiki/tabs/summary_view.html:35
 msgid "Link to gallery"
 msgstr "Link do galerii"
 
-#: templates/wiki/tabs/summary_view.html:32
+#: templates/wiki/tabs/summary_view.html:40
 msgid "Characters in document"
 msgstr "Znaków w dokumencie"
 
-#: templates/wiki/tabs/summary_view.html:33
+#: templates/wiki/tabs/summary_view.html:41
 msgid "pages"
 msgstr "stron maszynopisu"
 
-#: templates/wiki/tabs/summary_view.html:33
+#: templates/wiki/tabs/summary_view.html:41
 msgid "untagged"
 msgstr "nieotagowane"
 
@@ -270,9 +278,6 @@ msgstr "Wstaw przypis"
 msgid "Visual editor"
 msgstr "Edytor wizualny"
 
-#~ msgid "Publish"
-#~ msgstr "Opublikuj"
-
 #~ msgid "ZIP file"
 #~ msgstr "Plik ZIP"
 
index 1a74c7b..919b0b9 100755 (executable)
@@ -1,4 +1,5 @@
 {% extends "admin/change_list.html" %}
+{% load i18n %}
 
 {% block extrahead %}
 {{ block.super }}
index db003d2..2211c0a 100644 (file)
@@ -37,6 +37,7 @@
         {% include "wiki/tabs/annotations_view.html" %}
         {% include "wiki/tabs/search_view.html" %}
     </div>
+    <div id="drag-layer"></div>
 {% endblock %}
 
 {% block dialogs %}
index 5eda094..891e9e8 100644 (file)
@@ -27,7 +27,7 @@
 </div>
 
 <div id="header">
-    <h1><a href="{% url catalogue_document_list %}"><img src="{{STATIC_URL}}icons/go-home.png" alt="Home" /></a><a href="{% url catalogue_document_list %}">Strona<br/>główna</a></h1>
+    <h1><a href="{% url 'catalogue_document_list' %}"><img src="{{STATIC_URL}}icons/go-home.png"  alt="Home" /></a><a href="{% url 'catalogue_document_list' %}">Strona<br>główna</a></h1>
     <div id="tools">
         <a href="{{ REDMINE_URL }}projects/wl-publikacje/wiki/Pomoc" target="_blank">
         {% trans "Help" %}</a>
index 03aed93..4e57ea5 100644 (file)
@@ -2,15 +2,17 @@
 <div id="side-gallery">
     <!-- gallery toolbar -->
     <div class="toolbar">
-        <button class="previous-page">
-            <img src="{{STATIC_URL}}icons/go-previous.png"
-               alt="{% trans "Previous" %}" title="{% trans "Previous" %}"/>
+        <button class="start-page" alt="{% trans "Go to first image of this part" %}" title="{% trans "Go to first image of this part" %}">
+            <img src="{{STATIC_URL}}icons/revert.png"/>
+        </button>
+        <button class="previous-page" alt="{% trans "Previous" %}" title="{% trans "Previous" %}">
+            <img src="{{STATIC_URL}}icons/go-previous.png"/>
         </button>
         <input type="text" size="3" maxlength="3" value="0" class="page-number" />
         <span id="imagesCount">/0</span>
-        <button class="next-page">
+        <button class="next-page" alt="{% trans "Next" %}" title="{% trans "Next" %}">
             <img src="{{STATIC_URL}}icons/go-next.png"
-               alt="{% trans "Next" %}" title="{% trans "Next" %}"/>
+                alt="{% trans "Next" %}" title="{% trans "Next" %}"/>
         </button>
         <button class="zoom-in">{% trans "Zoom in" %}</button>
         <button class="zoom-out">{% trans "Zoom out" %}</button>
index 0d662a7..93b0bb6 100644 (file)
@@ -11,7 +11,7 @@
                        data-enabled-when="1" disabled="disabled">{% trans "Revert document" %}</button>
                <button id="open-preview-button" disabled="disabled"
                        data-enabled-when="1"
-                       data-basehref="{% url wiki_editor_readonly chunk.book.slug chunk.slug %}">{% trans "View version" %}</button>
+                       data-basehref="{% url 'wiki_editor_readonly' chunk.book.slug chunk.slug %}">{% trans "View version" %}</button>
 
        </div>
     <div id="history-view">
@@ -31,6 +31,7 @@
                        </td>
                        <td>
                 <div data-stub-value="publishable"></div>
+                <div data-stub-value="published"></div>
                 <div data-stub-value="tag"></div>
                        </td>
                </tr>
index 4bf1e89..2ed15ec 100644 (file)
@@ -8,6 +8,8 @@
     <p>{% trans "Replace with" %}:<br/>
         <input id='replace-input' /><br/>
         <button id='replace-button'>{% trans "Replace" %}</button><br/>
+        <input type="checkbox" id="replace-all" />
+            <label for="replace-all">{% trans "Replace all" %}</label><br/>
     </p>
 
     <p>{% trans "Options" %}<br/>
index a23b890..49ad5fe 100644 (file)
@@ -3,7 +3,15 @@
     <!-- <div class="toolbar">
     </div> -->
     <div id="summary-view">
-               <img class="book-cover" src="{{ STATIC_URL }}img/sample_cover.png" alt="Sample cover" />
+       <div class="summary-cover-area">
+               <p><img id="summary-cover" class="book-cover"
+                       {% if revision %}
+                            src="{% url 'cover_preview' chunk.book.slug chunk.slug revision %}"
+                       {% else %}
+                            src="{% url 'cover_preview' chunk.book.slug chunk.slug %}"
+                       {% endif %}></p>
+               <p><button id="summary-cover-refresh">{% trans "Refresh from working copy" %}</button></p>
+               </div>
 
                <h2>
                        <label>{% trans "Title" %}:</label>
diff --git a/apps/wiki/tests/xslt/auto/auto_test.js b/apps/wiki/tests/xslt/auto/auto_test.js
new file mode 100644 (file)
index 0000000..6a02716
--- /dev/null
@@ -0,0 +1,138 @@
+var $ = require('jquery');
+var fs = require('fs');
+var exec = require('child_process').exec;
+var pd = require('pretty-data').pd;
+var ansidiff = require('ansidiff');
+
+
+eval(fs.readFileSync(__dirname + '/../../../../../redakcja/static/js/wiki/xslt.js') + '');
+
+
+function assertNodesEqual(lhs, rhs, areHTMLNodes) {
+
+    function throwError() {
+        throw new Error(ansidiff.chars(pd.xml(lhs), pd.xml(rhs)));
+    }
+
+    var lhsNode = $(lhs)[0],
+        rhsNode = $(rhs)[0];
+
+    if(areHTMLNodes) {
+        var getMagicAttrsInfo = function(node) {
+            var valuePrefix = 'x-attr-value-';
+            var namePrefix = 'x-attr-name-';
+            var startsWith = function(str, prefix) { return str.substr(0, prefix.length) === prefix; }
+            var isNameAttribute = function(attr) { return startsWith(attr.name, namePrefix); }
+            var isValueAttribute = function(attr) { return startsWith(attr.name, valuePrefix); }
+            var extractId = function(attr) { return attr.name.split('-').pop(); }
+            var temp = {};
+            var toret = {map: {}, magicAttrsList: []};
+            
+            for(var i = 0; i < node.attributes.length; i++) {
+                var attr = node.attributes[i];
+                if(isNameAttribute(attr) || isValueAttribute(attr)) {
+                    var id = extractId(attr);
+                    temp[id] = typeof temp[id] === 'undefined' ? {} : temp[id];
+                    if(isNameAttribute(attr))
+                        temp[id]['name'] = attr.value;
+                    else
+                        temp[id]['value'] = attr.value;
+                    toret.magicAttrsList.push(attr.name);
+                }
+            }
+
+            Object.keys(temp).forEach(function(id) {
+                var pair = temp[id];
+                toret.map[pair.name] = typeof toret.map[pair.name] === 'undefined' ? toret.map[pair.name] = [] : toret.map[pair.name];
+                toret.map[pair.name].push(pair.value);
+            });
+            
+            return toret;
+        }
+    
+        var removeAttrs = function(node, attrsNames) {
+            attrsNames.forEach(function(name) {
+                node.removeAttribute(name);
+            });
+        }
+        
+        var mapsEqual = function(map1, map2) {
+            if(Object.keys(map1).length != Object.keys(map2).length)
+                return false;        
+            var arraysEqual = function(a1, a2) {return a1.slice().sort().join('') === a2.slice().sort().join('');}
+            Object.keys(map1).forEach(function(key) {
+                if(Object.keys(map2).indexOf(key) === -1 || !arraysEqual(map2[key], map1[key]))
+                    return false;
+            });
+            return true;
+        }
+    
+        var lhsMagicAttrsInfo = getMagicAttrsInfo(lhsNode),
+            rhsMagicAttrsInfo = getMagicAttrsInfo(rhsNode);
+        
+        removeAttrs(lhsNode, lhsMagicAttrsInfo.magicAttrsList);
+        removeAttrs(rhsNode, rhsMagicAttrsInfo.magicAttrsList);
+        
+        if(!mapsEqual(lhsMagicAttrsInfo.map, rhsMagicAttrsInfo.map))
+            throwError();
+    }
+    
+    if(!lhsNode.isEqualNode(rhsNode))
+        throwError();
+}
+
+suite('wiki.tests.xslt.auto', function() {
+        
+        var tempFileName = '.temp.xml';
+        var xsltStyleSheetPath = __dirname + '/../../../../../redakcja/static/xsl/wl2html_client.xsl';
+        
+        fs.readdirSync(__dirname + '/data/').forEach(function(fileName) {
+            
+            if(fileName === tempFileName)
+                return;
+            
+            var ext = fileName.split('.').pop();
+            if(ext !== 'html' && ext !== 'xml')
+                return;
+
+            var inputData = fs.readFileSync(__dirname + '/data/' + fileName) + '';
+            
+            if(ext === 'html') {
+                test('[HTML->XML->HTML] ' + fileName, function(done) {
+                    var result = html2text({
+                        element: $(inputData)[0],
+                        stripOuter: false,
+                        success: function(generatedXML) {
+                            fs.writeFileSync(tempFileName, generatedXML);
+                            exec(['xsltproc', xsltStyleSheetPath, tempFileName].join(' ') , {}, 
+                                function(error, stdout, stderr) {
+                                    fs.unlinkSync(tempFileName);
+                                    assertNodesEqual(inputData, stdout, true);
+                                    done();
+                            });
+                        },
+                        error: function(msg){throw msg;}
+                    });
+                });
+            } else if(ext === 'xml') {
+                test('[XML->HTML->XML] ' + fileName, function(done) {
+                    var originalXML = $(inputData);
+                    exec(['xsltproc', xsltStyleSheetPath, __dirname + '/data/' + fileName].join(' ') , {},
+                        function(error, stdout, stderr) {
+                            var generatedHTML = $(stdout);
+                            var result = html2text({
+                                element: generatedHTML[0],
+                                stripOuter: false,
+                                success: function(xmltext) {
+                                    assertNodesEqual(inputData, xmltext);
+                                    done();
+                                },
+                                error: function(msg){throw msg;}
+                            });
+                    });
+                });
+            }
+        });
+});
+
+
diff --git a/apps/wiki/tests/xslt/auto/data/akap.html b/apps/wiki/tests/xslt/auto/data/akap.html
new file mode 100644 (file)
index 0000000..9b2a3ed
--- /dev/null
@@ -0,0 +1,3 @@
+<p xmlns="http://www.w3.org/1999/xhtml" x-editable="true" class="akap " x-node="akap">
+    Potrzebne materialy k1asa
+</p>
diff --git a/apps/wiki/tests/xslt/auto/data/big.xml b/apps/wiki/tests/xslt/auto/data/big.xml
new file mode 100644 (file)
index 0000000..de73d5f
--- /dev/null
@@ -0,0 +1,1049 @@
+<utwor><liryka_l> 
+
+
+<!-- TRIM_BEGIN -->
+
+
+<strofa>Mistrz rzekł i dodał: «Prawdzie nie skłamałem»./ 
+A na dnie jamy wszyscy potępieńce/ 
+Stanęli, patrzą na mnie gronem całem,/ 
+Zapominając z podziwu o męce./ 
+--- «Jak ujrzysz słońce, powiedz Dulcynowi<pr><slowo_obce>Dulcyn</slowo_obce> --- braciszek zakonny; umknął po kryjomu i wstąpił w rolę zapaleńca religijnego, wmawiając w lud łatwowierny, że on jest rzeczywistym apostołem bożym. W r. 1305 w górach Nowary założył sektę znaną odtąd pod imieniem dulcynów. Dulcyn w krótkim czasie zebrał z tysiąc zwolenników około siebie, lecz ścigany przez wojsko biskupa miasta Vercelli schwytany został w górach Nowary razem ze swoją żoną i z nią [w:] 1307 r. żywcem spalony na rynku tegoż miasta.</pr>/ 
+Jeśli tu prędko zstąpić nieochoczy,/ 
+Niech skupi żywność, śniegiem się otoczy;/ 
+Bo jak ci mówię, bez śniegu i głodu,/ 
+Nowarczyk w górach niełatwo go złowi»./ 
+<begin id="b1315850210533-628546177"/><motyw id="m1315850210533-628546177">Duch</motyw>Tak z podniesioną stopą do pochodu,/ 
+Duch Mahometa mówił, potem nogę/ 
+Na dłuż prostując poszedł w swoją drogę./ 
+Duch drugi z krtanią przebitą, kaleki,/ 
+Z nosem rozciętym pod same powieki,/ 
+I z jednym uchem od lewego oka,/ 
+Stanął, z nim całe wstrzymało się grono:/ 
+Duch patrząc na mnie z twarzą zadziwioną,/ 
+Otworzył gębę jak jamę czerwoną,/ 
+Którą broczyła świeża krwi posoka,<end id="e1315850210533-628546177"/>/ 
+I rzekł: «Schodzący tu gościu bez winy,/ 
+Jeśli nie ludzi wielkie podobieństwo,/ 
+Widziałem ciebie pomiędzy Latyny./ 
+Przypomnij sobie Piotra z Medicyny<pr><slowo_obce>Przypomnij sobie Piotra z Medicyny</slowo_obce> --- Medicyna wziął imię od miejsca swego urodzenia w ziemi bolońskiej; warchoł i intrygant, kłócił
+lud ze szlachtą, waśnił władców Rawenny i Rimini.</pr>!/ 
+Idąc z Wercelli smugiem do Markabo<pr><slowo_obce>Idąc z Wercelli smugiem do Markabo</slowo_obce> --- Kraj lombardzki od Wercelli w Piemoncie aż do ujścia rzeki Po, nad którą stał niegdyś zamek Makrabo.</pr>/ 
+<begin id="b1315850272218-1030517085"/><motyw id="m1315850272218-1030517085">Kara, Śmierć</motyw>Ostrzeż ode mnie dwóch najlepszych z Fano,/ 
+Andziolello i Gwido ich miano<pr><slowo_obce>Andziolello i Gwido (...) zdradzi najniegodniej</slowo_obce> --- Malatestino, książę w Rimini, który był na jedno oko ciemnym, zaprosił dwóch najznakomitszych obywateli miasta Fano, Gwidona del Cassero i Angiolela de Carignano do miasteczka Katoliki na ucztę, gdzie mieli się wspólnie naradzać nad pewnymi sprawami. Wysłał po nich łodzie, lecz majtkowie z jego rozkazu w porcie Katoliki obydwu wrzucili do morza. Dante w tej pieśni prorokuje, co się już stało.</pr>,/ 
+Że niespodziane czeka ich męczeństwo./ 
+Gdy zmysł proroczy widzi tu niesłabo,/ 
+Wrzucą ich w morze w porcie Katoliki;/ 
+Bo od Majorki do Cypru zatoki/ 
+Neptun nie widział nigdy takiej zbrodni,/ 
+Gdzie wciąż koczują greckie rozbójniki./ 
+Zdrajca rządzący, chociaż jednooki,/ 
+Krajem, którego duch, co za mną kroczy,/ 
+Nie chciałby nigdy widzieć w żywe oczy,/ 
+Sprosi ich w gości, zdradzi najniegodniej,/ 
+Czym ich uwolni od ślubów ofiary/ 
+Przeciw wiejącym wiatrom od Fokary<pr><slowo_obce>Fokara</slowo_obce> --- góra blisko Katoliki skąd często wiejące wiatry i burze mitrężą żeglugę. Ponieważ zginęli, nie potrzebują już obawiać się tych wichrów.</pr>».<end id="e1315850272218-1030517085"/>/ 
+--- «Gdy chcesz,» odrzekłem, «abym tam wysoko/ 
+Mówił o tobie w twoim ziemskim raju,/ 
+Kto ten nieszczęsny, wskaż mi go na oko,/ 
+Któremu było tak gorzko w tym kraju?»/ 
+Do towarzysza duch wyciągnął rękę,/ 
+Na oścież jemu otwierając szczękę,/ 
+Krzyczał: «Patrz teraz, to on, lecz nie mówi:/ 
+On myśl wątpiącą uśpił Cezarowi,/ 
+Twierdząc, że zawsze niebezpiecznie czekać,/ 
+Zamiar dojrzały do czynu odwlekać»./ 
+Jakże przeraził mnie wrażeniem dzikiem,/ 
+Ze swoim w krtani uciętym językiem,/ 
+Ten Kurion<pr><slowo_obce>Kurio</slowo_obce> --- wygnany z senatu rzymskiego jako stronnik i przyjaciel Cezara, z nim się połączył i pierwszy go zachęcił do przejścia Rubikonu, co było powodem wojen domowych. Ma tu odcięty język, którym dał tak złą radę.</pr> niegdyś tak zuchwały w mowie./ 
+Duch drugi obie miał ucięte ręce,/ 
+W zmroku wywijał tępymi ramiony./ 
+Krwią, co z nich ciekła, cały oczerniony,/ 
+I krzyknął, krzyk ten aż mi szumiał w głowie:/ 
+«Przypomnij Moskę<pr><slowo_obce>Przypomnij Moskę</slowo_obce> --- Buondelmonte przyrzekł ożenić się z panną z domu Amidei, gdy tymczasem nagle zmienił swój zamysł i ożenił się z krewną Donatich. Ten postępek rozjątrzył gniew wielu domów spokrewnionych z rodem Amidei. Uberti i Lamberti głośno wołali: ,,Zemścić się, ukarać Buondelmonta!". Starsi radzili roztropność i umiarkowanie: lecz młody Moska wrzący gniewem, radził zabić Buondelmonta, którego sam na koniec przebił puginałem. Ta familijna tragedia dała początek stronnictwom i sporom, jakie przez długie czasy wstrząsały Florencją.</pr>, przebóg, ja to rzekłem:/ 
+»Koniec koroną powinien być czynów!«/ 
+Z tych słów urosły kłótnie florentynów»./ 
+--- «I śmierć twej całej rodziny!» dodałem./ 
+On wtenczas z bólu łypiąc okiem wściekłem,/ 
+Odszedł jak gdyby już oszalał w męce./ 
+Ja wciąż na trzodę piekielną patrzałem;/ 
+I to widziałem, czego bez dowodu/ 
+Nie śmiałbym w pieśni opowiadać mojej,/ 
+Gdyby nie dobry nasz świadek, sumienie,/ 
+Które pod zbroją nam czystości swojej/ 
+Serce umacnia, zagłusza zwątpienie./ 
+<begin id="b1315905795971-3302522595"/><motyw id="m1315905795971-3302522595">Duch</motyw>Widziałem, wierzcie na słowo poety,/ 
+Tułów bez głowy, jako inne cienie/ 
+Szedł równie dobrze sporym krokiem chodu,/ 
+A w ręku trzymał swą uciętą głowę;/ 
+Głowa na włosach na obraz latarni/ 
+Zwieszona, z gestem bolesnym męczarni/ 
+Patrzając na nas, mówiła: Niestety!/ 
+Tułów przejrzysty jak szkło kryształowe/ 
+Sam stał się lampą i razem w tej chwili/ 
+Dwoje ich w jednym, jeden w dwojgu byli./ 
+Ile to widmo było rzeczywiste,/ 
+Pan nasz i mściciel wie o tym zaiste!/ 
+Tułów podszedłszy pod szyję mostową,/ 
+Wzniósł w górę rękę z całą swoją głową,<end id="e1315905795971-3302522595"/>/ 
+Ażeby do nas przybliżyć swe słowo,/ 
+Które tak brzmiało: «Gościu nieumarły,/ 
+Patrz, jakie męki na mnie się wywarły,/ 
+Patrz, czy jest większa od mojej tortura?/ 
+Jeśli mną zająć chcesz ciekawość czyją,/ 
+Wiedz, że ja byłem Bertrandem z Bornijo<pr><slowo_obce>Wiedz, że ja byłem Bertrandem z Bornijo</slowo_obce> --- Bertrand z Bornio (Bertram de Born) był obwiniany za to, że między Henrykiem II, angielskim królem, a jego synem jątrzył niezgodę i syna do buntu przeciw własnemu ojcu pobudził. Ponieważ Bertrand przeciw głowie rodziny jej członków buntował, tu za karę nosi własną głowę odciętą od tułowia. Ta głowa służy mu w piekle za latarkę, jak i na ziemi podobną jemu powinna była posługę, ażeby go ochroniła od smutnych następstw jego występku.</pr>/ 
+Dałem złe rady młodemu królowi,/ 
+Jątrzyłem syna przeciwko ojcowi:/ 
+Sam Architofel nie gorszym się wyda,/ 
+Co Absalona jątrzył na Dawida./ 
+Za to żem dzielił, co łączy natura,/ 
+Chodzę tu, przebóg, jak bezgłowa mara;/ 
+I słusznie, jaka zbrodnia, taka kara».</strofa> 
+
+
+
+
+<naglowek_rozdzial>Pieśń XXIX</naglowek_rozdzial> 
+
+
+
+
+
+
+
+
+<akap>(Krąg VIII. Tłumok X. Fałszerze. Alchemiści.)</akap> 
+
+
+
+<strofa>Rozmaitymi tłum ludu ranami/ 
+Tak moje oczy upoił w tej chwili,/ 
+Że pragnął spocząć i trzeźwić je łzami./ 
+«Co tak spoglądasz?» przemówił Wirgili,/ 
+«Czemu tak pilno patrzą twe powieki/ 
+Na tłum tych cieniów tak smutnie kaleki?/ 
+Tegoś nie robił przy drugich tłumokach:/ 
+Gdy chcesz policzyć, duchów tu jest ile,/ 
+Pomyśl; ta jama wykuta w opokach,/ 
+Ma w swym obwodzie dwadzieścia dwie mile./ 
+Księżyc już zaszedł pod nasze podnóże<pr><slowo_obce>Księżyc już zaszedł pod nasze podnóże</slowo_obce> --- Kiedy poeci rozpoczynali swoją pielgrzymkę po piekle, księżyc był w pełni, a więc słońce, kiedy teraz księżyc jest pod ich stopami, stoi ponad ich głową; przeto w tej chwili na wschodniej półsferze jest samo południe.</pr>,/ 
+Odtąd dość krótki (szanuj lot chwil czynnych,)/ 
+Czas dozwolony do pielgrzymki twojej;/ 
+Jeszcze masz widzieć wiele rzeczy innych,/ 
+O których może myśl twa ani roi»./ 
+Odpowiedziałem: «Gdybyś spojrzeć raczył/ 
+Na powód, co tu wzrok mój tak zahaczył,/ 
+Dłużej mi patrzeć pozwoliłbyś może?»/ 
+Wódz szedł, ja za nim z wolna sunąc nogą,/ 
+Dodałem jeszcze, wciąż mówić ochoczy:/ 
+«Tam, skąd utkwione odjąłem me oczy,/ 
+W jamie, co w skał tych zapadła krawędzie,/ 
+Myślę, swej winy płacze duch mój krewny,/ 
+Która tam jego kosztuje tak drogo!»/ 
+Mistrz odpowiedział: «Hamuj pociąg rzewny,/ 
+Dłużej tym duchem nie rozrzewniaj myśli,/ 
+Marz o czym innym, gdzie on jest, niech będzie./ 
+Widziałem jego w chwili, gdyśmy przyszli/ 
+Na łuk mostowy, on cię zauważał,/ 
+Wskazywał, żywo palcem ci pograżał;/ 
+Słyszałem, jak nań jeden duch przeklęty:/ 
+Geri del Bello, po imieniu krzyknął<pr><slowo_obce>Geri del Bello</slowo_obce> --- po matce krewny Dantego; zabił go Sachetti; śmierci jego trzydzieści lat po popełnionym morderstwie pomści jego synowiec.</pr>,/ 
+Lecz tyś był hrabią z Hetfortu zajęty<pr><slowo_obce>Hrabia z Hetfortu</slowo_obce> --- jest to Bertrand z Bornio, o którym wzmianka była w pieśni poprzedniej.</pr>,/ 
+W to miejsce wtedy spojrzałeś, gdy zniknął»./ 
+A ja: «Śmierć jego, której wstyd podziela/ 
+Krew nasza, od nas wygląda mściciela;/ 
+Dlatego, myślę, z uczuciem pogardy,/ 
+Nie mówiąc do mnie, odszedł duch ten hardy,/ 
+Co go w mej duszy jeszcze droższym czyni»./ 
+Tak mówiąc szliśmy do pierwszej przystani,/ 
+Skąd mógłbym widzieć dno innej otchłani,/ 
+Gdyby być mogło świetlej<pe><slowo_obce>świetlej</slowo_obce> --- jaśniej.</pe> w tej jaskini./ 
+Gdym już od mostu stał o kilka kroków,/ 
+<begin id="b1315906189530-2342764147"/><motyw id="m1315906189530-2342764147">Krzywda, Kara</motyw>Gdzie był ostatni klasztor <slowo_obce>Złych Tłumoków</slowo_obce><pr><slowo_obce>Gdzie był ostatni klasztor Złych Tłumoków</slowo_obce> --- Ostatni oddział kręgu ósmego poeta nazywa klasztorem Złych Tłumoków, prawdopodobnie bez głębszej myśli, bo duchy są tam jak wszędzie w piekle zamknięte jak mnichy za furtą klasztorną.</pr>,/ 
+Krzyki boleści, co w mej czułej duszy,/ 
+Ile ich było, razem się zmieniły/ 
+W żelazne strzały, tak serce raniły,/ 
+Tak, że rękoma zatykałem uszy./ 
+W miesiącu sierpniu społem tłum zebrany/ 
+Chorych z Maremmy i Waldikijany<pr><slowo_obce>Waldikiana</slowo_obce> --- okolica błotnista i bardzo niezdrowa dla jej mieszkańców; leży między Arezzo a Kortoną. Oprócz Sardynii, gdzie w środku lata powietrze równie jest niezdrowe, poeta wspomina błota, tak zwane Maremmy, rozciągające się wzdłuż brzegów morskich między Pizą a Sieną.</pr>/ 
+I co w sardyńskich szpitalach się mieści,/ 
+Dałby nam chyba obraz tych boleści./ 
+Z jamy buchały podobne wyziewy,/ 
+Jakimi dysze<pe><slowo_obce>dysze</slowo_obce> --- dziś popr. forma: dyszy.</pe> zgangreniałe<pe><slowo_obce>zgangreniały</slowo_obce> --- toczony gangreną.</pe> ciało.<end id="e1315906189530-2342764147"/>/ 
+I zwróciliśmy krok nasz na brzeg lewy<pr><slowo_obce>I zwróciliśmy krok nasz na brzeg lewy</slowo_obce> --- Poeci znowu zstępują z łuku mostowego na tamę, ażeby mogli, będąc bliżej otchłani, widzieć lepiej, co się w niej dzieje. Czytelnik może często pyta sam siebie: jak Dante w ciemnej nocy piekielnej mógł coś widzieć? Sam poeta wyraźnie tego nie objaśnia; być może, że ogień, który widzieliśmy w różnych miejscach piekła, a mianowicie ten, co oświeca cnotliwych i uczonych mężów pogańskich, ten, który spada na czyniących gwałt przeciw Bogu, ten, co się pali w grobach odszczepieńców religijnych, na koniec ten, w którym fałszywi doradcy są ukryci, tyle światła po wszystkich kręgach piekielnych rozrzuca, że tworzy się jakiś zmrok pół widny, przez który można coś widzieć. A może ci, których przewodnikiem jest rozum (jak tu Dantego prowadzi Wergiliusz, symbol rozumu), zupełną nocą nie są otoczeni i widzą jak w półzmroku.</pr>,/ 
+Który się długo jedną ciągnie skałą;/ 
+<begin id="b1315906247406-1597770989"/><motyw id="m1315906247406-1597770989">Kara</motyw>Spojrzałem w otchłań, gdzie na dnie jej łoża/ 
+Karze fałszerzy sprawiedliwość boża./ 
+Nie mógł smutniejszy być widok w Eginie,/ 
+Gdzie tysiącami chory lud wymierał,/ 
+A mór<pe><slowo_obce>mór</slowo_obce> (daw.) --- zaraza, pomór.</pe> zwierzęta i płazy pożerał;/ 
+Gdzie, jeśli wierzyć na poetów słowo,/ 
+Z nasienia mrówek wylęgły na nowo/ 
+Lud ją zaludnił, zwany Mirmidony,/ 
+Jak widok duchów w tej ciemnej dolinie,/ 
+Jakby stos trupów bezładnie zrzucony./ 
+Ten brzuchem cały do ziemi przypada,/ 
+Ów głowę skłonił na ramię sąsiada,/ 
+Ci na czworakach pełzają jak gady./ 
+A szliśmy milcząc jako dwa niemowy<pe><slowo_obce>dwa niemowy</slowo_obce> --- dziś popr.: dwie niemowy.</pe>,/ 
+Słuchając, patrząc na chore gromady,/ 
+Niezdolne dźwigać bezwładne tułowy<pe><slowo_obce>tułowy</slowo_obce> --- dziś popr. forma: tułowia.</pe>./ 
+Dwóch wzajem na się opartych siedziało<pr><slowo_obce>Dwóch wzajem na się opartych siedziało</slowo_obce> --- Dwaj alchemicy, jako fałszerze złota, siedzą wzajem o siebie oparci, okryci trądem i przez całą wieczność drapią aż do krwi bolące ich strupy.</pr>,/ 
+Strupy im całe cętkowały ciało;/ 
+Jak zgrzebłem żywo pociąga stajenny/ 
+Przed przyjściem pana, choć ziewa półsenny,/ 
+Tak ci po strupach paznokciami wodzą,/ 
+Przez co bolesne swe świerzby łagodzą,/ 
+Przeciwko którym już nie było środka;/ 
+Jak pod kucharskim nożem pstrąg lub płotka/ 
+Miece<pe><slowo_obce>miece</slowo_obce> --- dziś popr. forma: miota.</pe> łuskami, tak strupów kawały/ 
+Spod ich paznokci jak łuska leciały.<end id="e1315906247406-1597770989"/>/ 
+«Ty, co jak garbarz przez smutną konieczność,»/ 
+Rzekł wódz mój, «skórę chropawą pryszczami/ 
+Wyprawiasz, gładząc paznokcia ostrzami,/ 
+Mów, czy się spotkam tutaj z Latynami?/ 
+Oby twój paznokć<pe><slowo_obce>paznokć</slowo_obce> --- dziś popr. forma: paznokieć; tu forma skrócona dla zachowania rytmu jedenastozgłoskowca.</pe> nie stępiał przez wieczność!»/ 
+--- «Tutaj w nas obu dwóch Latynów witasz!»/ 
+Rzekł jeden z płaczem, «ktoś ty, co nas pytasz?»/ 
+Mój wódz tak mówił: «Jestem duch i oto/ 
+Schodzę tu razem z żyjącą istotą,/ 
+By całe piekło poznał chodząc ze mną»./ 
+Dwa cienie łamiąc podporę wzajemną,/ 
+Ze drżeniem ku mnie zwrócili się<pe><slowo_obce>Dwa cienie (...) zwrócili się</slowo_obce> --- dziś popr. forma czasownika: zwróciły się.</pe> oba;/ 
+Na wieść tę wszyscy zerwali się społem./ 
+Mistrz rzekł: «Mów teraz, co ci się podoba»./ 
+Rad z przyzwolenia tak mówić zacząłem:/ 
+«Niech pamięć o was czas, co wszystko gładzi/ 
+Wskrzesi od wschodu słońca do zachodu;/ 
+<begin id="b1315906353790-3331885609"/><motyw id="m1315906353790-3331885609">Czary, Grzech, Kara</motyw>Kto wy jesteście, z jakiego narodu,/ 
+Że wśród mąk takich wam tu serce radzi/ 
+Przede mną z chęcią otworzyć się szczerą?»/ 
+Cień rzekł: «Arezzo jest moja kraina<pr><slowo_obce>Cień rzekł: Arezzo jest moja kraina</slowo_obce> --- Griftolino, rodem z miasta Arezzo, alchemik, utrzymywał, że umie latać. Gdy Albero z Sieny, naturalny syn tamtejszego biskupa, udał się doń, aby go tej sztuki nauczył, a to się oczywiście nie udało, wymógł na swym ojcu, że kazał alchemika spalić na stosie jako czarownika.</pr>/ 
+Kazał mnie spalić z Syjeny Albero,/ 
+Chociaż tu inna wtrąciła mnie wina./ 
+Wprawdzie z nim mówiąc napomknąłem żartem,/ 
+Że ze mnie dzielny powietrzny latawiec;/ 
+On człowiek małej głowy a ciekawiec<pe><slowo_obce>ciekawiec</slowo_obce> --- dziś popr.: ciekawski. </pe>,/ 
+Chciał, abym odkrył sztuki tajemnicę;/ 
+A że nie byłem Dedalem w praktyce,/ 
+Spłonąłem za to, żem kumał się z czartem./ 
+A że był ze mnie alchemik imienny,/ 
+Minos niemylny w sędziego pojęciu,/ 
+Wtrącił mnie w Tłumok ostatni z dziesięciu».<end id="e1315906353790-3331885609"/>/ 
+«Oprócz Francuzów,» mówiłem poecie,/ 
+«Więcej próżnego narodu na świecie/ 
+Nie ma zaiste jako lud z Syjeny»./ 
+Wtenczas to słysząc, drugi trędowaty,/ 
+Mówił: «Z nich pierwszym wyjątkiem jest Strikka<pr><slowo_obce>Z nich pierwszym wyjątkiem jest Strikka</slowo_obce> --- Tu poeta ironicznie wyszydza wszystkich głośnych marnotrawców i rozgardiaszów sieneńskich.</pr>,/ 
+Który wydawał pieniądz przyzwoicie,/ 
+Trwonił kapitał, gdy brakło intraty;/ 
+Drugim Nikolo, co pierwszy użycie/ 
+Zbytkowne odkrył wonnego goździka<pr><slowo_obce>użycie zbytkowne odkrył wonnego goździka</slowo_obce> --- Dowiadujemy się tu od poety, że Nikolo pierwszy smakosz sieneński, pierwszy korzenne zaprawy do sosów i pieczeni wprowadził w użycie.</pr>/ 
+Mógłbym wyłączyć inne pasibraty<pr><slowo_obce>inne pasibraty</slowo_obce> --- Za czasów Dantego w Sienie było towarzystwo złożone z dwunastu młodych i bogatych ludzi, którzy sprzedawszy swoje posiadłości ziemskie, złożyli wielki kapitał, ażeby wspólnie go roztrwonić i zarazem żyć wesoło. Kapitał ten, jak mówi Benvenuto d'Imola, składał się z 216 tysięcy florenów, a w przeciągu niespełna roku już go marnotrawcy stracili.</pr>,/ 
+Z tych Asciano winnicę bogatą,/ 
+Wielki las przejadł i Abbagliato/ 
+Dowiódł, że jemu w głowie niepstrokato./ 
+Lecz iżbyś wiedział, kto twoim wykrzykom/ 
+Taki wtór trzyma przeciw sieneńczykom,/ 
+Skieruj twe oczy do mojej figury,/ 
+A w twej pamięci rysy me odżyją./ 
+Ja za pomocą alchemiji złoto/ 
+Rad fałszowałem, jam cień Kapokijo<pr><slowo_obce>złoto rad fałszowałem, jam cień Kapokijo</slowo_obce> --- Kapokio, sieneńczyk, znany osobiście poecie, miał jakoby razem z Dantem uczyć się fizyki i historii naturalnej.</pr>!/ 
+Możesz przypomnieć, że byłem niecnotą/ 
+A przy tym małpą wyborną z natury».</strofa> 
+
+
+
+
+<naglowek_rozdzial>Pieśń XXX</naglowek_rozdzial> 
+
+
+
+<akap>(Ciąg dalszy.)</akap> 
+
+
+<strofa><begin id="b1315906624392-3995347367"/><motyw id="m1315906624392-3995347367">Morderstwo, Grzech</motyw>Gdy za Semelę gorączką obrazy<pr><slowo_obce>Semele</slowo_obce> --- córka Kadmusa, która z Jowisza urodziła Bachusa. Junona przez zazdrość prześladowała za to cały ród Kadmusa, a szczególnie jej siostrę Ino, mamkę Bachusa. Atamas, mąż jej, rozwścieklony gniewem pozabijał jej dzieci. Tak była ukarana nienawiść macosza, z jaką Ino dzieci z pierwszej żony Atamasa prześladowała.</pr>/ 
+Junona wrzała przeciw krwi tebańskiej,/ 
+Spędzając na nich gniew po wiele razy,/ 
+Widząc swą żonę Atamas szatański/ 
+Wchodzącą w progi z dwojgiem małych dzieci,/ 
+Krzyknął jak wściekły: «Rozciągajmy sieci,/ 
+Lwica z lwiątkami w ich przeguby wleci»./ 
+I jedno dziecko, Learkiem nazwane,/ 
+Porwał i cisnął o twardą skał ścianę,/ 
+A matka, myśl tę snadź rozpacz natchnęła,/ 
+Z drugim ciężarem swoim utonęła.<end id="e1315906624392-3995347367"/>/ 
+Kiedy Fortuna twarz swą odwróciła/ 
+Od wielkich Trojan, tak że jednej chwili/ 
+Społem królestwo i króla stracili,/ 
+Hekuba smutna, niewolnica chora,/ 
+Płacząc nad ciałem swego Polidora<pr><slowo_obce>Hekuba smutna (...) nad ciałem swego Polidora</slowo_obce> --- Hekuba, żona Priama, opłakująca zwłoki syna swojego.</pr>,/ 
+Jak pies szalona w swej boleści wyła,/ 
+Tak boleść wszystkie jej zmysły zmąciła!/ 
+<begin id="b1315906686233-136023046"/><motyw id="m1315906686233-136023046">Nienawiść, Kara</motyw>Jednak Tebanie i Trojanie wściekli,/ 
+Choć tyle zwierząt i ludzi wysiekli,/ 
+Nie pastwili się z okrucieństwem takiem:/ 
+Dwa cienie nagie biegły jednym szlakiem,/ 
+Gryząc się w biegu, jak wieprz wszystkim w oczy/ 
+Rzuca się, gdy z swej zagrody wyskoczy./ 
+Jeden z nich, biegnąc, wpadł na Kapokiję,/ 
+W kark jemu pięścią grzmotnął ponad uchem,/ 
+Zwalił, po ziemi ciągnął go za szyję,/ 
+Gracując drogę Kapokija brzuchem.<end id="e1315906686233-136023046"/>/ 
+A Griffolino, z przestrachu wielkiego/ 
+Drżąc, mówił do mnie: «To duch Jana Skiki<pr><slowo_obce>To duch Jana Skiki</slowo_obce> --- Jan Skika, z familii Kawalkantych, rodem florentyńczyk: miał talent naśladowania głosu i gestów swoich znajomych, którego często na złe używał. Będąc przyjacielem Szymona Donata, któremu umarł jego krewny Buoso (zob. Pieśń XXV, gdzie on między złodziejami się znajduje) bez testamentu, a nie mógł po nim brać spadku z powodu, że Buoso zostawił bliższych krewnych, Szymon Donati, ażeby zostać spadkobiercą, przez kilka dni ukrywał ciało zmarłego Buosa, rozgłosiwszy, że jeszcze złożony chorobą oczekuje bliskiego zgonu, a w miejsce zmarłego położył w łóżko swojego przyjaciela Jana Skikę, który udając głos i postać Buosa, zrobił testament, pisząc w nim spadkobiercą po Buosie Szymona Donata, z którym zawarł uprzednio umowę, że w nagrodę dobrze odegranej roli weźmie klacz wielkiej ceny z jego stada.</pr>,/ 
+Tak wszystkich dręczy ten szaleniec dziki»./ 
+--- «Jeśli ten drugi duch cię nie uszczyknie<pe><slowo_obce>uszczyknie</slowo_obce> --- dziś popr.: uszczknie; tu forma wydłużona dla zachowania rytmu jedenastozgłoskowca.</pe>/ 
+Zębem lub szponą,» wołałem do niego,/ 
+«Powiedz mi wprzódy, kto on jest, nim zniknie»./ 
+A on: <begin id="b1315906794189-1532356216"/><motyw id="m1315906794189-1532356216">Kłamstwo, Grzech</motyw>«To Myrry starożytnej dusza<pr><slowo_obce>Myrra</slowo_obce> --- córka króla Cypru, winna tej zbrodni, jaką tu opisał poeta, po jej odkryciu przeklęta i wygnana przez ojca, uciekła do Arabii, gdzie długo i póty opłakiwała swój występek, aż od łez i żalu zamieniła się w gumę drzewną od jej imienia nazwaną myrra.</pr>,/ 
+Która do ojca czuła upał żywy,/ 
+Przeciwko prawu miłości uczciwej;/ 
+Pragnąc grzech ukryć w kryjomym niewstydzie,/ 
+Ojca pod cudzą postacią spokusza<pe><slowo_obce>spokusza</slowo_obce> --- dziś popr. forma: kusi; tu forma dokonana, wydłużona dla zachowania rytmu jedenastozgłoskowca.</pe>,/ 
+Podobnie jak duch, który oto idzie!/ 
+Znęcony zyskiem końskich stad królowy,/ 
+Wybieg zaiste cudacki i nowy,/ 
+Zamiast Donata w łóżko się położył,/ 
+Skłamał testament i znów z grobu ożył»./ 
+Gdy znikli z oczu mych ci dwaj okrutni,<end id="e1315906794189-1532356216"/>/ 
+<begin id="b1315906962269-313830910"/><motyw id="m1315906962269-313830910">Duch</motyw>Wnet odwróciłem ciekawe spojrzenie,/ 
+Patrzeć na inne tam leżące cienie./ 
+Jeden cień byłby podobny do lutni<pr><slowo_obce>Jeden cień byłby podobny do lutni</slowo_obce> --- Lutnia ma okrągły wystający brzuch, a cienką szyję; w tym więc podobieństwo do chorego na wodną puchlinę.</pr>, / 
+Gdyby miał otwór jego brzuch obrzydły,/ 
+W miejscu, skąd ciało rozdziela się w widły:/ 
+Puchlina wodna w jego ciele całem/ 
+Zmieniając kształty przez wilgoci chore,/ 
+Rozwarte usta zwiesiła do brody,/ 
+Jako suchotnik, gdy pragnieniem gore.<end id="e1315906962269-313830910"/>/ 
+«Wy, których wita z podziwem ta jama,»/ 
+Cień mówił, «patrzcie na mistrza Adama<pr><slowo_obce>Mistrz Adam</slowo_obce> --- rodem z Brescii, na żądanie hrabiego z Romeny, chcącego fałszerstwem monety poprawić zły stan swojego skarbu, fałszował złote floreny mieszaniną podlejszych metali, za co był na stosie ogniem spalony. Puchlina wodna oznacza chorobliwy stan finansowy tych krajów, co zniżaniem wewnętrznej wartości monety chcą sobie chwilowo dopomóc. Przypomnienie tego, co mistrz Adam miał niegdyś, a czego teraz brak czuje przez własną winę, piękne jest i prawdziwe! Tasso, który często w cudze odziewał się pióra, miał wyraźnie to miejsce przed oczyma w <tytul_dziela>Jerozolimie Wyzwolonej</tytul_dziela>, Pieśń XIII.</pr>!/ 
+Czegom zapragnął, żyjąc wszystko miałem,/ 
+Teraz, niestety, pragnę kropli wody./ 
+Małe strumyki, co żywią nurt Arny,/ 
+Płynąc z pagórków zielonych Kasenty,/ 
+Z rzeźwiącą treścią, przejrzyste aż do dna,/ 
+Ciągną tam oczy tu z wieczności czarnej;/ 
+Bo ich obrazu marzone ponęty/ 
+Więcej mnie trawią jak puchlina wodna./ 
+Tu Sprawiedliwość z swoim sądem w zgodzie,/ 
+Tym samym miejscem, gdziem grzeszył, mnie bodzie,/ 
+<begin id="b1315907016817-1028229828"/><motyw id="m1315907016817-1028229828">Kłamstwo, Grzech, Kara</motyw>By więcej westchnień wydostać z grzesznika./ 
+Tam jest Romena, gdziem oprócz psot wiela/ 
+Fałszował pieniądz z popiersiem Chrzciciela,/ 
+Za co spalono żywcem fałszownika./ 
+Lecz gdybym spotkał tu duchy Gwidona/ 
+I Aleksandra, i obu ich brata<pr><slowo_obce>Gwidon, Aleksander</slowo_obce> --- hrabiowie z Romeny.</pr>,/ 
+Jeszcze bym tego nie mieniał widoku/ 
+Na Fontebrandę, co stoi w mym oku<pr><slowo_obce>Fontebrandą</slowo_obce> --- wspaniała fontanna w Sienie.</pr>./ 
+Już jeden pono tu zstąpił ze świata,/ 
+Jeśli wieść do mnie doszła nieskażona/ 
+Z ust innych cieniów; ale co mi po tem,/ 
+Gdy ja tu leżę jak przybity młotem!/ 
+Gdybym tak lekki był, że zrobić mogę/ 
+W sto lat krok jeden, już poszedłbym w drogę,/ 
+Szukając jego w tej wielkiej przepaści./ 
+Która w obwodzie ma mil jedenaście/ 
+A wszerz pół mili. Zły duch, co w nich siedzi./ 
+Skusił mnie radą tych hrabiów Romeny,/ 
+Abym w mennicy bił takie floreny,/ 
+W których jest najmniej trzy karaty miedzi<end id="e1315907016817-1028229828"/>»./ 
+Rzekłem do niego: «Wskaż tych dwóch na imię,/ 
+Co tam na prawo leżą razem w dymie,/ 
+Jak zimą dymiąc parą z mokrej ręki?»/ 
+--- «Tak ich znalazłem,» odpowiedział «wtedy,/ 
+Gdy mnie w tę otchłań wtrącono na męki,/ 
+I wątpię, z miejsca czy ruszą się kiedy?/ 
+To cień świadczącej krzywo Putyfary<pr><slowo_obce>To cień świadczącej krzywo Putyfary</slowo_obce> --- Żona Putifara i Sinon Grek, oboje fałszywie świadczący; ta Józefa, którego chciała wciągnąć do winy, fałszywie oskarżyła przed mężem; a ten fałszywą wieścią o koniu drewnianym, którego Grecy zostawili pod murami Troi, oszukał Trojan. Za to oboje w zgniłej gorączce tarzają się tu po ziemi.</pr>,/ 
+Drugi Grek Sinon, co oszukał Troję;/ 
+W zgniłej gorączce tu leżą oboje,/ 
+Z ciał swych cuchnące wyziewając pary»./ 
+Cień pierwszy zemstę warzący w milczeniu,/ 
+Że śmiał bezczelną nazwać po imieniu,/ 
+Pięścią w brzuch twardy Adama uderzył,/ 
+Który jak bęben huk daleki szerzył,/ 
+Mistrz Adam wzajem dłonią niemniej twardą/ 
+Odbił policzek mówiąc doń ze wzgardą:/ 
+«Choć mi puchlina poruszyć się broni,/ 
+O! do wybitej dość ruchu mam w dłoni»./ 
+Na to cień drugi: «Gdyś na stos wstępował,/ 
+Pewnoś tak żywo ręką nie szermował,/ 
+Lecz miałeś równie, może więcej, żywą/ 
+Rękę, gdy biłeś monetę fałszywą»./ 
+Opuchły tak rzekł: «Nie kłamie twe słowo,/ 
+Lecz gdzieś był z swoją prawdomówną mową,/ 
+Kiedy o prawdę pytano się w Troi?»/ 
+--- «Jam fałsz powiedział,» Grek odparł na nowo,/ 
+«A tyś fałszował pieniądz najniegodniej./ 
+Jam winny jednej, a ty mnóstwa zbrodni»./ 
+--- «Czy koń drewniany na myśli ci stoi?»/ 
+Cisnął żart mówca, co miał brzuch wydęty,/ 
+«Świat za mną woła: bądź, kłamco, przeklęty!»/ 
+--- «Niech ci nawzajem» tak Grek mówił w gniewie/ 
+«Język pragnienie spali jak zarzewie,/ 
+Niech zgniła woda tak twój brzuch wydyma,/ 
+By jak zagroda stał ci przed oczyma»./ 
+A mincarz<pe><slowo_obce>mincarz</slowo_obce> a. <slowo_obce>mincerz</slowo_obce> --- rzemieślnik zajmujący się biciem monet i medali.</pe>: «Bluźnisz na twą gębę całą,/ 
+Bo jeśli pragnę i mam spuchłe ciało,/ 
+Tyś sam w gorączce i gore ci głowa./ 
+Ażebyś lizał Narcyza zwierciadło<pr><slowo_obce>Zwierciadło Narcyza</slowo_obce> --- woda, w której przeglądał się piękny młodzieniec Narcissus.</pr>,/ 
+Krótka by ciebie skłoniła przemowa»./ 
+Gdym był zajęty ich kłótnią zajadłą,/ 
+Mistrz rzekł: «Czas, abyś tę gawiedź porzucił,/ 
+Niewiele braknie, bym z tobą się skłócił»./ 
+Na głos ten jam się do mistrza obrócił,/ 
+<begin id="b1315907201088-3637867090"/><motyw id="m1315907201088-3637867090">Wstyd, Wina, Słowo</motyw>Ogromnym wstydem spłoniony na twarzy;/ 
+Podobny temu, co nieszczęście marzy,/ 
+A marząc życzy, by to, co się śniło,/ 
+Snem się rozwiało, jakby nic nie było./ 
+Chciałem przemówić, wstyd mi uciął słowa,/ 
+Choć wola z winy tłumaczyć się radzi,/ 
+Ze wstydu przed nim stałem jak niemowa./ 
+Mistrz rzekł: «Wstyd mniejszy większe winy gładzi,/ 
+Uspokój siebie i nie patrz tak smutnie:/ 
+Gdy czasem trafisz na podobne kłótnie,/ 
+Gdzie ludzie w mowie nie dosyć są skromni,/ 
+Że, wódz twój, jestem przy tobie, przypomnij!/ 
+<begin id="b1333739937255-1525704821"/><motyw id="m1333739937255-1525704821">Słowo, Mądrość</motyw>Bo chcieć łakomie słuchać lada bredni,/ 
+Chętka ta zdradza umysł dość powszedni<end id="e1333739937255-1525704821"/>».<end id="e1315907201088-3637867090"/></strofa> 
+
+
+
+
+<naglowek_rozdzial>Pieśń XXXI</naglowek_rozdzial> 
+
+
+<akap>(Do kręgu IX. Studnia. Olbrzymi. Anteus osadza poetów na dnie piekła.)</akap> 
+
+
+
+<strofa>Język, co wprzódy zranił mnie do tyla,/ 
+Żem spłonął wstydem, wnet balsam żądany/ 
+Podał i leczył jak włócznia Achilla,/ 
+Co i raniła, i leczyła rany<pr><slowo_obce>włócznia Achilla, co i raniła, i leczyła rany</slowo_obce> --- Achilles zranił króla Telefosa, a przyłożenie do rany tejże włóczni, która ją zadała, uzdrowiło rannego.</pr>./ 
+<begin id="b1315907392685-3050830674"/><motyw id="m1315907392685-3050830674">Dźwięk</motyw>I milcząc szliśmy od tej smutnej jamy,/ 
+Brzegiem krążącej wokoło niej tamy<pr><slowo_obce>Brzegiem krążącej wokoło niej tamy</slowo_obce> --- Dziesięć oddziałów zwanych <wyroznienie>Złe Tłumoki</wyroznienie> z rozmaitymi rodzajami oszustów, jacy w nich się znajdują, zwiedziwszy, teraz idą poeci wokoło kamiennej tamy okrążającej ostatni ten oddział kręgu ósmego; żeby przybliżyć się do dziewiątego kręgu piekła, w którym karani są zdrajcy. Jest to ta studnia, o której poeta napomyka na początku Pieśni XVIII.</pr>;/ 
+Tam nie noc, zmrok był pół nocny, pół dzienny,/ 
+Widziałem tylko szary grunt kamienny,/ 
+Lecz echo za mną dźwiękiem rogu grało,/ 
+Dźwiękiem, co mógłby zagłuszyć trzask grzmotu./ 
+W stronę, skąd dźwięk ten pobrzmiewał za skałą,/ 
+Oczy z uwagą obróciłem całą./ 
+Nie tak straszliwie Roland do odwrotu/ 
+Dął w róg wojenny, gdy z chrześcijan żalem<end id="e1315907392685-3050830674"/>/ 
+Karloman przegrał bój pod Ronsewalem<pr><slowo_obce>Karloman przegrał bój pod Ronsewalem</slowo_obce> --- Karol Wielki (Karloman, Charlemagne, Carolin Magnus) gdy walczył z Maurami z Hiszpanii, zdradzony przez jednego ze swoich wodzów, przegrał bitwę pod Roncewalem. Wtedy słynny rycerz Roland tak potężnie zadął w róg, że dźwięk tego rogu więcej jak w okręgu milowym najwyraźniej słyszano.</pr>/ 
+Podniosłem głowę; nad poziom opoki,/ 
+Zda się z jej gruntu, tłum wieżyc wyrasta,/ 
+Dlatego rzekłem: «Widzę mur wysoki,/ 
+Mistrzu, jakiego to widok jest miasta?»/ 
+A mistrz: «Tyś w błędzie, bo patrzysz z daleka,/ 
+Gdy przyjdziesz bliżej, uzna twa powieka,/ 
+Jak oddalenie fałszuje zmysł wzroku,/ 
+Więc trochę więcej przyspiesz twego kroku»./ 
+Wziął mnie za rękę i czule ją ściska,/ 
+I mówi: «Nim ten przedmiot ujrzysz z bliska,/ 
+<begin id="b1315907539427-2384102178"/><motyw id="m1315907539427-2384102178">Potwór</motyw>Aby mniej dziwnym zdał się, jak widzimy,/ 
+Wiedz, że nie wieże to są, lecz olbrzymy,/ 
+Od stóp po biodra sami i bezludni,/ 
+Wokoło zrębów stoją w wielkiej studni»./ 
+Jak wzrok wśród mglistej uwięzły ciemnoty/ 
+Z wolna odkrywa ukryte przedmioty,/ 
+Gdy mgła spadając ze światłem się zetrze;/ 
+Tak przerzynając to ciemne powietrze,/ 
+W miarę jak szedłem pod studni tej progi,/ 
+Błąd mój się rozwiał, a wzrastał chłód trwogi/ 
+<begin id="b1333740292530-1195838801"/><motyw id="m1333740292530-1195838801">Potwór, Olbrzym</motyw>Jak wieże zamku Monteregijone<pr><slowo_obce>Monteregione</slowo_obce> --- zamek w okolicach Sieny.</pr>/ 
+Tworzą okrągłych jego ścian koronę,/ 
+Tak nad zrąb studni pod same podpasy/ 
+Sterczały wkoło potworne Gigasy,/ 
+A którym zda się jeszcze groził z góry,/ 
+Piorunem Jowisz, gdy brzmi z ciemnej chmury,/ 
+Jeden stał twarzą do nas obrócony,/ 
+Barkami, piersią i dwoma ramiony;/ 
+Zaiste, jeśli natura przestała/ 
+Tworzyć olbrzymy, w tym loicznie<pe><slowo_obce>loicznie</slowo_obce> --- dziś popr.: logicznie.</pe> działa,/ 
+Bo przez to, gwoli świata pokojowi,/ 
+Takich siłaczy odjęła Marsowi./ 
+A gdy bez troski zapładza w swym łonie/ 
+Jeszcze ogromne wieloryby, słonie,/ 
+Łatwo w tym dojrzy ludzka przenikliwość/ 
+Mądrą ostrożność jej i sprawiedliwość./ 
+Bo gdzie się rozum człowieka zespoli/ 
+Z siłą potęgi i chęcią złej woli,/ 
+Tam ludziom opór nigdy się nie uda./ 
+Czaszka tak wielka była wielkoluda,/ 
+Jakby świętego Piotra szyszka w Rzymie<pr><slowo_obce>świętego Piotra szyszka w Rzymie</slowo_obce> --- Szyszka pozłocona, spiżowa, 2 i 1/2 metrów wysoka, zabytek starożytności, znajdowała się wtedy przed kościołem św. Piotra w Rzymie, dzisiaj umieszczona na ostatnim dziedzińcu Pałacu Watykańskiego.</pr>./ 
+I inne kości miał równie olbrzymie:/ 
+Tak, że począwszy od pasa w pół ciała,/ 
+Trzech Fryzów rosłych, daremna ich chluba,/ 
+Ledwo by wzrostem doszli mu do czuba<pr><slowo_obce>Trzech Fryzów rosłych (...) Ledwo by wzrostem doszli mu do czuba</slowo_obce> --- Fryzowie, mieszkający w północnych Niemczech, w średnich wiekach uchodzili za wielkoludów.</pr>;/ 
+Bo jego wzrostu potworna wyżyna,/ 
+Mogła, jak studni kończyły się zręby,/ 
+Do miejsca, człowiek gdzie płaszcz swój zapina,/ 
+Mieć miar trzydzieści wielkiej rzymskiej palmy<pr><slowo_obce>palma rzymska</slowo_obce> --- miara nieco większa od stopy paryskiej.</pr>./ 
+<slowo_obce><begin id="b1333740358445-3959607359"/><motyw id="m1333740358445-3959607359">Słowo</motyw>Rapho Lmaj Amec</slowo_obce>! jakaś mowa brzmiała/ 
+Dzika, nam obca, z jego dumnej gęby,/ 
+Dla której słodsze niestosowne psalmy.<end id="e1333740292530-1195838801"/><end id="e1315907539427-2384102178"/>/ 
+Mój wódz doń mówił: «Nieroztropny duchu!/ 
+Zadmij w róg, niech się rozlega w twym uchu/ 
+Łowczy dźwięk rogu; jeśli tobą miota/ 
+Gniew albo inna namiętność żywota,/ 
+Ulgi twej męce szukaj w jego brzmieniu:/ 
+Patrz, on z twej szyi zwisa na rzemieniu,/ 
+Który ogromną twoją pierś oplata»./ 
+Potem rzekł do mnie: «Patrz, to duch Nemroda<pr><slowo_obce>Nemrod</slowo_obce> --- władca asyryjski, sławny łowca, znajomy z ksiąg starego Zakonu, który budowaniem wieży Babel winien był podstępnego buntu przeciwko Bogu.</pr>,/ 
+Głupi, sam siebie oskarża w swej dumie,/ 
+Że przezeń znikła jedna mowa świata./ 
+Zostawmy jego, tu słów naszych szkoda,/ 
+My go nie pojmiem, on nas nie zrozumie».<end id="e1333740358445-3959607359"/>/ 
+<begin id="b1315907628566-3300871456"/><motyw id="m1315907628566-3300871456">Grzech, Kara</motyw>I szliśmy kołem, zwracając się w lewo./ 
+Z dala sterczało jakieś wielkie drzewo,/ 
+Podchodzim, widzim olbrzyma drugiego,/ 
+Jeszcze był dzikszy i wzrostu większego./ 
+Jaki go siłacz łańcuchem skrępował,/ 
+Nie wiem, lecz obie miał związane ręce,/ 
+Łańcuch od szyi pięć razy zagięty/ 
+Ciało mu ściskał żelaznymi pręty./ 
+«Pyszny, z Jowiszem o władzę szermował<pe><slowo_obce>szermować</slowo_obce> --- walczyć; por. szermierka.</pe>,»/ 
+Tak mój wódz mówił, «a skończył na męce:/ 
+To Efialtes<pr><slowo_obce>Efialtes</slowo_obce> --- ze swoim bratem Otusem, zwaliwszy Pelion i Ossę, górę na górę, wdzierali się po nich do nieba. Młody Apollo przebił go strzałą. Olbrzym ten ręce ma związane, lecz za ich poruszeniem ziemia drży cała.</pr>! w walce z olbrzymami/ 
+Przed nim zadrżeli i bogowie sami,/ 
+Myśląc, że pierwszy drzwi niebios wyłamie;/ 
+Teraz bezwładne to straszliwe ramie».<end id="e1315907628566-3300871456"/>/ 
+A ja do wodza: «Chciałbym na swe oczy/ 
+Widzieć potworny kształt Bryjareusza<pr><slowo_obce>Briareusz</slowo_obce> --- sturamienny olbrzym, syn Urana i Ziemi. <wyroznienie>Anteusz</wyroznienie>, syn Ziemi, która, ledwo wyszedł na świat, obdarzyła go nadzwyczajną siłą. Herkules zmuszonym był go zadusić, ponieważ Anteusz, jako wróg nieubłagany Herkulesa, z nim się wciąż mocował. Olbrzym ten nie ma rąk związanych, ponieważ nie brał udziału w wojnie olbrzymów z bogami.</pr>»./ 
+Wódz rzekł: «Tu bliżej ujrzysz Anteusza./ 
+Nieskrępowany i mówić ochoczy,/ 
+On nas jak piłkę na dno piekła stoczy./ 
+<begin id="b1315908459190-2183327380"/><motyw id="m1315908459190-2183327380">Strach, Zło</motyw>Lecz Bryjareusz dobrze dalej stoi,/ 
+Jak ten podobnie skuty, prócz że dwoi/ 
+Przestrach wrażeniem okropności swojej»./ 
+Nigdy tak wieżą gwałtownie nie chwiała/ 
+Trzęsieniem ziemi poruszona skała,/ 
+Jak Efialtes wstrząsł się na te słowa;/ 
+Wtenczas mnie trwoga przeszyła grobowa,/ 
+Strach by mnie dobił i padłbym bez duchu,/ 
+Gdybym nie widział olbrzyma w łańcuchu./ 
+Anteusz, gdyśmy podeszli doń bliżej,/ 
+Nad zrębem studni stał pięć łokci wyżej.<end id="e1315908459190-2183327380"/>/ 
+---<begin id="b1315908511794-3857309908"/><motyw id="m1315908511794-3857309908">Zdrada</motyw>«O ty, co w owej szczęśliwej dolinie<pr><slowo_obce>O ty, co w owej szczęśliwej dolinie</slowo_obce> --- Mieszkanie Anteusza naznacza poeta, według Lukana, w okolicy, w której Hannibala Scypion pokonał.</pr>/ 
+Przez którą imię Scypijona słynie,/ 
+Gdzie Hannibala zmusił do odwrotu,/ 
+Uprowadziłeś do swego namiotu/ 
+Łup z lwów tysiąca; ty, co gdybyś zbrojnie/ 
+Wsparł twoich braci w ich olbrzymiej wojnie,/ 
+Mógłbyś zapewnić tryumf synom ziemi!/ 
+Jeśli nie gardzisz prośbami naszemi,/ 
+Znieś nas, gdzie Kocyt chłód zamarzać zmusza,/ 
+Lecz nie odsyłaj mnie do Tyfeusza<pr><slowo_obce>Tyfeusz</slowo_obce> --- Inny olbrzym.</pr>./ 
+Stąd mój towarzysz, czego chce twa dusza/ 
+(Tylko nam schyl się i nie marszcz tak czoła),/ 
+Sławne twe imię zaniesie do świata;/ 
+On żyw i przed nim jeszcze długie lata,/ 
+Gdy go przed czasem Łaska nie powoła<end id="e1315908511794-3857309908"/>»./ 
+Gdy mowa mistrza zamilkła skończona,/ 
+Olbrzym już wodza wziął w swoje ramiona,/ 
+Których sam Herkul czuł uścisk straszliwy!/ 
+Z ramion olbrzyma rzekł do mnie Wirgili:/ 
+«Chodź, ja do swego przytulę cię łona»./ 
+Tak mnie i wodza Anteusz tej chwili/ 
+Jak jeden ciężar na plecy zarzucił./ 
+<begin id="b1315908542558-1748055252"/><motyw id="m1315908542558-1748055252">Zdrada, Kara</motyw>Patrząc na wieży bolońskiej kąt krzywy<pr><slowo_obce>Patrząc na wieży bolońskiej kąt krzywy</slowo_obce> --- La Carisenda, wieża pochyła w Bolonii, ma sto trzydzieści stóp wysokości,</pr>/ 
+Od strony, kędy ku ziemi się chyli,/ 
+Widz drży, by czasem wiatr ją nie wywrócił:/ 
+Tak mi się wydał olbrzym i tak strwożył,/ 
+Gdy się nachylił i nas obu złożył/ 
+Na dnie otchłani, co razem pożera/ 
+Zdrajcy Judasza duch i Lucyfera;/ 
+Tak pochylony olbrzym w tym momencie/ 
+Podniósł się prosty jak maszt na okręcie.<end id="e1315908542558-1748055252"/></strofa> 
+
+
+
+
+
+<naglowek_rozdzial>Pieśń XXXII</naglowek_rozdzial> 
+
+
+
+<akap>(Krąg IX. Wieczne lody. 1. Kaina. Zdrajcy krewnych. 2. Antenora. Zdrajcy kraju rodzinnego.)</akap> 
+
+
+
+<strofa><begin id="b1315908856530-1720829267"/><motyw id="m1315908856530-1720829267">Poezja</motyw>Gdybym miał dzikie, tak chrapliwe rymy,/ 
+Co by do ciemnej tej studni przystały,/ 
+Na której stoją wszystkie inne skały<pr><slowo_obce>Co by do ciemnej tej studni przystały, na której stoją wszystkie inne skały</slowo_obce> --- Kamienna tama otaczająca krąg ósmy, dźwiga na sobie ciężar wyższych kręgów piekielnych, a szczególnie te skały, które wszerz przez oddziały rozmaite, czyli jamy kręgu ósmego, przechodząc, podróżującym poetom za łuki mostowe służyły.</pr>,/ 
+Wydałbym pełniej całą treść mej myśli;/ 
+Lecz gdy tej władzy w sobie nie widzimy,/ 
+Ważę się podnieść głos nie bez bojaźni./ 
+Nie jest to zamiar jak gra wyobraźni/ 
+Wylęgły w głowie, co dno świata kreśli<pr><slowo_obce>co dno świata kreśli</slowo_obce> --- Według systemu Ptolemeusza niebo ze wszystkimi planetami i gwiazdami krąży wokoło ziemi i dlatego to środkowy punkt ziemi uważa poeta za punkt środkowy całego wszechświata.</pr>,/ 
+Nie czyn języka, co ledwo szczebioce./ 
+Muzy, przyzywam ja wasze pomoce,/ 
+Dajcie mi skrzydła Amfijona lotu<pr><slowo_obce>Dajcie mi skrzydła Amfijona lotu</slowo_obce> --- Amfion zbudował mury tebańskie i siedem bram tegoż miasta. W tej olbrzymiej pracy dopomagały jemu Muzy; w Muzach szukał natchnienia do pieśni, na której dźwięk same kamienie ruszały się z miejsca i wiązały się w mury.</pr>, / 
+Aby nie niższy był wiersz od przedmiotu.<end id="e1315908856530-1720829267"/>/ 
+Mieszkańce miejsca, o przeklęte duchy!/ 
+Które opisać słowami najtrudniej,/ 
+Czemu was owcze nie kryją kożuchy/ 
+W tym chłodnym świecie albo kozie puchy?/ 
+Gdyśmy już byli w zrębach ciemnej studni<pr><slowo_obce>Gdyśmy już byli w zrębach ciemnej studni</slowo_obce> --- W lochu tej studni zdrajcy rozmaici karani są pogrążeniem ich na wieczność w bryłach piekielnego lodu. Najdalej są oni od Boga, źródła wszelkiego ciepła, światła i życia. Nawet łzy ich marzną, skrucha nie ma tu siły uśmierzającej. Lody powstają z rzeki Kocytu, którą tworzą odpływy gorącego Flegetonu, zlodowaciałe wskutek ruchu skrzydeł Lucyfera. Krąg ten dziewiąty podzielony jest na cztery oddziały: pierwszy, najbliższy nazywa się <wyroznienie>Kaina</wyroznienie>, od bratobójcy Kaina tak nazwany, gdzie są karani ci, co zdradzili bliźnich swoich, a szczególnie swoich krewnych. Po nim następuje oddział <wyroznienie>Antenora</wyroznienie>, gdzie spotykamy zdrajców ojczyzny, tak nazwany od trojańskiego Antenora, którego obwiniają, że brał udział w kryjomym porwaniu Palladium tegoż miasta. Trzeci oddział nazywa się <wyroznienie>Ptolomea</wyroznienie> od Ptolomeusza, króla Egiptu, który zdradził zaufanie wielkiego Pompejusza i prawo gościnności w czasie, kiedy był jego gościem. Oddział zaś czwarty nazywa się <wyroznienie>Judeki</wyroznienie> a od Judasza, który zdradził i zaprzedał Chrystusa Pana.</pr>,/ 
+Daleko niżej jak stopy olbrzyma,/ 
+Zrąb jej wysoki gdym mierzył oczyma,/ 
+«Ostrożnie stąpaj!» ktoś rzekł tymi słowy,/ 
+«Abyś omijał stopą nasze głowy»./ 
+Spojrzałem za się, zdziwion nie po mału<pe><slowo_obce>nie po mału</slowo_obce> --- niemało (daw. forma; por. po trochu).</pe>,/ 
+Zmarzłe jezioro leżało pode mną,/ 
+Lśniące jak szyba ogromna kryształu./ 
+Nigdy tak grubym lodem się nie ścina/ 
+Niemiecki Dunaj lub północna Dźwina;/ 
+Gdyby Tabernik albo Pietrapiana<pr><slowo_obce>Tabernik (...) Pietrapiana</slowo_obce> --- Góry, pierwsza w Sklawonii, druga w Toskanii</pr>/ 
+Spadły przypadkiem w tę otchłań podziemną,/ 
+Szyba tych lodów stałaby jak ściana./ 
+Jak żaby skrzecząc wystają znad wody/ 
+W porze, gdy myśli żniwiarka o żniwie,/ 
+Tak cienie blade, skarżące płaczliwie,/ 
+W lód pogrążone sterczały nad lody/ 
+Pół twarzą, gdzie wstyd czerwieni jagody./ 
+Z dzikim hałasem jak klekot bociani/ 
+Brzmiał zgrzyt ich zębów po całej otchłani;/ 
+Skrzepłe ich usta wzrok ponuro toczy,/ 
+Smutek ich serca zdradzały ich oczy./ 
+Gdy spojrzę na dół, pod mymi stopami/ 
+Dwa cienie z sobą zwarły się piersiami,/ 
+Aż czub ich włosów przytykał do czuba./ 
+«Kto wy jesteście?» krzyknąłem. Wtem cienie/ 
+<begin id="b1315909171203-607305320"/><motyw id="m1315909171203-607305320">Cierpienie</motyw>Ukośne ku mnie zwróciły spojrzenie,/ 
+Łzy, co w ich oczach przed chwilą pływały,/ 
+Spadły na rzęsy i chłodem stężały./ 
+Silniej nie ściska deskę z deską śruba,/ 
+Jak potępieńcy zwarli czoła swoje;/ 
+Jak dwa rogami bodące się byki,/ 
+Tak gniew ich obu był wielki i dziki./ 
+Cień, co od mrozu stracił uszu dwoje,/ 
+Schylając głowę rzekł do mnie łaskawie:<end id="e1315909171203-607305320"/>/ 
+«Dlaczego na nas patrzysz tak ciekawie?/ 
+<begin id="b1315909228370-492156331"/><motyw id="m1315909228370-492156331">Kara</motyw>Chcesz wiedzieć, ci dwaj jakiego są rodu<pr><slowo_obce>ci dwaj jakiego są rodu</slowo_obce> --- Aleksander i Napoleon degli Alberti po śmierci ojca robiąc dział między sobą, dwaj bracia, tak się skłócili, że szpadami nawzajem się przebili. Miejsce ich rodzinne leżało nad strumieniem Bisenzio, który przepływa dolinę Falterona między Lukką a Florencją.</pr>?/ 
+Gdzie zdrój Bisencjo wypływa, dolina,/ 
+Własność Albertich, ojczyzną ich była,/ 
+Taż sama, jedna matka ich rodziła./ 
+Nie znajdziesz w całym tym kręgu Kaina/ 
+Godniejszych siedzieć w bryłach tego lodu:/ 
+Nawet ten, którym wzdryga się natura,/ 
+Na wylot włócznią przebity Artura<pr><slowo_obce>Na wylot włócznią przebity Artura</slowo_obce> --- Morderek, syn bajecznego Artura, króla Brytanii, według podania czatował w zasadzce na swojego ojca, ażeby go zabić; lecz ten uprzedził zamach zbrodniarza i włócznią przebił swego syna na wylot, tak że przez otwór rany słońce świeciło.</pr>,/ 
+Ani Kancelieri, ani Maskeroni<pr><slowo_obce>Ani Kancelieri, ani Maskeroni</slowo_obce> --- Fokacia Kancelieri, rodem z Pistoi, odciął rękę swojemu wujowi, a potem go zabił. Maskeroni, florentyńczyk, też był zabójcą swojego krewnego.</pr>./ 
+Jeśliś Toskańczyk, musisz znać, kto oni./ 
+O jeśli głos mój uszu twych nie kazi,/ 
+Wiedz, że ja jestem Kamerione z Pazzi<pr><slowo_obce>Kamicione de Pazzi</slowo_obce> --- zabił Ubertina, swojego krewnego.</pr>,/ 
+Że oczekuję tu jeszcze Karlina<pr><slowo_obce>Karlino de Pazzi</slowo_obce> --- stronnik białych gwelfów; zdradą zdał czarnym gwelfom zamek obronny, leżący nad rzeką Arno za pewną sumę pieniężną.</pr>!»/ 
+Widziałem potem z tysiąc innych twarzy,/ 
+Na pół skostniałych, zsiniałych od chłodu/ 
+Myśl jeszcze z dreszczem o tych lodach marzy!/ 
+Gdy ku środkowi szukamy przechodu<pe><slowo_obce>przechód</slowo_obce> --- przejście.</pe>,/ 
+Gdzie każda ciężkość cięży swoim ciałem,/ 
+W tym wiecznym zmroku z przerażenia drżałem./ 
+Nie wiem, przypadkiem czy wyższym zrządzeniem/ 
+Śród głów sterczących stawiąc<pe><slowo_obce>stawiąc</slowo_obce> --- dziś popr. forma: stawiając.</pe> stopy z trwogą,/ 
+Jednemu na twarz nastąpiłem nogą.<end id="e1315909228370-492156331"/>/ 
+«Za co mnie depczesz?» rzekł duch z bólu blady,/ 
+«Czy mścisz się na mnie Montaperto zdrady?»/ 
+«Czekaj mnie, mistrzu,» mówiłem z wzruszeniem;/ 
+«Chcę mą wątpliwość objaśnić z tym cieniem,/ 
+Potem, jak zechcesz, jam śpieszyć gotowy»./ 
+Wódz stanął, a jam wyzwał do rozmowy/ 
+Ducha, co bluźnił, nie szczędząc klątw długich:/ 
+<begin id="b1315910532405-1765907429"/><motyw id="m1315910532405-1765907429">Kłótnia</motyw>«Powiedz, kto jesteś, ty, co fukasz drugich?»/ 
+--- «Ty sam kto jesteś? Za co w Antenorze/ 
+Idąc, twe stopy drugich twarze depcą?/ 
+Za co naciskasz krokiem tak bolącym,/ 
+Za ciężkim, nawet gdybyś był żyjącym?»/ 
+--- «Ja żyję,» rzekłem, «miło ci być może,/ 
+Gdy kochasz sławę lub wspomnienie skromne,/ 
+Wśród wielu imion twe imię przypomnę»./ 
+On na to: «Odejdź, natrętny pochlebco!/ 
+Pochlebne słowa, żal twego zachodu,/ 
+Nic nas nie grzeją na tych falach lodu»./ 
+Wziąwszy go za kark, rzekłem: «Jak cię zową<pe><slowo_obce>zową</slowo_obce> --- dziś popr. forma 3 os. lm: zwą.</pe>?/ 
+Mów, bo wnet łysą zaświecisz mi głową»./ 
+--- «Rwij włos, nie powiem tobie, jak się zowię,/ 
+Choćbyś sto razy deptał mi po głowie»./ 
+Za czub schwyciłem jego w mgnieniu oka/ 
+I wyrywałem z czaszki włos garściami;/ 
+On słowa żadnej skargi nie wyrzucił,/ 
+Tylko wył dziko i oczy wywrócił.<end id="e1315910532405-1765907429"/>/ 
+Drugi cień krzyknął: «Co tobie, mój Bokka<pr><slowo_obce>Co tobie, mój Bokka</slowo_obce> --- Bocca degli Abbati; na początku bitwy pod Montaperti nad rzeką Arbią podstępem uciął rękę gwelfowi, Jakubowi Pazzi, który niósł sztandar stronnictwa; gwelfowie przerażeni upadkiem swojego sztandaru, który ich do boju prowadził, poszli w rozsypkę i bitwę przegrali. Dante, chociaż gibelin, potępia ten czyn nieszlachetny.</pr>?/ 
+Ty wyjesz, nie dosyć ci zgrzytać zębami,/ 
+Jakiż cię dręczy szatan tak zawzięty?»/ 
+--- «Teraz,» mówiłem, «milcz, zdrajco przeklęty!/ 
+Abyś twe imię powiedział, nie proszę,/ 
+Sam je na wieczną twą hańbę ogłoszę»./ 
+A on: «<begin id="b1315910600773-2693856363"/><motyw id="m1315910600773-2693856363">Zbrodnia, Grzech, Kara</motyw>Baj sobie, co masz na języku,/ 
+Lecz nie zapomnij, idąc z Antenory,/ 
+Tego, co język miał w mowie za skory<pe><slowo_obce>skory</slowo_obce> --- szybki, prędki.</pe>;/ 
+Tu złoto Franków wtrąciło młokosa,/ 
+Możesz powiedzieć: widziałem Buosa<pr><slowo_obce>Buoso da Duera</slowo_obce> --- rodem kremończyk, przekupiony przez generała francuskiego, Gwidona de Montfort, dał mu przejść przez rzekę Oglio.</pr>/ 
+Tam, gdzie grzeszników jest w lodach bez liku./ 
+Gdy, kto jest więcej, spytają i za co?/ 
+Patrz, oto stoi Bekeria ladaco<pr><slowo_obce>Bekeria</slowo_obce> --- Bekeria, rodem z Pawii, opat Walombrozy; gdy odkryto spisek, za pośrednictwem którego miał Florencję oddać w ręce gibelinów, głowę mu ścięto.</pr>/ 
+Któremu głowę Florencyja ścięła,/ 
+A trochę dalej: Gianni, Ganello,/ 
+Otwierający wrogom Tribaldello<pr><slowo_obce>A trochę dalej: Gianni, Ganello, (...) Tribaldello</slowo_obce> --- Wszyscy ci trzej zdrajcy swojego kraju.</pr>/ 
+Faencę, kiedy snem głuchym usnęła»./ 
+Gdy z miejsc okropnych szukamy przechodu,/ 
+Dwóch potępieńców ujrzałem w parowie,/ 
+Wyższy niższemu głową legł na głowie;/ 
+A jak łakomie szarpiemy chleb z głodu,/ 
+Tak on zatopił kły w ciało sąsiada,/ 
+Tam kędy czaszka do barków przypada./ 
+Nie z takim gniewem Tydej zemstą ślepy<pr><slowo_obce>Tydej zemstą ślepy</slowo_obce> --- Tydeusz podczas wojny tebańskiej wyzwał Menalipa na włócznie i obaj ranili siebie śmiertelnie; Tydeusz, według Stacjusza, konając, z wściekłością gryzł czaszkę swojego wroga, który tylko co skonał.</pr>/ 
+Menalipowej głowy gryzł czerepy,/ 
+Jak on swą zdobycz żuje i wysysa.<end id="e1315910600773-2693856363"/>/ 
+«Człowieku,» rzekłem, «co paszczą tygrysa/ 
+Mścisz się nad wroga nienawistną głową,/ 
+Powiedz mi, jakie masz zemsty powody?/ 
+A ja ci moją odpłacę wymową,/ 
+Kiedyś, pomiędzy ziemskimi narody,/ 
+Jeśli mnie Pan Bóg żywcem stąd wydźwignie,/ 
+A język w ustach moich nie zastygnie».</strofa> 
+
+
+
+
+
+<naglowek_rozdzial>Pieśń XXXIII</naglowek_rozdzial> 
+
+
+
+
+
+<akap>(Krąg IX. 2. Antenora --- ciąg dalszy. 3. Ptolomea. Zdrajcy przyjaciół.)</akap> 
+
+
+
+<strofa><begin id="b1315910834677-1850152533"/><motyw id="m1315910834677-1850152533">Duch, Kara</motyw>Od strawy dzikiej oderwał paszczękę/ 
+Ów potępieniec i krew z ust ocierał/ 
+Włosami czaszki, której mózg pożerał./ 
+I mówi: «Srogą chcesz odnawiać mękę,/ 
+Serce mi pęka, nim usta otwieram./ 
+Lecz gdy ze słów mych jak z nasion dojrzeje/ 
+Hańba dla zdrajcy, którego pożeram,<end id="e1315910834677-1850152533"/>/ 
+Słuchaj, wypowiem, wypłaczę me dzieje./ 
+Nie wiem, kto jesteś, przez jaki cud nowy/ 
+Zaszedłeś do nas, lecz po dźwięku mowy/ 
+Poznaję w tobie Włocha, florentyna./ 
+Widzisz przed sobą hrabię Ugolina<pr><slowo_obce>Hrabia Ugolino</slowo_obce> --- pochodził ze starożytnej familii pizańskiej hrabiów della Gherardesca. Będąc podestą i naczelnikiem siły zbrojnej w Pizie, podniósł tę rzeczpospolitą do szczytu potęgi i sławy; potem gdy przegrał bitwę morską z genueńczykami, dla podtrzymania dawnej potęgi swojego kraju wiązał się traktatami z Florencją, której wskutek wzajemnej umowy kilka mało znaczących zamków ustąpił. Zazdrosny jego władzy, a więcej jeszcze sławy długoletnim rządem Ugolina nabytej, arcybiskup Rugieri posądził go o zdradę stanu; potem wsparty współdziałaniem hrabiów Gwalandi, Lafranki i Sismondi ze zbuntowanym ludem natarł na straż przyboczną Ugolina, uwięził go z dwoma synami i dwoma wnukami, a wszystkich zamknął w wieży na placu zwanym <wyroznienie>Degli Anziani</wyroznienie>. Bramę więzienia zamurowawszy, klucze od niej kazał wrzucić w rzekę Arno. Wieża ta od głodowej śmierci Ugolina nosi nazwę <wyroznienie>Wieży głodu</wyroznienie>. Było to 1289 r.</pr>/ 
+A ten, co teraz jest mej zemsty łupem,/ 
+Zwał się Rudżieri, był arcybiskupem./ 
+Jak mnie w zdradzieckie usidlono słowa,/ 
+Jak nieostrożnie wpadłem w jego ręce,/ 
+Nie warto mówić, bo rzecz nie jest nowa./ 
+Lecz o mym zgonie, o mej strasznej męce,/ 
+Jeśli nikt wieścią uszu twych nie skaził,/ 
+Słuchaj i osądź, czy on mnie obraził./ 
+<begin id="b1315910929473-1779874050"/><motyw id="m1315910929473-1779874050">Śmierć, Grzech, Kara, Głód</motyw>Jest w głębi wieży podziemna pieczara,/ 
+Sławna mym zgonem; dziś może w niej jęczy/ 
+Na nowo jaka niewinna ofiara./ 
+Tam okiem witym z żelaznych obręczy,/ 
+Widziałem mnogich księżyców oblicze,/ 
+Aż mnie raz we śnie przywidziana mara/ 
+Zdarła przyszłości chmury tajemnicze./ 
+Przyśniło mi się, że biskup zawzięty/ 
+Polował wilka z małymi wilczęty,/ 
+Na owej górze, co wzniosłymi szranki/ 
+Z pizańską ziemią i Lukką graniczy<pr><slowo_obce>Na owej górze, co wzniosłymi szranki z pizańską ziemią i Lukką graniczy</slowo_obce> --- Góra San Gitiliano na pograniczu Lukki i Pizy. Tam właśnie uwięziono Ugolina. Polityczna działalność Ugolina, w której ocenę tu bliżej wchodzić nie możemy, oczom wielu przedstawiała się jako zdrada kraju. Dlatego umieścił go Dante, który widocznie podzielał takie zdanie, tu, w Antenorze.</pr>./ 
+Już chudą psiarnię zemkniono ze smyczy,/ 
+Hrabia Gwalandi, Sismondi, Lanfranki/ 
+Szczują na czele, zdobycz będzie łatwa:/ 
+Już wilk znużone zatrzymuje kroki,/ 
+Upada wreszcie i ojciec, i dziatwa:/ 
+I widzę kłami rozprute ich boki./ 
+Budzę się! Jeszcze noc nie zeszła z nieba,/ 
+Już moje dziatki, wspólniki niewoli,/ 
+Szlochają przez sen i wołają: »chleba!«./ 
+O! Jeśli dotąd serce ci nie boli,/ 
+Kiedy pomyślisz, co się we mnie działo/ 
+I co me serce nadal przeczuwało,/ 
+Jeśli nie płaczesz, któż ci łzy wyciśnie?/ 
+Budzą się dzieci, wkrótce chwila błyśnie,/ 
+W której nam zwykle udzielano strawy,/ 
+Lecz na sen pomnąc truchlałem z obawy./ 
+Wtem z bram więzienia łoskot mnie doleci,/ 
+Zamurowano! --- spojrzałem na dzieci,/ 
+Spojrzałem z niemej wyrazem rozpaczy;/ 
+A w głębi serca czułem mróz jak w grobie./ 
+Gwido mój mały wołał: »Co to znaczy,/ 
+Tak dziko patrzysz? Ojcze mój, co tobie?«/ 
+Nie mogłem mówić, ni łzy z oczu dostać,/ 
+Milczałem długo --- aż do nocy końca./ 
+Nazajutrz do nas zbłądził promyk słońca/
+I w twarzach dzieci ujrzałem mą postać./ 
+Natenczas z bólu gryzłem obie ręce./ 
+Synowie myśląc, że mnie głód tak pali,/ 
+Łamiąc rączęta ze łzami wołali:/ 
+»Ojcze kochany, ulżyj twojej męce,/ 
+Zjedz twoje dzieci, tyś nas ubrał w ciało,/ 
+Tobie nas biednych rozebrać przystało«. ---/ 
+Musiałem milczeć i ból w sobie morzyć,/ 
+Wkrótce i mowa w ustach nam zamarła!/ 
+Jęczeć nie śmiałem, by dzieci nie trwożyć./ 
+O ziemio, czemuś ty nas nie pożarła!/ 
+Weszło czwartego dnia światło zabójcze,/ 
+Anzelmek mały przywlekł się pod nogi/ 
+I przerażony wolał: »Ojcze drogi!/ 
+Ach! Czemu ty nas nie ratujesz, ojcze?«/ 
+Wołał i skonał! --- Jak mnie tu widzicie,/ 
+Tak ja widziałem wszystkie dzieci moje/ 
+Jedno po drugim --- wszystkich było troje,/ 
+Wszystkie u nóg mych zakończyły życie./ 
+Od zwłok jednego do drugiego biegłem,/ 
+Ślepy na trupach potknąwszy się ległem./ 
+Dzień jeszcze siódmy do słońca zachodu,/ 
+Krzyczałem z żalu, a na koniec --- z głodu,/ 
+Bo głód był jeszcze sroższy od żałości<pr><slowo_obce>Krzyczałem z żalu (...) sroższy od żałości</slowo_obce> --- Cały ten ustęp głodowej śmierci Ugolina i jego dzieci dziwnie jest piękny i dramatyczny. Poeta tu jak w ustępie Franczeski umiał w porę zakląć okropność i na tym właśnie cała tajemnica dramatycznej sztuki zawisła. Wielu krytyków rozbiorowi tego ustępu Ugolina pod względem estetycznym i poetycznym swoje pióra poświęciło.</pr>»./ 
+Skończył i dziko wywróciwszy oczy,/ 
+Na nowo usta w krwawą czaszkę broczy,/ 
+I jak pies zębem zgrzytając, rwie kości. <end id="e1315910929473-1779874050"/>/ 
+O Pizo! hańbo pięknej ziemi włoskiej,/ 
+Kędy <slowo_obce>si</slowo_obce> dźwięczy<pr><slowo_obce>Kędy ,,si" dźwięczy</slowo_obce> --- Wyrażenie powyższe odnosi się do tego, że w języku włoskim <slowo_obce>si</slowo_obce> znaczy ,,tak".</pr> tak miękkimi głoski;/ 
+Gdy cię nie karzą leniwe sąsiady,/ 
+Niechaj się nagle wzruszą z swej posady/ 
+Sąsiednie wyspy, Kapraja, Gorgona<pr><slowo_obce>Kapraja, Gorgona</slowo_obce> --- małe wyspy blisko ujścia Arna do morza.</pr>,/ 
+Zahaczą Arnę, gdzie jej ujście kona;/ 
+Niech tak szeroko roztoczy swe tonie,/ 
+Aż wszystkich twoich mieszkańców pochłonie./ 
+Bo jeśli wrogom Ugolino hrabia/ 
+Zdał twoje zamki i winien tej zdrady,/ 
+O nowe Teby! Cóż twa złość wyrabia?/ 
+Jakaż twą zemstę czarna pamięć szpeci,/ 
+Głodem niewinne morzyć jego dzieci!/ 
+<begin id="b1315911041380-177550501"/><motyw id="m1315911041380-177550501">Duch, Cierpienie</motyw>Widziałem drugich potępieńców z bliska<pr><slowo_obce>Widziałem drugich potępieńców z bliska</slowo_obce> --- Tu poeci wstępują w trzeci oddział tegoż kręgu, zwany <slowo_obce>Ptolomea</slowo_obce>, gdzie są karani ci, co zdradzili swoich krewnych i przyjaciół.</pr>,/ 
+Jak lód ich swymi bryłami naciska;/ 
+Nie stali w lodach, lecz wznak wywróceni/ 
+Na lodowatej leżeli przestrzeni./ 
+Tam łza zamarza w chwili, gdy wybłyska,/ 
+Boleść jak robak po ich wnętrzach toczy,/ 
+Bo jej nie mogą wypłakać przez oczy./ 
+Jak hełm z kryształu, skrzepła łez powłoka/ 
+Kryje pod rzęsą całą wklęsłość oka./ 
+Choć jak stwardniała z mrozu skóra muła/ 
+Twarz moja prawie stała się nieczuła,/ 
+Wiatr jakiś, czułem, obwiał moje ciało.<end id="e1315911041380-177550501"/>/ 
+«Mistrzu mój,» rzekłem, «mów, co tu powiało?/ 
+Czy wiatr w tym chłodzie jeszcze nie zastygnął?»/ 
+--- «Dowiesz się wkrótce, skąd wiatr aż tu śmignął,»/ 
+Mówił, «przyczynę gdy wzrok twój wyśledzi,/ 
+Oko wyręczy głos mej odpowiedzi»./ 
+<begin id="b1315911249556-852926870"/><motyw id="m1315911249556-852926870">Cierpienie, Duch</motyw>Z tych nieszczęśliwych jeden tymi słowy/ 
+Do nas przemówił z skorupy lodowej:/ 
+«Dusze uwięzłe w swego grzechu matni,/ 
+Który was wtrąca aż w ten krąg ostatni,/ 
+Zerwijcie z twarzy mej twardą zasłonę,/ 
+Ulżyjcie bólem serce przepełnione,/ 
+Niechaj wyleję choć jedną łzę ciepłą,/ 
+Bo już mi oko i serce zakrzepło».<end id="e1315911249556-852926870"/>/ 
+A ja: «Chcesz, abym ulżył ci w cierpieniu,/ 
+Kto jesteś, nazwij siebie po imieniu;/ 
+Gdy nie usunę twoich łez przeszkodę,/ 
+Bodajbym w lodach tych na wieki siedział!»/ 
+«Brat Alberigo jestem» odpowiedział<pr><slowo_obce>Brat Alberigo</slowo_obce> --- rodem z Faency, jeden z towarzystwa braci wesołych (zob. uwagę do pieśni XXIX), zaprosił krewnego swego z synkiem na ucztę i w chwili, kiedy podawano owoce i jagody, kazał ich zamordować. Stąd urosło włoskie przysłowie: ,,On kosztował owoców brata Alberigo".</pr>,/ 
+Zły owoc z mego wyrasta ogrodu/ 
+I tu za figę mam daktyl w nagrodę<pr><slowo_obce>I tu za figę mam daktyl w nagrodę</slowo_obce> --- Ironia. Daktyl jako owoc z cudzej krainy uchodził za mający wartość większą od krajowej figi.</pr>»./ 
+<begin id="b1333751257040-1120163977"/><motyw id="m1333751257040-1120163977">Zdrada, Piekło, Szatan, Śmierć, Upiór</motyw>--- «Czy już umarłeś?» rzekłem drżąc od chłodu,/ 
+A on: «Nic nie wiem, odkąd tu drętwieję,/ 
+Co z moim ciałem na świecie się dzieje./ 
+Bo Ptolomea ma te przywileje,/ 
+Że często dusza wpada w nią niebacznie,/ 
+Nim Parka przędzę rwać dni naszych zacznie./ 
+A gdybyś chętniej zdjął lód z moich powiek,/ 
+Wiedz, że gdy zdrady dopuści się człowiek<pr><slowo_obce>Wiedz, że gdy zdrady dopuści się człowiek</slowo_obce> --- Z dziwną ścisłością logiczną oznaczony tu stosunek między karą a występkiem. Kto zdradza tego, kto nam ufa, tego dusza w tej chwili staje się łupem kar piekielnych, do których jeszcze za życia wyrzuty sumienia, żal bezowocny i pogarda samego siebie wcześnie przygotowują. A ponieważ wynikająca stąd rozpacz zdrajcy często pędzi go na rozdroże jeszcze dzikszych i nikczemniejszych namiętności, przeto się zdaje, że w jego ciele już nie ludzka dusza, ale szatan zajął gospodę.</pr>,/ 
+Ciało dyjabłu odkazuje dusza,/ 
+Który nim rządzi, włada najzupełniej,/ 
+Nim się czas kary cielesnej wypełni;/ 
+Dusza zaś wpada aż w tę chłodną studnię./ 
+Może wam jeszcze jawi się w swym ciele/ 
+Cień, co tu ze mną w tych lodach się rusza:/ 
+Patrz, Branka d'Oria! Już lat przeszło wiele<pr><slowo_obce>Branka d'Oria</slowo_obce> --- zabił w czasie obiadu teścia swego, Michała Zankę, którego wyżej spotkaliśmy w smolnym jeziorze. Morderca ten rodem był genueńczyk.</pr>,/ 
+Odkąd tu siedzi, wśród brył tego lodu;/ 
+Musiałeś kiedyś znać jego za młodu»./ 
+«Kłamiesz!» doń rzekłem «lub świadczysz obłudnie,/ 
+Bo Branka d'Oria nie umarł, on żyje/ 
+Jeszcze na ziemi, dobrze je i pije»./ 
+On odpowiedział: «W jamie <slowo_obce>Złych Tłumoków</slowo_obce>,/ 
+Tam gdzie widziałeś war smolnych potoków,/ 
+Mógł jeszcze nie być cień Sanchy Michała/ 
+W chwili, gdy Branka d'Oria szatanowi/ 
+Ustąpił swego pomieszkanie ciała/ 
+Jako wiernemu zdrady spólnikowi./ 
+Teraz gdym całą ufność w tobie złożył,/ 
+Otwórz me oczy!» Jam ich nie otworzył,/ 
+Bo względem jego nieszczerość tą razą/ 
+Nie była żadną szczerości obrazą./ 
+Wrogi cnót wszystkich, o genueńczyki!/ 
+Wstyd wam, pomiędzy takimi grzeszniki/ 
+Jednego ziomka waszego spotkałem,/ 
+Który, co czyny jego świadczyć muszą,/ 
+Na dno Kocytu pogrążył się duszą,/ 
+Gdy jeszcze życie kłamie swoim ciałem.<end id="e1333751257040-1120163977"/></strofa> 
+
+
+
+<naglowek_rozdzial>Pieśń XXXIV</naglowek_rozdzial> 
+
+
+
+
+<akap>(Krąg IX. 4. Judekka. Najwięksi zdrajcy: Judasz, Brutus, Kasjusz, Szatan. Powrót do światła.)</akap> 
+
+
+
+
+
+<strofa>«<wyroznienie>Vexilla regis prodeunt inferni</wyroznienie><pr><slowo_obce>Vexilla regis prodeunt inferni</slowo_obce> --- co znaczy: Oto zbliżają się sztandary piekielnego króla. Słowa te (początek hymnu śpiewanego w Wielki Piątek) w tekście oryginału są po łacinie.</pr>/ 
+Wprost ku nam! Jeśli widzisz za pomroką»/ 
+Mistrz mówił, «patrzaj, wytężaj twe oko»./ 
+Kiedy noc naszą półsferę zaczerni/ 
+Lub ciemny tuman przedmioty powleka,/ 
+Myślim, że widzim młyn wietrzny z daleka;/ 
+Tak, zdało mi się, oko me postrzegło/ 
+Stojącą jakąś budowę odległą./ 
+<begin id="b1333751380702-1720694009"/><motyw id="m1333751380702-1720694009">Piekło, Szatan, Zima</motyw>Wtenczas od wiatru szukając ochrony,/ 
+Stanąłem za mym wodzem, bo zasłony/ 
+Nie było innej; tam wśród wiecznej zimy,/ 
+Już byłem w miejscu, gdzie cienie widziałem<pr><slowo_obce>Już byłem w miejscu, gdzie cienie widziałem</slowo_obce> --- Poeci wchodzą już w ostatni oddział kręgu ostatniego, nazwany od Judasza: <wyroznienie>Judykka</wyroznienie>, gdzie karani są ci, co dopuścili się zdrady przeciw swoim dobroczyńcom. W środku tego oddziału i całego wszechświata, spotykamy czterech głównych zdrajców tego rodzaju: Disa czyli Lucyfera, naczelnika zbuntowanych aniołów, Judasza Iskariotę, Kasjusza i Brutusa.</pr>,/ 
+A co z przestrachem wpisuję w te rymy/ 
+Oblane lodem jak ździebło kryształem./ 
+Ten w lodach leży na wznak rozciągnięty./ 
+Ci prosto stoją, drudzy wspak na głowie,/ 
+Ten łukiem twarz swą nagina do pięty./ 
+Gdyśmy do tyla zaszli w to pustkowie,/ 
+Że już mojemu mistrzowi się zdało,/ 
+Pokazać szpetne, niegdyś piękne ciało,/ 
+Zwrócił się do mnie i mówił z powagą/ 
+«Oto Lucyfer, oto krąg przeklęty!/ 
+Teraz się cały uzbrajaj odwagą».<end id="e1333751380702-1720694009"/>/ 
+<begin id="b1315911559022-544613790"/><motyw id="m1315911559022-544613790">Strach</motyw>Jakiem ja wtedy osłabnął i skolał<pe><slowo_obce>skolał</slowo_obce> --- skołowaciał; był niby zamieniony w kołek.</pe>,/ 
+Mój czytelniku, zamilczeć bym wolał,/ 
+Pod piórem moje zastygłoby słowo./ 
+Jeśli najmniejszy masz kwiat wyobraźni,/ 
+Wyobraź sobie, jak dręczy i drażni/ 
+Stan, w jakim całą duszą się zawarłem,/ 
+Zda się, pół żyłem, na poły umarłem.<end id="e1315911559022-544613790"/>/ 
+<begin id="b1315911576539-159505112"/><motyw id="m1315911576539-159505112">Szatan</motyw>Król piekielnego państwa jakby kawał/ 
+Głazu nad lody pół piersią wystawał;/ 
+Jak wzrost mój dosyć ogromny, nie kłamię,/ 
+Tak wielkie było jego jedno ramię./ 
+Zważ, jaka całość mogła być niemała,/ 
+Zastosowana do tej części ciała./ 
+Jeśli tak piękny był, jak teraz szpetny,/ 
+Kiedy od Stwórcy odwrócił wzrok świetny,/ 
+Grzew, wszelki zakał musi iść od niego./ 
+Dziw! Głowa jego kształtu potwornego,/ 
+Na trzech obliczach razem osadzona:<pr><slowo_obce>głowa jego kształtu potwornego, na trzech obliczach razem osadzona</slowo_obce> --- Dis albo Lucyfer, pierwszy rodzic grzechu. Widzimy go tutaj jako ukaranego i jako narzędzie kary. Ma on trzy głowy, które podług wykładu komentatorów Dantego symbolem są trzech ówcześnie znajomych części świata, a razem oznaczają powszechność grzechu i panowanie Lucyfera na ziemi. Barwa czerwona ma oznaczać Europę (której mieszkańcy mają cerę rumianą), żółta Azję, czarna Afrykę. Inni rozumieją przez potrójną barwę jego twarzy gniew, łakomstwo i lenistwo; wierzch zaś, czyli czub głowy, ma oznaczać pychę, przez którą szczególnie Lucyfer panowanie swoje rozszerzył i ugruntował.</pr>/ 
+Pierwsza twarz była jako żar czerwona,/ 
+Dwie zaś policzkiem do pierwszej przypadły;/ 
+Obie na środku dwóch ramion usiadły,/ 
+Schodząc się z sobą aż pod wierzchem głowy;/ 
+Oblicze prawe biało-żółtej barwy,/ 
+Jaką mieszkaniec dziwi nadnilowy./ 
+Pod każdą twarzą tej potwornej larwy,/ 
+Jak z okrętowych żagli płachta jaka,/ 
+<begin id="b1333753870142-1969947272"/><motyw id="m1333753870142-1969947272">Wiatr</motyw>W miarę wielkości tak dziwnego ptaka,/ 
+Sterczą dwa skrzydła, lecz bez piór, bez pierza,/ 
+Całe skórzane jak u nietoperza./ 
+I nieustannym swych skrzydeł trzepotem/ 
+Wiał na trzy strony trzy wiatry z łoskotem,/ 
+Od których marzły kocytowe lody./ 
+<end id="e1333753870142-1969947272"/>Sześcioro oczu miał, z tych każde oko/ 
+Nie łzami, krwawą płakało posoką,/ 
+Która spływała jak łza na trzy brody./ 
+I trzech grzeszników przeżuwał jak zwierze,/ 
+Każdego żuła osobna paszczęka,/ 
+Jako cierlica drze lniane paździerze./ 
+Lecz ząb łagodniej kąsał porównany/ 
+Z szponami, jakie zadawały rany,/ 
+Zdało się, skóra aż do kości pęka.<end id="e1315911576539-159505112"/>/ 
+«Duch, co największe bodaj cierpi męki./ 
+Którego wewnątrz czarnej paszczy głowa,/ 
+A sam na zewnątrz jej nogami miota»/ 
+Mistrz mówił, «oto Judasz Iskariota!/ 
+Dwaj, co głowami zwisają z paszczęki,/ 
+Pierwszy to Brutus! choć ból rzeczywisty/ 
+Szarpie go, jednak milczy jak niemowa;/ 
+Drugi, patrz dobrze, to Kasjusz barczysty<pr><slowo_obce>Pierwszy to Brutus (...) Drugi (...) to Kasjusz barczysty</slowo_obce> --- Brutus i Kasjusz, zdrajcy i zabójcy Cezara. Miejsce, jakie im poeta przed innymi zdrajcami tu oznacza, objaśnia własnym przekonaniem: że cesarstwo rzymskie ugruntowane było z bezpośredniej woli bożej, ażeby świeckie wszechwładztwo i poszanowanie dla niego zaszczepić na ziemi. To przekonanie poeta wyraził nie tylko w osobnym traktacie swoim o monarchii, ale i uczynił je jedną z myśli przewodnich swej <tytul_dziela>Boskiej komedii</tytul_dziela>.</pr>./ 
+<begin id="b1315911737980-303128279"/><motyw id="m1315911737980-303128279">Potwór, Diabeł</motyw>Noc już powraca, teraz czas iść dalej,/ 
+Bośmy już w piekle wszystko oglądali»./ 
+Jak chciał, jam jemu na szyi zawisnął./ 
+W chwili, gdy potwór swe skrzydła roztacza,/ 
+Szybki jak piorun, co już spadł, nim błysnął./ 
+Mistrz się uczepił do boków kudłacza,/ 
+Z kudłów na kudły śliznął się pięściami,/ 
+Między ich runem spadał a lodami./ 
+Gdyśmy już doszli do miejsca, o cudo!/ 
+Tam, gdzie pod biodra rozszerza się udo,/ 
+Mój wódz, jak gdyby wpadł na fortel nowy,/ 
+Gdzie były nogi, przewrócił wierzch głowy<pr><slowo_obce>Mistrz się uczepił do boków kudłacza (...) przewrócił wierzch głowy</slowo_obce> --- Sięgając wyobraźnią naszą aż do środka ziemi, znajdujemy stosowne, że Wergiliusz ślizgając się po kudłach Lucyfera, w tym punkcie obrócił tam nogi, gdzie był wierzch głowy, chociaż bez przerwy w tymże samym kierunku się wspinał. Równie znajdujemy stosowne, że środek Lucyfera jest zarazem środkowym punktem ziemi i że poeci wchodząc po nim, gdy doszli przeciwległego punktu, widzieli stopy Lucyfera wywrócone do góry. Moralne znaczenie tego plastycznego obrazu wygląda dość przeźroczysto: człowiek, który swój błąd lub grzech poznał, a potem pragnie z niego się wyzwolić, musi, chcąc dojść do pożądanego celu, w zupełnie przeciwległym kierunku postępować naprzód. Musi złą zasadę mieć pod sobą, a od chwili, w której ją poznał, wchodzić coraz wyżej.</pr>,/ 
+Piął się po kudłach, aż trzęsły mną dreszcze,/ 
+Myśląc, że nazad idę w piekło jeszcze.<end id="e1315911737980-303128279"/>/ 
+«Trzymaj się dobrze, tą chyba drabiną»/ 
+Mówił wódz, dysząc z trudu i pośpiechu,/ 
+«Możemy zstąpić z tego gniazda grzechu»./ 
+<begin id="b1315911771815-1415539463"/><motyw id="m1315911771815-1415539463">Strach</motyw>I wkrótce wyszedł skały rozpadliną,/ 
+Stanął, odetchnął piersią i co żywo/ 
+Roztropną stopę podstawił, i na nią/ 
+Rad mnie wysadził nad samą otchłanią./ 
+Podniosłem oczy i widziałem dziwo!/ 
+Wspak przewróconą postać Lucyfera,/ 
+Rzekłbyś, nogami w powietrze się wpiera./ 
+Czy byłem w strachu, niechaj ludzie prości/ 
+Zgadną, co nigdy z takiej wysokości/ 
+Schodzić nie mogli!<end id="e1315911771815-1415539463"/> Gdym ochłonął z trwogi,/ 
+Mistrz mówił do mnie: «Teraz wstań na nogi;/ 
+Droga daleka, a ścieżki nużące,/ 
+Już gwiazdy nocne, wschodząc, płoszy słońce»./ 
+Tam droga, którą miałem iść na nowo,/ 
+Nie była prostą ulicą zamkową,/ 
+Raczej jaskinią, co ma wejście krzywe,/ 
+Ściany chropawe, a światło wątpliwe./ 
+<begin id="b1333754529600-1431201780"/><motyw id="m1333754529600-1431201780">Szatan, Obraz świata</motyw>«Mistrzu mój,» rzekłem, «gdym wart twego względu,/ 
+O przemów do mnie, wyprowadź mnie z błędu,/ 
+Gdzie są te lody? Ich grubą powłoką/ 
+Jak tam Lucyfer zapadł tak głęboko?/ 
+I jak to słońce, szybkość niesłychana,/ 
+Przebiegło drogę od wczoraj do rana<pr><slowo_obce>jak to słońce, szybkość niesłychana, przebiegło drogę od wczoraj do rana</slowo_obce> --- Nim poeci przeszli środkowy punkt ziemi, Wergiliusz mówił: ,,Noc się przybliża" potem powiada: ,,I słońce wschodzące płoszy gwiazdy". Ta pozorna sprzeczność daje się tak tłumaczyć: uprzednio mówiąc, myślał Wergiliusz o wschodniej, a teraz, gdy przeszedł punkt środkowy ziemi, myśli o zachodniej półkuli, to jest o antypodach, u których już ranek świta, kiedy u nas noc nadchodzi.</pr>?»/ 
+A mistrz: «Myśl twoja jeszcze za punkt lata,/ 
+<begin id="b1333754362850-1149113674"/><motyw id="m1333754362850-1149113674">Robak</motyw>Gdzie stoi szczecią potwora kudłata,/ 
+Robak, co wierci i toczy rdzeń świata./ 
+<end id="e1333754362850-1149113674"/>Ilem w dół schodził, byłeś tam o tyle,/ 
+Gdym się obrócił, przeszedłeś w tę chwilę/ 
+Punkt, do którego ze wszech stron zebrane/ 
+Wszystkie ciężary ciężą pociągane./ 
+Ty pod półkulę zstąpiłeś z kolei,/ 
+Co przeciwległą jest względem Judei,/ 
+Wielkiej pustyni, wśród której oazy/ 
+Poczęty człowiek żył i zmarł bez zmazy<pr><slowo_obce>poczęty człowiek żył i zmarł bez zmazy</slowo_obce> --- Jezus Chrystus, którego święte imię poeta w piekle tylko przez peryfrazę wspomina.</pr>./ 
+Gdy tam jest wieczór, tu nam ranek świeci:/ 
+Ten, po którego szczeblowałem<pe><slowo_obce>szczeblować</slowo_obce> --- wchodzić po stopniach (szczeblach).</pe> szczeci<pe><slowo_obce>szczeć</slowo_obce> --- szczecina, sierść, włosy.</pe>,/
+Jak stał, tak stoi wbity między lody./ 
+Strącony, tędy snadź on z nieba spadał<pr><slowo_obce>Strącony, tędy snadź on z nieba spadał</slowo_obce> --- Tu Dante wyobraża sobie, że Lucyfer na nieznajomą jeszcze za jego czasów stronę kuli ziemskiej i której jasnowidzeniem swojego geniuszu mógł się domyślać, spadł z nieba, że ląd stały przestraszony jego upadkiem, skrył się pod powierzchnię Oceanu i wynurzył się z głębokości jego na wschodniej półkuli, na której Góra Syjon tworzy punkt przeciwległy. Niemniej wszakże poruszyła się przestraszona ziemia w swoich wnętrznościach, kiedy Lucyfer spadając aż do jej środka sam sobą ją przewiercił. Część ziemi, jaką wyrzucił wiercąc ją sobą, utworzyła górę czyśćcową, ląd jedyny, jaki według pomysłu poety na owej półkuli się znajduje. W środku zaś ziemi jest piekło, z którego poeci w tej chwili wychodzą.</pr>,/ 
+Ląd, co z tej strony pokazał się wprzódy,/ 
+Ze strachu pasem otoczył się wody;/ 
+Od Lucyfera uciekając może,/ 
+Gdy bliżej naszej półkuli osiadał,/ 
+Zostawił tutaj to próżne wydroże./ 
+Jest tam nieznane miejsce dla nas obu<pr><slowo_obce>Jest tam nieznane miejsce dla nas obu</slowo_obce> --- Tu wskazuje górę czyśćcową.</pr>,/ 
+Stąd tak odlegle, wzniesione wysoko,/ 
+Jak cały przestwór Belzebuba grobu./ 
+<end id="e1333754529600-1431201780"/>Kędy jest, trudno go poznać na oko,/ 
+Chyba po szmerze małego strumyka<pr><slowo_obce>Chyba po szmerze małego strumyka</slowo_obce> --- Ponieważ na przeciwległej stronie kuli ziemskiej nie ma innego lądu prócz góry czyśćcowej, więc stamtąd spływać musi ten strumień korytem pochyłym i krętym. W pieśni XIV widzieliśmy, że łzy spadają przez szczeliny olbrzymiego posągu stojącego w grocie góry Idy. Możemy stąd wnioskować, że z łez dusz pokutujących na górze czyśćcowej utworzył się ten strumień.</pr>,/ 
+Który otworem przez siebie wyrżniętym,/ 
+Środkiem tej skały swe fale pomyka,/ 
+Płynąc korytem pochyłym i krętym»./ 
+Wódz i ja w otwór wstąpiliśmy ciasny;/ 
+Zniecierpliwieni oglądać świat jasny,/ 
+Nic się nie troszcząc o trud naszej jazdy,/ 
+Szliśmy bez przerwy, on pierwszy, ja drugi;/ 
+Przez otwór błysły niebios piękne smugi,/ 
+W końcu wychodząc, witaliśmy gwiazdy<pr><slowo_obce>wychodząc witaliśmy gwiazdy</slowo_obce> --- Każda część <tytul_dziela>Boskiej komedii</tytul_dziela> kończy się słowem: <wyroznienie>gwiazda</wyroznienie>, która tu jest symbolem naszego nieśmiertelnego ducha wchodzącego coraz wyżej do najwyższego dobra i wiekuistej prawdy, jakimi są: Niebo i Bóg! Myśl ta w tym symbolu ukryta głównym jest celem i ostatnim wyrazem tej arcy chrześcijańskiej epopei Dantowskiej.</pr>.</strofa> 
+
+
+</liryka_l></utwor>
\ No newline at end of file
diff --git a/apps/wiki/tests/xslt/auto/data/unknown_tag.html b/apps/wiki/tests/xslt/auto/data/unknown_tag.html
new file mode 100644 (file)
index 0000000..9ce58f8
--- /dev/null
@@ -0,0 +1 @@
+<span xmlns="http://www.w3.org/1999/xhtml" class="a unknown-tag" x-node="a" x-attr-value-idp14066432="c" x-attr-name-idp14066432="b" data-wlf-b="c">ala</span>
\ No newline at end of file
diff --git a/apps/wiki/tests/xslt/auto/data/unknown_tag.xml b/apps/wiki/tests/xslt/auto/data/unknown_tag.xml
new file mode 100644 (file)
index 0000000..91e05ac
--- /dev/null
@@ -0,0 +1 @@
+<a b="c">d</a>
\ No newline at end of file
index 211bb3a..0c73aed 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8
-from django.conf.urls.defaults import *
+from django.conf.urls import patterns, url
 
 
 urlpatterns = patterns('wiki.views',
index 0356d50..f959426 100644 (file)
@@ -1,6 +1,7 @@
 from datetime import datetime
 import os
 import logging
+import urllib
 
 from django.conf import settings
 from django.core.urlresolvers import reverse
@@ -12,8 +13,7 @@ from django.utils.encoding import smart_unicode
 from django.utils.formats import localize
 from django.utils.translation import ugettext as _
 from django.views.decorators.http import require_POST, require_GET
-from django.views.generic.simple import direct_to_template
-from django.shortcuts import get_object_or_404
+from django.shortcuts import get_object_or_404, render
 
 from catalogue.models import Book, Chunk
 import nice_diff
@@ -62,7 +62,7 @@ def editor(request, slug, chunk=None, template_name='wiki/document_details.html'
         del last_books[oldest_key]
     request.session['wiki_last_books'] = last_books
 
-    return direct_to_template(request, template_name, extra_context={
+    return render(request, template_name, {
         'chunk': chunk,
         'forms': {
             "text_save": forms.DocumentTextSaveForm(user=request.user, prefix="textsave"),
@@ -96,7 +96,7 @@ def editor_readonly(request, slug, chunk=None, template_name='wiki/document_deta
         del last_books[oldest_key]
     request.session['wiki_last_books'] = last_books
 
-    return direct_to_template(request, template_name, extra_context={
+    return render(request, template_name, {
         'chunk': chunk,
         'revision': revision,
         'readonly': True,
@@ -202,16 +202,16 @@ def gallery(request, directory):
     try:
         base_url = ''.join((
                         smart_unicode(settings.MEDIA_URL),
-                        smart_unicode(settings.FILEBROWSER_DIRECTORY),
+                        smart_unicode(settings.IMAGE_DIR),
                         smart_unicode(directory)))
 
         base_dir = os.path.join(
                     smart_unicode(settings.MEDIA_ROOT),
-                    smart_unicode(settings.FILEBROWSER_DIRECTORY),
+                    smart_unicode(settings.IMAGE_DIR),
                     smart_unicode(directory))
 
         def map_to_url(filename):
-            return "%s/%s" % (base_url, smart_unicode(filename))
+            return urllib.quote("%s/%s" % (base_url, smart_unicode(filename)))
 
         def is_image(filename):
             return os.path.splitext(f)[1].lower() in (u'.jpg', u'.jpeg', u'.png')
@@ -278,6 +278,9 @@ def history(request, chunk_id):
                 "date": localize(change.created_at),
                 "publishable": _("Publishable") + "\n" if change.publishable else "",
                 "tag": ',\n'.join(unicode(tag) for tag in change.tags.all()),
+                "published": _("Published") + ": " + \
+                    localize(change.publish_log.order_by('-book_record__timestamp')[0].book_record.timestamp) \
+                    if change.publish_log.exists() else "",
             })
     return JSONResponse(changes)
 
index d329c04..642c916 100644 (file)
@@ -25,7 +25,7 @@
 </div>
 
 <div id="header">
-    <h1><a href="{% url catalogue_document_list %}"><img alt="Home" src="{{STATIC_URL}}icons/go-home.png"/></a><a href="{% url catalogue_document_list %}">Strona<br/>główna</a></h1>
+    <h1><a href="{% url 'catalogue_document_list' %}"><img alt="Home" src="{{STATIC_URL}}icons/go-home.png"/></a><a href="{% url 'catalogue_document_list' %}">Strona<br/>główna</a></h1>
     <div id="tools">
         <a href="{{ REDMINE_URL }}projects/wl-publikacje/wiki/Pomoc" target="_blank">
         {% trans "Help" %}</a>
index db49d64..dcb62ec 100755 (executable)
@@ -11,7 +11,7 @@
                        data-enabled-when="1" disabled="disabled">{% trans "Revert document" %}</button>
                <button id="open-preview-button" disabled="disabled"
                        data-enabled-when="1"
-                       data-basehref="{% url wiki_img_editor_readonly document.slug %}">{% trans "View version" %}</button>
+                       data-basehref="{% url 'wiki_img_editor_readonly' document.slug %}">{% trans "View version" %}</button>
 
        </div>
     <div id="history-view">
index 518da6b..6a516f3 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8
-from django.conf.urls.defaults import *
+from django.conf.urls import patterns, url
 
 
 urlpatterns = patterns('wiki_img.views',
index 2b987dc..08a0a03 100644 (file)
@@ -3,13 +3,12 @@ import functools
 import logging
 logger = logging.getLogger("fnp.wiki_img")
 
-from django.views.generic.simple import direct_to_template
 from django.core.urlresolvers import reverse
 from wiki.helpers import (JSONResponse, JSONFormInvalid, JSONServerError,
                 ajax_require_permission)
 
 from django import http
-from django.shortcuts import get_object_or_404
+from django.shortcuts import get_object_or_404, render
 from django.views.decorators.http import require_GET, require_POST
 from django.conf import settings
 from django.utils.formats import localize
@@ -30,7 +29,7 @@ from django.views.decorators.cache import never_cache
 def editor(request, slug, template_name='wiki_img/document_details.html'):
     doc = get_object_or_404(Image, slug=slug)
 
-    return direct_to_template(request, template_name, extra_context={
+    return render(request, template_name, {
         'document': doc,
         'forms': {
             "text_save": ImageSaveForm(user=request.user, prefix="textsave"),
@@ -50,7 +49,7 @@ def editor_readonly(request, slug, template_name='wiki_img/document_details_read
     except (KeyError):
         raise Http404
 
-    return direct_to_template(request, template_name, extra_context={
+    return render(request, template_name, {
         'document': doc,
         'revision': revision,
         'readonly': True,
index 859b209..75a1b6f 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 859b209f96275dce7205f7c8011784d409a48de8
+Subproject commit 75a1b6f79da05e694d2528769cad5e964d761f34
diff --git a/manage.py b/manage.py
new file mode 100755 (executable)
index 0000000..dea56f5
--- /dev/null
+++ b/manage.py
@@ -0,0 +1,17 @@
+#!/usr/bin/env python
+import os
+import sys
+
+ROOT = os.path.dirname(os.path.abspath(__file__))
+sys.path = [
+    os.path.join(ROOT, 'apps'),
+    os.path.join(ROOT, 'lib'),
+    os.path.join(ROOT, 'lib/librarian'),
+] + sys.path
+
+if __name__ == "__main__":
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "redakcja.localsettings")
+
+    from django.core.management import execute_from_command_line
+
+    execute_from_command_line(sys.argv)
diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json
new file mode 100644 (file)
index 0000000..2242471
--- /dev/null
@@ -0,0 +1,369 @@
+{
+  "dependencies": {
+    "mocha": {
+      "version": "1.8.2",
+      "from": "mocha@",
+      "dependencies": {
+        "commander": {
+          "version": "0.6.1",
+          "from": "commander@0.6.1"
+        },
+        "growl": {
+          "version": "1.7.0",
+          "from": "growl@1.7.x"
+        },
+        "jade": {
+          "version": "0.26.3",
+          "from": "jade@0.26.3",
+          "dependencies": {
+            "mkdirp": {
+              "version": "0.3.0",
+              "from": "mkdirp@0.3.0"
+            }
+          }
+        },
+        "diff": {
+          "version": "1.0.2",
+          "from": "diff@1.0.2"
+        },
+        "debug": {
+          "version": "0.7.2",
+          "from": "debug@*"
+        },
+        "mkdirp": {
+          "version": "0.3.3",
+          "from": "mkdirp@0.3.3"
+        },
+        "ms": {
+          "version": "0.3.0",
+          "from": "ms@0.3.0"
+        }
+      }
+    },
+    "jsdom": {
+      "version": "0.5.4",
+      "from": "jsdom@",
+      "dependencies": {
+        "htmlparser": {
+          "version": "1.7.6",
+          "from": "htmlparser@1.x",
+          "resolved": "https://registry.npmjs.org/htmlparser/-/htmlparser-1.7.6.tgz"
+        },
+        "nwmatcher": {
+          "version": "1.3.1",
+          "from": "nwmatcher@>=1.3.1",
+          "resolved": "https://registry.npmjs.org/nwmatcher/-/nwmatcher-1.3.1.tgz"
+        },
+        "request": {
+          "version": "2.16.6",
+          "from": "request@2.x",
+          "resolved": "https://registry.npmjs.org/request/-/request-2.16.6.tgz",
+          "dependencies": {
+            "form-data": {
+              "version": "0.0.7",
+              "from": "form-data@~0.0.3",
+              "resolved": "https://registry.npmjs.org/form-data/-/form-data-0.0.7.tgz",
+              "dependencies": {
+                "combined-stream": {
+                  "version": "0.0.4",
+                  "from": "combined-stream@~0.0.4",
+                  "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-0.0.4.tgz",
+                  "dependencies": {
+                    "delayed-stream": {
+                      "version": "0.0.5",
+                      "from": "delayed-stream@0.0.5",
+                      "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz"
+                    }
+                  }
+                },
+                "async": {
+                  "version": "0.1.22",
+                  "from": "async@~0.1.9"
+                }
+              }
+            },
+            "mime": {
+              "version": "1.2.9",
+              "from": "mime@~1.2.7"
+            },
+            "hawk": {
+              "version": "0.10.2",
+              "from": "hawk@~0.10.2",
+              "resolved": "https://registry.npmjs.org/hawk/-/hawk-0.10.2.tgz",
+              "dependencies": {
+                "hoek": {
+                  "version": "0.7.1",
+                  "from": "hoek@0.7.x",
+                  "resolved": "https://registry.npmjs.org/hoek/-/hoek-0.7.1.tgz"
+                },
+                "boom": {
+                  "version": "0.3.7",
+                  "from": "boom@0.3.x",
+                  "resolved": "https://registry.npmjs.org/boom/-/boom-0.3.7.tgz"
+                },
+                "cryptiles": {
+                  "version": "0.1.3",
+                  "from": "cryptiles@0.1.x",
+                  "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-0.1.3.tgz"
+                },
+                "sntp": {
+                  "version": "0.1.4",
+                  "from": "sntp@0.1.x",
+                  "resolved": "https://registry.npmjs.org/sntp/-/sntp-0.1.4.tgz"
+                }
+              }
+            },
+            "node-uuid": {
+              "version": "1.4.0",
+              "from": "node-uuid@~1.4.0"
+            },
+            "cookie-jar": {
+              "version": "0.2.0",
+              "from": "cookie-jar@~0.2.0",
+              "resolved": "https://registry.npmjs.org/cookie-jar/-/cookie-jar-0.2.0.tgz"
+            },
+            "aws-sign": {
+              "version": "0.2.0",
+              "from": "aws-sign@~0.2.0",
+              "resolved": "https://registry.npmjs.org/aws-sign/-/aws-sign-0.2.0.tgz"
+            },
+            "oauth-sign": {
+              "version": "0.2.0",
+              "from": "oauth-sign@~0.2.0",
+              "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.2.0.tgz"
+            },
+            "forever-agent": {
+              "version": "0.2.0",
+              "from": "forever-agent@~0.2.0",
+              "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.2.0.tgz"
+            },
+            "tunnel-agent": {
+              "version": "0.2.0",
+              "from": "tunnel-agent@~0.2.0",
+              "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.2.0.tgz"
+            },
+            "json-stringify-safe": {
+              "version": "3.0.0",
+              "from": "json-stringify-safe@~3.0.0",
+              "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-3.0.0.tgz"
+            },
+            "qs": {
+              "version": "0.5.5",
+              "from": "qs@~0.5.4",
+              "resolved": "https://registry.npmjs.org/qs/-/qs-0.5.5.tgz"
+            }
+          }
+        },
+        "cssom": {
+          "version": "0.2.5",
+          "from": "cssom@0.2.x"
+        },
+        "cssstyle": {
+          "version": "0.2.3",
+          "from": "cssstyle@>=0.2.3"
+        },
+        "contextify": {
+          "version": "0.1.5",
+          "from": "contextify@~0.1.3",
+          "resolved": "https://registry.npmjs.org/contextify/-/contextify-0.1.5.tgz",
+          "dependencies": {
+            "bindings": {
+              "version": "1.1.0",
+              "from": "bindings@*",
+              "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.1.0.tgz"
+            }
+          }
+        }
+      }
+    },
+    "jquery": {
+      "version": "1.8.3",
+      "from": "jquery@",
+      "dependencies": {
+        "jsdom": {
+          "version": "0.5.4",
+          "from": "jsdom@",
+          "dependencies": {
+            "htmlparser": {
+              "version": "1.7.6",
+              "from": "htmlparser@1.x",
+              "resolved": "https://registry.npmjs.org/htmlparser/-/htmlparser-1.7.6.tgz"
+            },
+            "nwmatcher": {
+              "version": "1.3.1",
+              "from": "nwmatcher@>=1.3.1",
+              "resolved": "https://registry.npmjs.org/nwmatcher/-/nwmatcher-1.3.1.tgz"
+            },
+            "request": {
+              "version": "2.16.6",
+              "from": "request@2.x",
+              "resolved": "https://registry.npmjs.org/request/-/request-2.16.6.tgz",
+              "dependencies": {
+                "form-data": {
+                  "version": "0.0.7",
+                  "from": "form-data@~0.0.3",
+                  "resolved": "https://registry.npmjs.org/form-data/-/form-data-0.0.7.tgz",
+                  "dependencies": {
+                    "combined-stream": {
+                      "version": "0.0.4",
+                      "from": "combined-stream@~0.0.4",
+                      "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-0.0.4.tgz",
+                      "dependencies": {
+                        "delayed-stream": {
+                          "version": "0.0.5",
+                          "from": "delayed-stream@0.0.5",
+                          "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz"
+                        }
+                      }
+                    },
+                    "async": {
+                      "version": "0.1.22",
+                      "from": "async@~0.1.9"
+                    }
+                  }
+                },
+                "mime": {
+                  "version": "1.2.9",
+                  "from": "mime@~1.2.7"
+                },
+                "hawk": {
+                  "version": "0.10.2",
+                  "from": "hawk@~0.10.2",
+                  "resolved": "https://registry.npmjs.org/hawk/-/hawk-0.10.2.tgz",
+                  "dependencies": {
+                    "hoek": {
+                      "version": "0.7.1",
+                      "from": "hoek@0.7.x",
+                      "resolved": "https://registry.npmjs.org/hoek/-/hoek-0.7.1.tgz"
+                    },
+                    "boom": {
+                      "version": "0.3.7",
+                      "from": "boom@0.3.x",
+                      "resolved": "https://registry.npmjs.org/boom/-/boom-0.3.7.tgz"
+                    },
+                    "cryptiles": {
+                      "version": "0.1.3",
+                      "from": "cryptiles@0.1.x",
+                      "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-0.1.3.tgz"
+                    },
+                    "sntp": {
+                      "version": "0.1.4",
+                      "from": "sntp@0.1.x",
+                      "resolved": "https://registry.npmjs.org/sntp/-/sntp-0.1.4.tgz"
+                    }
+                  }
+                },
+                "node-uuid": {
+                  "version": "1.4.0",
+                  "from": "node-uuid@~1.4.0"
+                },
+                "cookie-jar": {
+                  "version": "0.2.0",
+                  "from": "cookie-jar@~0.2.0",
+                  "resolved": "https://registry.npmjs.org/cookie-jar/-/cookie-jar-0.2.0.tgz"
+                },
+                "aws-sign": {
+                  "version": "0.2.0",
+                  "from": "aws-sign@~0.2.0",
+                  "resolved": "https://registry.npmjs.org/aws-sign/-/aws-sign-0.2.0.tgz"
+                },
+                "oauth-sign": {
+                  "version": "0.2.0",
+                  "from": "oauth-sign@~0.2.0",
+                  "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.2.0.tgz"
+                },
+                "forever-agent": {
+                  "version": "0.2.0",
+                  "from": "forever-agent@~0.2.0",
+                  "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.2.0.tgz"
+                },
+                "tunnel-agent": {
+                  "version": "0.2.0",
+                  "from": "tunnel-agent@~0.2.0",
+                  "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.2.0.tgz"
+                },
+                "json-stringify-safe": {
+                  "version": "3.0.0",
+                  "from": "json-stringify-safe@~3.0.0",
+                  "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-3.0.0.tgz"
+                },
+                "qs": {
+                  "version": "0.5.5",
+                  "from": "qs@~0.5.4",
+                  "resolved": "https://registry.npmjs.org/qs/-/qs-0.5.5.tgz"
+                }
+              }
+            },
+            "cssom": {
+              "version": "0.2.5",
+              "from": "cssom@0.2.x"
+            },
+            "cssstyle": {
+              "version": "0.2.3",
+              "from": "cssstyle@>=0.2.3"
+            },
+            "contextify": {
+              "version": "0.1.5",
+              "from": "contextify@~0.1.3",
+              "resolved": "https://registry.npmjs.org/contextify/-/contextify-0.1.5.tgz",
+              "dependencies": {
+                "bindings": {
+                  "version": "1.1.0",
+                  "from": "bindings@*",
+                  "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.1.0.tgz"
+                }
+              }
+            }
+          }
+        },
+        "htmlparser": {
+          "version": "1.7.6",
+          "from": "htmlparser@1.x",
+          "resolved": "https://registry.npmjs.org/htmlparser/-/htmlparser-1.7.6.tgz"
+        },
+        "xmlhttprequest": {
+          "version": "1.4.2",
+          "from": "xmlhttprequest@~1.4.2"
+        },
+        "location": {
+          "version": "0.0.1",
+          "from": "location@0.0.1",
+          "resolved": "https://registry.npmjs.org/location/-/location-0.0.1.tgz"
+        },
+        "navigator": {
+          "version": "1.0.1",
+          "from": "navigator@~1.0.1",
+          "resolved": "https://registry.npmjs.org/navigator/-/navigator-1.0.1.tgz"
+        },
+        "contextify": {
+          "version": "0.1.5",
+          "from": "contextify@~0.1.3",
+          "resolved": "https://registry.npmjs.org/contextify/-/contextify-0.1.5.tgz",
+          "dependencies": {
+            "bindings": {
+              "version": "1.1.0",
+              "from": "bindings@*",
+              "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.1.0.tgz"
+            }
+          }
+        }
+      }
+    },
+    "pretty-data": {
+      "version": "0.40.0",
+      "from": "pretty-data@"
+    },
+    "ansidiff": {
+      "version": "1.0.0",
+      "from": "ansidiff@",
+      "resolved": "https://registry.npmjs.org/ansidiff/-/ansidiff-1.0.0.tgz",
+      "dependencies": {
+        "diff": {
+          "version": "1.0.4",
+          "from": "diff@1.0",
+          "resolved": "https://registry.npmjs.org/diff/-/diff-1.0.4.tgz"
+        }
+      }
+    }
+  }
+}
diff --git a/package.json b/package.json
new file mode 100644 (file)
index 0000000..2a4dbd3
--- /dev/null
@@ -0,0 +1,6 @@
+{
+"engines": {
+  "node": "0.8.x",
+  "npm": ">=1.1.2"
+}
+}
\ No newline at end of file
index 509022e..d825589 100644 (file)
@@ -20,9 +20,11 @@ STATIC_ROOT = '/srv/redakcja/static/'
 MEDIA_ROOT = '/srv/redakcja/media/'
 
 # Subdirectory of MEDIA_ROOT containing images
-IMAGE_DIR = 'images'
+IMAGE_DIR = 'images/'
 
 CAS_SERVER_URL = 'http://logowanie.nowoczesnapolska.org.pl/cas/'
+CAS_VERSION = '1'
+
 REDMINE_URL = 'http://redmine.nowoczesnapolska.org.pl/'
 DEBUG = True
 MAINTENANCE_MODE = False
@@ -32,3 +34,5 @@ APICLIENT_WL_CONSUMER_KEY = None
 APICLIENT_WL_CONSUMER_SECRET = None
 
 CELERY_ALWAYS_EAGER = False
+
+SECRET_KEY = ''
diff --git a/redakcja/manage.py b/redakcja/manage.py
deleted file mode 100755 (executable)
index 7647675..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env python
-from django.core.management import execute_manager
-
-import logging
-import sys
-import os
-
-logging.basicConfig(level=logging.DEBUG, stream=sys.stderr)
-
-PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
-sys.path += [os.path.realpath(os.path.join(*x)) for x in (
-        (PROJECT_ROOT, '..'),
-        (PROJECT_ROOT, '..', 'apps'),
-        (PROJECT_ROOT, '..', 'lib/librarian'),
-        (PROJECT_ROOT, '..', 'lib')
-)]
-
-try:
-    import localsettings  # Assumed to be in the same directory.
-except ImportError:
-    logging.exception("Failed to import settings")
-    import sys
-    sys.exit(1)
-
-if __name__ == "__main__":
-    execute_manager(localsettings)
index 600533b..4d4fe8f 100644 (file)
@@ -30,3 +30,8 @@ try:
 except (ImportError,), exc:
     raise
 
+
+try:
+    from redakcja.localsettings import *
+except ImportError:
+    pass
index cc7765e..735743d 100644 (file)
@@ -40,7 +40,11 @@ USE_L10N = True
 # Absolute path to the directory that holds media.
 # Example: "/home/media/media.lawrence.com/"
 MEDIA_ROOT = PROJECT_ROOT + '/media/dynamic'
-STATIC_ROOT = PROJECT_ROOT + '/static/'
+STATIC_ROOT = PROJECT_ROOT + '/../static/'
+
+STATICFILES_DIRS = [
+    PROJECT_ROOT + '/static/'
+]
 
 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
 # trailing slash if there is a path component (optional in other cases).
@@ -48,13 +52,6 @@ STATIC_ROOT = PROJECT_ROOT + '/static/'
 MEDIA_URL = '/media/dynamic/'
 STATIC_URL = '/media/static/'
 
-# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
-# trailing slash.
-# Examples: "http://foo.com/media/", "/media/".
-ADMIN_MEDIA_PREFIX = '/media/admin-media/'
-
-# Make this unique, and don't share it with anybody.
-SECRET_KEY = 'ife@x^_lak+x84=lxtr!-ur$5g$+s6xt85gbbm@e_fk6q3r8=+'
 SESSION_COOKIE_NAME = "redakcja_sessionid"
 
 # List of callables that know how to import templates from various sources.
@@ -77,6 +74,7 @@ MIDDLEWARE_CLASSES = (
     'django.middleware.common.CommonMiddleware',
     'django.middleware.csrf.CsrfViewMiddleware',
     'django.contrib.sessions.middleware.SessionMiddleware',
+    'django.contrib.messages.middleware.MessageMiddleware',
 
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django_cas.middleware.CASMiddleware',
@@ -103,21 +101,24 @@ INSTALLED_APPS = (
     'django.contrib.auth',
     'django.contrib.contenttypes',
     'django.contrib.sessions',
+    'django.contrib.messages',
+    'django.contrib.staticfiles',
     'django.contrib.sites',
     'django.contrib.admin',
     'django.contrib.admindocs',
     'django.contrib.comments',
 
-    'compress',
     'south',
     'sorl.thumbnail',
-    'filebrowser',
     'pagination',
     'gravatar',
     'djcelery',
     'djkombu',
+    'fileupload',
+    'pipeline',
 
     'catalogue',
+    'cover',
     'dvcs',
     'wiki',
     'wiki_img',
@@ -131,15 +132,9 @@ LOGIN_REDIRECT_URL = '/documents/user'
 CAS_USER_ATTRS_MAP = {
     'email': 'email', 'firstname': 'first_name', 'lastname': 'last_name'}
 
-
-FILEBROWSER_URL_FILEBROWSER_MEDIA = STATIC_URL + 'filebrowser/'
-FILEBROWSER_DIRECTORY = 'images/'
-FILEBROWSER_ADMIN_VERSIONS = []
-FILEBROWSER_VERSIONS_BASEDIR = 'thumbnails/'
-FILEBROWSER_DEFAULT_ORDER = "path_relative"
-
 # REPOSITORY_PATH = '/Users/zuber/Projekty/platforma/files/books'
-IMAGE_DIR = 'images'
+
+IMAGE_DIR = 'images/'
 
 
 import djcelery
index ddd0aec..483e0ed 100644 (file)
@@ -1,5 +1,18 @@
+STATICFILES_FINDERS = (
+    'django.contrib.staticfiles.finders.FileSystemFinder',
+    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
+#    'django.contrib.staticfiles.finders.DefaultStorageFinder',
+)
+
+
+STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
+PIPELINE_CSS_COMPRESSOR = None
+PIPELINE_JS_COMPRESSOR = None
+PIPELINE_STORAGE = 'pipeline.storage.PipelineFinderStorage'
+
+
 # CSS and JS files to compress
-COMPRESS_CSS = {
+PIPELINE_CSS = {
     'detail': {
          'source_filenames': (
             'css/master.css',
@@ -12,17 +25,30 @@ COMPRESS_CSS = {
             'css/imgareaselect-default.css', #img!
             'css/dialogs.css',
         ),
-        'output_filename': 'compressed/detail_styles_?.css',
+        'output_filename': 'compressed/detail_styles.css',
     },
     'catalogue': {
         'source_filenames': (
             'css/filelist.css',
         ),
-        'output_filename': 'compressed/catalogue_styles_?.css',
-     }
+        'output_filename': 'compressed/catalogue_styles.css',
+     },
+     'book': {
+        'source_filenames': (
+            'css/book.css',
+        ),
+        'output_filename': 'compressed/book.css',
+    },
+    'book_list': {
+        'source_filenames': (
+            'contextmenu/jquery.contextMenu.css',
+            'css/book_list.css',
+        ),
+        'output_filename': 'compressed/book_list.css',
+    },
 }
 
-COMPRESS_JS = {
+PIPELINE_JS = {
     # everything except codemirror
     'detail': {
         'source_filenames': (
@@ -57,7 +83,7 @@ COMPRESS_JS = {
                 'js/wiki/view_search.js',
                 'js/wiki/view_column_diff.js',
         ),
-        'output_filename': 'compressed/detail_scripts_?.js',
+        'output_filename': 'compressed/detail_scripts.js',
      },
     'wiki_img': {
         'source_filenames': (
@@ -89,7 +115,7 @@ COMPRESS_JS = {
                 'js/wiki/view_history.js',
                 'js/wiki/view_column_diff.js',
         ),
-        'output_filename': 'compressed/detail_img_scripts_?.js',
+        'output_filename': 'compressed/detail_img_scripts.js',
      },
     'catalogue': {
         'source_filenames': (
@@ -97,13 +123,23 @@ COMPRESS_JS = {
                 'js/slugify.js',
                 'email_mangler/email_mangler.js',
         ),
-        'output_filename': 'compressed/catalogue_scripts_?.js',
-     }
+        'output_filename': 'compressed/catalogue_scripts.js',
+     },
+     'book': {
+        'source_filenames': (
+            'js/book_text/jquery.eventdelegation.js',
+            'js/book_text/jquery.scrollto.js',
+            'js/book_text/jquery.highlightfade.js',
+            'js/book_text/book.js',
+        ),
+        'output_filename': 'compressed/book.js',
+         },
+    'book_list': {
+        'source_filenames': (
+            'contextmenu/jquery.ui.position.js',
+            'contextmenu/jquery.contextMenu.js',
+            'js/catalogue/book_list.js',
+        ),
+        'output_filename': 'compressed/book_list.js',
+    }
 }
-
-COMPRESS = True
-COMPRESS_CSS_FILTERS = None
-COMPRESS_JS_FILTERS = None
-COMPRESS_AUTO = True
-COMPRESS_VERSION = True
-COMPRESS_VERSIONING = 'compress.versioning.hash.MD5Versioning'
diff --git a/redakcja/settings/integration_test.py b/redakcja/settings/integration_test.py
new file mode 100644 (file)
index 0000000..ba477bb
--- /dev/null
@@ -0,0 +1,7 @@
+from redakcja.settings.test import *
+
+NOSE_ARGS = ()
+
+STATIC_ROOT_SYMLINK = os.path.dirname(STATIC_ROOT) + '_test'
+STATICFILES_DIRS.append(STATIC_ROOT_SYMLINK)
+
index 5fbd59f..d667ddd 100644 (file)
@@ -20,13 +20,14 @@ DATABASES = {
 import tempfile
 
 CATALOGUE_REPO_PATH = tempfile.mkdtemp(prefix='redakcja-repo')
+MEDIA_ROOT = tempfile.mkdtemp(prefix='media-root')
 USE_CELERY = False
 
 INSTALLED_APPS += ('django_nose', 'dvcs.tests')
 
 TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
-TEST_MODULES = ('catalogue', 'dvcs.tests', 'wiki', 'toolbar')
-COVER_APPS = ('catalogue', 'dvcs', 'wiki', 'toolbar')
+TEST_MODULES = ('catalogue', 'cover', 'dvcs.tests', 'wiki', 'toolbar')
+COVER_APPS = ('catalogue', 'cover', 'dvcs', 'wiki', 'toolbar')
 NOSE_ARGS = (
     '--tests=' + ','.join(TEST_MODULES),
     '--cover-package=' + ','.join(COVER_APPS),
@@ -35,3 +36,5 @@ NOSE_ARGS = (
     '--with-xunit',
     '--with-xcoverage',
 )
+
+SECRET_KEY = "not-so-secret"
diff --git a/redakcja/static/contextmenu/images/cut.png b/redakcja/static/contextmenu/images/cut.png
new file mode 100755 (executable)
index 0000000..f215d6f
Binary files /dev/null and b/redakcja/static/contextmenu/images/cut.png differ
diff --git a/redakcja/static/contextmenu/images/door.png b/redakcja/static/contextmenu/images/door.png
new file mode 100755 (executable)
index 0000000..369fc46
Binary files /dev/null and b/redakcja/static/contextmenu/images/door.png differ
diff --git a/redakcja/static/contextmenu/images/page_white_copy.png b/redakcja/static/contextmenu/images/page_white_copy.png
new file mode 100755 (executable)
index 0000000..a9f31a2
Binary files /dev/null and b/redakcja/static/contextmenu/images/page_white_copy.png differ
diff --git a/redakcja/static/contextmenu/images/page_white_delete.png b/redakcja/static/contextmenu/images/page_white_delete.png
new file mode 100755 (executable)
index 0000000..af1ecaf
Binary files /dev/null and b/redakcja/static/contextmenu/images/page_white_delete.png differ
diff --git a/redakcja/static/contextmenu/images/page_white_edit.png b/redakcja/static/contextmenu/images/page_white_edit.png
new file mode 100755 (executable)
index 0000000..b93e776
Binary files /dev/null and b/redakcja/static/contextmenu/images/page_white_edit.png differ
diff --git a/redakcja/static/contextmenu/images/page_white_paste.png b/redakcja/static/contextmenu/images/page_white_paste.png
new file mode 100755 (executable)
index 0000000..5b2cbb3
Binary files /dev/null and b/redakcja/static/contextmenu/images/page_white_paste.png differ
diff --git a/redakcja/static/contextmenu/index.html b/redakcja/static/contextmenu/index.html
new file mode 100644 (file)
index 0000000..f099c95
--- /dev/null
@@ -0,0 +1,200 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\r
+\r
+<html xmlns="http://www.w3.org/1999/xhtml">\r
+\r
+       <head>\r
+               <title>jQuery Context Menu Plugin Demo</title>\r
+               <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />\r
+               \r
+               <style type="text/css">\r
+                       BODY,\r
+                       HTML {\r
+                               padding: 0px;\r
+                               margin: 0px;\r
+                       }\r
+                       BODY {\r
+                               font-family: Verdana, Arial, Helvetica, sans-serif;\r
+                               font-size: 11px;\r
+                               background: #FFF;\r
+                               padding: 15px;\r
+                       }\r
+                       \r
+                       H1 {\r
+                               font-family: Georgia, serif;\r
+                               font-size: 20px;\r
+                               font-weight: normal;\r
+                       }\r
+                       \r
+                       H2 {\r
+                               font-family: Georgia, serif;\r
+                               font-size: 16px;\r
+                               font-weight: normal;\r
+                               margin: 0px 0px 10px 0px;\r
+                       }\r
+                       \r
+                       #myDiv {\r
+                               width: 150px;\r
+                               border: solid 1px #2AA7DE;\r
+                               background: #6CC8EF;\r
+                               text-align: center;\r
+                               padding: 4em .5em;\r
+                               margin: 1em;\r
+                               float: left;\r
+                       }\r
+                       \r
+                       #myList {\r
+                               margin: 1em;\r
+                               float: left;\r
+                       }\r
+                       \r
+                       #myList UL {\r
+                               padding: 0px;\r
+                               margin: 0em 1em;\r
+                       }\r
+                       \r
+                       #myList LI {\r
+                               width: 100px;\r
+                               border: solid 1px #2AA7DE;\r
+                               background: #6CC8EF;\r
+                               padding: 5px 5px;\r
+                               margin: 2px 0px;\r
+                               list-style: none;\r
+                       }\r
+                       \r
+                       #options {\r
+                               clear: left;\r
+                       }\r
+                       \r
+                       #options INPUT {\r
+                               font-family: Verdana, Arial, Helvetica, sans-serif;\r
+                               font-size: 11px;\r
+                               width: 150px;\r
+                       }\r
+                       \r
+               </style>                \r
+               \r
+               <script src="../js/lib/jquery-1.7.2.min.js" type="text/javascript"></script>\r
+               <script src="jquery.contextMenu.js" type="text/javascript"></script>\r
+               <link href="jquery.contextMenu.css" rel="stylesheet" type="text/css" />\r
+               \r
+               <script type="text/javascript">\r
+                       \r
+                       $(document).ready( function() {\r
+                               \r
+                               // Show menu when #myDiv is clicked\r
+                               $("#myDiv").contextMenu({\r
+                                       menu: 'myMenu'\r
+                               },\r
+                                       function(action, el, pos) {\r
+                                       alert(\r
+                                               'Action: ' + action + '\n\n' +\r
+                                               'Element ID: ' + $(el).attr('id') + '\n\n' + \r
+                                               'X: ' + pos.x + '  Y: ' + pos.y + ' (relative to element)\n\n' + \r
+                                               'X: ' + pos.docX + '  Y: ' + pos.docY+ ' (relative to document)'\r
+                                               );\r
+                               });\r
+                               \r
+                               // Show menu when a list item is clicked\r
+                               $("#myList UL LI").contextMenu({\r
+                                       menu: 'myMenu'\r
+                               }, function(action, el, pos) {\r
+                                       alert(\r
+                                               'Action: ' + action + '\n\n' +\r
+                                               'Element text: ' + $(el).text() + '\n\n' + \r
+                                               'X: ' + pos.x + '  Y: ' + pos.y + ' (relative to element)\n\n' + \r
+                                               'X: ' + pos.docX + '  Y: ' + pos.docY+ ' (relative to document)'\r
+                                               );\r
+                               });\r
+                               \r
+                               // Disable menus\r
+                               $("#disableMenus").click( function() {\r
+                                       $('#myDiv, #myList UL LI').disableContextMenu();\r
+                                       $(this).attr('disabled', true);\r
+                                       $("#enableMenus").attr('disabled', false);\r
+                               });\r
+                               \r
+                               // Enable menus\r
+                               $("#enableMenus").click( function() {\r
+                                       $('#myDiv, #myList UL LI').enableContextMenu();\r
+                                       $(this).attr('disabled', true);\r
+                                       $("#disableMenus").attr('disabled', false);\r
+                               });\r
+                               \r
+                               // Disable cut/copy\r
+                               $("#disableItems").click( function() {\r
+                                       $('#myMenu').disableContextMenuItems('#cut,#copy');\r
+                                       $(this).attr('disabled', true);\r
+                                       $("#enableItems").attr('disabled', false);\r
+                               });\r
+                               \r
+                               // Enable cut/copy\r
+                               $("#enableItems").click( function() {\r
+                                       $('#myMenu').enableContextMenuItems('#cut,#copy');\r
+                                       $(this).attr('disabled', true);\r
+                                       $("#disableItems").attr('disabled', false);\r
+                               });                             \r
+                               \r
+                       });\r
+                       \r
+               </script>\r
+       </head>\r
+       \r
+       <body>\r
+               \r
+               <h1>jQuery Context Menu Plugin Demo</h1>\r
+               <p>\r
+                       This plugin lets you add context menu functionality to your web applications.\r
+               </p>\r
+               \r
+               <p>\r
+                       <strong>Tip:</strong> Try using your keyboard to make a selection.\r
+               </p>\r
+               \r
+               <p>\r
+                       <a href="http://abeautifulsite.net/2008/09/jquery-context-menu-plugin/">Back to the project page</a>\r
+               </p>\r
+               \r
+               <h2>Demo</h2>\r
+               \r
+               <div id="myDiv">\r
+                       Right click to view the context menu\r
+               </div>\r
+               \r
+               <div id="myList">\r
+                       <ul>\r
+                               <li>Item 1</li>\r
+                               <li>Item 2</li>\r
+                               <li>Item 3</li>\r
+                               <li>Item 4</li>\r
+                               <li>Item 5</li>\r
+                               <li>Item 6</li>\r
+                       </ul>\r
+               </div>\r
+               \r
+               <div id="options">\r
+                       <p>\r
+                               <input type="button" id="disableItems" value="Disable Cut/Copy" />\r
+                               <input type="button" id="enableItems" value="Enable Cut/Copy" disabled="disabled" />\r
+                       </p>\r
+                       \r
+                       <p>\r
+                               <input type="button" id="disableMenus" value="Disable Context Menus" />\r
+                               <input type="button" id="enableMenus" value="Enable Context Menus" disabled="disabled" />\r
+                       </p>\r
+               </div>\r
+               \r
+               <ul id="myMenu" class="contextMenu">\r
+                       <li class="edit"><a href="#edit">Edit</a></li>\r
+                       <li class="cut separator"><a href="#cut">Cut</a>\r
+                         <ul>\r
+                           <li class="pe"><a href="#pe">Pe</a></li>\r
+                         </ul>\r
+                       </li>\r
+                       <li class="copy"><a href="#copy">Copy</a></li>\r
+                       <li class="paste"><a href="#paste">Paste</a></li>\r
+                       <li class="delete"><a href="#delete">Delete</a></li>\r
+                       <li class="quit separator"><a href="#quit">Quit</a></li>\r
+               </ul>\r
+               \r
+       </body>\r
+</html>\r
diff --git a/redakcja/static/contextmenu/jquery.contextMenu.css b/redakcja/static/contextmenu/jquery.contextMenu.css
new file mode 100755 (executable)
index 0000000..46af248
--- /dev/null
@@ -0,0 +1,134 @@
+/*!\r
+ * jQuery contextMenu - Plugin for simple contextMenu handling\r
+ *\r
+ * Version: 1.5.13\r
+ *\r
+ * Authors: Rodney Rehm, Addy Osmani (patches for FF)\r
+ * Web: http://medialize.github.com/jQuery-contextMenu/\r
+ *\r
+ * Licensed under\r
+ *   MIT License http://www.opensource.org/licenses/mit-license\r
+ *   GPL v3 http://opensource.org/licenses/GPL-3.0\r
+ *\r
+ */\r
+\r
+.context-menu-list {\r
+    margin:0; \r
+    padding:0;\r
+    \r
+    min-width: 120px;\r
+    max-width: 250px;\r
+    display: inline-block;\r
+    position: absolute;\r
+    list-style-type: none;\r
+    \r
+    border: 1px solid #DDD;\r
+    background: #EEE;\r
+    \r
+    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\r
+       -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\r
+        -ms-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\r
+         -o-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\r
+            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\r
+    \r
+    font-family: Verdana, Arial, Helvetica, sans-serif;\r
+    font-size: 11px;\r
+}\r
+\r
+.context-menu-item {\r
+    padding: 2px 2px 2px 24px;\r
+    background-color: #EEE;\r
+    position: relative;\r
+    -moz-user-select: -moz-none;\r
+}\r
+\r
+.context-menu-separator {\r
+    padding-bottom:0;\r
+    border-bottom: 1px solid #DDD;\r
+}\r
+\r
+.context-menu-item > label {\r
+    -moz-user-select: text;\r
+}\r
+\r
+.context-menu-item.hover {\r
+    cursor: pointer;\r
+    background-color: #39F;\r
+}\r
+\r
+.context-menu-item.disabled {\r
+    color: #666;\r
+}\r
+\r
+.context-menu-input.hover,\r
+.context-menu-item.disabled.hover {\r
+    cursor: default;\r
+    background-color: #EEE;\r
+}\r
+\r
+.context-menu-submenu:after {\r
+    content: ">";\r
+    color: #666;\r
+    position: absolute;\r
+    top: 0;\r
+    right: 3px;\r
+    z-index: 1;\r
+}\r
+\r
+/* icons\r
+    #protip:\r
+    In case you want to use sprites for icons (which I would suggest you do) have a look at\r
+    http://css-tricks.com/13224-pseudo-spriting/ to get an idea of how to implement \r
+    .context-menu-item.icon:before {}\r
+ */\r
+.context-menu-item.icon { min-height: 18px; background-repeat: no-repeat; background-position: 4px 2px; }\r
+.context-menu-item.icon-edit { background-image: url(images/page_white_edit.png); }\r
+.context-menu-item.icon-cut { background-image: url(images/cut.png); }\r
+.context-menu-item.icon-copy { background-image: url(images/page_white_copy.png); }\r
+.context-menu-item.icon-paste { background-image: url(images/page_white_paste.png); }\r
+.context-menu-item.icon-delete { background-image: url(images/page_white_delete.png); }\r
+.context-menu-item.icon-quit { background-image: url(images/door.png); }\r
+\r
+/* vertically align inside labels */\r
+.context-menu-input > label > * { vertical-align: top; }\r
+\r
+/* position checkboxes and radios as icons */\r
+.context-menu-input > label > input[type="checkbox"],\r
+.context-menu-input > label > input[type="radio"] {\r
+    margin-left: -17px;\r
+}\r
+.context-menu-input > label > span {\r
+    margin-left: 5px;\r
+}\r
+\r
+.context-menu-input > label,\r
+.context-menu-input > label > input[type="text"],\r
+.context-menu-input > label > textarea,\r
+.context-menu-input > label > select {\r
+    display: block;\r
+    width: 100%;\r
+    \r
+    -webkit-box-sizing: border-box;\r
+       -moz-box-sizing: border-box;\r
+        -ms-box-sizing: border-box;\r
+         -o-box-sizing: border-box;\r
+            box-sizing: border-box;\r
+}\r
+\r
+.context-menu-input > label > textarea {\r
+    height: 100px;\r
+}\r
+.context-menu-item > .context-menu-list {\r
+    display: none;\r
+    /* re-positioned by js */\r
+    right: -5px;\r
+    top: 5px;\r
+}\r
+\r
+.context-menu-item.hover > .context-menu-list {\r
+    display: block;\r
+}\r
+\r
+.context-menu-accesskey {\r
+    text-decoration: underline;\r
+}\r
diff --git a/redakcja/static/contextmenu/jquery.contextMenu.js b/redakcja/static/contextmenu/jquery.contextMenu.js
new file mode 100755 (executable)
index 0000000..53c3fe9
--- /dev/null
@@ -0,0 +1,1485 @@
+/*!\r
+ * jQuery contextMenu - Plugin for simple contextMenu handling\r
+ *\r
+ * Version: 1.5.13\r
+ *\r
+ * Authors: Rodney Rehm, Addy Osmani (patches for FF)\r
+ * Web: http://medialize.github.com/jQuery-contextMenu/\r
+ *\r
+ * Licensed under\r
+ *   MIT License http://www.opensource.org/licenses/mit-license\r
+ *   GPL v3 http://opensource.org/licenses/GPL-3.0\r
+ *\r
+ */\r
+\r
+(function($, undefined){\r
+    \r
+    // TODO: -\r
+        // ARIA stuff: menuitem, menuitemcheckbox und menuitemradio\r
+        // create <menu> structure if $.support[htmlCommand || htmlMenuitem] and !opt.disableNative\r
+\r
+// determine html5 compatibility\r
+$.support.htmlMenuitem = ('HTMLMenuItemElement' in window);\r
+$.support.htmlCommand = ('HTMLCommandElement' in window);\r
+\r
+var // currently active contextMenu trigger\r
+    $currentTrigger = null,\r
+    // is contextMenu initialized with at least one menu?\r
+    initialized = false,\r
+    // window handle\r
+    $win = $(window),\r
+    // number of registered menus\r
+    counter = 0,\r
+    // mapping selector to namespace\r
+    namespaces = {},\r
+    // mapping namespace to options\r
+    menus = {},\r
+    // custom command type handlers\r
+    types = {},\r
+    // default values\r
+    defaults = {\r
+        // selector of contextMenu trigger\r
+        selector: null,\r
+        // where to append the menu to\r
+        appendTo: null,\r
+        // method to trigger context menu ["right", "left", "hover"]\r
+        trigger: "right",\r
+        // hide menu when mouse leaves trigger / menu elements\r
+        autoHide: false,\r
+        // ms to wait before showing a hover-triggered context menu\r
+        delay: 200,\r
+        // determine position to show menu at\r
+        determinePosition: function($menu) {\r
+            // position to the lower middle of the trigger element\r
+            if ($.ui && $.ui.position) {\r
+                // .position() is provided as a jQuery UI utility\r
+                // (...and it won't work on hidden elements)\r
+                $menu.css('display', 'block').position({\r
+                    my: "center top",\r
+                    at: "center bottom",\r
+                    of: this,\r
+                    offset: "0 5",\r
+                    collision: "fit"\r
+                }).css('display', 'none');\r
+            } else {\r
+                // determine contextMenu position\r
+                var offset = this.offset();\r
+                offset.top += this.outerHeight();\r
+                offset.left += this.outerWidth() / 2 - $menu.outerWidth() / 2;\r
+                $menu.css(offset);\r
+            }\r
+        },\r
+        // position menu\r
+        position: function(opt, x, y) {\r
+            var $this = this,\r
+                offset;\r
+            // determine contextMenu position\r
+            if (!x && !y) {\r
+                opt.determinePosition.call(this, opt.$menu);\r
+                return;\r
+            } else if (x === "maintain" && y === "maintain") {\r
+                // x and y must not be changed (after re-show on command click)\r
+                offset = opt.$menu.position();\r
+            } else {\r
+                // x and y are given (by mouse event)\r
+                var triggerIsFixed = opt.$trigger.parents().andSelf()\r
+                    .filter(function() {\r
+                        return $(this).css('position') == "fixed";\r
+                    }).length;\r
+\r
+                if (triggerIsFixed) {\r
+                    y -= $win.scrollTop();\r
+                    x -= $win.scrollLeft();\r
+                }\r
+                offset = {top: y, left: x};\r
+            }\r
+            \r
+            // correct offset if viewport demands it\r
+            var bottom = $win.scrollTop() + $win.height(),\r
+                right = $win.scrollLeft() + $win.width(),\r
+                height = opt.$menu.height(),\r
+                width = opt.$menu.width();\r
+            \r
+            if (offset.top + height > bottom) {\r
+                offset.top -= height;\r
+            }\r
+            \r
+            if (offset.left + width > right) {\r
+                offset.left -= width;\r
+            }\r
+            \r
+            opt.$menu.css(offset);\r
+        },\r
+        // position the sub-menu\r
+        positionSubmenu: function($menu) {\r
+            if ($.ui && $.ui.position) {\r
+                // .position() is provided as a jQuery UI utility\r
+                // (...and it won't work on hidden elements)\r
+                $menu.css('display', 'block').position({\r
+                    my: "left top",\r
+                    at: "right top",\r
+                    of: this,\r
+                    collision: "fit"\r
+                }).css('display', '');\r
+            } else {\r
+                // determine contextMenu position\r
+                var offset = this.offset();\r
+                offset.top += 0;\r
+                offset.left += this.outerWidth();\r
+                $menu.css(offset);\r
+            }\r
+        },\r
+        // offset to add to zIndex\r
+        zIndex: 1,\r
+        // show hide animation settings\r
+        animation: {\r
+            duration: 50,\r
+            show: 'slideDown',\r
+            hide: 'slideUp'\r
+        },\r
+        // events\r
+        events: {\r
+            show: $.noop,\r
+            hide: $.noop\r
+        },\r
+        // default callback\r
+        callback: null,\r
+        // list of contextMenu items\r
+        items: {}\r
+    },\r
+    // mouse position for hover activation\r
+    hoveract = {\r
+        timer: null,\r
+        pageX: null,\r
+        pageY: null\r
+    },\r
+    // determine zIndex\r
+    zindex = function($t) {\r
+        var zin = 0,\r
+            $tt = $t;\r
+\r
+        while (true) {\r
+            zin = Math.max(zin, parseInt($tt.css('z-index'), 10) || 0);\r
+            $tt = $tt.parent();\r
+            if (!$tt || !$tt.length || $tt.prop('nodeName').toLowerCase() == 'body') {\r
+                break;\r
+            }\r
+        }\r
+        \r
+        return zin;\r
+    },\r
+    // event handlers\r
+    handle = {\r
+        // abort anything\r
+        abortevent: function(e){\r
+            e.preventDefault();\r
+            e.stopImmediatePropagation();\r
+        },\r
+        \r
+        // contextmenu show dispatcher\r
+        contextmenu: function(e) {\r
+            var $this = $(this);\r
+            \r
+            // disable actual context-menu\r
+            e.preventDefault();\r
+            e.stopImmediatePropagation();\r
+            \r
+            // abort native-triggered events unless we're triggering on right click\r
+            if (e.data.trigger != 'right' && e.originalEvent) {\r
+                return;\r
+            }\r
+            \r
+            if (!$this.hasClass('context-menu-disabled')) {\r
+                // theoretically need to fire a show event at <menu>\r
+                // http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#context-menus\r
+                // var evt = jQuery.Event("show", { data: data, pageX: e.pageX, pageY: e.pageY, relatedTarget: this });\r
+                // e.data.$menu.trigger(evt);\r
+                \r
+                $currentTrigger = $this;\r
+                if (e.data.build) {\r
+                    var built = e.data.build($currentTrigger, e);\r
+                    // abort if build() returned false\r
+                    if (built === false) {\r
+                        return;\r
+                    }\r
+                    \r
+                    // dynamically build menu on invocation\r
+                    e.data = $.extend(true, defaults, e.data, built || {});\r
+\r
+                    // abort if there are no items to display\r
+                    if (!e.data.items || $.isEmptyObject(e.data.items)) {\r
+                        // Note: jQuery captures and ignores errors from event handlers\r
+                        if (window.console) {\r
+                            (console.error || console.log)("No items specified to show in contextMenu");\r
+                        }\r
+                        \r
+                        throw new Error('No Items sepcified');\r
+                    }\r
+                    \r
+                    // backreference for custom command type creation\r
+                    e.data.$trigger = $currentTrigger;\r
+                    \r
+                    op.create(e.data);\r
+                }\r
+                // show menu\r
+                op.show.call($this, e.data, e.pageX, e.pageY);\r
+            }\r
+        },\r
+        // contextMenu left-click trigger\r
+        click: function(e) {\r
+            e.preventDefault();\r
+            e.stopImmediatePropagation();\r
+            $(this).trigger(jQuery.Event("contextmenu", { data: e.data, pageX: e.pageX, pageY: e.pageY }));\r
+        },\r
+        // contextMenu right-click trigger\r
+        mousedown: function(e) {\r
+            // register mouse down\r
+            var $this = $(this);\r
+            \r
+            // hide any previous menus\r
+            if ($currentTrigger && $currentTrigger.length && !$currentTrigger.is($this)) {\r
+                $currentTrigger.data('contextMenu').$menu.trigger('contextmenu:hide');\r
+            }\r
+            \r
+            // activate on right click\r
+            if (e.button == 2) {\r
+                $currentTrigger = $this.data('contextMenuActive', true);\r
+            }\r
+        },\r
+        // contextMenu right-click trigger\r
+        mouseup: function(e) {\r
+            // show menu\r
+            var $this = $(this);\r
+            if ($this.data('contextMenuActive') && $currentTrigger && $currentTrigger.length && $currentTrigger.is($this) && !$this.hasClass('context-menu-disabled')) {\r
+                e.preventDefault();\r
+                e.stopImmediatePropagation();\r
+                $currentTrigger = $this;\r
+                $this.trigger(jQuery.Event("contextmenu", { data: e.data, pageX: e.pageX, pageY: e.pageY }));\r
+            }\r
+            \r
+            $this.removeData('contextMenuActive');\r
+        },\r
+        // contextMenu hover trigger\r
+        mouseenter: function(e) {\r
+            var $this = $(this),\r
+                $related = $(e.relatedTarget),\r
+                $document = $(document);\r
+            \r
+            // abort if we're coming from a menu\r
+            if ($related.is('.context-menu-list') || $related.closest('.context-menu-list').length) {\r
+                return;\r
+            }\r
+            \r
+            // abort if a menu is shown\r
+            if ($currentTrigger && $currentTrigger.length) {\r
+                return;\r
+            }\r
+            \r
+            hoveract.pageX = e.pageX;\r
+            hoveract.pageY = e.pageY;\r
+            hoveract.data = e.data;\r
+            $document.on('mousemove.contextMenuShow', handle.mousemove);\r
+            hoveract.timer = setTimeout(function() {\r
+                hoveract.timer = null;\r
+                $document.off('mousemove.contextMenuShow');\r
+                $currentTrigger = $this;\r
+                $this.trigger(jQuery.Event("contextmenu", { data: hoveract.data, pageX: hoveract.pageX, pageY: hoveract.pageY }));\r
+            }, e.data.delay );\r
+        },\r
+        // contextMenu hover trigger\r
+        mousemove: function(e) {\r
+            hoveract.pageX = e.pageX;\r
+            hoveract.pageY = e.pageY;\r
+        },\r
+        // contextMenu hover trigger\r
+        mouseleave: function(e) {\r
+            // abort if we're leaving for a menu\r
+            var $related = $(e.relatedTarget);\r
+            if ($related.is('.context-menu-list') || $related.closest('.context-menu-list').length) {\r
+                return;\r
+            }\r
+            \r
+            try {\r
+                clearTimeout(hoveract.timer);\r
+            } catch(e) {}\r
+            \r
+            hoveract.timer = null;\r
+        },\r
+        \r
+        // click on layer to hide contextMenu\r
+        layerClick: function(e) {\r
+            var $this = $(this),\r
+                root = $this.data('contextMenuRoot');\r
+                \r
+            e.preventDefault();\r
+            e.stopImmediatePropagation();\r
+            \r
+            if ((root.trigger == 'left' && e.button == 0) || (root.trigger == 'right' && e.button == 2)) {\r
+                var offset = root.$trigger.offset();\r
+                \r
+                // while this looks kinda awful, it's the best way to avoid\r
+                // unnecessarily calculating any positions\r
+                offset.top += $(window).scrollTop();\r
+                if (offset.top <= e.pageY) {\r
+                    offset.left += $(window).scrollLeft();\r
+                    if (offset.left <= e.pageX) {\r
+                        offset.bottom = offset.top + root.$trigger.outerHeight();\r
+                        if (offset.bottom >= e.pageY) {\r
+                            offset.right = offset.left + root.$trigger.outerWidth();\r
+                            if (offset.right >= e.pageX) {\r
+                                // reposition\r
+                                root.position.call(root.$trigger, root, e.pageX, e.pageY);\r
+                                return;\r
+                            }\r
+                        }\r
+                    }\r
+                }\r
+            } \r
+            \r
+            // remove only after mouseup has completed\r
+            $this.on('mouseup', function(e) {\r
+                e.preventDefault();\r
+                e.stopImmediatePropagation();\r
+                root.$menu.trigger('contextmenu:hide');\r
+            });\r
+        },\r
+        // key handled :hover\r
+        keyStop: function(e, opt) {\r
+            if (!opt.isInput) {\r
+                e.preventDefault();\r
+            }\r
+            \r
+            e.stopPropagation();\r
+        },\r
+        key: function(e) {\r
+            var opt = $currentTrigger.data('contextMenu') || {},\r
+                $children = opt.$menu.children(),\r
+                $round;\r
+\r
+            switch (e.keyCode) {\r
+                case 9:\r
+                case 38: // up\r
+                    handle.keyStop(e, opt);\r
+                    // if keyCode is [38 (up)] or [9 (tab) with shift]\r
+                    if (opt.isInput) {\r
+                        if (e.keyCode == 9 && e.shiftKey) {\r
+                            e.preventDefault();\r
+                            opt.$selected && opt.$selected.find('input, textarea, select').blur();\r
+                            opt.$menu.trigger('prevcommand');\r
+                            return;\r
+                        } else if (e.keyCode == 38 && opt.$selected.find('input, textarea, select').prop('type') == 'checkbox') {\r
+                            // checkboxes don't capture this key\r
+                            e.preventDefault();\r
+                            return;\r
+                        }\r
+                    } else if (e.keyCode != 9 || e.shiftKey) {\r
+                        opt.$menu.trigger('prevcommand');\r
+                        return;\r
+                    }\r
+                    \r
+                case 9: // tab\r
+                case 40: // down\r
+                    handle.keyStop(e, opt);\r
+                    if (opt.isInput) {\r
+                        if (e.keyCode == 9) {\r
+                            e.preventDefault();\r
+                            opt.$selected && opt.$selected.find('input, textarea, select').blur();\r
+                            opt.$menu.trigger('nextcommand');\r
+                            return;\r
+                        } else if (e.keyCode == 40 && opt.$selected.find('input, textarea, select').prop('type') == 'checkbox') {\r
+                            // checkboxes don't capture this key\r
+                            e.preventDefault();\r
+                            return;\r
+                        }\r
+                    } else {\r
+                        opt.$menu.trigger('nextcommand');\r
+                        return;\r
+                    }\r
+                    break;\r
+                \r
+                case 37: // left\r
+                    handle.keyStop(e, opt);\r
+                    if (opt.isInput || !opt.$selected || !opt.$selected.length) {\r
+                        break;\r
+                    }\r
+                \r
+                    if (!opt.$selected.parent().hasClass('context-menu-root')) {\r
+                        var $parent = opt.$selected.parent().parent();\r
+                        opt.$selected.trigger('contextmenu:blur');\r
+                        opt.$selected = $parent;\r
+                        return;\r
+                    }\r
+                    break;\r
+                    \r
+                case 39: // right\r
+                    handle.keyStop(e, opt);\r
+                    if (opt.isInput || !opt.$selected || !opt.$selected.length) {\r
+                        break;\r
+                    }\r
+                    \r
+                    var itemdata = opt.$selected.data('contextMenu') || {};\r
+                    if (itemdata.$menu && opt.$selected.hasClass('context-menu-submenu')) {\r
+                        opt.$selected = null;\r
+                        itemdata.$selected = null;\r
+                        itemdata.$menu.trigger('nextcommand');\r
+                        return;\r
+                    }\r
+                    break;\r
+                \r
+                case 35: // end\r
+                case 36: // home\r
+                    if (opt.$selected && opt.$selected.find('input, textarea, select').length) {\r
+                        return;\r
+                    } else {\r
+                        (opt.$selected && opt.$selected.parent() || opt.$menu)\r
+                            .children(':not(.disabled, .not-selectable)')[e.keyCode == 36 ? 'first' : 'last']()\r
+                            .trigger('contextmenu:focus');\r
+                        e.preventDefault();\r
+                        return;\r
+                    }\r
+                    break;\r
+                    \r
+                case 13: // enter\r
+                    handle.keyStop(e, opt);\r
+                    if (opt.isInput) {\r
+                        if (opt.$selected && !opt.$selected.is('textarea, select')) {\r
+                            e.preventDefault();\r
+                            return;\r
+                        }\r
+                        break;\r
+                    }\r
+                    opt.$selected && opt.$selected.trigger('mouseup');\r
+                    return;\r
+                    \r
+                case 32: // space\r
+                case 33: // page up\r
+                case 34: // page down\r
+                    // prevent browser from scrolling down while menu is visible\r
+                    handle.keyStop(e, opt);\r
+                    return;\r
+                    \r
+                case 27: // esc\r
+                    handle.keyStop(e, opt);\r
+                    opt.$menu.trigger('contextmenu:hide');\r
+                    return;\r
+                    \r
+                default: // 0-9, a-z\r
+                    var k = (String.fromCharCode(e.keyCode)).toUpperCase();\r
+                    if (opt.accesskeys[k]) {\r
+                        // according to the specs accesskeys must be invoked immediately\r
+                        opt.accesskeys[k].$node.trigger(opt.accesskeys[k].$menu\r
+                            ? 'contextmenu:focus'\r
+                            : 'mouseup'\r
+                        );\r
+                        return;\r
+                    }\r
+                    break;\r
+            }\r
+            // pass event to selected item, \r
+            // stop propagation to avoid endless recursion\r
+            e.stopPropagation();\r
+            opt.$selected && opt.$selected.trigger(e);\r
+        },\r
+\r
+        // select previous possible command in menu\r
+        prevItem: function(e) {\r
+            e.stopPropagation();\r
+            var opt = $(this).data('contextMenu') || {};\r
+\r
+            // obtain currently selected menu\r
+            if (opt.$selected) {\r
+                var $s = opt.$selected;\r
+                opt = opt.$selected.parent().data('contextMenu') || {};\r
+                opt.$selected = $s;\r
+            }\r
+            \r
+            var $children = opt.$menu.children(),\r
+                $prev = !opt.$selected || !opt.$selected.prev().length ? $children.last() : opt.$selected.prev(),\r
+                $round = $prev;\r
+            \r
+            // skip disabled\r
+            while ($prev.hasClass('disabled') || $prev.hasClass('not-selectable')) {\r
+                if ($prev.prev().length) {\r
+                    $prev = $prev.prev();\r
+                } else {\r
+                    $prev = $children.last();\r
+                }\r
+                if ($prev.is($round)) {\r
+                    // break endless loop\r
+                    return;\r
+                }\r
+            }\r
+            \r
+            // leave current\r
+            if (opt.$selected) {\r
+                handle.itemMouseleave.call(opt.$selected.get(0), e);\r
+            }\r
+            \r
+            // activate next\r
+            handle.itemMouseenter.call($prev.get(0), e);\r
+            \r
+            // focus input\r
+            var $input = $prev.find('input, textarea, select');\r
+            if ($input.length) {\r
+                $input.focus();\r
+            }\r
+        },\r
+        // select next possible command in menu\r
+        nextItem: function(e) {\r
+            e.stopPropagation();\r
+            var opt = $(this).data('contextMenu') || {};\r
+\r
+            // obtain currently selected menu\r
+            if (opt.$selected) {\r
+                var $s = opt.$selected;\r
+                opt = opt.$selected.parent().data('contextMenu') || {};\r
+                opt.$selected = $s;\r
+            }\r
+\r
+            var $children = opt.$menu.children(),\r
+                $next = !opt.$selected || !opt.$selected.next().length ? $children.first() : opt.$selected.next(),\r
+                $round = $next;\r
+\r
+            // skip disabled\r
+            while ($next.hasClass('disabled') || $next.hasClass('not-selectable')) {\r
+                if ($next.next().length) {\r
+                    $next = $next.next();\r
+                } else {\r
+                    $next = $children.first();\r
+                }\r
+                if ($next.is($round)) {\r
+                    // break endless loop\r
+                    return;\r
+                }\r
+            }\r
+            \r
+            // leave current\r
+            if (opt.$selected) {\r
+                handle.itemMouseleave.call(opt.$selected.get(0), e);\r
+            }\r
+            \r
+            // activate next\r
+            handle.itemMouseenter.call($next.get(0), e);\r
+            \r
+            // focus input\r
+            var $input = $next.find('input, textarea, select');\r
+            if ($input.length) {\r
+                $input.focus();\r
+            }\r
+        },\r
+        \r
+        // flag that we're inside an input so the key handler can act accordingly\r
+        focusInput: function(e) {\r
+            var $this = $(this).closest('.context-menu-item'),\r
+                data = $this.data(),\r
+                opt = data.contextMenu,\r
+                root = data.contextMenuRoot;\r
+\r
+            root.$selected = opt.$selected = $this;\r
+            root.isInput = opt.isInput = true;\r
+        },\r
+        // flag that we're inside an input so the key handler can act accordingly\r
+        blurInput: function(e) {\r
+            var $this = $(this).closest('.context-menu-item'),\r
+                data = $this.data(),\r
+                opt = data.contextMenu,\r
+                root = data.contextMenuRoot;\r
+\r
+            root.isInput = opt.isInput = false;\r
+        },\r
+        \r
+        // :hover on menu\r
+        menuMouseenter: function(e) {\r
+            var root = $(this).data().contextMenuRoot;\r
+            root.hovering = true;\r
+        },\r
+        // :hover on menu\r
+        menuMouseleave: function(e) {\r
+            var root = $(this).data().contextMenuRoot;\r
+            if (root.$layer && root.$layer.is(e.relatedTarget)) {\r
+                root.hovering = false;\r
+            }\r
+        },\r
+        \r
+        // :hover done manually so key handling is possible\r
+        itemMouseenter: function(e) {\r
+            var $this = $(this),\r
+                data = $this.data(),\r
+                opt = data.contextMenu,\r
+                root = data.contextMenuRoot;\r
+            \r
+            root.hovering = true;\r
+\r
+            // abort if we're re-entering\r
+            if (e && root.$layer && root.$layer.is(e.relatedTarget)) {\r
+                e.preventDefault();\r
+                e.stopImmediatePropagation();\r
+            }\r
+\r
+            // make sure only one item is selected\r
+            (opt.$menu ? opt : root).$menu\r
+                .children('.hover').trigger('contextmenu:blur');\r
+\r
+            if ($this.hasClass('disabled') || $this.hasClass('not-selectable')) {\r
+                opt.$selected = null;\r
+                return;\r
+            }\r
+            \r
+            $this.trigger('contextmenu:focus');\r
+        },\r
+        // :hover done manually so key handling is possible\r
+        itemMouseleave: function(e) {\r
+            var $this = $(this),\r
+                data = $this.data(),\r
+                opt = data.contextMenu,\r
+                root = data.contextMenuRoot;\r
+\r
+            if (root !== opt && root.$layer && root.$layer.is(e.relatedTarget)) {\r
+                root.$selected && root.$selected.trigger('contextmenu:blur');\r
+                e.preventDefault();\r
+                e.stopImmediatePropagation();\r
+                root.$selected = opt.$selected = opt.$node;\r
+                return;\r
+            }\r
+            \r
+            $this.trigger('contextmenu:blur');\r
+        },\r
+        // contextMenu item click\r
+        itemClick: function(e) {\r
+            var $this = $(this),\r
+                data = $this.data(),\r
+                opt = data.contextMenu,\r
+                root = data.contextMenuRoot,\r
+                key = data.contextMenuKey,\r
+                callback;\r
+\r
+            // abort if the key is unknown or disabled or is a menu\r
+            if (!opt.items[key] || $this.hasClass('disabled') || $this.hasClass('context-menu-submenu')) {\r
+                return;\r
+            }\r
+\r
+            e.preventDefault();\r
+            e.stopImmediatePropagation();\r
+\r
+            if ($.isFunction(root.callbacks[key])) {\r
+                // item-specific callback\r
+                callback = root.callbacks[key];\r
+            } else if ($.isFunction(root.callback)) {\r
+                // default callback\r
+                callback = root.callback;                \r
+            } else {\r
+                // no callback, no action\r
+                return;\r
+            }\r
+\r
+            // hide menu if callback doesn't stop that\r
+            if (callback.call(root.$trigger, key, root) !== false) {\r
+                root.$menu.trigger('contextmenu:hide');\r
+            } else {\r
+                op.update.call(root.$trigger, root);\r
+            }\r
+        },\r
+        // ignore click events on input elements\r
+        inputClick: function(e) {\r
+            e.stopImmediatePropagation();\r
+        },\r
+        \r
+        // hide <menu>\r
+        hideMenu: function(e) {\r
+            var root = $(this).data('contextMenuRoot');\r
+            op.hide.call(root.$trigger, root);\r
+        },\r
+        // focus <command>\r
+        focusItem: function(e) {\r
+            e.stopPropagation();\r
+            var $this = $(this),\r
+                data = $this.data(),\r
+                opt = data.contextMenu,\r
+                root = data.contextMenuRoot;\r
+\r
+            $this.addClass('hover')\r
+                .siblings('.hover').trigger('contextmenu:blur');\r
+            \r
+            // remember selected\r
+            opt.$selected = root.$selected = $this;\r
+            \r
+            // position sub-menu - do after show so dumb $.ui.position can keep up\r
+            if (opt.$node) {\r
+                root.positionSubmenu.call(opt.$node, opt.$menu);\r
+            }\r
+        },\r
+        // blur <command>\r
+        blurItem: function(e) {\r
+            e.stopPropagation();\r
+            var $this = $(this),\r
+                data = $this.data(),\r
+                opt = data.contextMenu,\r
+                root = data.contextMenuRoot;\r
+            \r
+            $this.removeClass('hover');\r
+            opt.$selected = null;\r
+        }\r
+    },\r
+    // operations\r
+    op = {\r
+        show: function(opt, x, y) {\r
+            var $this = $(this),\r
+                offset,\r
+                css = {};\r
+\r
+            // hide any open menus\r
+            $('#context-menu-layer').trigger('mousedown');\r
+\r
+            // backreference for callbacks\r
+            opt.$trigger = $this;\r
+\r
+            // show event\r
+            if (opt.events.show.call($this, opt) === false) {\r
+                $currentTrigger = null;\r
+                return;\r
+            }\r
+            \r
+            // create or update context menu\r
+            op.update.call($this, opt);\r
+            \r
+            // position menu\r
+            opt.position.call($this, opt, x, y);\r
+\r
+            // make sure we're in front\r
+            if (opt.zIndex) {\r
+                css.zIndex = zindex($this) + opt.zIndex;\r
+            }\r
+            \r
+            // add layer\r
+            op.layer.call(opt.$menu, opt, css.zIndex);\r
+            \r
+            // adjust sub-menu zIndexes\r
+            opt.$menu.find('ul').css('zIndex', css.zIndex + 1);\r
+            \r
+            // position and show context menu\r
+            opt.$menu.css( css )[opt.animation.show](opt.animation.duration);\r
+            // make options available\r
+            $this.data('contextMenu', opt);\r
+            // register key handler\r
+            $(document).off('keydown.contextMenu').on('keydown.contextMenu', handle.key);\r
+            // register autoHide handler\r
+            if (opt.autoHide) {\r
+                // trigger element coordinates\r
+                var pos = $this.position();\r
+                pos.right = pos.left + $this.outerWidth();\r
+                pos.bottom = pos.top + this.outerHeight();\r
+                // mouse position handler\r
+                $(document).on('mousemove.contextMenuAutoHide', function(e) {\r
+                    if (opt.$layer && !opt.hovering && (!(e.pageX >= pos.left && e.pageX <= pos.right) || !(e.pageY >= pos.top && e.pageY <= pos.bottom))) {\r
+                        // if mouse in menu...\r
+                        opt.$layer.trigger('mousedown');\r
+                    }\r
+                });\r
+            }\r
+        },\r
+        hide: function(opt) {\r
+            var $this = $(this);\r
+            if (!opt) {\r
+                opt = $this.data('contextMenu') || {};\r
+            }\r
+            \r
+            // hide event\r
+            if (opt.events && opt.events.hide.call($this, opt) === false) {\r
+                return;\r
+            }\r
+            \r
+            if (opt.$layer) {\r
+                // keep layer for a bit so the contextmenu event can be aborted properly by opera\r
+                setTimeout((function($layer){ return function(){\r
+                        $layer.remove();\r
+                    };\r
+                })(opt.$layer), 10);\r
+                \r
+                try {\r
+                    delete opt.$layer;\r
+                } catch(e) {\r
+                    opt.$layer = null;\r
+                }\r
+            }\r
+            \r
+            // remove handle\r
+            $currentTrigger = null;\r
+            // remove selected\r
+            opt.$menu.find('.hover').trigger('contextmenu:blur');\r
+            opt.$selected = null;\r
+            // unregister key and mouse handlers\r
+            //$(document).off('.contextMenuAutoHide keydown.contextMenu'); // http://bugs.jquery.com/ticket/10705\r
+            $(document).off('.contextMenuAutoHide').off('keydown.contextMenu');\r
+            // hide menu\r
+            opt.$menu && opt.$menu[opt.animation.hide](opt.animation.duration);\r
+            \r
+            // tear down dynamically built menu\r
+            if (opt.build) {\r
+                opt.$menu.remove();\r
+                $.each(opt, function(key, value) {\r
+                    switch (key) {\r
+                        case 'ns':\r
+                        case 'selector':\r
+                        case 'build':\r
+                        case 'trigger':\r
+                            return true;\r
+\r
+                        default:\r
+                            opt[key] = undefined;\r
+                            try {\r
+                                delete opt[key];\r
+                            } catch (e) {}\r
+                            return true;\r
+                   }\r
+                });\r
+            }\r
+        },\r
+        create: function(opt, root) {\r
+            if (root === undefined) {\r
+                root = opt;\r
+            }\r
+            // create contextMenu\r
+            opt.$menu = $('<ul class="context-menu-list ' + (opt.className || "") + '"></ul>').data({\r
+                'contextMenu': opt,\r
+                'contextMenuRoot': root\r
+            });\r
+            \r
+            $.each(['callbacks', 'commands', 'inputs'], function(i,k){\r
+                opt[k] = {};\r
+                if (!root[k]) {\r
+                    root[k] = {};\r
+                }\r
+            });\r
+            \r
+            root.accesskeys || (root.accesskeys = {});\r
+            \r
+            // create contextMenu items\r
+            $.each(opt.items, function(key, item){\r
+                var $t = $('<li class="context-menu-item ' + (item.className || "") +'"></li>'),\r
+                    $label = null,\r
+                    $input = null;\r
+                \r
+                item.$node = $t.data({\r
+                    'contextMenu': opt,\r
+                    'contextMenuRoot': root,\r
+                    'contextMenuKey': key\r
+                });\r
+                \r
+                // register accesskey\r
+                // NOTE: the accesskey attribute should be applicable to any element, but Safari5 and Chrome13 still can't do that\r
+                if (item.accesskey) {\r
+                    var aks = splitAccesskey(item.accesskey);\r
+                    for (var i=0, ak; ak = aks[i]; i++) {\r
+                        if (!root.accesskeys[ak]) {\r
+                            root.accesskeys[ak] = item;\r
+                            item._name = item.name.replace(new RegExp('(' + ak + ')', 'i'), '<span class="context-menu-accesskey">$1</span>');\r
+                            break;\r
+                        }\r
+                    }\r
+                }\r
+                \r
+                if (typeof item == "string") {\r
+                    $t.addClass('context-menu-separator not-selectable');\r
+                } else if (item.type && types[item.type]) {\r
+                    // run custom type handler\r
+                    types[item.type].call($t, item, opt, root);\r
+                    // register commands\r
+                    $.each([opt, root], function(i,k){\r
+                        k.commands[key] = item;\r
+                        if ($.isFunction(item.callback)) {\r
+                            k.callbacks[key] = item.callback;\r
+                        }\r
+                    });\r
+                } else {\r
+                    // add label for input\r
+                    if (item.type == 'html') {\r
+                        $t.addClass('context-menu-html not-selectable');\r
+                    } else if (item.type) {\r
+                        $label = $('<label></label>').appendTo($t);\r
+                        $('<span></span>').html(item._name || item.name).appendTo($label);\r
+                        $t.addClass('context-menu-input');\r
+                        opt.hasTypes = true;\r
+                        $.each([opt, root], function(i,k){\r
+                            k.commands[key] = item;\r
+                            k.inputs[key] = item;\r
+                        });\r
+                    } else if (item.items) {\r
+                        item.type = 'sub';\r
+                    }\r
+                \r
+                    switch (item.type) {\r
+                        case 'text':\r
+                            $input = $('<input type="text" value="1" name="context-menu-input-'+ key +'" value="">')\r
+                                .val(item.value || "").appendTo($label);\r
+                            break;\r
+                    \r
+                        case 'textarea':\r
+                            $input = $('<textarea name="context-menu-input-'+ key +'"></textarea>')\r
+                                .val(item.value || "").appendTo($label);\r
+\r
+                            if (item.height) {\r
+                                $input.height(item.height);\r
+                            }\r
+                            break;\r
+\r
+                        case 'checkbox':\r
+                            $input = $('<input type="checkbox" value="1" name="context-menu-input-'+ key +'" value="">')\r
+                                .val(item.value || "").prop("checked", !!item.selected).prependTo($label);\r
+                            break;\r
+\r
+                        case 'radio':\r
+                            $input = $('<input type="radio" value="1" name="context-menu-input-'+ item.radio +'" value="">')\r
+                                .val(item.value || "").prop("checked", !!item.selected).prependTo($label);\r
+                            break;\r
+                    \r
+                        case 'select':\r
+                            $input = $('<select name="context-menu-input-'+ key +'">').appendTo($label);\r
+                            if (item.options) {\r
+                                $.each(item.options, function(value, text) {\r
+                                    $('<option></option>').val(value).text(text).appendTo($input);\r
+                                });\r
+                                $input.val(item.selected);\r
+                            }\r
+                            break;\r
+                        \r
+                        case 'sub':\r
+                            $('<span></span>').html(item._name || item.name).appendTo($t);\r
+                            item.appendTo = item.$node;\r
+                            op.create(item, root);\r
+                            $t.data('contextMenu', item).addClass('context-menu-submenu');\r
+                            item.callback = null;\r
+                            break;\r
+                        \r
+                        case 'html':\r
+                            $(item.html).appendTo($t);\r
+                            break;\r
+                        \r
+                        default:\r
+                            $.each([opt, root], function(i,k){\r
+                                k.commands[key] = item;\r
+                                if ($.isFunction(item.callback)) {\r
+                                    k.callbacks[key] = item.callback;\r
+                                }\r
+                            });\r
+                            \r
+                            $('<span></span>').html(item._name || item.name || "").appendTo($t);\r
+                            break;\r
+                    }\r
+                    \r
+                    // disable key listener in <input>\r
+                    if (item.type && item.type != 'sub' && item.type != 'html') {\r
+                        $input\r
+                            .on('focus', handle.focusInput)\r
+                            .on('blur', handle.blurInput);\r
+                        \r
+                        if (item.events) {\r
+                            $input.on(item.events);\r
+                        }\r
+                    }\r
+                \r
+                    // add icons\r
+                    if (item.icon) {\r
+                        $t.addClass("icon icon-" + item.icon);\r
+                    }\r
+                }\r
+                \r
+                // cache contained elements\r
+                item.$input = $input;\r
+                item.$label = $label;\r
+\r
+                // attach item to menu\r
+                $t.appendTo(opt.$menu);\r
+                \r
+                // Disable text selection\r
+                if (!opt.hasTypes) {\r
+                    if($.browser.msie) {\r
+                        $t.on('selectstart.disableTextSelect', handle.abortevent);\r
+                    } else if(!$.browser.mozilla) {\r
+                        $t.on('mousedown.disableTextSelect', handle.abortevent);\r
+                    }\r
+                }\r
+            });\r
+            // attach contextMenu to <body> (to bypass any possible overflow:hidden issues on parents of the trigger element)\r
+            if (!opt.$node) {\r
+                opt.$menu.css('display', 'none').addClass('context-menu-root');\r
+            }\r
+            opt.$menu.appendTo(opt.appendTo || document.body);\r
+        },\r
+        update: function(opt, root) {\r
+            var $this = this;\r
+            if (root === undefined) {\r
+                root = opt;\r
+                // determine widths of submenus, as CSS won't grow them automatically\r
+                // position:absolute > position:absolute; min-width:100; max-width:200; results in width: 100;\r
+                // kinda sucks hard...\r
+                opt.$menu.find('ul').andSelf().css({position: 'static', display: 'block'}).each(function(){\r
+                    var $this = $(this);\r
+                    $this.width($this.css('position', 'absolute').width())\r
+                        .css('position', 'static');\r
+                }).css({position: '', display: ''});\r
+            }\r
+            // re-check disabled for each item\r
+            opt.$menu.children().each(function(){\r
+                var $item = $(this),\r
+                    key = $item.data('contextMenuKey'),\r
+                    item = opt.items[key],\r
+                    disabled = ($.isFunction(item.disabled) && item.disabled.call($this, key, root)) || item.disabled === true;\r
+\r
+                // dis- / enable item\r
+                $item[disabled ? 'addClass' : 'removeClass']('disabled');\r
+                \r
+                if (item.type) {\r
+                    // dis- / enable input elements\r
+                    $item.find('input, select, textarea').prop('disabled', disabled);\r
+                    \r
+                    // update input states\r
+                    switch (item.type) {\r
+                        case 'text':\r
+                        case 'textarea':\r
+                            item.$input.val(item.value || "");\r
+                            break;\r
+                            \r
+                        case 'checkbox':\r
+                        case 'radio':\r
+                            item.$input.val(item.value || "").prop('checked', !!item.selected);\r
+                            break;\r
+                            \r
+                        case 'select':\r
+                            item.$input.val(item.selected || "");\r
+                            break;\r
+                    }\r
+                }\r
+                \r
+                if (item.$menu) {\r
+                    // update sub-menu\r
+                    op.update.call($this, item, root);\r
+                }\r
+            });\r
+        },\r
+        layer: function(opt, zIndex) {\r
+            // add transparent layer for click area\r
+            // filter and background for Internet Explorer, Issue #23\r
+            return opt.$layer = $('<div id="context-menu-layer" style="position:fixed; z-index:' + zIndex + '; top:0; left:0; opacity: 0; filter: alpha(opacity=0); background-color: #000;"></div>')\r
+                .css({height: $win.height(), width: $win.width(), display: 'block'})\r
+                .data('contextMenuRoot', opt)\r
+                .insertBefore(this)\r
+                .on('contextmenu', handle.abortevent)\r
+                .on('mousedown', handle.layerClick);\r
+        }\r
+    };\r
+\r
+// split accesskey according to http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#assigned-access-key\r
+function splitAccesskey(val) {\r
+    var t = val.split(/\s+/),\r
+        keys = [];\r
+        \r
+    for (var i=0, k; k = t[i]; i++) {\r
+        k = k[0].toUpperCase(); // first character only\r
+        // theoretically non-accessible characters should be ignored, but different systems, different keyboard layouts, ... screw it.\r
+        // a map to look up already used access keys would be nice\r
+        keys.push(k);\r
+    }\r
+    \r
+    return keys;\r
+}\r
+\r
+// handle contextMenu triggers\r
+$.fn.contextMenu = function(operation) {\r
+    if (operation === undefined) {\r
+        this.first().trigger('contextmenu');\r
+    } else if (operation.x && operation.y) {\r
+        this.first().trigger(jQuery.Event("contextmenu", {pageX: operation.x, pageY: operation.y}));\r
+    } else if (operation === "hide") {\r
+        var $menu = this.data('contextMenu').$menu;\r
+        $menu && $menu.trigger('contextmenu:hide');\r
+    } else if (operation) {\r
+        this.removeClass('context-menu-disabled');\r
+    } else if (!operation) {\r
+        this.addClass('context-menu-disabled');\r
+    }\r
+    \r
+    return this;\r
+};\r
+\r
+// manage contextMenu instances\r
+$.contextMenu = function(operation, options) {\r
+    if (typeof operation != 'string') {\r
+        options = operation;\r
+        operation = 'create';\r
+    }\r
+    \r
+    if (typeof options == 'string') {\r
+        options = {selector: options};\r
+    } else if (options === undefined) {\r
+        options = {};\r
+    }\r
+    \r
+    // merge with default options\r
+    var o = $.extend(true, {}, defaults, options || {}),\r
+        $body = $body = $(document);\r
+    \r
+    switch (operation) {\r
+        case 'create':\r
+            // no selector no joy\r
+            if (!o.selector) {\r
+                throw new Error('No selector specified');\r
+            }\r
+            // make sure internal classes are not bound to\r
+            if (o.selector.match(/.context-menu-(list|item|input)($|\s)/)) {\r
+                throw new Error('Cannot bind to selector "' + o.selector + '" as it contains a reserved className');\r
+            }\r
+            if (!o.build && (!o.items || $.isEmptyObject(o.items))) {\r
+                throw new Error('No Items sepcified');\r
+            }\r
+            counter ++;\r
+            o.ns = '.contextMenu' + counter;\r
+            namespaces[o.selector] = o.ns;\r
+            menus[o.ns] = o;\r
+            \r
+            if (!initialized) {\r
+                // make sure item click is registered first\r
+                $body\r
+                    .on({\r
+                        'contextmenu:hide.contextMenu': handle.hideMenu,\r
+                        'prevcommand.contextMenu': handle.prevItem,\r
+                        'nextcommand.contextMenu': handle.nextItem,\r
+                        'contextmenu.contextMenu': handle.abortevent,\r
+                        'mouseenter.contextMenu': handle.menuMouseenter,\r
+                        'mouseleave.contextMenu': handle.menuMouseleave\r
+                    }, '.context-menu-list')\r
+                    .on('mouseup.contextMenu', '.context-menu-input', handle.inputClick)\r
+                    .on({\r
+                        'mouseup.contextMenu': handle.itemClick,\r
+                        'contextmenu:focus.contextMenu': handle.focusItem,\r
+                        'contextmenu:blur.contextMenu': handle.blurItem,\r
+                        'contextmenu.contextMenu': handle.abortevent,\r
+                        'mouseenter.contextMenu': handle.itemMouseenter,\r
+                        'mouseleave.contextMenu': handle.itemMouseleave\r
+                    }, '.context-menu-item');\r
+\r
+                initialized = true;\r
+            }\r
+            \r
+            // engage native contextmenu event\r
+            $body\r
+                .on('contextmenu' + o.ns, o.selector, o, handle.contextmenu);\r
+            \r
+            switch (o.trigger) {\r
+                case 'hover':\r
+                        $body\r
+                            .on('mouseenter' + o.ns, o.selector, o, handle.mouseenter)\r
+                            .on('mouseleave' + o.ns, o.selector, o, handle.mouseleave);                    \r
+                    break;\r
+                    \r
+                case 'left':\r
+                        $body.on('click' + o.ns, o.selector, o, handle.click);\r
+                    break;\r
+                /*\r
+                default:\r
+                    // http://www.quirksmode.org/dom/events/contextmenu.html\r
+                    $body\r
+                        .on('mousedown' + o.ns, o.selector, o, handle.mousedown)\r
+                        .on('mouseup' + o.ns, o.selector, o, handle.mouseup);\r
+                    break;\r
+                */\r
+            }\r
+            \r
+            // create menu\r
+            if (!o.build) {\r
+                op.create(o);\r
+            }\r
+            break;\r
+        \r
+        case 'destroy':\r
+            if (!o.selector) {\r
+                $body.off('.contextMenu .contextMenuAutoHide');\r
+                $.each(namespaces, function(key, value) {\r
+                    $body.off(value);\r
+                });\r
+                \r
+                namespaces = {};\r
+                menus = {};\r
+                counter = 0;\r
+                initialized = false;\r
+                \r
+                $('.context-menu-list').remove();\r
+            } else if (namespaces[o.selector]) {\r
+                try {\r
+                    if (menus[namespaces[o.selector]].$menu) {\r
+                        menus[namespaces[o.selector]].$menu.remove();\r
+                    }\r
+                    \r
+                    delete menus[namespaces[o.selector]];\r
+                } catch(e) {\r
+                    menus[namespaces[o.selector]] = null;\r
+                }\r
+                \r
+                $body.off(namespaces[o.selector]);\r
+            }\r
+            break;\r
+        \r
+        case 'html5':\r
+            // if <command> or <menuitem> are not handled by the browser,\r
+            // or options was a bool true,\r
+            // initialize $.contextMenu for them\r
+            if ((!$.support.htmlCommand && !$.support.htmlMenuitem) || (typeof options == "boolean" && options)) {\r
+                $('menu[type="context"]').each(function() {\r
+                    if (this.id) {\r
+                        $.contextMenu({\r
+                            selector: '[contextmenu=' + this.id +']',\r
+                            items: $.contextMenu.fromMenu(this)\r
+                        });\r
+                    }\r
+                }).css('display', 'none');\r
+            }\r
+            break;\r
+        \r
+        default:\r
+            throw new Error('Unknown operation "' + operation + '"');\r
+    }\r
+    \r
+    return this;\r
+};\r
+\r
+// import values into <input> commands\r
+$.contextMenu.setInputValues = function(opt, data) {\r
+    if (data === undefined) {\r
+        data = {};\r
+    }\r
+    \r
+    $.each(opt.inputs, function(key, item) {\r
+        switch (item.type) {\r
+            case 'text':\r
+            case 'textarea':\r
+                item.value = data[key] || "";\r
+                break;\r
+\r
+            case 'checkbox':\r
+                item.selected = data[key] ? true : false;\r
+                break;\r
+                \r
+            case 'radio':\r
+                item.selected = (data[item.radio] || "") == item.value ? true : false;\r
+                break;\r
+            \r
+            case 'select':\r
+                item.selected = data[key] || "";\r
+                break;\r
+        }\r
+    });\r
+};\r
+\r
+// export values from <input> commands\r
+$.contextMenu.getInputValues = function(opt, data) {\r
+    if (data === undefined) {\r
+        data = {};\r
+    }\r
+    \r
+    $.each(opt.inputs, function(key, item) {\r
+        switch (item.type) {\r
+            case 'text':\r
+            case 'textarea':\r
+            case 'select':\r
+                data[key] = item.$input.val();\r
+                break;\r
+\r
+            case 'checkbox':\r
+                data[key] = item.$input.prop('checked');\r
+                break;\r
+                \r
+            case 'radio':\r
+                if (item.$input.prop('checked')) {\r
+                    data[item.radio] = item.value;\r
+                }\r
+                break;\r
+        }\r
+    });\r
+    \r
+    return data;\r
+};\r
+\r
+// find <label for="xyz">\r
+function inputLabel(node) {\r
+    return (node.id && $('label[for="'+ node.id +'"]').val()) || node.name;\r
+}\r
+\r
+// convert <menu> to items object\r
+function menuChildren(items, $children, counter) {\r
+    if (!counter) {\r
+        counter = 0;\r
+    }\r
+    \r
+    $children.each(function() {\r
+        var $node = $(this),\r
+            node = this,\r
+            nodeName = this.nodeName.toLowerCase(),\r
+            label,\r
+            item;\r
+        \r
+        // extract <label><input>\r
+        if (nodeName == 'label' && $node.find('input, textarea, select').length) {\r
+            label = $node.text();\r
+            $node = $node.children().first();\r
+            node = $node.get(0);\r
+            nodeName = node.nodeName.toLowerCase();\r
+        }\r
+        \r
+        /*\r
+         * <menu> accepts flow-content as children. that means <embed>, <canvas> and such are valid menu items.\r
+         * Not being the sadistic kind, $.contextMenu only accepts:\r
+         * <command>, <menuitem>, <hr>, <span>, <p> <input [text, radio, checkbox]>, <textarea>, <select> and of course <menu>.\r
+         * Everything else will be imported as an html node, which is not interfaced with contextMenu.\r
+         */\r
+        \r
+        // http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#concept-command\r
+        switch (nodeName) {\r
+            // http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#the-menu-element\r
+            case 'menu':\r
+                item = {name: $node.attr('label'), items: {}};\r
+                menuChildren(item.items, $node.children(), counter);\r
+                break;\r
+            \r
+            // http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#using-the-a-element-to-define-a-command\r
+            case 'a':\r
+            // http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#using-the-button-element-to-define-a-command\r
+            case 'button':\r
+                item = {\r
+                    name: $node.text(),\r
+                    disabled: !!$node.attr('disabled'),\r
+                    callback: (function(){ return function(){ $node.click(); }; })()\r
+                };\r
+                break;\r
+            \r
+            // http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#using-the-command-element-to-define-a-command\r
+\r
+            case 'menuitem':\r
+            case 'command':\r
+                switch ($node.attr('type')) {\r
+                    case undefined:\r
+                    case 'command':\r
+                    case 'menuitem':\r
+                        item = {\r
+                            name: $node.attr('label'),\r
+                            disabled: !!$node.attr('disabled'),\r
+                            callback: (function(){ return function(){ $node.click(); }; })()\r
+                        };\r
+                        break;\r
+                        \r
+                    case 'checkbox':\r
+                        item = {\r
+                            type: 'checkbox',\r
+                            disabled: !!$node.attr('disabled'),\r
+                            name: $node.attr('label'),\r
+                            selected: !!$node.attr('checked')\r
+                        };\r
+                        break;\r
+                        \r
+                    case 'radio':\r
+                        item = {\r
+                            type: 'radio',\r
+                            disabled: !!$node.attr('disabled'),\r
+                            name: $node.attr('label'),\r
+                            radio: $node.attr('radiogroup'),\r
+                            value: $node.attr('id'),\r
+                            selected: !!$node.attr('checked')\r
+                        };\r
+                        break;\r
+                        \r
+                    default:\r
+                        item = undefined;\r
+                }\r
+                break;\r
\r
+            case 'hr':\r
+                item = '-------';\r
+                break;\r
+                \r
+            case 'input':\r
+                switch ($node.attr('type')) {\r
+                    case 'text':\r
+                        item = {\r
+                            type: 'text',\r
+                            name: label || inputLabel(node),\r
+                            disabled: !!$node.attr('disabled'),\r
+                            value: $node.val()\r
+                        };\r
+                        break;\r
+                        \r
+                    case 'checkbox':\r
+                        item = {\r
+                            type: 'checkbox',\r
+                            name: label || inputLabel(node),\r
+                            disabled: !!$node.attr('disabled'),\r
+                            selected: !!$node.attr('checked')\r
+                        };\r
+                        break;\r
+                        \r
+                    case 'radio':\r
+                        item = {\r
+                            type: 'radio',\r
+                            name: label || inputLabel(node),\r
+                            disabled: !!$node.attr('disabled'),\r
+                            radio: !!$node.attr('name'),\r
+                            value: $node.val(),\r
+                            selected: !!$node.attr('checked')\r
+                        };\r
+                        break;\r
+                    \r
+                    default:\r
+                        item = undefined;\r
+                        break;\r
+                }\r
+                break;\r
+                \r
+            case 'select':\r
+                item = {\r
+                    type: 'select',\r
+                    name: label || inputLabel(node),\r
+                    disabled: !!$node.attr('disabled'),\r
+                    selected: $node.val(),\r
+                    options: {}\r
+                };\r
+                $node.children().each(function(){\r
+                    item.options[this.value] = $(this).text();\r
+                });\r
+                break;\r
+                \r
+            case 'textarea':\r
+                item = {\r
+                    type: 'textarea',\r
+                    name: label || inputLabel(node),\r
+                    disabled: !!$node.attr('disabled'),\r
+                    value: $node.val()\r
+                };\r
+                break;\r
+            \r
+            case 'label':\r
+                break;\r
+            \r
+            default:\r
+                item = {type: 'html', html: $node.clone(true)};\r
+                break;\r
+        }\r
+        \r
+        if (item) {\r
+            counter++;\r
+            items['key' + counter] = item;\r
+        }\r
+    });\r
+}\r
+\r
+// convert html5 menu\r
+$.contextMenu.fromMenu = function(element) {\r
+    var $this = $(element),\r
+        items = {};\r
+        \r
+    menuChildren(items, $this.children());\r
+    \r
+    return items;\r
+};\r
+\r
+// make defaults accessible\r
+$.contextMenu.defaults = defaults;\r
+$.contextMenu.types = types;\r
+\r
+})(jQuery);\r
diff --git a/redakcja/static/contextmenu/jquery.ui.position.js b/redakcja/static/contextmenu/jquery.ui.position.js
new file mode 100755 (executable)
index 0000000..cafdf02
--- /dev/null
@@ -0,0 +1,252 @@
+/*!
+ * jQuery UI Position 1.8.13
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Position
+ */
+(function( $, undefined ) {
+
+$.ui = $.ui || {};
+
+var horizontalPositions = /left|center|right/,
+       verticalPositions = /top|center|bottom/,
+       center = "center",
+       _position = $.fn.position,
+       _offset = $.fn.offset;
+
+$.fn.position = function( options ) {
+       if ( !options || !options.of ) {
+               return _position.apply( this, arguments );
+       }
+
+       // make a copy, we don't want to modify arguments
+       options = $.extend( {}, options );
+
+       var target = $( options.of ),
+               targetElem = target[0],
+               collision = ( options.collision || "flip" ).split( " " ),
+               offset = options.offset ? options.offset.split( " " ) : [ 0, 0 ],
+               targetWidth,
+               targetHeight,
+               basePosition;
+
+       if ( targetElem.nodeType === 9 ) {
+               targetWidth = target.width();
+               targetHeight = target.height();
+               basePosition = { top: 0, left: 0 };
+       // TODO: use $.isWindow() in 1.9
+       } else if ( targetElem.setTimeout ) {
+               targetWidth = target.width();
+               targetHeight = target.height();
+               basePosition = { top: target.scrollTop(), left: target.scrollLeft() };
+       } else if ( targetElem.preventDefault ) {
+               // force left top to allow flipping
+               options.at = "left top";
+               targetWidth = targetHeight = 0;
+               basePosition = { top: options.of.pageY, left: options.of.pageX };
+       } else {
+               targetWidth = target.outerWidth();
+               targetHeight = target.outerHeight();
+               basePosition = target.offset();
+       }
+
+       // force my and at to have valid horizontal and veritcal positions
+       // if a value is missing or invalid, it will be converted to center 
+       $.each( [ "my", "at" ], function() {
+               var pos = ( options[this] || "" ).split( " " );
+               if ( pos.length === 1) {
+                       pos = horizontalPositions.test( pos[0] ) ?
+                               pos.concat( [center] ) :
+                               verticalPositions.test( pos[0] ) ?
+                                       [ center ].concat( pos ) :
+                                       [ center, center ];
+               }
+               pos[ 0 ] = horizontalPositions.test( pos[0] ) ? pos[ 0 ] : center;
+               pos[ 1 ] = verticalPositions.test( pos[1] ) ? pos[ 1 ] : center;
+               options[ this ] = pos;
+       });
+
+       // normalize collision option
+       if ( collision.length === 1 ) {
+               collision[ 1 ] = collision[ 0 ];
+       }
+
+       // normalize offset option
+       offset[ 0 ] = parseInt( offset[0], 10 ) || 0;
+       if ( offset.length === 1 ) {
+               offset[ 1 ] = offset[ 0 ];
+       }
+       offset[ 1 ] = parseInt( offset[1], 10 ) || 0;
+
+       if ( options.at[0] === "right" ) {
+               basePosition.left += targetWidth;
+       } else if ( options.at[0] === center ) {
+               basePosition.left += targetWidth / 2;
+       }
+
+       if ( options.at[1] === "bottom" ) {
+               basePosition.top += targetHeight;
+       } else if ( options.at[1] === center ) {
+               basePosition.top += targetHeight / 2;
+       }
+
+       basePosition.left += offset[ 0 ];
+       basePosition.top += offset[ 1 ];
+
+       return this.each(function() {
+               var elem = $( this ),
+                       elemWidth = elem.outerWidth(),
+                       elemHeight = elem.outerHeight(),
+                       marginLeft = parseInt( $.curCSS( this, "marginLeft", true ) ) || 0,
+                       marginTop = parseInt( $.curCSS( this, "marginTop", true ) ) || 0,
+                       collisionWidth = elemWidth + marginLeft +
+                               ( parseInt( $.curCSS( this, "marginRight", true ) ) || 0 ),
+                       collisionHeight = elemHeight + marginTop +
+                               ( parseInt( $.curCSS( this, "marginBottom", true ) ) || 0 ),
+                       position = $.extend( {}, basePosition ),
+                       collisionPosition;
+
+               if ( options.my[0] === "right" ) {
+                       position.left -= elemWidth;
+               } else if ( options.my[0] === center ) {
+                       position.left -= elemWidth / 2;
+               }
+
+               if ( options.my[1] === "bottom" ) {
+                       position.top -= elemHeight;
+               } else if ( options.my[1] === center ) {
+                       position.top -= elemHeight / 2;
+               }
+
+               // prevent fractions (see #5280)
+               position.left = Math.round( position.left );
+               position.top = Math.round( position.top );
+
+               collisionPosition = {
+                       left: position.left - marginLeft,
+                       top: position.top - marginTop
+               };
+
+               $.each( [ "left", "top" ], function( i, dir ) {
+                       if ( $.ui.position[ collision[i] ] ) {
+                               $.ui.position[ collision[i] ][ dir ]( position, {
+                                       targetWidth: targetWidth,
+                                       targetHeight: targetHeight,
+                                       elemWidth: elemWidth,
+                                       elemHeight: elemHeight,
+                                       collisionPosition: collisionPosition,
+                                       collisionWidth: collisionWidth,
+                                       collisionHeight: collisionHeight,
+                                       offset: offset,
+                                       my: options.my,
+                                       at: options.at
+                               });
+                       }
+               });
+
+               if ( $.fn.bgiframe ) {
+                       elem.bgiframe();
+               }
+               elem.offset( $.extend( position, { using: options.using } ) );
+       });
+};
+
+$.ui.position = {
+       fit: {
+               left: function( position, data ) {
+                       var win = $( window ),
+                               over = data.collisionPosition.left + data.collisionWidth - win.width() - win.scrollLeft();
+                       position.left = over > 0 ? position.left - over : Math.max( position.left - data.collisionPosition.left, position.left );
+               },
+               top: function( position, data ) {
+                       var win = $( window ),
+                               over = data.collisionPosition.top + data.collisionHeight - win.height() - win.scrollTop();
+                       position.top = over > 0 ? position.top - over : Math.max( position.top - data.collisionPosition.top, position.top );
+               }
+       },
+
+       flip: {
+               left: function( position, data ) {
+                       if ( data.at[0] === center ) {
+                               return;
+                       }
+                       var win = $( window ),
+                               over = data.collisionPosition.left + data.collisionWidth - win.width() - win.scrollLeft(),
+                               myOffset = data.my[ 0 ] === "left" ?
+                                       -data.elemWidth :
+                                       data.my[ 0 ] === "right" ?
+                                               data.elemWidth :
+                                               0,
+                               atOffset = data.at[ 0 ] === "left" ?
+                                       data.targetWidth :
+                                       -data.targetWidth,
+                               offset = -2 * data.offset[ 0 ];
+                       position.left += data.collisionPosition.left < 0 ?
+                               myOffset + atOffset + offset :
+                               over > 0 ?
+                                       myOffset + atOffset + offset :
+                                       0;
+               },
+               top: function( position, data ) {
+                       if ( data.at[1] === center ) {
+                               return;
+                       }
+                       var win = $( window ),
+                               over = data.collisionPosition.top + data.collisionHeight - win.height() - win.scrollTop(),
+                               myOffset = data.my[ 1 ] === "top" ?
+                                       -data.elemHeight :
+                                       data.my[ 1 ] === "bottom" ?
+                                               data.elemHeight :
+                                               0,
+                               atOffset = data.at[ 1 ] === "top" ?
+                                       data.targetHeight :
+                                       -data.targetHeight,
+                               offset = -2 * data.offset[ 1 ];
+                       position.top += data.collisionPosition.top < 0 ?
+                               myOffset + atOffset + offset :
+                               over > 0 ?
+                                       myOffset + atOffset + offset :
+                                       0;
+               }
+       }
+};
+
+// offset setter from jQuery 1.4
+if ( !$.offset.setOffset ) {
+       $.offset.setOffset = function( elem, options ) {
+               // set position first, in-case top/left are set even on static elem
+               if ( /static/.test( $.curCSS( elem, "position" ) ) ) {
+                       elem.style.position = "relative";
+               }
+               var curElem   = $( elem ),
+                       curOffset = curElem.offset(),
+                       curTop    = parseInt( $.curCSS( elem, "top",  true ), 10 ) || 0,
+                       curLeft   = parseInt( $.curCSS( elem, "left", true ), 10)  || 0,
+                       props     = {
+                               top:  (options.top  - curOffset.top)  + curTop,
+                               left: (options.left - curOffset.left) + curLeft
+                       };
+               
+               if ( 'using' in options ) {
+                       options.using.call( elem, props );
+               } else {
+                       curElem.css( props );
+               }
+       };
+
+       $.fn.offset = function( options ) {
+               var elem = this[ 0 ];
+               if ( !elem || !elem.ownerDocument ) { return null; }
+               if ( options ) { 
+                       return this.each(function() {
+                               $.offset.setOffset( this, options );
+                       });
+               }
+               return _offset.call( this );
+       };
+}
+
+}( jQuery ));
diff --git a/redakcja/static/contextmenu2/images/cut.png b/redakcja/static/contextmenu2/images/cut.png
new file mode 100644 (file)
index 0000000..f215d6f
Binary files /dev/null and b/redakcja/static/contextmenu2/images/cut.png differ
diff --git a/redakcja/static/contextmenu2/images/door.png b/redakcja/static/contextmenu2/images/door.png
new file mode 100644 (file)
index 0000000..369fc46
Binary files /dev/null and b/redakcja/static/contextmenu2/images/door.png differ
diff --git a/redakcja/static/contextmenu2/images/page_white_copy.png b/redakcja/static/contextmenu2/images/page_white_copy.png
new file mode 100644 (file)
index 0000000..a9f31a2
Binary files /dev/null and b/redakcja/static/contextmenu2/images/page_white_copy.png differ
diff --git a/redakcja/static/contextmenu2/images/page_white_delete.png b/redakcja/static/contextmenu2/images/page_white_delete.png
new file mode 100644 (file)
index 0000000..af1ecaf
Binary files /dev/null and b/redakcja/static/contextmenu2/images/page_white_delete.png differ
diff --git a/redakcja/static/contextmenu2/images/page_white_edit.png b/redakcja/static/contextmenu2/images/page_white_edit.png
new file mode 100644 (file)
index 0000000..b93e776
Binary files /dev/null and b/redakcja/static/contextmenu2/images/page_white_edit.png differ
diff --git a/redakcja/static/contextmenu2/images/page_white_paste.png b/redakcja/static/contextmenu2/images/page_white_paste.png
new file mode 100644 (file)
index 0000000..5b2cbb3
Binary files /dev/null and b/redakcja/static/contextmenu2/images/page_white_paste.png differ
diff --git a/redakcja/static/contextmenu2/index.html b/redakcja/static/contextmenu2/index.html
new file mode 100644 (file)
index 0000000..4efa62b
--- /dev/null
@@ -0,0 +1,200 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\r
+\r
+<html xmlns="http://www.w3.org/1999/xhtml">\r
+\r
+       <head>\r
+               <title>jQuery Context Menu Plugin Demo</title>\r
+               <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />\r
+               \r
+               <style type="text/css">\r
+                       BODY,\r
+                       HTML {\r
+                               padding: 0px;\r
+                               margin: 0px;\r
+                       }\r
+                       BODY {\r
+                               font-family: Verdana, Arial, Helvetica, sans-serif;\r
+                               font-size: 11px;\r
+                               background: #FFF;\r
+                               padding: 15px;\r
+                       }\r
+                       \r
+                       H1 {\r
+                               font-family: Georgia, serif;\r
+                               font-size: 20px;\r
+                               font-weight: normal;\r
+                       }\r
+                       \r
+                       H2 {\r
+                               font-family: Georgia, serif;\r
+                               font-size: 16px;\r
+                               font-weight: normal;\r
+                               margin: 0px 0px 10px 0px;\r
+                       }\r
+                       \r
+                       #myDiv {\r
+                               width: 150px;\r
+                               border: solid 1px #2AA7DE;\r
+                               background: #6CC8EF;\r
+                               text-align: center;\r
+                               padding: 4em .5em;\r
+                               margin: 1em;\r
+                               float: left;\r
+                       }\r
+                       \r
+                       #myList {\r
+                               margin: 1em;\r
+                               float: left;\r
+                       }\r
+                       \r
+                       #myList UL {\r
+                               padding: 0px;\r
+                               margin: 0em 1em;\r
+                       }\r
+                       \r
+                       #myList LI {\r
+                               width: 100px;\r
+                               border: solid 1px #2AA7DE;\r
+                               background: #6CC8EF;\r
+                               padding: 5px 5px;\r
+                               margin: 2px 0px;\r
+                               list-style: none;\r
+                       }\r
+                       \r
+                       #options {\r
+                               clear: left;\r
+                       }\r
+                       \r
+                       #options INPUT {\r
+                               font-family: Verdana, Arial, Helvetica, sans-serif;\r
+                               font-size: 11px;\r
+                               width: 150px;\r
+                       }\r
+                       \r
+               </style>                \r
+               \r
+               <script src="../js/lib/jquery-1.4.2.min.js" type="text/javascript"></script>\r
+               <script src="jquery.contextMenu.js" type="text/javascript"></script>\r
+               <link href="jquery.contextMenu.css" rel="stylesheet" type="text/css" />\r
+               \r
+               <script type="text/javascript">\r
+                       \r
+                       $(document).ready( function() {\r
+                               \r
+                               // Show menu when #myDiv is clicked\r
+                               $("#myDiv").contextMenu({\r
+                                       menu: 'myMenu'\r
+                               },\r
+                                       function(action, el, pos) {\r
+                                       alert(\r
+                                               'Action: ' + action + '\n\n' +\r
+                                               'Element ID: ' + $(el).attr('id') + '\n\n' + \r
+                                               'X: ' + pos.x + '  Y: ' + pos.y + ' (relative to element)\n\n' + \r
+                                               'X: ' + pos.docX + '  Y: ' + pos.docY+ ' (relative to document)'\r
+                                               );\r
+                               });\r
+                               \r
+                               // Show menu when a list item is clicked\r
+                               $("#myList UL LI").contextMenu({\r
+                                       menu: 'myMenu'\r
+                               }, function(action, el, pos) {\r
+                                       alert(\r
+                                               'Action: ' + action + '\n\n' +\r
+                                               'Element text: ' + $(el).text() + '\n\n' + \r
+                                               'X: ' + pos.x + '  Y: ' + pos.y + ' (relative to element)\n\n' + \r
+                                               'X: ' + pos.docX + '  Y: ' + pos.docY+ ' (relative to document)'\r
+                                               );\r
+                               });\r
+                               \r
+                               // Disable menus\r
+                               $("#disableMenus").click( function() {\r
+                                       $('#myDiv, #myList UL LI').disableContextMenu();\r
+                                       $(this).attr('disabled', true);\r
+                                       $("#enableMenus").attr('disabled', false);\r
+                               });\r
+                               \r
+                               // Enable menus\r
+                               $("#enableMenus").click( function() {\r
+                                       $('#myDiv, #myList UL LI').enableContextMenu();\r
+                                       $(this).attr('disabled', true);\r
+                                       $("#disableMenus").attr('disabled', false);\r
+                               });\r
+                               \r
+                               // Disable cut/copy\r
+                               $("#disableItems").click( function() {\r
+                                       $('#myMenu').disableContextMenuItems('#cut,#copy');\r
+                                       $(this).attr('disabled', true);\r
+                                       $("#enableItems").attr('disabled', false);\r
+                               });\r
+                               \r
+                               // Enable cut/copy\r
+                               $("#enableItems").click( function() {\r
+                                       $('#myMenu').enableContextMenuItems('#cut,#copy');\r
+                                       $(this).attr('disabled', true);\r
+                                       $("#disableItems").attr('disabled', false);\r
+                               });                             \r
+                               \r
+                       });\r
+                       \r
+               </script>\r
+       </head>\r
+       \r
+       <body>\r
+               \r
+               <h1>jQuery Context Menu Plugin Demo</h1>\r
+               <p>\r
+                       This plugin lets you add context menu functionality to your web applications.\r
+               </p>\r
+               \r
+               <p>\r
+                       <strong>Tip:</strong> Try using your keyboard to make a selection.\r
+               </p>\r
+               \r
+               <p>\r
+                       <a href="http://abeautifulsite.net/2008/09/jquery-context-menu-plugin/">Back to the project page</a>\r
+               </p>\r
+               \r
+               <h2>Demo</h2>\r
+               \r
+               <div id="myDiv">\r
+                       Right click to view the context menu\r
+               </div>\r
+               \r
+               <div id="myList">\r
+                       <ul>\r
+                               <li>Item 1</li>\r
+                               <li>Item 2</li>\r
+                               <li>Item 3</li>\r
+                               <li>Item 4</li>\r
+                               <li>Item 5</li>\r
+                               <li>Item 6</li>\r
+                       </ul>\r
+               </div>\r
+               \r
+               <div id="options">\r
+                       <p>\r
+                               <input type="button" id="disableItems" value="Disable Cut/Copy" />\r
+                               <input type="button" id="enableItems" value="Enable Cut/Copy" disabled="disabled" />\r
+                       </p>\r
+                       \r
+                       <p>\r
+                               <input type="button" id="disableMenus" value="Disable Context Menus" />\r
+                               <input type="button" id="enableMenus" value="Enable Context Menus" disabled="disabled" />\r
+                       </p>\r
+               </div>\r
+               \r
+               <ul id="myMenu" class="contextMenu">\r
+                       <li class="edit"><a href="#edit">Edit</a></li>\r
+                       <li class="cut separator"><a href="#cut">Cut</a>\r
+                         <ul>\r
+                           <li class="pe"><a href="#pe">Pe</a></li>\r
+                         </ul>\r
+                       </li>\r
+                       <li class="copy"><a href="#copy">Copy</a></li>\r
+                       <li class="paste"><a href="#paste">Paste</a></li>\r
+                       <li class="delete"><a href="#delete">Delete</a></li>\r
+                       <li class="quit separator"><a href="#quit">Quit</a></li>\r
+               </ul>\r
+               \r
+       </body>\r
+</html>\r
diff --git a/redakcja/static/contextmenu2/jquery.contextMenu.css b/redakcja/static/contextmenu2/jquery.contextMenu.css
new file mode 100644 (file)
index 0000000..5b2dd90
--- /dev/null
@@ -0,0 +1,62 @@
+/* Generic context menu styles */\r
+.contextMenu {\r
+       position: absolute;\r
+       width: 120px;\r
+       z-index: 99999;\r
+       border: solid 1px #CCC;\r
+       background: #EEE;\r
+       padding: 0px;\r
+       margin: 0px;\r
+       display: none;\r
+}\r
+\r
+.contextMenu LI {\r
+       list-style: none;\r
+       padding: 0px;\r
+       margin: 0px;\r
+}\r
+\r
+.contextMenu A {\r
+       color: #333;\r
+       text-decoration: none;\r
+       display: block;\r
+       line-height: 20px;\r
+       height: 20px;\r
+       background-position: 6px center;\r
+       background-repeat: no-repeat;\r
+       outline: none;\r
+       padding: 1px 5px;\r
+       padding-left: 28px;\r
+}\r
+\r
+.contextMenu LI.hover A {\r
+       color: #FFF;\r
+       background-color: #3399FF;\r
+}\r
+\r
+.contextMenu LI.disabled A {\r
+       color: #AAA;\r
+       cursor: default;\r
+}\r
+\r
+.contextMenu LI.hover.disabled A {\r
+       background-color: transparent;\r
+}\r
+\r
+.contextMenu LI.separator {\r
+       border-top: solid 1px #CCC;\r
+}\r
+\r
+/*\r
+       Adding Icons\r
+       \r
+       You can add icons to the context menu by adding\r
+       classes to the respective LI element(s)\r
+*/\r
+\r
+.contextMenu LI.edit A { background-image: url(images/page_white_edit.png); }\r
+.contextMenu LI.cut A { background-image: url(images/cut.png); }\r
+.contextMenu LI.copy A { background-image: url(images/page_white_copy.png); }\r
+.contextMenu LI.paste A { background-image: url(images/page_white_paste.png); }\r
+.contextMenu LI.delete A { background-image: url(images/page_white_delete.png); }\r
+.contextMenu LI.quit A { background-image: url(images/door.png); }\r
diff --git a/redakcja/static/contextmenu2/jquery.contextMenu.js b/redakcja/static/contextmenu2/jquery.contextMenu.js
new file mode 100644 (file)
index 0000000..59c1737
--- /dev/null
@@ -0,0 +1,211 @@
+// jQuery Context Menu Plugin\r
+//\r
+// Version 1.01\r
+//\r
+// Cory S.N. LaViska\r
+// A Beautiful Site (http://abeautifulsite.net/)\r
+//\r
+// More info: http://abeautifulsite.net/2008/09/jquery-context-menu-plugin/\r
+//\r
+// Terms of Use\r
+//\r
+// This plugin is dual-licensed under the GNU General Public License\r
+//   and the MIT License and is copyright A Beautiful Site, LLC.\r
+//\r
+if(jQuery)( function() {\r
+       $.extend($.fn, {\r
+               \r
+               contextMenu: function(o, callback) {\r
+                       // Defaults\r
+                       if( o.menu == undefined ) return false;\r
+                       if( o.inSpeed == undefined ) o.inSpeed = 150;\r
+                       if( o.outSpeed == undefined ) o.outSpeed = 75;\r
+                       // 0 needs to be -1 for expected results (no fade)\r
+                       if( o.inSpeed == 0 ) o.inSpeed = -1;\r
+                       if( o.outSpeed == 0 ) o.outSpeed = -1;\r
+                       // Loop each context menu\r
+                       $(this).each( function() {\r
+                               var el = $(this);\r
+                               var offset = $(el).offset();\r
+                               // Add contextMenu class\r
+                               $('#' + o.menu).addClass('contextMenu');\r
+                               // Simulate a true right click\r
+                               $(this).mousedown( function(e) {\r
+                                       var evt = e;\r
+                                       evt.stopPropagation();\r
+                                       $(this).mouseup( function(e) {\r
+                                               e.stopPropagation();\r
+                                               var srcElement = $(this);\r
+                                               $(this).unbind('mouseup');\r
+                                               if( evt.button == 2 ) {\r
+                                                       // Hide context menus that may be showing\r
+                                                       $(".contextMenu").hide();\r
+                                                       // Get this context menu\r
+                                                       var menu = $('#' + o.menu);\r
+                                                       \r
+                                                       if( $(el).hasClass('disabled') ) return false;\r
+                                                       \r
+                                                       // Detect mouse position\r
+                                                       var d = {}, x, y;\r
+                                                       if( self.innerHeight ) {\r
+                                                               d.pageYOffset = self.pageYOffset;\r
+                                                               d.pageXOffset = self.pageXOffset;\r
+                                                               d.innerHeight = self.innerHeight;\r
+                                                               d.innerWidth = self.innerWidth;\r
+                                                       } else if( document.documentElement &&\r
+                                                               document.documentElement.clientHeight ) {\r
+                                                               d.pageYOffset = document.documentElement.scrollTop;\r
+                                                               d.pageXOffset = document.documentElement.scrollLeft;\r
+                                                               d.innerHeight = document.documentElement.clientHeight;\r
+                                                               d.innerWidth = document.documentElement.clientWidth;\r
+                                                       } else if( document.body ) {\r
+                                                               d.pageYOffset = document.body.scrollTop;\r
+                                                               d.pageXOffset = document.body.scrollLeft;\r
+                                                               d.innerHeight = document.body.clientHeight;\r
+                                                               d.innerWidth = document.body.clientWidth;\r
+                                                       }\r
+                                                       (e.pageX) ? x = e.pageX : x = e.clientX + d.scrollLeft;\r
+                                                       (e.pageY) ? y = e.pageY : y = e.clientY + d.scrollTop;\r
+                                                       \r
+                                                       // Show the menu\r
+                                                       $(document).unbind('click');\r
+                                                       $(menu).css({ top: y, left: x }).fadeIn(o.inSpeed);\r
+                                                       // Hover events\r
+                                                       $(menu).find('A').mouseover( function() {\r
+                                                               $(menu).find('LI.hover').removeClass('hover');\r
+                                                               $(this).parent().addClass('hover');\r
+                                                       }).mouseout( function() {\r
+                                                               $(menu).find('LI.hover').removeClass('hover');\r
+                                                       });\r
+                                                       \r
+                                                       // Keyboard\r
+                                                       $(document).keypress( function(e) {\r
+                                                               switch( e.keyCode ) {\r
+                                                                       case 38: // up\r
+                                                                               if( $(menu).find('LI.hover').size() == 0 ) {\r
+                                                                                       $(menu).find('LI:last').addClass('hover');\r
+                                                                               } else {\r
+                                                                                       $(menu).find('LI.hover').removeClass('hover').prevAll('LI:not(.disabled)').eq(0).addClass('hover');\r
+                                                                                       if( $(menu).find('LI.hover').size() == 0 ) $(menu).find('LI:last').addClass('hover');\r
+                                                                               }\r
+                                                                       break;\r
+                                                                       case 40: // down\r
+                                                                               if( $(menu).find('LI.hover').size() == 0 ) {\r
+                                                                                       $(menu).find('LI:first').addClass('hover');\r
+                                                                               } else {\r
+                                                                                       $(menu).find('LI.hover').removeClass('hover').nextAll('LI:not(.disabled)').eq(0).addClass('hover');\r
+                                                                                       if( $(menu).find('LI.hover').size() == 0 ) $(menu).find('LI:first').addClass('hover');\r
+                                                                               }\r
+                                                                       break;\r
+                                                                       case 13: // enter\r
+                                                                               $(menu).find('LI.hover A').trigger('click');\r
+                                                                       break;\r
+                                                                       case 27: // esc\r
+                                                                               $(document).trigger('click');\r
+                                                                       break\r
+                                                               }\r
+                                                       });\r
+                                                       \r
+                                                       // When items are selected\r
+                                                       $('#' + o.menu).find('A').unbind('click');\r
+                                                       $('#' + o.menu).find('LI:not(.disabled) A').click( function() {\r
+                                                               $(document).unbind('click').unbind('keypress');\r
+                                                               $(".contextMenu").hide();\r
+                                                               // Callback\r
+                                                               if( callback ) callback( $(this).attr('href').substr(1), $(srcElement), {x: x - offset.left, y: y - offset.top, docX: x, docY: y} );\r
+                                                               return false;\r
+                                                       });\r
+                                                       \r
+                                                       // Hide bindings\r
+                                                       setTimeout( function() { // Delay for Mozilla\r
+                                                               $(document).click( function() {\r
+                                                                       $(document).unbind('click').unbind('keypress');\r
+                                                                       $(menu).fadeOut(o.outSpeed);\r
+                                                                       return false;\r
+                                                               });\r
+                                                       }, 0);\r
+                                               }\r
+                                       });\r
+                               });\r
+                               \r
+                               // Disable text selection\r
+                               if( $.browser.mozilla ) {\r
+                                       $('#' + o.menu).each( function() { $(this).css({ 'MozUserSelect' : 'none' }); });\r
+                               } else if( $.browser.msie ) {\r
+                                       $('#' + o.menu).each( function() { $(this).bind('selectstart.disableTextSelect', function() { return false; }); });\r
+                               } else {\r
+                                       $('#' + o.menu).each(function() { $(this).bind('mousedown.disableTextSelect', function() { return false; }); });\r
+                               }\r
+                               // Disable browser context menu (requires both selectors to work in IE/Safari + FF/Chrome)\r
+                               $(el).add($('UL.contextMenu')).bind('contextmenu', function() { return false; });\r
+                               \r
+                       });\r
+                       return $(this);\r
+               },\r
+               \r
+               // Disable context menu items on the fly\r
+               disableContextMenuItems: function(o) {\r
+                       if( o == undefined ) {\r
+                               // Disable all\r
+                               $(this).find('LI').addClass('disabled');\r
+                               return( $(this) );\r
+                       }\r
+                       $(this).each( function() {\r
+                               if( o != undefined ) {\r
+                                       var d = o.split(',');\r
+                                       for( var i = 0; i < d.length; i++ ) {\r
+                                               $(this).find('A[href="' + d[i] + '"]').parent().addClass('disabled');\r
+                                               \r
+                                       }\r
+                               }\r
+                       });\r
+                       return( $(this) );\r
+               },\r
+               \r
+               // Enable context menu items on the fly\r
+               enableContextMenuItems: function(o) {\r
+                       if( o == undefined ) {\r
+                               // Enable all\r
+                               $(this).find('LI.disabled').removeClass('disabled');\r
+                               return( $(this) );\r
+                       }\r
+                       $(this).each( function() {\r
+                               if( o != undefined ) {\r
+                                       var d = o.split(',');\r
+                                       for( var i = 0; i < d.length; i++ ) {\r
+                                               $(this).find('A[href="' + d[i] + '"]').parent().removeClass('disabled');\r
+                                               \r
+                                       }\r
+                               }\r
+                       });\r
+                       return( $(this) );\r
+               },\r
+               \r
+               // Disable context menu(s)\r
+               disableContextMenu: function() {\r
+                       $(this).each( function() {\r
+                               $(this).addClass('disabled');\r
+                       });\r
+                       return( $(this) );\r
+               },\r
+               \r
+               // Enable context menu(s)\r
+               enableContextMenu: function() {\r
+                       $(this).each( function() {\r
+                               $(this).removeClass('disabled');\r
+                       });\r
+                       return( $(this) );\r
+               },\r
+               \r
+               // Destroy context menu(s)\r
+               destroyContextMenu: function() {\r
+                       // Destroy specified context menus\r
+                       $(this).each( function() {\r
+                               // Disable action\r
+                               $(this).unbind('mousedown').unbind('mouseup');\r
+                       });\r
+                       return( $(this) );\r
+               }\r
+               \r
+       });\r
+})(jQuery);
\ No newline at end of file
diff --git a/redakcja/static/css/book.css b/redakcja/static/css/book.css
new file mode 100644 (file)
index 0000000..a29d1d6
--- /dev/null
@@ -0,0 +1,406 @@
+body {
+    font-size: 16px;
+    font: Georgia, "Times New Roman", serif;
+    line-height: 1.5em;
+    margin: 0;
+}
+
+a {
+    color: blue;
+    text-decoration: none;
+}
+
+#book-text {
+    margin: 3em;
+    max-width: 36em;
+}
+
+/* ================================== */
+/* = Header with logo and menu      = */
+/* ================================== */
+#header {
+    margin: 3.4em 0 0 1.4em;
+}
+
+img {
+    border: none;
+}
+
+#logo {
+    font-size: 1.5em;
+}
+#logo a {
+    color: black;
+}
+
+#menu {
+    position: fixed;
+    left: 0em;
+    top: 0em;
+    width: 100%;
+    height: 1.5em;
+    background: #333;
+    color: #FFF;
+    opacity: 0.9;
+    z-index: 99;
+}
+
+#menu ul {
+    list-style: none;
+    padding: 0;
+    margin: 0;
+}
+
+#menu li a {
+    display: block;
+    float: left;
+    height: 1.5em;
+    margin-left: 0.5em;
+    text-align: center;
+    color: #FFF;
+    padding: 0 1em;
+}
+#menu li a.menu {
+    padding-right: 1.5em;
+}
+
+#menu li a.menu:hover, #menu li a.menu:active {
+    color: #000;
+    background: #FFF;
+}
+
+#menu li a.menu.selected {
+    color: #000;
+    background: #FFF;
+}
+#menu a.menu-link {
+    display: block;
+    float: left;
+    height: 1.5em;
+    margin-left: 0.5em;
+    text-align: center;
+    color: #FFF;
+}
+#menu span {
+    color: #888;
+    font-style: italic;
+    font-size: .75em;
+    margin-right: 0.5em;
+}
+
+
+#toc, #themes, #nota_red, #info {
+    position: fixed;
+    left: 0em;
+    top: 1.5em;
+    width: 37em;
+    padding: 1.5em;
+    background: #FFF;
+    border-bottom: 0.25em solid #DDD;
+    border-right: 0.25em solid #DDD;
+    display: none;
+    height: 16em;
+    overflow-x: hidden;
+    overflow-y: auto;
+    opacity: 0.9;
+    z-index: 99;
+}
+#download {
+    position: fixed;
+    left: 0em;
+    top: 1.5em;
+    width: 37em;
+    padding: 1.5em;
+    background: #FFF;
+    border-bottom: 0.25em solid #DDD;
+    border-right: 0.25em solid #DDD;
+    display: none;
+    height: 10em;
+    overflow-x: hidden;
+    overflow-y: auto;
+    opacity: 0.9;
+    z-index: 99;
+}
+
+#toc ol, #themes ol {
+    list-style: none;
+    padding: 0;
+    margin: 0;
+}
+
+#toc ol li {
+    font-weight: bold;
+}
+
+#toc ol ol {
+    padding: 0 0 1.5em 1.5em;
+    margin: 0;
+}
+
+#toc ol ol li {
+    font-weight: normal;
+}
+
+#toc h2 {
+    display: none;
+}
+
+#toc .anchor {
+    float: none;
+    margin: 0;
+    color: blue;
+    font-size: 16px;
+    position: inherit;
+}
+
+#info p {
+    text-align: justify;
+    margin: 1.5em 0 0;
+}
+
+/* =================================================== */
+/* = Common elements: headings, paragraphs and lines = */
+/* =================================================== */
+h1 {
+    font-size: 3em;
+    margin: 1.5em 0;
+    text-align: center;
+    line-height: 1.5em;
+    font-weight: bold;
+}
+
+h2 {
+    font-size: 2em;
+    margin: 1.5em 0 0;
+    font-weight: bold;
+    line-height: 1.5em;
+}
+
+h3 {
+    font-size: 1.5em;
+    margin: 1.5em 0 0;
+    font-weight: normal;
+    line-height: 1.5em;
+}
+
+h4 {
+    font-size: 1em;
+    margin: 1.5em 0 0;
+    line-height: 1.5em;
+}
+
+p {
+    margin: 0;
+}
+
+/* ======================== */
+/* = Footnotes and themes = */
+/* ======================== */
+.theme-begin {
+    border-left: 0.1em solid #DDDDDD;
+    color: #777;
+    padding: 0 0.5em;
+    width: 7.5em;
+
+    font-style: normal;
+    font-weight: normal;
+    font-variant: normal;
+    letter-spacing: 0;
+    text-transform: none;
+    text-decoration: none;
+
+    font-size: 16px;
+    float: right;
+    margin-right: -9.5em;
+    margin-bottom: 0.5em;
+    clear: both;
+    left: 40em;
+    line-height: 1.5em;
+    text-align: left;
+}
+
+.annotation {
+    font-style: normal;
+    font-weight: normal;
+    font-size: 12px;
+    padding-left: 2px;
+    position: relative;
+    top: -4px;
+}
+
+#footnotes {
+    margin-top: 3em;
+}
+
+#footnotes .annotation {
+    display: block;
+    float: left;
+    width: 2.5em;
+    clear: both;
+}
+
+#footnotes div {
+    margin: 1.5em 0 0 0;
+}
+
+#footnotes p, #footnotes ul {
+    margin-left: 2.5em;
+    font-size: 0.875em;
+}
+
+#footnotes .permalink {
+    font-size: .75em;
+}
+
+blockquote {
+    font-size: 0.875em;
+}
+
+/* ============= */
+/* = Numbering = */
+/* ============= */
+.verse, .paragraph {
+    position:relative;
+}
+.anchor {
+    position: absolute;
+    margin: -0.25em -0.5em;
+    left: -3em;
+    color: #777;
+    font-size: 12px;
+    width: 2em;
+    text-align: center;
+    padding: 0.25em 0.5em;
+    line-height: 1.5em;
+}
+
+.anchor:hover, #book-text .anchor:active {
+    color: #FFF;
+    background-color: #CCC;
+}
+
+/* =================== */
+/* = Custom elements = */
+/* =================== */
+span.author {
+    font-size: 0.5em;
+    display: block;
+    line-height: 1.5em;
+    margin-bottom: 0.25em;
+}
+
+span.collection {
+    font-size: 0.375em;
+    display: block;
+    line-height: 1.5em;
+    margin-bottom: -0.25em;
+}
+
+span.subtitle {
+    font-size: 0.5em;
+    display: block;
+    line-height: 1.5em;
+    margin-top: -0.25em;
+}
+
+span.translator {
+    font-size: 0.375em;
+    display: block;
+    line-height: 1.5em;
+    margin-top: 0.25em;
+}
+
+div.didaskalia {
+    font-style: italic;
+    margin: 0.5em 0 0 1.5em;
+}
+
+div.kwestia {
+    margin: 0.5em 0 0;
+}
+
+div.stanza {
+    margin: 1.5em 0 0;
+}
+
+div.kwestia div.stanza {
+    margin: 0;
+}
+
+p.paragraph {
+    text-align: justify;
+    margin: 1.5em 0 0;
+}
+
+p.motto {
+    text-align: justify;
+    font-style: italic;
+    margin: 1.5em 0 0;
+}
+
+p.motto_podpis {
+    font-size: 0.875em;
+    text-align: right;
+}
+
+div.fragment {
+    border-bottom: 0.1em solid #999;
+    padding-bottom: 1.5em;
+}
+
+div.note p, div.dedication p, div.note p.paragraph, div.dedication p.paragraph {
+    text-align: right;
+    font-style: italic;
+}
+
+hr.spacer {
+    height: 3em;
+    visibility: hidden;
+}
+
+hr.spacer-line {
+    margin: 1.5em 0;
+    border: none;
+    border-bottom: 0.1em solid #000;
+}
+
+p.spacer-asterisk {
+    padding: 0;
+    margin: 1.5em 0;
+    text-align: center;
+}
+
+div.person-list ol {
+    list-style: none;
+    padding: 0 0 0 1.5em;
+}
+
+p.place-and-time {
+    font-style: italic;
+}
+
+em.math, em.foreign-word, em.book-title, em.didaskalia {
+    font-style: italic;
+}
+
+em.author-emphasis {
+    letter-spacing: 0.1em;
+}
+
+em.person {
+    font-style: normal;
+    font-variant: small-caps;
+}
+
+.verse:after {
+    content: "\feff";
+}
+
+
+/* =================================== */
+/* = Hide some elements for printing = */
+/* =================================== */
+
+@media print {
+    #menu {display: none;}
+}
diff --git a/redakcja/static/css/book_list.css b/redakcja/static/css/book_list.css
new file mode 100644 (file)
index 0000000..86a0de5
--- /dev/null
@@ -0,0 +1,6 @@
+/* icons used in the contex menu of book list */
+
+.context-menu-item.icon-user { background-image: url(../icons/user.png); }
+.context-menu-item.icon-clock { background-image: url(../icons/clock.png); }
+.context-menu-item.icon-ok { background-image: url(../icons/ok.png); }
+.context-menu-item.icon-stop { background-image: url(../icons/stop.png); }
index 4cf22f9..b5e4fc4 100644 (file)
@@ -223,4 +223,16 @@ a:hover {
 
 .wall .publish {
     background-color: #fdc;
-}
\ No newline at end of file
+}
+
+div.cover-preview {
+       width: 216px;
+       min-height: 300px;
+       float: left;
+       margin-right: 2em;
+}
+
+img.cover-preview {
+       width: 216px;
+       height: 300px;
+}
index 55c020e..fc0ed85 100644 (file)
@@ -1,10 +1,9 @@
 #sidebar {
-    display:none;
     position: absolute;
     top: 0px;
     right: 0px;
     bottom: 0px;
-    width: 480px;
+    width: 0px;
     background-color: #FFF;
 }
 
index acd9f93..cbc5c52 100644 (file)
@@ -89,6 +89,11 @@ table#changes-list-container {
     white-space: pre-line;
 }
 
+#changes-list *[data-stub-value = 'published'] {
+    font-size: .7em;
+    color: gray;
+}
+
 /*
  * Graphical DIFF view
  *
@@ -151,4 +156,4 @@ table#changes-list-container {
 
 .diff_mark_changed {
     background-color: yellow;
-}
\ No newline at end of file
+}
index 416cde1..f349b9e 100644 (file)
        overflow: hidden;
 }
 
-.ac_loading {
-       background: white url('indicator.gif') right center no-repeat;
-}
-
 .ac_odd {
        background-color: #eee;
 }
index 09a6069..a87d5a6 100644 (file)
@@ -28,13 +28,14 @@ body {
     border-right: 2px solid #999;
     cursor: pointer;  
     background: #C1C1C1; 
+    z-index:100;
+    cursor: col-resize;
 }
 
 .vsplitbar:hover {
        background-color: #E6E6E6;
 }
 
-
 .vsplitbar p {
     font: 12px Helvetica,Verdana,sans-serif;
 
@@ -48,6 +49,17 @@ body {
   margin: 250px auto;
 }
 
+#drag-layer {
+    position:absolute;
+    top:0;
+    bottom:0;
+    left:0;
+    right:0;
+    z-index:1000;
+    display: none;
+    cursor: col-resize;
+}
+
 .editor {
     position: absolute;
     top: 0px;
@@ -365,7 +377,7 @@ img.tabclose {
 
 .saveNotify {
     position:absolute; 
-    top:22px; 
+    bottom:22px; 
     right:7px; 
     z-index:800;
     background-color: #FFFF69; 
index 6c05e0b..5111ad5 100644 (file)
@@ -6,16 +6,15 @@
        padding: 1em;
 }
 
-#summary-view .book-cover {
+#summary-view .summary-cover-area {
        float: left;
        margin: 1em;
        margin-right: 2em;
+}
 
+#summary-view .book-cover {
        height: 300px;
-       width: 212px;
-
-
-       border: 1px dashed black;
+       width: 216px;
 }
 
 #summary-view p {
diff --git a/redakcja/static/filebrowser/css/filebrowser.css b/redakcja/static/filebrowser/css/filebrowser.css
deleted file mode 100644 (file)
index c68126e..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-.filebrowser table td { font-size: 10px; }
-.filebrowser table a { font-size: 11px; }
-.filebrowser thead th.sorted a { padding-right: 13px; }
-.filebrowser td { padding: 9px 10px 7px 10px !important; }
-.filebrowser td.fb_icon { padding: 6px 5px 5px 5px !important; }
-
-table a.fb_deletelink, table a.fb_renamelink, table a.fb_selectlink, table a.fb_showversionslink {
-    cursor: pointer;
-    display: block; padding: 0; margin: 0;
-    width: 23px; height: 17px;
-    background-color: transparent;
-    background-position: 0 center;
-    background-repeat: no-repeat;
-}
-
-table .fb_deletelink:link, table .fb_deletelink:visited {
-    width: 15px;
-    background-image: url('../img/filebrowser_icon_delete.gif');
-}
-table .fb_deletelink:hover, table .fb_deletelink:active { background-image: url('../img/filebrowser_icon_delete_hover.gif'); }
-table .fb_renamelink:link, table .fb_renamelink:visited {
-    width: 14px;
-    background-image: url('../img/filebrowser_icon_rename.gif');
-}
-table .fb_renamelink:hover, table .fb_renamelink:active { background-image: url('../img/filebrowser_icon_rename_hover.gif'); }
-table .fb_selectlink:link, table .fb_selectlink:visited { background-image: url('../img/filebrowser_icon_select.gif'); }
-table .fb_selectlink:hover, table .fb_selectlink:active { background-image: url('../img/filebrowser_icon_select_hover.gif'); }
-table .fb_showversionslink:link, table .fb_showversionslink:visited { background-image: url('../img/filebrowser_icon_showversions.gif'); }
-table .fb_showversionslink:hover, table .fb_showversionslink:active { background-image: url('../img/filebrowser_icon_showversions_hover.gif'); }
diff --git a/redakcja/static/filebrowser/img/filebrowser_icon_delete.gif b/redakcja/static/filebrowser/img/filebrowser_icon_delete.gif
deleted file mode 100644 (file)
index 221a6e1..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_icon_delete.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_icon_delete_hover.gif b/redakcja/static/filebrowser/img/filebrowser_icon_delete_hover.gif
deleted file mode 100644 (file)
index 2a2142c..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_icon_delete_hover.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_icon_imagegenerator.gif b/redakcja/static/filebrowser/img/filebrowser_icon_imagegenerator.gif
deleted file mode 100644 (file)
index 9b19a42..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_icon_imagegenerator.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif b/redakcja/static/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif
deleted file mode 100644 (file)
index aaa256f..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_icon_makethumb.gif b/redakcja/static/filebrowser/img/filebrowser_icon_makethumb.gif
deleted file mode 100644 (file)
index 837f6cc..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_icon_makethumb.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_icon_makethumb_hover.gif b/redakcja/static/filebrowser/img/filebrowser_icon_makethumb_hover.gif
deleted file mode 100644 (file)
index d1d4d4a..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_icon_makethumb_hover.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_icon_rename.gif b/redakcja/static/filebrowser/img/filebrowser_icon_rename.gif
deleted file mode 100644 (file)
index bc45fe4..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_icon_rename.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_icon_rename_hover.gif b/redakcja/static/filebrowser/img/filebrowser_icon_rename_hover.gif
deleted file mode 100644 (file)
index be8ea08..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_icon_rename_hover.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_icon_select.gif b/redakcja/static/filebrowser/img/filebrowser_icon_select.gif
deleted file mode 100644 (file)
index a838427..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_icon_select.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_icon_select_disabled.gif b/redakcja/static/filebrowser/img/filebrowser_icon_select_disabled.gif
deleted file mode 100644 (file)
index 60ad2d5..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_icon_select_disabled.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_icon_select_hover.gif b/redakcja/static/filebrowser/img/filebrowser_icon_select_hover.gif
deleted file mode 100644 (file)
index 319558e..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_icon_select_hover.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_icon_show.gif b/redakcja/static/filebrowser/img/filebrowser_icon_show.gif
deleted file mode 100644 (file)
index dded982..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_icon_show.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_icon_show_hover.gif b/redakcja/static/filebrowser/img/filebrowser_icon_show_hover.gif
deleted file mode 100644 (file)
index fbd1f33..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_icon_show_hover.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_icon_showversions.gif b/redakcja/static/filebrowser/img/filebrowser_icon_showversions.gif
deleted file mode 100644 (file)
index 71525d7..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_icon_showversions.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_icon_showversions_hover.gif b/redakcja/static/filebrowser/img/filebrowser_icon_showversions_hover.gif
deleted file mode 100644 (file)
index 1fbe2e4..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_icon_showversions_hover.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif b/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif
deleted file mode 100644 (file)
index 9b19a42..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif b/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif
deleted file mode 100644 (file)
index aaa256f..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif b/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif
deleted file mode 100644 (file)
index bcd98d9..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif b/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif
deleted file mode 100644 (file)
index f9938c7..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif b/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif
deleted file mode 100644 (file)
index a6863cb..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif b/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif
deleted file mode 100644 (file)
index b9aba7c..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif b/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif
deleted file mode 100644 (file)
index 6de016b..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif b/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif
deleted file mode 100644 (file)
index eaaf254..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_type_.gif b/redakcja/static/filebrowser/img/filebrowser_type_.gif
deleted file mode 100644 (file)
index 6a908e2..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_type_.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_type_code.gif b/redakcja/static/filebrowser/img/filebrowser_type_code.gif
deleted file mode 100644 (file)
index 9650839..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_type_code.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_type_document.gif b/redakcja/static/filebrowser/img/filebrowser_type_document.gif
deleted file mode 100644 (file)
index 65ebd99..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_type_document.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_type_folder.gif b/redakcja/static/filebrowser/img/filebrowser_type_folder.gif
deleted file mode 100644 (file)
index 115e3fb..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_type_folder.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_type_image.gif b/redakcja/static/filebrowser/img/filebrowser_type_image.gif
deleted file mode 100644 (file)
index 000b31c..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_type_image.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_type_sound.gif b/redakcja/static/filebrowser/img/filebrowser_type_sound.gif
deleted file mode 100644 (file)
index 8a8970a..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_type_sound.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/filebrowser_type_video.gif b/redakcja/static/filebrowser/img/filebrowser_type_video.gif
deleted file mode 100644 (file)
index f456d59..0000000
Binary files a/redakcja/static/filebrowser/img/filebrowser_type_video.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/tableheader_arrow_down.gif b/redakcja/static/filebrowser/img/tableheader_arrow_down.gif
deleted file mode 100644 (file)
index 5ae95a6..0000000
Binary files a/redakcja/static/filebrowser/img/tableheader_arrow_down.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/tableheader_arrow_up.gif b/redakcja/static/filebrowser/img/tableheader_arrow_up.gif
deleted file mode 100644 (file)
index 85f1e12..0000000
Binary files a/redakcja/static/filebrowser/img/tableheader_arrow_up.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/img/tableheader_arrows.gif b/redakcja/static/filebrowser/img/tableheader_arrows.gif
deleted file mode 100644 (file)
index 39b8780..0000000
Binary files a/redakcja/static/filebrowser/img/tableheader_arrows.gif and /dev/null differ
diff --git a/redakcja/static/filebrowser/js/AddFileBrowser.js b/redakcja/static/filebrowser/js/AddFileBrowser.js
deleted file mode 100644 (file)
index 888885f..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-var FileBrowser = {
-    // this is set automatically
-    admin_media_prefix: '',
-    // change this
-    thumb_prefix: 'thumb_',
-    no_thumb: 'filebrowser/img/no_thumb.gif',
-
-    init: function() {
-        // Deduce admin_media_prefix by looking at the <script>s in the
-        // current document and finding the URL of *this* module.
-        var scripts = document.getElementsByTagName('script');
-        for (var i=0; i<scripts.length; i++) {
-            if (scripts[i].src.match(/AddFileBrowser/)) {
-                var idx = scripts[i].src.indexOf('filebrowser/js/AddFileBrowser');
-                FileBrowser.admin_media_prefix = scripts[i].src.substring(0, idx);
-                break;
-            }
-        }
-    },
-    // show FileBrowser
-    show: function(id, href) {
-        // var id2=String(id).split(".").join("___");
-        var id2=String(id).replace(/\-/g,"____").split(".").join("___");
-        FBWindow = window.open(href, String(id2), 'height=600,width=960,resizable=yes,scrollbars=yes');
-        FBWindow.focus();
-    }
-}
-
-addEvent(window, 'load', FileBrowser.init);
-
diff --git a/redakcja/static/filebrowser/js/FB_CKEditor.js b/redakcja/static/filebrowser/js/FB_CKEditor.js
deleted file mode 100644 (file)
index 74d8d64..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-function ProtectPath(path) {
-    path = path.replace( /\\/g,'\\\\');
-    path = path.replace( /'/g,'\\\'');
-    return path ;
-}
-
-function gup( name ) {
-  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
-  var regexS = "[\\?&]"+name+"=([^&#]*)";
-  var regex = new RegExp(regexS);
-  var results = regex.exec(window.location.href);
-  if(results == null)
-    return "";
-  else
-    return results[1];
-}
-
-function OpenFile(fileUrl) {
-    var CKEditorFuncNum = gup('CKEditorFuncNum');
-    window.top.opener.CKEDITOR.tools.callFunction(CKEditorFuncNum,encodeURI(fileUrl).replace('#','%23'));
-    window.top.close();
-    window.top.opener.focus();
-}
-
diff --git a/redakcja/static/filebrowser/js/FB_FileBrowseField.js b/redakcja/static/filebrowser/js/FB_FileBrowseField.js
deleted file mode 100644 (file)
index 5e3aa9f..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-function FileSubmit(FileURL, ThumbURL, FileType) {
-
-    // var input_id=window.name.split("___").join(".");
-    var input_id=window.name.replace(/____/g,'-').split("___").join(".");
-    var preview_id = 'image_' + input_id;
-    var link_id = 'link_' + input_id;
-    var help_id = 'help_' + input_id;
-    input = opener.document.getElementById(input_id);
-    preview = opener.document.getElementById(preview_id);
-    link = opener.document.getElementById(link_id);
-    help = opener.document.getElementById(help_id);
-    // set new value for input field
-    input.value = FileURL;
-
-    if (ThumbURL && FileType != "") {
-        // selected file is an image and thumbnail is available:
-        // display the preview-image (thumbnail)
-        // link the preview-image to the original image
-        link.setAttribute("href", FileURL);
-        link.setAttribute("target", "_blank");
-        preview.setAttribute("src", ThumbURL);
-        help.setAttribute("style", "display:block");
-    } else {
-        // hide preview elements
-        link.setAttribute("href", "");
-        link.setAttribute("target", "");
-        preview.setAttribute("src", "");
-        help.setAttribute("style", "display:none");
-    }
-    this.close();
-}
-
diff --git a/redakcja/static/filebrowser/js/FB_TinyMCE.js b/redakcja/static/filebrowser/js/FB_TinyMCE.js
deleted file mode 100644 (file)
index b2d4d60..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-var FileBrowserDialogue = {
-    init : function () {
-        // remove tinymce stylesheet.
-        var allLinks = document.getElementsByTagName("link");
-        allLinks[allLinks.length-1].parentNode.removeChild(allLinks[allLinks.length-1]);
-    },
-    fileSubmit : function (FileURL) {
-        var URL = FileURL;
-        var win = tinyMCEPopup.getWindowArg("window");
-
-        // insert information now
-        win.document.getElementById(tinyMCEPopup.getWindowArg("input")).value = URL;
-
-        // change width/height & show preview
-        if (win.ImageDialog){
-            if (win.ImageDialog.getImageData)
-                win.ImageDialog.getImageData();
-            if (win.ImageDialog.showPreviewImage)
-                win.ImageDialog.showPreviewImage(URL);
-        }
-
-        // close popup window
-        tinyMCEPopup.close();
-    }
-}
-
-tinyMCEPopup.onInit.add(FileBrowserDialogue.init, FileBrowserDialogue);
-
diff --git a/redakcja/static/filebrowser/js/TinyMCEAdmin.js b/redakcja/static/filebrowser/js/TinyMCEAdmin.js
deleted file mode 100644 (file)
index 902fc9f..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-function CustomFileBrowser(field_name, url, type, win) {
-
-    var cmsURL = "/admin/filebrowser/browse/?pop=2";
-    cmsURL = cmsURL + "&type=" + type;
-
-    tinyMCE.activeEditor.windowManager.open({
-        file: cmsURL,
-        width: 820,  // Your dimensions may differ - toy around with them!
-        height: 500,
-        resizable: "yes",
-        scrollbars: "yes",
-        inline: "no",  // This parameter only has an effect if you use the inlinepopups plugin!
-        close_previous: "no"
-    }, {
-        window: win,
-        input: field_name,
-        editor_id: tinyMCE.selectedInstance.editorId
-    });
-    return false;
-}
-
-
-tinyMCE.init({
-    mode: "textareas",
-    theme: "advanced",
-    language: "en",
-    skin: "o2k7",
-    browsers: "gecko",
-    dialog_type: "modal",
-    object_resizing: true,
-    cleanup_on_startup: true,
-    forced_root_block: "p",
-    remove_trailing_nbsp: true,
-    theme_advanced_toolbar_location: "top",
-    theme_advanced_toolbar_align: "left",
-    theme_advanced_statusbar_location: "none",
-    theme_advanced_buttons1: "formatselect,bold,italic,underline,bullist,numlist,undo,redo,link,unlink,image,code,fullscreen,pasteword,media,charmap",
-    theme_advanced_buttons2: "",
-    theme_advanced_buttons3: "",
-    theme_advanced_path: false,
-    theme_advanced_blockformats: "p,h2,h3,h4,h5,h6",
-    width: '700',
-    height: '200',
-    plugins: "advimage,advlink,fullscreen,visualchars,paste,media,template,searchreplace",
-    advimage_styles: "Linksbündig neben Text=img_left;Rechtsbündig neben Text=img_right;Eigener Block=img_block",
-    advlink_styles: "internal (sehmaschine.net)=internal;external (link to an external site)=external",
-    advimage_update_dimensions_onchange: true,
-    file_browser_callback: "CustomFileBrowser",
-    relative_urls: false,
-    valid_elements : "" +
-    "-p," +
-    "a[href|target=_blank|class]," +
-    "-strong/-b," +
-    "-em/-i," +
-    "-u," +
-    "-ol," +
-    "-ul," +
-    "-li," +
-    "br," +
-    "img[class|src|alt=|width|height]," +
-    "-h2,-h3,-h4," +
-    "-pre," +
-    "-code," +
-    "-div",
-    extended_valid_elements: "" +
-    "a[name|class|href|target|title|onclick]," +
-    "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]," +
-    "br[clearfix]," +
-    "-p[class<clearfix?summary?code]," +
-    "h2[class<clearfix],h3[class<clearfix],h4[class<clearfix]," +
-    "ul[class<clearfix],ol[class<clearfix]," +
-    "div[class],"
-});
-
-
diff --git a/redakcja/static/filebrowser/js/jquery-1.3.2.min.js b/redakcja/static/filebrowser/js/jquery-1.3.2.min.js
deleted file mode 100644 (file)
index b1ae21d..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * jQuery JavaScript Library v1.3.2
- * http://jquery.com/
- *
- * Copyright (c) 2009 John Resig
- * Dual licensed under the MIT and GPL licenses.
- * http://docs.jquery.com/License
- *
- * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
- * Revision: 6246
- */
-(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
-/*
- * Sizzle CSS Selector Engine - v0.9.3
- *  Copyright 2009, The Dojo Foundation
- *  Released under the MIT, BSD, and GPL Licenses.
- *  More information: http://sizzlejs.com/
- */
-(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/Uploadify v2.1.0 Manual.pdf b/redakcja/static/filebrowser/uploadify/Uploadify v2.1.0 Manual.pdf
deleted file mode 100644 (file)
index c8b2565..0000000
Binary files a/redakcja/static/filebrowser/uploadify/Uploadify v2.1.0 Manual.pdf and /dev/null differ
diff --git a/redakcja/static/filebrowser/uploadify/cancel.png b/redakcja/static/filebrowser/uploadify/cancel.png
deleted file mode 100644 (file)
index 1c062ae..0000000
Binary files a/redakcja/static/filebrowser/uploadify/cancel.png and /dev/null differ
diff --git a/redakcja/static/filebrowser/uploadify/check.php b/redakcja/static/filebrowser/uploadify/check.php
deleted file mode 100644 (file)
index d7dc571..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php\r
-/*\r
-Uploadify v2.1.0\r
-Release Date: August 24, 2009\r
-\r
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels\r
-\r
-Permission is hereby granted, free of charge, to any person obtaining a copy\r
-of this software and associated documentation files (the "Software"), to deal\r
-in the Software without restriction, including without limitation the rights\r
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-copies of the Software, and to permit persons to whom the Software is\r
-furnished to do so, subject to the following conditions:\r
-\r
-The above copyright notice and this permission notice shall be included in\r
-all copies or substantial portions of the Software.\r
-\r
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-THE SOFTWARE.\r
-*/\r
-$fileArray = array();\r
-foreach ($_POST as $key => $value) {\r
-       if ($key != 'folder') {\r
-               if (file_exists($_SERVER['DOCUMENT_ROOT'] . $_POST['folder'] . '/' . $value)) {\r
-                       $fileArray[$key] = $value;\r
-               }\r
-       }\r
-}\r
-echo json_encode($fileArray);\r
-?>
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/air/logging/FileTarget.as b/redakcja/static/filebrowser/uploadify/com/adobe/air/logging/FileTarget.as
deleted file mode 100644 (file)
index 0dda3eb..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package com.adobe.air.logging
-{
-       import mx.logging.AbstractTarget;
-       import flash.filesystem.File;
-       import flash.filesystem.FileStream;
-       import flash.filesystem.FileMode;
-       import mx.logging.LogEvent;
-       import flash.system.System;
-       import flash.system.Capabilities;
-       import mx.logging.targets.LineFormattedTarget;
-       import mx.core.mx_internal;
-       
-       use namespace mx_internal;
-
-       /**
-        * An Adobe AIR only class that provides a log target for the Flex logging
-        * framework, that logs files to a file on the user's system.
-        * 
-        * This class will only work when running within Adobe AIR>
-        */
-       public class FileTarget extends LineFormattedTarget
-       {
-               private const DEFAULT_LOG_PATH:String = "app-storage:/application.log";
-               
-               private var log:File;
-               
-               public function FileTarget(logFile:File = null)
-               {
-                       if(logFile != null)
-                       {
-                               log = logFile;
-                       }
-                       else
-                       {
-                               log = new File(DEFAULT_LOG_PATH);
-                       }
-               }
-               
-               public function get logURI():String
-               {
-                       return log.url;
-               }
-               
-               mx_internal override function internalLog(message:String):void
-           {
-                       write(message);
-           }           
-               
-               private function write(msg:String):void
-               {               
-                       var fs:FileStream = new FileStream();
-                               fs.open(log, FileMode.APPEND);
-                               fs.writeUTFBytes(msg + "\n");
-                               fs.close();
-               }       
-               
-               public function clear():void
-               {
-                       var fs:FileStream = new FileStream();
-                               fs.open(log, FileMode.WRITE);
-                               fs.writeUTFBytes("");
-                               fs.close();                     
-               }
-               
-       }
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/crypto/HMAC.as b/redakcja/static/filebrowser/uploadify/com/adobe/crypto/HMAC.as
deleted file mode 100644 (file)
index 72f9bff..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.crypto {\r
-       import flash.utils.ByteArray;\r
-       import flash.utils.Endian;\r
-       import flash.utils.describeType;\r
-       /**\r
-        * Keyed-Hashing for Message Authentication\r
-        * Implementation based on algorithm description at \r
-        * http://www.faqs.org/rfcs/rfc2104.html\r
-        */\r
-       public class HMAC \r
-       {\r
-               /**\r
-                * Performs the HMAC hash algorithm using byte arrays.\r
-                *\r
-                * @param secret The secret key\r
-                * @param message The message to hash\r
-                * @param algorithm Hash object to use\r
-                * @return A string containing the hash value of message\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 8.5\r
-                * @tiptext\r
-                */\r
-               public static function hash( secret:String, message:String, algorithm:Object = null ):String\r
-               {\r
-                       var text:ByteArray = new ByteArray();\r
-                       var k_secret:ByteArray = new ByteArray();\r
-                       \r
-                       text.writeUTFBytes(message);\r
-                       k_secret.writeUTFBytes(secret);\r
-                       \r
-                       return hashBytes(k_secret, text, algorithm);\r
-               }\r
-               \r
-               /**\r
-                * Performs the HMAC hash algorithm using string.\r
-                *\r
-                * @param secret The secret key\r
-                * @param message The message to hash\r
-                * @param algorithm Hash object to use\r
-                * @return A string containing the hash value of message\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 8.5\r
-                * @tiptext\r
-                */\r
-               public static function hashBytes( secret:ByteArray, message:ByteArray, algorithm:Object = null ):String\r
-               {\r
-                       var ipad:ByteArray = new ByteArray();\r
-                       var opad:ByteArray = new ByteArray();\r
-                       var endian:String = Endian.BIG_ENDIAN;\r
-                       \r
-                       if(algorithm == null){\r
-                               algorithm = MD5;\r
-                       }\r
-                       \r
-                       if ( describeType(algorithm).@name.toString() == "com.adobe.crypto::MD5" ) {\r
-                               endian = Endian.LITTLE_ENDIAN;\r
-                       }\r
-                       \r
-                       if ( secret.length > 64 ) {\r
-                               algorithm.hashBytes(secret);\r
-                               secret = new ByteArray();\r
-                               secret.endian = endian;\r
-                               \r
-                               while ( algorithm.digest.bytesAvailable != 0 ) {\r
-                                       secret.writeInt(algorithm.digest.readInt());\r
-                               }\r
-                       }\r
-\r
-                       secret.length = 64\r
-                       secret.position = 0;\r
-                       for ( var x:int = 0; x < 64; x++ ) {\r
-                               var byte:int = secret.readByte();\r
-                               ipad.writeByte(0x36 ^ byte);\r
-                               opad.writeByte(0x5c ^ byte);\r
-                       }\r
-                       \r
-                       ipad.writeBytes(message);\r
-                       algorithm.hashBytes(ipad);\r
-                       var tmp:ByteArray = new ByteArray();\r
-                       tmp.endian = endian;    \r
-                       \r
-                       while ( algorithm.digest.bytesAvailable != 0 ) {\r
-                               tmp.writeInt(algorithm.digest.readInt());\r
-                       }\r
-                       tmp.position = 0;\r
-                       \r
-                       while ( tmp.bytesAvailable != 0 ) {\r
-                               opad.writeByte(tmp.readUnsignedByte());\r
-                       }\r
-                       return algorithm.hashBytes( opad );\r
-               }\r
-               \r
-       }\r
-       \r
-}\r
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/crypto/MD5.as b/redakcja/static/filebrowser/uploadify/com/adobe/crypto/MD5.as
deleted file mode 100644 (file)
index da533cc..0000000
+++ /dev/null
@@ -1,281 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package com.adobe.crypto {
-       
-       import com.adobe.utils.IntUtil;
-       import flash.utils.ByteArray;   
-       /**
-        * The MD5 Message-Digest Algorithm
-        *
-        * Implementation based on algorithm description at 
-        * http://www.faqs.org/rfcs/rfc1321.html
-        */
-       public class MD5 {
-               
-               public static var digest:ByteArray;
-               /**
-                * Performs the MD5 hash algorithm on a string.
-                *
-                * @param s The string to hash
-                * @return A string containing the hash value of s
-                * @langversion ActionScript 3.0
-                * @playerversion Flash 8.5
-                * @tiptext
-                */
-                
-               public static function hash(s:String) :String{
-                       //Convert to byteArray and send through hashBinary function
-                       // so as to only have complex code in one location
-                       var ba:ByteArray = new ByteArray();
-                       ba.writeUTFBytes(s);    
-                       return hashBinary(ba);
-               }
-               
-               public static function hashBytes(s:ByteArray) :String{  
-                       return hashBinary(s);
-               }
-               
-               /**
-                * Performs the MD5 hash algorithm on a ByteArray.
-                *
-                * @param s The string to hash
-                * @return A string containing the hash value of s
-                * @langversion ActionScript 3.0
-                * @playerversion Flash 8.5
-                * @tiptext
-                */      
-               public static function hashBinary( s:ByteArray ):String {
-                       // initialize the md buffers
-                       var a:int = 1732584193;
-                       var b:int = -271733879;
-                       var c:int = -1732584194;
-                       var d:int = 271733878;
-                       
-                       // variables to store previous values
-                       var aa:int;
-                       var bb:int;
-                       var cc:int;
-                       var dd:int;
-                       
-                       // create the blocks from the string and
-                       // save the length as a local var to reduce
-                       // lookup in the loop below
-                       var x:Array = createBlocks( s );
-                       var len:int = x.length;
-                       
-                       // loop over all of the blocks
-                       for ( var i:int = 0; i < len; i += 16) {
-                               // save previous values
-                               aa = a;
-                               bb = b;
-                               cc = c;
-                               dd = d;                         
-                               
-                               // Round 1
-                               a = ff( a, b, c, d, x[int(i+ 0)],  7, -680876936 );     // 1
-                               d = ff( d, a, b, c, x[int(i+ 1)], 12, -389564586 );     // 2
-                               c = ff( c, d, a, b, x[int(i+ 2)], 17, 606105819 );      // 3
-                               b = ff( b, c, d, a, x[int(i+ 3)], 22, -1044525330 );    // 4
-                               a = ff( a, b, c, d, x[int(i+ 4)],  7, -176418897 );     // 5
-                               d = ff( d, a, b, c, x[int(i+ 5)], 12, 1200080426 );     // 6
-                               c = ff( c, d, a, b, x[int(i+ 6)], 17, -1473231341 );    // 7
-                               b = ff( b, c, d, a, x[int(i+ 7)], 22, -45705983 );      // 8
-                               a = ff( a, b, c, d, x[int(i+ 8)],  7, 1770035416 );     // 9
-                               d = ff( d, a, b, c, x[int(i+ 9)], 12, -1958414417 );    // 10
-                               c = ff( c, d, a, b, x[int(i+10)], 17, -42063 );                 // 11
-                               b = ff( b, c, d, a, x[int(i+11)], 22, -1990404162 );    // 12
-                               a = ff( a, b, c, d, x[int(i+12)],  7, 1804603682 );     // 13
-                               d = ff( d, a, b, c, x[int(i+13)], 12, -40341101 );      // 14
-                               c = ff( c, d, a, b, x[int(i+14)], 17, -1502002290 );    // 15
-                               b = ff( b, c, d, a, x[int(i+15)], 22, 1236535329 );     // 16
-                               
-                               // Round 2
-                               a = gg( a, b, c, d, x[int(i+ 1)],  5, -165796510 );     // 17
-                               d = gg( d, a, b, c, x[int(i+ 6)],  9, -1069501632 );    // 18
-                               c = gg( c, d, a, b, x[int(i+11)], 14, 643717713 );      // 19
-                               b = gg( b, c, d, a, x[int(i+ 0)], 20, -373897302 );     // 20
-                               a = gg( a, b, c, d, x[int(i+ 5)],  5, -701558691 );     // 21
-                               d = gg( d, a, b, c, x[int(i+10)],  9, 38016083 );       // 22
-                               c = gg( c, d, a, b, x[int(i+15)], 14, -660478335 );     // 23
-                               b = gg( b, c, d, a, x[int(i+ 4)], 20, -405537848 );     // 24
-                               a = gg( a, b, c, d, x[int(i+ 9)],  5, 568446438 );      // 25
-                               d = gg( d, a, b, c, x[int(i+14)],  9, -1019803690 );    // 26
-                               c = gg( c, d, a, b, x[int(i+ 3)], 14, -187363961 );     // 27
-                               b = gg( b, c, d, a, x[int(i+ 8)], 20, 1163531501 );     // 28
-                               a = gg( a, b, c, d, x[int(i+13)],  5, -1444681467 );    // 29
-                               d = gg( d, a, b, c, x[int(i+ 2)],  9, -51403784 );      // 30
-                               c = gg( c, d, a, b, x[int(i+ 7)], 14, 1735328473 );     // 31
-                               b = gg( b, c, d, a, x[int(i+12)], 20, -1926607734 );    // 32
-                               
-                               // Round 3
-                               a = hh( a, b, c, d, x[int(i+ 5)],  4, -378558 );        // 33
-                               d = hh( d, a, b, c, x[int(i+ 8)], 11, -2022574463 );    // 34
-                               c = hh( c, d, a, b, x[int(i+11)], 16, 1839030562 );     // 35
-                               b = hh( b, c, d, a, x[int(i+14)], 23, -35309556 );      // 36
-                               a = hh( a, b, c, d, x[int(i+ 1)],  4, -1530992060 );    // 37
-                               d = hh( d, a, b, c, x[int(i+ 4)], 11, 1272893353 );     // 38
-                               c = hh( c, d, a, b, x[int(i+ 7)], 16, -155497632 );     // 39
-                               b = hh( b, c, d, a, x[int(i+10)], 23, -1094730640 );    // 40
-                               a = hh( a, b, c, d, x[int(i+13)],  4, 681279174 );      // 41
-                               d = hh( d, a, b, c, x[int(i+ 0)], 11, -358537222 );     // 42
-                               c = hh( c, d, a, b, x[int(i+ 3)], 16, -722521979 );     // 43
-                               b = hh( b, c, d, a, x[int(i+ 6)], 23, 76029189 );       // 44
-                               a = hh( a, b, c, d, x[int(i+ 9)],  4, -640364487 );     // 45
-                               d = hh( d, a, b, c, x[int(i+12)], 11, -421815835 );     // 46
-                               c = hh( c, d, a, b, x[int(i+15)], 16, 530742520 );      // 47
-                               b = hh( b, c, d, a, x[int(i+ 2)], 23, -995338651 );     // 48
-                               
-                               // Round 4
-                               a = ii( a, b, c, d, x[int(i+ 0)],  6, -198630844 );     // 49
-                               d = ii( d, a, b, c, x[int(i+ 7)], 10, 1126891415 );     // 50
-                               c = ii( c, d, a, b, x[int(i+14)], 15, -1416354905 );    // 51
-                               b = ii( b, c, d, a, x[int(i+ 5)], 21, -57434055 );      // 52
-                               a = ii( a, b, c, d, x[int(i+12)],  6, 1700485571 );     // 53
-                               d = ii( d, a, b, c, x[int(i+ 3)], 10, -1894986606 );    // 54
-                               c = ii( c, d, a, b, x[int(i+10)], 15, -1051523 );       // 55
-                               b = ii( b, c, d, a, x[int(i+ 1)], 21, -2054922799 );    // 56
-                               a = ii( a, b, c, d, x[int(i+ 8)],  6, 1873313359 );     // 57
-                               d = ii( d, a, b, c, x[int(i+15)], 10, -30611744 );      // 58
-                               c = ii( c, d, a, b, x[int(i+ 6)], 15, -1560198380 );    // 59
-                               b = ii( b, c, d, a, x[int(i+13)], 21, 1309151649 );     // 60
-                               a = ii( a, b, c, d, x[int(i+ 4)],  6, -145523070 );     // 61
-                               d = ii( d, a, b, c, x[int(i+11)], 10, -1120210379 );    // 62
-                               c = ii( c, d, a, b, x[int(i+ 2)], 15, 718787259 );      // 63
-                               b = ii( b, c, d, a, x[int(i+ 9)], 21, -343485551 );     // 64
-
-                               a += aa;
-                               b += bb;
-                               c += cc;
-                               d += dd;
-                       }
-                       digest = new ByteArray()
-                       digest.writeInt(a);
-                       digest.writeInt(b);
-                       digest.writeInt(c);
-                       digest.writeInt(d);
-                       digest.position = 0;
-                       // Finish up by concatening the buffers with their hex output
-                       return IntUtil.toHex( a ) + IntUtil.toHex( b ) + IntUtil.toHex( c ) + IntUtil.toHex( d );
-               }
-               
-               /**
-                * Auxiliary function f as defined in RFC
-                */
-               private static function f( x:int, y:int, z:int ):int {
-                       return ( x & y ) | ( (~x) & z );
-               }
-               
-               /**
-                * Auxiliary function g as defined in RFC
-                */
-               private static function g( x:int, y:int, z:int ):int {
-                       return ( x & z ) | ( y & (~z) );
-               }
-               
-               /**
-                * Auxiliary function h as defined in RFC
-                */
-               private static function h( x:int, y:int, z:int ):int {
-                       return x ^ y ^ z;
-               }
-               
-               /**
-                * Auxiliary function i as defined in RFC
-                */
-               private static function i( x:int, y:int, z:int ):int {
-                       return y ^ ( x | (~z) );
-               }
-               
-               /**
-                * A generic transformation function.  The logic of ff, gg, hh, and
-                * ii are all the same, minus the function used, so pull that logic
-                * out and simplify the method bodies for the transoformation functions.
-                */
-               private static function transform( func:Function, a:int, b:int, c:int, d:int, x:int, s:int, t:int):int {
-                       var tmp:int = a + int( func( b, c, d ) ) + x + t;
-                       return IntUtil.rol( tmp, s ) +  b;
-               }
-               
-               /**
-                * ff transformation function
-                */
-               private static function ff ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {
-                       return transform( f, a, b, c, d, x, s, t );
-               }
-               
-               /**
-                * gg transformation function
-                */
-               private static function gg ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {
-                       return transform( g, a, b, c, d, x, s, t );
-               }
-               
-               /**
-                * hh transformation function
-                */
-               private static function hh ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {
-                       return transform( h, a, b, c, d, x, s, t );
-               }
-               
-               /**
-                * ii transformation function
-                */
-               private static function ii ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {
-                       return transform( i, a, b, c, d, x, s, t );
-               }
-               
-               /**
-                * Converts a string to a sequence of 16-word blocks
-                * that we'll do the processing on.  Appends padding
-                * and length in the process.
-                *
-                * @param s The string to split into blocks
-                * @return An array containing the blocks that s was
-                *                      split into.
-                */
-               private static function createBlocks( s:ByteArray ):Array {
-                       var blocks:Array = new Array();
-                       var len:int = s.length * 8;
-                       var mask:int = 0xFF; // ignore hi byte of characters > 0xFF
-                       for( var i:int = 0; i < len; i += 8 ) {
-                               blocks[ int(i >> 5) ] |= ( s[ i / 8 ] & mask ) << ( i % 32 );
-                       }
-                       
-                       // append padding and length
-                       blocks[ int(len >> 5) ] |= 0x80 << ( len % 32 );
-                       blocks[ int(( ( ( len + 64 ) >>> 9 ) << 4 ) + 14) ] = len;
-                       return blocks;
-               }
-               
-       }
-}
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/crypto/MD5Stream.as b/redakcja/static/filebrowser/uploadify/com/adobe/crypto/MD5Stream.as
deleted file mode 100644 (file)
index 6e5eed0..0000000
+++ /dev/null
@@ -1,402 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.crypto\r
-{\r
-    import com.adobe.utils.IntUtil;   \r
-    import flash.utils.ByteArray;\r
-\r
-    /**\r
-     * Perform MD5 hash of an input stream in chunks. This class is\r
-     * based on com.adobe.crypto.MD5 and can process data in\r
-     * chunks. Both block creation and hash computation are done\r
-     * together for whatever input is available so that the memory\r
-     * overhead at a time is always fixed. Memory usage is governed by\r
-     * two parameters: one is the amount of data passed in to update()\r
-     * and the other is memoryBlockSize. The latter comes into play\r
-     * only when the memory window exceeds the pre allocated memory\r
-     * window of flash player. Usage: create an instance, call\r
-     * update(data) repeatedly for all chunks and finally complete()\r
-     * which will return the md5 hash.\r
-     */      \r
-    public class MD5Stream\r
-    {\r
-        private static var mask:int = 0xFF;\r
-\r
-        private var arr:Array = [];\r
-\r
-        /* running count of length */\r
-        private var arrLen:int;\r
-        \r
-        // initialize the md buffers\r
-        private var a:int = 1732584193;\r
-        private var b:int = -271733879;\r
-        private var c:int = -1732584194;\r
-        private var d:int = 271733878;\r
-        \r
-        // variables to store previous values\r
-        private var aa:int;\r
-        private var bb:int;\r
-        private var cc:int;\r
-        private var dd:int;\r
-\r
-        /* index for data read */\r
-        private var arrIndexLen:int = 0;\r
-        /* index for hash computation */\r
-        private var arrProcessIndex:int = 0;\r
-        /* index for removing stale arr values */\r
-        private var cleanIndex:int = 0;\r
-        \r
-        /** \r
-         * Change this value from the default (16384) in the range of\r
-         * MBs to actually affect GC as GC allocates in pools of\r
-         * memory */\r
-        public var memoryBlockSize:int = 16384;\r
-        \r
-        \r
-        public function MD5Stream()\r
-        {\r
-            \r
-        }\r
-               \r
-        \r
-        /**\r
-         * Pass in chunks of the input data with update(), call\r
-         * complete() with an optional chunk which will return the\r
-         * final hash. Equivalent to the way\r
-         * java.security.MessageDigest works.\r
-         *\r
-         * @param input The optional bytearray chunk which is the final part of the input\r
-         * @return A string containing the hash value\r
-         * @langversion ActionScript 3.0\r
-         * @playerversion Flash 8.5\r
-         * @tiptext\r
-         */\r
-        public function complete(input:ByteArray=null):String\r
-        {\r
-            if ( arr.length == 0 )\r
-            {\r
-                if ( input == null )\r
-                {\r
-                    throw new Error("null input to complete without prior call to update. At least an empty bytearray must be passed.");\r
-                }                              \r
-            }\r
-            \r
-            if ( input != null )\r
-            {\r
-                readIntoArray(input);\r
-            }\r
-\r
-            //pad, append length\r
-            padArray(arrLen);\r
-\r
-            hashRemainingChunks(false);\r
-            \r
-            var res:String = IntUtil.toHex( a ) + IntUtil.toHex( b ) + \r
-                                        IntUtil.toHex( c ) + IntUtil.toHex( d );\r
-            resetFields();\r
-            \r
-            return res;\r
-        }\r
-\r
-        /**\r
-         * Pass in chunks of the input data with update(), call\r
-         * complete() with an optional chunk which will return the\r
-         * final hash. Equivalent to the way\r
-         * java.security.MessageDigest works.\r
-         *\r
-         * @param input The bytearray chunk to perform the hash on\r
-         * @langversion ActionScript 3.0\r
-         * @playerversion Flash 8.5\r
-         * @tiptext\r
-         */        \r
-        public function update(input:ByteArray):void\r
-        {\r
-            readIntoArray(input);\r
-            hashRemainingChunks();\r
-        }\r
-\r
-        /**\r
-         * Re-initialize this instance for use to perform hashing on\r
-         * another input stream. This is called automatically by\r
-         * complete().\r
-         *\r
-         * @langversion ActionScript 3.0\r
-         * @playerversion Flash 8.5\r
-         * @tiptext\r
-         */               \r
-        public function resetFields():void\r
-        {\r
-            //truncate array\r
-            arr.length = 0;\r
-            arrLen = 0;\r
-            \r
-            // initialize the md buffers\r
-            a = 1732584193;\r
-            b = -271733879;\r
-            c = -1732584194;\r
-            d = 271733878;\r
-            \r
-            // variables to store previous values\r
-            aa = 0;\r
-            bb = 0;\r
-            cc = 0;\r
-            dd = 0;\r
-            \r
-            arrIndexLen = 0;            \r
-            arrProcessIndex = 0;\r
-            cleanIndex = 0;\r
-        }\r
-        \r
-        /** read into arr and free up used blocks of arr */\r
-        private function readIntoArray(input:ByteArray):void\r
-        {\r
-            var closestChunkLen:int = input.length * 8;\r
-            arrLen += closestChunkLen;\r
-            \r
-            /* clean up memory. if there are entries in the array that\r
-             * are already processed and the amount is greater than\r
-             * memoryBlockSize, create a new array, copy the last\r
-             * block into it and let the old one get picked up by\r
-             * GC. */\r
-            if ( arrProcessIndex - cleanIndex > memoryBlockSize )\r
-            {\r
-                var newarr:Array= new Array();\r
-                \r
-                /* AS Arrays in sparse arrays. arr[2002] can exist \r
-                 * without values for arr[0] - arr[2001] */\r
-                for ( var j:int = arrProcessIndex; j < arr.length; j++ )\r
-                {                                              \r
-                    newarr[j] = arr[j];\r
-                }\r
-                \r
-                cleanIndex = arrProcessIndex;\r
-                arr = null;\r
-                arr = newarr;\r
-            }\r
-            \r
-            for ( var k:int = 0; k < closestChunkLen; k+=8 )\r
-            {\r
-                //discard high bytes (convert to uint)\r
-                arr[ int(arrIndexLen >> 5) ] |= ( input[ k / 8 ] & mask ) << ( arrIndexLen % 32 );\r
-                arrIndexLen += 8;\r
-            }\r
-            \r
-            \r
-        }\r
-        \r
-        private function hashRemainingChunks(bUpdate:Boolean=true):void\r
-        {\r
-            var len:int = arr.length;\r
-\r
-            /* leave a 16 word block untouched if we are called from\r
-             * update. This is because, padArray() can modify the last\r
-             * block and this modification has to happen before we\r
-             * compute the hash.  */\r
-            if ( bUpdate )\r
-            {\r
-                len -= 16;\r
-            }\r
-\r
-            /* don't do anything if don't have a 16 word block. */\r
-            if ( arrProcessIndex >= len || len - arrProcessIndex < 15 )\r
-            {\r
-                return;\r
-            }\r
-\r
-            \r
-            for ( var i:int = arrProcessIndex; i < len ; i += 16, arrProcessIndex += 16) \r
-            {                  \r
-                // save previous values\r
-                aa = a;\r
-                bb = b;\r
-                cc = c;\r
-                dd = d;                         \r
-                \r
-                // Round 1\r
-                a = ff( a, b, c, d, arr[int(i+ 0)],  7, -680876936 );     // 1\r
-                d = ff( d, a, b, c, arr[int(i+ 1)], 12, -389564586 );     // 2\r
-                c = ff( c, d, a, b, arr[int(i+ 2)], 17, 606105819 );      // 3\r
-                b = ff( b, c, d, a, arr[int(i+ 3)], 22, -1044525330 );    // 4\r
-                a = ff( a, b, c, d, arr[int(i+ 4)],  7, -176418897 );     // 5\r
-                d = ff( d, a, b, c, arr[int(i+ 5)], 12, 1200080426 );     // 6\r
-                c = ff( c, d, a, b, arr[int(i+ 6)], 17, -1473231341 );    // 7\r
-                b = ff( b, c, d, a, arr[int(i+ 7)], 22, -45705983 );      // 8\r
-                a = ff( a, b, c, d, arr[int(i+ 8)],  7, 1770035416 );     // 9\r
-                d = ff( d, a, b, c, arr[int(i+ 9)], 12, -1958414417 );    // 10\r
-                c = ff( c, d, a, b, arr[int(i+10)], 17, -42063 );                 // 11\r
-                b = ff( b, c, d, a, arr[int(i+11)], 22, -1990404162 );    // 12\r
-                a = ff( a, b, c, d, arr[int(i+12)],  7, 1804603682 );     // 13\r
-                d = ff( d, a, b, c, arr[int(i+13)], 12, -40341101 );      // 14\r
-                c = ff( c, d, a, b, arr[int(i+14)], 17, -1502002290 );    // 15\r
-                b = ff( b, c, d, a, arr[int(i+15)], 22, 1236535329 );     // 16\r
-                \r
-                // Round 2\r
-                a = gg( a, b, c, d, arr[int(i+ 1)],  5, -165796510 );     // 17\r
-                d = gg( d, a, b, c, arr[int(i+ 6)],  9, -1069501632 );    // 18\r
-                c = gg( c, d, a, b, arr[int(i+11)], 14, 643717713 );      // 19\r
-                b = gg( b, c, d, a, arr[int(i+ 0)], 20, -373897302 );     // 20\r
-                a = gg( a, b, c, d, arr[int(i+ 5)],  5, -701558691 );     // 21\r
-                d = gg( d, a, b, c, arr[int(i+10)],  9, 38016083 );       // 22\r
-                c = gg( c, d, a, b, arr[int(i+15)], 14, -660478335 );     // 23\r
-                b = gg( b, c, d, a, arr[int(i+ 4)], 20, -405537848 );     // 24\r
-                a = gg( a, b, c, d, arr[int(i+ 9)],  5, 568446438 );      // 25\r
-                d = gg( d, a, b, c, arr[int(i+14)],  9, -1019803690 );    // 26\r
-                c = gg( c, d, a, b, arr[int(i+ 3)], 14, -187363961 );     // 27\r
-                b = gg( b, c, d, a, arr[int(i+ 8)], 20, 1163531501 );     // 28\r
-                a = gg( a, b, c, d, arr[int(i+13)],  5, -1444681467 );    // 29\r
-                d = gg( d, a, b, c, arr[int(i+ 2)],  9, -51403784 );      // 30\r
-                c = gg( c, d, a, b, arr[int(i+ 7)], 14, 1735328473 );     // 31\r
-                b = gg( b, c, d, a, arr[int(i+12)], 20, -1926607734 );    // 32\r
-                \r
-                // Round 3\r
-                a = hh( a, b, c, d, arr[int(i+ 5)],  4, -378558 );        // 33\r
-                d = hh( d, a, b, c, arr[int(i+ 8)], 11, -2022574463 );    // 34\r
-                c = hh( c, d, a, b, arr[int(i+11)], 16, 1839030562 );     // 35\r
-                b = hh( b, c, d, a, arr[int(i+14)], 23, -35309556 );      // 36\r
-                a = hh( a, b, c, d, arr[int(i+ 1)],  4, -1530992060 );    // 37\r
-                d = hh( d, a, b, c, arr[int(i+ 4)], 11, 1272893353 );     // 38\r
-                c = hh( c, d, a, b, arr[int(i+ 7)], 16, -155497632 );     // 39\r
-                b = hh( b, c, d, a, arr[int(i+10)], 23, -1094730640 );    // 40\r
-                a = hh( a, b, c, d, arr[int(i+13)],  4, 681279174 );      // 41\r
-                d = hh( d, a, b, c, arr[int(i+ 0)], 11, -358537222 );     // 42\r
-                c = hh( c, d, a, b, arr[int(i+ 3)], 16, -722521979 );     // 43\r
-                b = hh( b, c, d, a, arr[int(i+ 6)], 23, 76029189 );       // 44\r
-                a = hh( a, b, c, d, arr[int(i+ 9)],  4, -640364487 );     // 45\r
-                d = hh( d, a, b, c, arr[int(i+12)], 11, -421815835 );     // 46\r
-                c = hh( c, d, a, b, arr[int(i+15)], 16, 530742520 );      // 47\r
-                b = hh( b, c, d, a, arr[int(i+ 2)], 23, -995338651 );     // 48\r
-                \r
-                // Round 4\r
-                a = ii( a, b, c, d, arr[int(i+ 0)],  6, -198630844 );     // 49\r
-                d = ii( d, a, b, c, arr[int(i+ 7)], 10, 1126891415 );     // 50\r
-                c = ii( c, d, a, b, arr[int(i+14)], 15, -1416354905 );    // 51\r
-                b = ii( b, c, d, a, arr[int(i+ 5)], 21, -57434055 );      // 52\r
-                a = ii( a, b, c, d, arr[int(i+12)],  6, 1700485571 );     // 53\r
-                d = ii( d, a, b, c, arr[int(i+ 3)], 10, -1894986606 );    // 54\r
-                c = ii( c, d, a, b, arr[int(i+10)], 15, -1051523 );       // 55\r
-                b = ii( b, c, d, a, arr[int(i+ 1)], 21, -2054922799 );    // 56\r
-                a = ii( a, b, c, d, arr[int(i+ 8)],  6, 1873313359 );     // 57\r
-                d = ii( d, a, b, c, arr[int(i+15)], 10, -30611744 );      // 58\r
-                c = ii( c, d, a, b, arr[int(i+ 6)], 15, -1560198380 );    // 59\r
-                b = ii( b, c, d, a, arr[int(i+13)], 21, 1309151649 );     // 60\r
-                a = ii( a, b, c, d, arr[int(i+ 4)],  6, -145523070 );     // 61\r
-                d = ii( d, a, b, c, arr[int(i+11)], 10, -1120210379 );    // 62\r
-                c = ii( c, d, a, b, arr[int(i+ 2)], 15, 718787259 );      // 63\r
-                b = ii( b, c, d, a, arr[int(i+ 9)], 21, -343485551 );     // 64\r
-                \r
-                a += aa;\r
-                b += bb;\r
-                c += cc;\r
-                d += dd;\r
-                \r
-            }\r
-            \r
-        }\r
-        \r
-        private function padArray(len:int):void\r
-        {                      \r
-            arr[ int(len >> 5) ] |= 0x80 << ( len % 32 );\r
-            arr[ int(( ( ( len + 64 ) >>> 9 ) << 4 ) + 14) ] = len;\r
-            arrLen = arr.length;\r
-        }  \r
-        \r
-        /* Code below same as com.adobe.crypto.MD5 */ \r
-        \r
-        /**\r
-         * Auxiliary function f as defined in RFC\r
-         */\r
-        private static function f( x:int, y:int, z:int ):int {\r
-            return ( x & y ) | ( (~x) & z );\r
-        }\r
-        \r
-        /**\r
-         * Auxiliary function g as defined in RFC\r
-         */\r
-        private static function g( x:int, y:int, z:int ):int {\r
-            return ( x & z ) | ( y & (~z) );\r
-        }\r
-        \r
-        /**\r
-         * Auxiliary function h as defined in RFC\r
-         */\r
-        private static function h( x:int, y:int, z:int ):int {\r
-            return x ^ y ^ z;\r
-        }\r
-        \r
-        /**\r
-         * Auxiliary function i as defined in RFC\r
-         */\r
-        private static function i( x:int, y:int, z:int ):int {\r
-            return y ^ ( x | (~z) );\r
-        }\r
-        \r
-        /**\r
-         * A generic transformation function.  The logic of ff, gg, hh, and\r
-         * ii are all the same, minus the function used, so pull that logic\r
-         * out and simplify the method bodies for the transoformation functions.\r
-         */\r
-        private static function transform( func:Function, a:int, b:int, c:int, d:int, x:int, s:int, t:int):int {\r
-            var tmp:int = a + int( func( b, c, d ) ) + x + t;\r
-            return IntUtil.rol( tmp, s ) +  b;\r
-        }\r
-        \r
-        /**\r
-         * ff transformation function\r
-         */\r
-        private static function ff ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {\r
-            return transform( f, a, b, c, d, x, s, t );\r
-        }\r
-        \r
-        /**\r
-         * gg transformation function\r
-         */\r
-        private static function gg ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {\r
-            return transform( g, a, b, c, d, x, s, t );\r
-        }\r
-        \r
-        /**\r
-         * hh transformation function\r
-         */\r
-        private static function hh ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {\r
-            return transform( h, a, b, c, d, x, s, t );\r
-        }\r
-        \r
-        /**\r
-         * ii transformation function\r
-         */\r
-        private static function ii ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {\r
-            return transform( i, a, b, c, d, x, s, t );\r
-        }\r
-        \r
-    }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/crypto/SHA1.as b/redakcja/static/filebrowser/uploadify/com/adobe/crypto/SHA1.as
deleted file mode 100644 (file)
index 952f3c7..0000000
+++ /dev/null
@@ -1,271 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.crypto\r
-{\r
-       import com.adobe.utils.IntUtil;\r
-       import flash.utils.ByteArray;\r
-       import mx.utils.Base64Encoder;\r
-       \r
-       /**\r
-        *  US Secure Hash Algorithm 1 (SHA1)\r
-        *\r
-        *  Implementation based on algorithm description at \r
-        *  http://www.faqs.org/rfcs/rfc3174.html\r
-        */\r
-       public class SHA1\r
-       {\r
-               public static var digest:ByteArray;\r
-               \r
-               /**\r
-                *  Performs the SHA1 hash algorithm on a string.\r
-                *\r
-                *  @param s            The string to hash\r
-                *  @return                     A string containing the hash value of s\r
-                *  @langversion        ActionScript 3.0\r
-                *  @playerversion      9.0\r
-                *  @tiptext\r
-                */\r
-               public static function hash( s:String ):String\r
-               {\r
-                       var blocks:Array = createBlocksFromString( s );\r
-                       var byteArray:ByteArray = hashBlocks( blocks );\r
-                       \r
-                       return IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true );\r
-               }\r
-               \r
-               /**\r
-                *  Performs the SHA1 hash algorithm on a ByteArray.\r
-                *\r
-                *  @param data         The ByteArray data to hash\r
-                *  @return                     A string containing the hash value of data\r
-                *  @langversion        ActionScript 3.0\r
-                *  @playerversion      9.0\r
-                */\r
-               public static function hashBytes( data:ByteArray ):String\r
-               {\r
-                       var blocks:Array = SHA1.createBlocksFromByteArray( data );\r
-                       var byteArray:ByteArray = hashBlocks(blocks);\r
-                       \r
-                       return IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true )\r
-                                       + IntUtil.toHex( byteArray.readInt(), true );\r
-               }\r
-               \r
-               /**\r
-                *  Performs the SHA1 hash algorithm on a string, then does\r
-                *  Base64 encoding on the result.\r
-                *\r
-                *  @param s            The string to hash\r
-                *  @return                     The base64 encoded hash value of s\r
-                *  @langversion        ActionScript 3.0\r
-                *  @playerversion      9.0\r
-                *  @tiptext\r
-                */\r
-               public static function hashToBase64( s:String ):String\r
-               {\r
-                       var blocks:Array = SHA1.createBlocksFromString( s );\r
-                       var byteArray:ByteArray = hashBlocks(blocks);\r
-\r
-                       // ByteArray.toString() returns the contents as a UTF-8 string,\r
-                       // which we can't use because certain byte sequences might trigger\r
-                       // a UTF-8 conversion.  Instead, we convert the bytes to characters\r
-                       // one by one.\r
-                       var charsInByteArray:String = "";\r
-                       byteArray.position = 0;\r
-                       for (var j:int = 0; j < byteArray.length; j++)\r
-                       {\r
-                               var byte:uint = byteArray.readUnsignedByte();\r
-                               charsInByteArray += String.fromCharCode(byte);\r
-                       }\r
-\r
-                       var encoder:Base64Encoder = new Base64Encoder();\r
-                       encoder.encode(charsInByteArray);\r
-                       return encoder.flush();\r
-               }\r
-               \r
-               private static function hashBlocks( blocks:Array ):ByteArray\r
-               {\r
-                       // initialize the h's\r
-                       var h0:int = 0x67452301;\r
-                       var h1:int = 0xefcdab89;\r
-                       var h2:int = 0x98badcfe;\r
-                       var h3:int = 0x10325476;\r
-                       var h4:int = 0xc3d2e1f0;\r
-                       \r
-                       var len:int = blocks.length;\r
-                       var w:Array = new Array( 80 );\r
-                       \r
-                       // loop over all of the blocks\r
-                       for ( var i:int = 0; i < len; i += 16 ) {\r
-                       \r
-                               // 6.1.c\r
-                               var a:int = h0;\r
-                               var b:int = h1;\r
-                               var c:int = h2;\r
-                               var d:int = h3;\r
-                               var e:int = h4;\r
-                               \r
-                               // 80 steps to process each block\r
-                               // TODO: unroll for faster execution, or 4 loops of\r
-                               // 20 each to avoid the k and f function calls\r
-                               for ( var t:int = 0; t < 80; t++ ) {\r
-                                       \r
-                                       if ( t < 16 ) {\r
-                                               // 6.1.a\r
-                                               w[ t ] = blocks[ i + t ];\r
-                                       } else {\r
-                                               // 6.1.b\r
-                                               w[ t ] = IntUtil.rol( w[ t - 3 ] ^ w[ t - 8 ] ^ w[ t - 14 ] ^ w[ t - 16 ], 1 );\r
-                                       }\r
-                                       \r
-                                       // 6.1.d\r
-                                       var temp:int = IntUtil.rol( a, 5 ) + f( t, b, c, d ) + e + int( w[ t ] ) + k( t );\r
-                                       \r
-                                       e = d;\r
-                                       d = c;\r
-                                       c = IntUtil.rol( b, 30 );\r
-                                       b = a;\r
-                                       a = temp;\r
-                               }\r
-                               \r
-                               // 6.1.e\r
-                               h0 += a;\r
-                               h1 += b;\r
-                               h2 += c;\r
-                               h3 += d;\r
-                               h4 += e;                \r
-                       }\r
-                       \r
-                       var byteArray:ByteArray = new ByteArray();\r
-                       byteArray.writeInt(h0);\r
-                       byteArray.writeInt(h1);\r
-                       byteArray.writeInt(h2);\r
-                       byteArray.writeInt(h3);\r
-                       byteArray.writeInt(h4);\r
-                       byteArray.position = 0;\r
-                       \r
-                       digest = new ByteArray();\r
-                       digest.writeBytes(byteArray);\r
-                       digest.position = 0;\r
-                       return byteArray;\r
-               }\r
-\r
-               /**\r
-                *  Performs the logical function based on t\r
-                */\r
-               private static function f( t:int, b:int, c:int, d:int ):int {\r
-                       if ( t < 20 ) {\r
-                               return ( b & c ) | ( ~b & d );\r
-                       } else if ( t < 40 ) {\r
-                               return b ^ c ^ d;\r
-                       } else if ( t < 60 ) {\r
-                               return ( b & c ) | ( b & d ) | ( c & d );\r
-                       }\r
-                       return b ^ c ^ d;\r
-               }\r
-               \r
-               /**\r
-                *  Determines the constant value based on t\r
-                */\r
-               private static function k( t:int ):int {\r
-                       if ( t < 20 ) {\r
-                               return 0x5a827999;\r
-                       } else if ( t < 40 ) {\r
-                               return 0x6ed9eba1;\r
-                       } else if ( t < 60 ) {\r
-                               return 0x8f1bbcdc;\r
-                       }\r
-                       return 0xca62c1d6;\r
-               }\r
-                                       \r
-               /**\r
-                *  Converts a ByteArray to a sequence of 16-word blocks\r
-                *  that we'll do the processing on.  Appends padding\r
-                *  and length in the process.\r
-                *\r
-                *  @param data         The data to split into blocks\r
-                *  @return                     An array containing the blocks into which data was split\r
-                */\r
-               private static function createBlocksFromByteArray( data:ByteArray ):Array\r
-               {\r
-                       var oldPosition:int = data.position;\r
-                       data.position = 0;\r
-                       \r
-                       var blocks:Array = new Array();\r
-                       var len:int = data.length * 8;\r
-                       var mask:int = 0xFF; // ignore hi byte of characters > 0xFF\r
-                       for( var i:int = 0; i < len; i += 8 )\r
-                       {\r
-                               blocks[ i >> 5 ] |= ( data.readByte() & mask ) << ( 24 - i % 32 );\r
-                       }\r
-                       \r
-                       // append padding and length\r
-                       blocks[ len >> 5 ] |= 0x80 << ( 24 - len % 32 );\r
-                       blocks[ ( ( ( len + 64 ) >> 9 ) << 4 ) + 15 ] = len;\r
-                       \r
-                       data.position = oldPosition;\r
-                       \r
-                       return blocks;\r
-               }\r
-                                       \r
-               /**\r
-                *  Converts a string to a sequence of 16-word blocks\r
-                *  that we'll do the processing on.  Appends padding\r
-                *  and length in the process.\r
-                *\r
-                *  @param s    The string to split into blocks\r
-                *  @return             An array containing the blocks that s was split into.\r
-                */\r
-               private static function createBlocksFromString( s:String ):Array\r
-               {\r
-                       var blocks:Array = new Array();\r
-                       var len:int = s.length * 8;\r
-                       var mask:int = 0xFF; // ignore hi byte of characters > 0xFF\r
-                       for( var i:int = 0; i < len; i += 8 ) {\r
-                               blocks[ i >> 5 ] |= ( s.charCodeAt( i / 8 ) & mask ) << ( 24 - i % 32 );\r
-                       }\r
-                       \r
-                       // append padding and length\r
-                       blocks[ len >> 5 ] |= 0x80 << ( 24 - len % 32 );\r
-                       blocks[ ( ( ( len + 64 ) >> 9 ) << 4 ) + 15 ] = len;\r
-                       return blocks;\r
-               }\r
-               \r
-       }\r
-}\r
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/crypto/SHA224.as b/redakcja/static/filebrowser/uploadify/com/adobe/crypto/SHA224.as
deleted file mode 100644 (file)
index ee15453..0000000
+++ /dev/null
@@ -1,257 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package com.adobe.crypto
-{
-       import com.adobe.utils.IntUtil;
-       import flash.utils.ByteArray;
-       import mx.utils.Base64Encoder;
-       
-       /**
-        * The SHA-224 algorithm
-        * 
-        * @see http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf
-        */
-       public class SHA224
-       {
-               public static var digest:ByteArray;
-               
-               /**
-                *  Performs the SHA224 hash algorithm on a string.
-                *
-                *  @param s            The string to hash
-                *  @return                     A string containing the hash value of s
-                *  @langversion        ActionScript 3.0
-                *  @playerversion      9.0
-                *  @tiptext
-                */
-               public static function hash( s:String ):String {
-                       var blocks:Array = createBlocksFromString( s );
-                       var byteArray:ByteArray = hashBlocks( blocks );
-                       return IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true );
-               }
-               
-               /**
-                *  Performs the SHA224 hash algorithm on a ByteArray.
-                *
-                *  @param data         The ByteArray data to hash
-                *  @return                     A string containing the hash value of data
-                *  @langversion        ActionScript 3.0
-                *  @playerversion      9.0
-                */
-               public static function hashBytes( data:ByteArray ):String
-               {
-                       var blocks:Array = createBlocksFromByteArray( data );
-                       var byteArray:ByteArray = hashBlocks(blocks);
-                       return IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true );
-               }
-               
-               /**
-                *  Performs the SHA224 hash algorithm on a string, then does
-                *  Base64 encoding on the result.
-                *
-                *  @param s            The string to hash
-                *  @return                     The base64 encoded hash value of s
-                *  @langversion        ActionScript 3.0
-                *  @playerversion      9.0
-                *  @tiptext
-                */
-               public static function hashToBase64( s:String ):String
-               {
-                       var blocks:Array = createBlocksFromString( s );
-                       var byteArray:ByteArray = hashBlocks(blocks);
-
-                       // ByteArray.toString() returns the contents as a UTF-8 string,
-                       // which we can't use because certain byte sequences might trigger
-                       // a UTF-8 conversion.  Instead, we convert the bytes to characters
-                       // one by one.
-                       var charsInByteArray:String = "";
-                       byteArray.position = 0;
-                       for (var j:int = 0; j < byteArray.length; j++)
-                       {
-                               var byte:uint = byteArray.readUnsignedByte();
-                               charsInByteArray += String.fromCharCode(byte);
-                       }
-
-                       var encoder:Base64Encoder = new Base64Encoder();
-                       encoder.encode(charsInByteArray);
-                       return encoder.flush();
-               }
-               
-               private static function hashBlocks( blocks:Array ):ByteArray {
-                       var h0:int = 0xc1059ed8;
-                       var h1:int = 0x367cd507;
-                       var h2:int = 0x3070dd17;
-                       var h3:int = 0xf70e5939;
-                       var h4:int = 0xffc00b31;
-                       var h5:int = 0x68581511;
-                       var h6:int = 0x64f98fa7;
-                       var h7:int = 0xbefa4fa4;
-                       
-                       var k:Array = new Array(0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2);
-                       
-                       var len:int = blocks.length;
-                       var w:Array = new Array();
-                       
-                       // loop over all of the blocks
-                       for ( var i:int = 0; i < len; i += 16 ) {
-                               
-                               var a:int = h0;
-                               var b:int = h1;
-                               var c:int = h2;
-                               var d:int = h3;
-                               var e:int = h4;
-                               var f:int = h5;
-                               var g:int = h6;
-                               var h:int = h7;
-                               
-                               for(var t:int = 0; t < 64; t++) {
-                                       
-                                       if ( t < 16 ) {
-                                               w[t] = blocks[ i + t ];
-                                               if(isNaN(w[t])) { w[t] = 0; }
-                                       } else {
-                                               var ws0:int = IntUtil.ror(w[t-15], 7) ^ IntUtil.ror(w[t-15], 18) ^ (w[t-15] >>> 3);
-                                               var ws1:int = IntUtil.ror(w[t-2], 17) ^ IntUtil.ror(w[t-2], 19) ^ (w[t-2] >>> 10);
-                                               w[t] = w[t-16] + ws0 + w[t-7] + ws1;
-                                       }
-                                       
-                                       var s0:int = IntUtil.ror(a, 2) ^ IntUtil.ror(a, 13) ^ IntUtil.ror(a, 22);
-                                       var maj:int = (a & b) ^ (a & c) ^ (b & c);
-                                       var t2:int = s0 + maj;
-                                       var s1:int = IntUtil.ror(e, 6) ^ IntUtil.ror(e, 11) ^ IntUtil.ror(e, 25);
-                                       var ch:int = (e & f) ^ ((~e) & g);
-                                       var t1:int = h + s1 + ch + k[t] + w[t];
-                                       
-                                       h = g;
-                                       g = f;
-                                       f = e;
-                                       e = d + t1;
-                                       d = c;
-                                       c = b;
-                                       b = a;
-                                       a = t1 + t2;
-                               }
-                                       
-                               //Add this chunk's hash to result so far:
-                               h0 += a;
-                               h1 += b;
-                               h2 += c;
-                               h3 += d;
-                               h4 += e;
-                               h5 += f;
-                               h6 += g;
-                               h7 += h;
-                       }
-                       
-                       var byteArray:ByteArray = new ByteArray();
-                       byteArray.writeInt(h0);
-                       byteArray.writeInt(h1);
-                       byteArray.writeInt(h2);
-                       byteArray.writeInt(h3);
-                       byteArray.writeInt(h4);
-                       byteArray.writeInt(h5);
-                       byteArray.writeInt(h6);
-                       byteArray.position = 0;
-                       
-                       digest = new ByteArray();
-                       digest.writeBytes(byteArray);
-                       digest.position = 0;
-                       return byteArray;
-               }
-               
-               /**
-                *  Converts a ByteArray to a sequence of 16-word blocks
-                *  that we'll do the processing on.  Appends padding
-                *  and length in the process.
-                *
-                *  @param data         The data to split into blocks
-                *  @return                     An array containing the blocks into which data was split
-                */
-               private static function createBlocksFromByteArray( data:ByteArray ):Array
-               {
-                       var oldPosition:int = data.position;
-                       data.position = 0;
-                       
-                       var blocks:Array = new Array();
-                       var len:int = data.length * 8;
-                       var mask:int = 0xFF; // ignore hi byte of characters > 0xFF
-                       for( var i:int = 0; i < len; i += 8 )
-                       {
-                               blocks[ i >> 5 ] |= ( data.readByte() & mask ) << ( 24 - i % 32 );
-                       }
-                       
-                       // append padding and length
-                       blocks[ len >> 5 ] |= 0x80 << ( 24 - len % 32 );
-                       blocks[ ( ( ( len + 64 ) >> 9 ) << 4 ) + 15 ] = len;
-                       
-                       data.position = oldPosition;
-                       
-                       return blocks;
-               }
-                                       
-               /**
-                *  Converts a string to a sequence of 16-word blocks
-                *  that we'll do the processing on.  Appends padding
-                *  and length in the process.
-                *
-                *  @param s    The string to split into blocks
-                *  @return             An array containing the blocks that s was split into.
-                */
-               private static function createBlocksFromString( s:String ):Array
-               {
-                       var blocks:Array = new Array();
-                       var len:int = s.length * 8;
-                       var mask:int = 0xFF; // ignore hi byte of characters > 0xFF
-                       for( var i:int = 0; i < len; i += 8 ) {
-                               blocks[ i >> 5 ] |= ( s.charCodeAt( i / 8 ) & mask ) << ( 24 - i % 32 );
-                       }
-                       
-                       // append padding and length
-                       blocks[ len >> 5 ] |= 0x80 << ( 24 - len % 32 );
-                       blocks[ ( ( ( len + 64 ) >> 9 ) << 4 ) + 15 ] = len;
-                       return blocks;
-               }
-       }
-}
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/crypto/SHA256.as b/redakcja/static/filebrowser/uploadify/com/adobe/crypto/SHA256.as
deleted file mode 100644 (file)
index 09a2ba2..0000000
+++ /dev/null
@@ -1,261 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package com.adobe.crypto
-{
-       import com.adobe.utils.IntUtil;
-       import flash.utils.ByteArray;
-       import mx.utils.Base64Encoder;
-       
-       /**
-        * The SHA-256 algorithm
-        * 
-        * @see http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf
-        */
-       public class SHA256
-       {
-               public static var digest:ByteArray;
-               /**
-                *  Performs the SHA256 hash algorithm on a string.
-                *
-                *  @param s            The string to hash
-                *  @return                     A string containing the hash value of s
-                *  @langversion        ActionScript 3.0
-                *  @playerversion      9.0
-                *  @tiptext
-                */
-               public static function hash( s:String ):String {
-                       var blocks:Array = createBlocksFromString( s );
-                       var byteArray:ByteArray = hashBlocks( blocks );
-                       
-                       return IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true );
-               }
-               
-               /**
-                *  Performs the SHA256 hash algorithm on a ByteArray.
-                *
-                *  @param data         The ByteArray data to hash
-                *  @return                     A string containing the hash value of data
-                *  @langversion        ActionScript 3.0
-                *  @playerversion      9.0
-                */
-               public static function hashBytes( data:ByteArray ):String
-               {
-                       var blocks:Array = createBlocksFromByteArray( data );
-                       var byteArray:ByteArray = hashBlocks(blocks);
-                       
-                       return IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true )
-                                       + IntUtil.toHex( byteArray.readInt(), true );
-               }
-               
-               /**
-                *  Performs the SHA256 hash algorithm on a string, then does
-                *  Base64 encoding on the result.
-                *
-                *  @param s            The string to hash
-                *  @return                     The base64 encoded hash value of s
-                *  @langversion        ActionScript 3.0
-                *  @playerversion      9.0
-                *  @tiptext
-                */
-               public static function hashToBase64( s:String ):String
-               {
-                       var blocks:Array = createBlocksFromString( s );
-                       var byteArray:ByteArray = hashBlocks(blocks);
-
-                       // ByteArray.toString() returns the contents as a UTF-8 string,
-                       // which we can't use because certain byte sequences might trigger
-                       // a UTF-8 conversion.  Instead, we convert the bytes to characters
-                       // one by one.
-                       var charsInByteArray:String = "";
-                       byteArray.position = 0;
-                       for (var j:int = 0; j < byteArray.length; j++)
-                       {
-                               var byte:uint = byteArray.readUnsignedByte();
-                               charsInByteArray += String.fromCharCode(byte);
-                       }
-
-                       var encoder:Base64Encoder = new Base64Encoder();
-                       encoder.encode(charsInByteArray);
-                       return encoder.flush();
-               }
-               
-               private static function hashBlocks( blocks:Array ):ByteArray {
-                       var h0:int = 0x6a09e667;
-                       var h1:int = 0xbb67ae85;
-                       var h2:int = 0x3c6ef372;
-                       var h3:int = 0xa54ff53a;
-                       var h4:int = 0x510e527f;
-                       var h5:int = 0x9b05688c;
-                       var h6:int = 0x1f83d9ab;
-                       var h7:int = 0x5be0cd19;
-                       
-                       var k:Array = new Array(0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2);
-                       
-                       var len:int = blocks.length;
-                       var w:Array = new Array( 64 );
-                       
-                       // loop over all of the blocks
-                       for ( var i:int = 0; i < len; i += 16 ) {
-                               
-                               var a:int = h0;
-                               var b:int = h1;
-                               var c:int = h2;
-                               var d:int = h3;
-                               var e:int = h4;
-                               var f:int = h5;
-                               var g:int = h6;
-                               var h:int = h7;
-                               
-                               for(var t:int = 0; t < 64; t++) {
-                                       
-                                       if ( t < 16 ) {
-                                               w[t] = blocks[ i + t ];
-                                               if(isNaN(w[t])) { w[t] = 0; }
-                                       } else {
-                                               var ws0:int = IntUtil.ror(w[t-15], 7) ^ IntUtil.ror(w[t-15], 18) ^ (w[t-15] >>> 3);
-                                               var ws1:int = IntUtil.ror(w[t-2], 17) ^ IntUtil.ror(w[t-2], 19) ^ (w[t-2] >>> 10);
-                                               w[t] = w[t-16] + ws0 + w[t-7] + ws1;
-                                       }
-                                       
-                                       var s0:int = IntUtil.ror(a, 2) ^ IntUtil.ror(a, 13) ^ IntUtil.ror(a, 22);
-                                       var maj:int = (a & b) ^ (a & c) ^ (b & c);
-                                       var t2:int = s0 + maj;
-                                       var s1:int = IntUtil.ror(e, 6) ^ IntUtil.ror(e, 11) ^ IntUtil.ror(e, 25);
-                                       var ch:int = (e & f) ^ ((~e) & g);
-                                       var t1:int = h + s1 + ch + k[t] + w[t];
-                                       
-                                       h = g;
-                                       g = f;
-                                       f = e;
-                                       e = d + t1;
-                                       d = c;
-                                       c = b;
-                                       b = a;
-                                       a = t1 + t2;
-                               }
-                                       
-                               //Add this chunk's hash to result so far:
-                               h0 += a;
-                               h1 += b;
-                               h2 += c;
-                               h3 += d;
-                               h4 += e;
-                               h5 += f;
-                               h6 += g;
-                               h7 += h;
-                       }
-                       
-                       var byteArray:ByteArray = new ByteArray();
-                       byteArray.writeInt(h0);
-                       byteArray.writeInt(h1);
-                       byteArray.writeInt(h2);
-                       byteArray.writeInt(h3);
-                       byteArray.writeInt(h4);
-                       byteArray.writeInt(h5);
-                       byteArray.writeInt(h6);
-                       byteArray.writeInt(h7);
-                       byteArray.position = 0;
-                       
-                       digest = new ByteArray();
-                       digest.writeBytes(byteArray);
-                       digest.position = 0;
-                       return byteArray;
-               }
-               
-               /**
-                *  Converts a ByteArray to a sequence of 16-word blocks
-                *  that we'll do the processing on.  Appends padding
-                *  and length in the process.
-                *
-                *  @param data         The data to split into blocks
-                *  @return                     An array containing the blocks into which data was split
-                */
-               private static function createBlocksFromByteArray( data:ByteArray ):Array
-               {
-                       var oldPosition:int = data.position;
-                       data.position = 0;
-                       
-                       var blocks:Array = new Array();
-                       var len:int = data.length * 8;
-                       var mask:int = 0xFF; // ignore hi byte of characters > 0xFF
-                       for( var i:int = 0; i < len; i += 8 )
-                       {
-                               blocks[ i >> 5 ] |= ( data.readByte() & mask ) << ( 24 - i % 32 );
-                       }
-                       
-                       // append padding and length
-                       blocks[ len >> 5 ] |= 0x80 << ( 24 - len % 32 );
-                       blocks[ ( ( ( len + 64 ) >> 9 ) << 4 ) + 15 ] = len;
-                       
-                       data.position = oldPosition;
-                       
-                       return blocks;
-               }
-                                       
-               /**
-                *  Converts a string to a sequence of 16-word blocks
-                *  that we'll do the processing on.  Appends padding
-                *  and length in the process.
-                *
-                *  @param s    The string to split into blocks
-                *  @return             An array containing the blocks that s was split into.
-                */
-               private static function createBlocksFromString( s:String ):Array
-               {
-                       var blocks:Array = new Array();
-                       var len:int = s.length * 8;
-                       var mask:int = 0xFF; // ignore hi byte of characters > 0xFF
-                       for( var i:int = 0; i < len; i += 8 ) {
-                               blocks[ i >> 5 ] |= ( s.charCodeAt( i / 8 ) & mask ) << ( 24 - i % 32 );
-                       }
-                       
-                       // append padding and length
-                       blocks[ len >> 5 ] |= 0x80 << ( 24 - len % 32 );
-                       blocks[ ( ( ( len + 64 ) >> 9 ) << 4 ) + 15 ] = len;
-                       return blocks;
-               }
-       }
-}
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/crypto/WSSEUsernameToken.as b/redakcja/static/filebrowser/uploadify/com/adobe/crypto/WSSEUsernameToken.as
deleted file mode 100644 (file)
index 92bbba6..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.crypto\r
-{\r
-       import mx.formatters.DateFormatter;\r
-       import mx.utils.Base64Encoder;\r
-       \r
-       /**\r
-        * Web Services Security Username Token\r
-        *\r
-        * Implementation based on algorithm description at \r
-        * http://www.oasis-open.org/committees/wss/documents/WSS-Username-02-0223-merged.pdf\r
-        */\r
-       public class WSSEUsernameToken\r
-       {\r
-               /**\r
-                * Generates a WSSE Username Token.\r
-                *\r
-                * @param username The username\r
-                * @param password The password\r
-                * @param nonce A cryptographically random nonce (if null, the nonce\r
-                * will be generated)\r
-                * @param timestamp The time at which the token is generated (if null,\r
-                * the time will be set to the moment of execution)\r
-                * @return The generated token\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public static function getUsernameToken(username:String, password:String, nonce:String=null, timestamp:Date=null):String\r
-               {\r
-                       if (nonce == null)\r
-                       {\r
-                               nonce = generateNonce();\r
-                       }\r
-                       nonce = base64Encode(nonce);\r
-               \r
-                       var created:String = generateTimestamp(timestamp);\r
-               \r
-                       var password64:String = getBase64Digest(nonce,\r
-                               created,\r
-                               password);\r
-               \r
-                       var token:String = new String("UsernameToken Username=\"");\r
-                       token += username + "\", " +\r
-                                        "PasswordDigest=\"" + password64 + "\", " +\r
-                                        "Nonce=\"" + nonce + "\", " +\r
-                                        "Created=\"" + created + "\"";\r
-                       return token;\r
-               }\r
-               \r
-               private static function generateNonce():String\r
-               {\r
-                       // Math.random returns a Number between 0 and 1.  We don't want our\r
-                       // nonce to contain invalid characters (e.g. the period) so we\r
-                       // strip them out before returning the result.\r
-                       var s:String =  Math.random().toString();\r
-                       return s.replace(".", "");\r
-               }\r
-               \r
-               internal static function base64Encode(s:String):String\r
-               {\r
-                       var encoder:Base64Encoder = new Base64Encoder();\r
-                       encoder.encode(s);\r
-                       return encoder.flush();\r
-               }\r
-               \r
-               internal static function generateTimestamp(timestamp:Date):String\r
-               {\r
-                       if (timestamp == null)\r
-                       {\r
-                               timestamp = new Date();\r
-                       }\r
-                       var dateFormatter:DateFormatter = new DateFormatter();\r
-                       dateFormatter.formatString = "YYYY-MM-DDTJJ:NN:SS"\r
-                       return dateFormatter.format(timestamp) + "Z";\r
-               }\r
-               \r
-               internal static function getBase64Digest(nonce:String, created:String, password:String):String\r
-               {\r
-                       return SHA1.hashToBase64(nonce + created + password);\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/errors/IllegalStateError.as b/redakcja/static/filebrowser/uploadify/com/adobe/errors/IllegalStateError.as
deleted file mode 100644 (file)
index fa16191..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.errors\r
-{\r
-       /**\r
-       * This class represents an Error that is thrown when a method is called when\r
-       * the receiving instance is in an invalid state.\r
-       *\r
-       * For example, this may occur if a method has been called, and other properties\r
-       * in the instance have not been initialized properly.\r
-       *\r
-       * @langversion ActionScript 3.0\r
-       * @playerversion Flash 9.0\r
-       * @tiptext\r
-       *\r
-       */\r
-       public class IllegalStateError extends Error\r
-       {\r
-               /**\r
-               *       Constructor\r
-               *\r
-               *       @param message A message describing the error in detail.\r
-               *\r
-               *       @langversion ActionScript 3.0\r
-               *       @playerversion Flash 9.0\r
-               *       @tiptext\r
-               */\r
-               public function IllegalStateError(message:String)\r
-               {\r
-                       super(message);\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Address.as b/redakcja/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Address.as
deleted file mode 100644 (file)
index a368ffb..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-package com.adobe.fileformats.vcard
-{
-       public class Address
-       {
-               public var type:String;
-               public var street:String;
-               public var city:String;
-               public var state:String;
-               public var postalCode:String;
-               
-               public function toString():String
-               {
-                       return (street + " " + city + ", " + state + " " + postalCode);
-               }
-       }
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Email.as b/redakcja/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Email.as
deleted file mode 100644 (file)
index 071c39e..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-package com.adobe.fileformats.vcard
-{
-       public class Email
-       {
-               public var type:String;
-               public var address:String;
-       }
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Phone.as b/redakcja/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Phone.as
deleted file mode 100644 (file)
index 27f98e4..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-package com.adobe.fileformats.vcard
-{
-       public class Phone
-       {
-               public var type:String;
-               public var number:String;
-       }
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/fileformats/vcard/VCard.as b/redakcja/static/filebrowser/uploadify/com/adobe/fileformats/vcard/VCard.as
deleted file mode 100644 (file)
index d6bc283..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-package com.adobe.fileformats.vcard
-{
-       import flash.utils.ByteArray;
-
-       public class VCard
-       {
-               public var fullName:String;
-               public var orgs:Array;
-               public var title:String;
-               public var image:ByteArray;
-               public var phones:Array;
-               public var emails:Array;
-               public var addresses:Array;
-               
-               public function VCard()
-               {
-                       orgs = new Array();
-                       phones = new Array();
-                       emails = new Array();
-                       addresses = new Array();
-               }
-       }
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/fileformats/vcard/VCardParser.as b/redakcja/static/filebrowser/uploadify/com/adobe/fileformats/vcard/VCardParser.as
deleted file mode 100644 (file)
index 45c954a..0000000
+++ /dev/null
@@ -1,246 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-package com.adobe.fileformats.vcard
-{
-       import mx.utils.Base64Decoder;
-       import mx.utils.StringUtil;
-       
-       public class VCardParser
-       {
-               public static function parse(vcardStr:String):Array
-               {
-                       var vcards:Array = new Array();
-                       var lines:Array = vcardStr.split(/\r\n/);
-                       var vcard:VCard;
-                       var type:String;
-                       var typeTmp:String;
-                       var line:String;
-
-                       for (var i:uint = 0; i < lines.length; ++i)
-                       {
-                               line = lines[i];
-                               if (line == "BEGIN:VCARD")
-                               {
-                                       vcard = new VCard();
-                               }
-                               else if (line == "END:VCARD")
-                               {
-                                       if (vcard != null)
-                                       {
-                                               vcards.push(vcard);
-                                       }
-                               }
-                               else if(line.search(/^ORG/i) != -1)
-                               {
-                                       var org:String = line.substring(4, line.length);
-                                       var orgArray:Array = org.split(";");
-                                       for each (var orgToken:String in orgArray)
-                                       {
-                                               if (StringUtil.trim(orgToken).length > 0)
-                                               {
-                                                       vcard.orgs.push(orgToken);
-                                               }
-                                       }
-                               }
-                               else if(line.search(/^TITLE/i) != -1)
-                               {
-                                       var title:String = line.substring(6, line.length);
-                                       vcard.title = title;
-                               }
-                               else if (line.search(/^FN:/i) != -1)
-                               {
-                                       var fullName:String = line.substring(3, line.length);
-                                       vcard.fullName = fullName;
-                               }
-                               else if (line.search(/^TEL/i) != -1)
-                               {
-                                       type = new String();
-                                       typeTmp = new String();
-                                       var phone:Phone = new Phone();
-                                       var number:String;
-                                       var phoneTokens:Array = line.split(";");
-                                       for each (var phoneToken:String in phoneTokens)
-                                       {
-                                               if (phoneToken.search(/^TYPE=/i) != -1)
-                                               {
-                                                       if (phoneToken.indexOf(":") != -1)
-                                                       {
-                                                               typeTmp = phoneToken.substring(5, phoneToken.indexOf(":"));
-                                                               number = phoneToken.substring(phoneToken.indexOf(":")+1, phoneToken.length);
-                                                       }
-                                                       else
-                                                       {                                                                       
-                                                               typeTmp = phoneToken.substring(5, phoneToken.length);
-                                                       }
-
-                                                       typeTmp = typeTmp.toLocaleLowerCase();
-
-                                                       if (typeTmp == "pref")
-                                                       {
-                                                               continue;
-                                                       }
-                                                       if (type.length != 0)
-                                                       {
-                                                               type += (" ");
-                                                       }
-                                                       type += typeTmp;
-                                               }
-                                       }
-                                       if (type.length > 0 && number != null)
-                                       {
-                                               phone.type = type;
-                                               phone.number = number;
-                                       }
-                                       vcard.phones.push(phone);
-                               }
-                               else if (line.search(/^EMAIL/i) != -1)
-                               {
-                                       type = new String();
-                                       typeTmp = new String();
-                                       var email:Email = new Email();
-                                       var emailAddress:String;
-                                       var emailTokens:Array = line.split(";");
-                                       for each (var emailToken:String in emailTokens)
-                                       {
-                                               if (emailToken.search(/^TYPE=/i) != -1)
-                                               {
-                                                       if (emailToken.indexOf(":") != -1)
-                                                       {
-                                                               typeTmp = emailToken.substring(5, emailToken.indexOf(":"));
-                                                               emailAddress = emailToken.substring(emailToken.indexOf(":")+1, emailToken.length);
-                                                       }
-                                                       else
-                                                       {                                                                       
-                                                               typeTmp = emailToken.substring(5, emailToken.length);
-                                                       }
-
-                                                       typeTmp = typeTmp.toLocaleLowerCase();
-
-                                                       if (typeTmp == "pref" || typeTmp == "internet")
-                                                       {
-                                                               continue;
-                                                       }
-                                                       if (type.length != 0)
-                                                       {
-                                                               type += (" ");
-                                                       }
-                                                       type += typeTmp;
-                                               }
-                                       }
-                                       if (type.length > 0 && emailAddress != null)
-                                       {
-                                               email.type = type;
-                                               email.address = emailAddress;
-                                       }
-                                       vcard.emails.push(email);
-                               }
-                               else if (line.indexOf("ADR;") != -1)
-                               {
-                                       var addressTokens:Array = line.split(";");
-                                       var address:Address = new Address();
-                                       for (var j:uint = 0; j < addressTokens.length; ++j)
-                                       {
-                                               var addressToken:String = addressTokens[j];
-                                               if (addressToken.search(/^home:+$/i) != -1) // For Outlook, which uses non-standard vCards.
-                                               {
-                                                       address.type = "home";
-                                               }
-                                               else if (addressToken.search(/^work:+$/i) != -1) // For Outlook, which uses non-standard vCards.
-                                               {
-                                                       address.type = "work";
-                                               }
-                                               if (addressToken.search(/^type=/i) != -1)  // The "type" parameter is the standard way (which Address Book uses)
-                                               {
-                                                       // First, remove the optional ":" character.
-                                                       addressToken = addressToken.replace(/:/,"");
-                                                       var addressType:String = addressToken.substring(5, addressToken.length).toLowerCase();
-                                                       if (addressType == "pref") // Not interested in which one is preferred.
-                                                       {
-                                                               continue;
-                                                       }
-                                                       else if (addressType.indexOf("home") != -1) // home
-                                                       {
-                                                               addressType = "home";
-                                                       }
-                                                       else if (addressType.indexOf("work") != -1) // work
-                                                       {
-                                                               addressType = "work";
-                                                       }
-                                                       else if (addressType.indexOf(",") != -1) // if the comma technique is used, just use the first one
-                                                       {
-                                                               var typeTokens:Array = addressType.split(",");
-                                                               for each (var typeToken:String in typeTokens)
-                                                               {
-                                                                       if (typeToken != "pref")
-                                                                       {
-                                                                               addressType = typeToken;
-                                                                               break;
-                                                                       }
-                                                               }
-                                                       }
-                                                       address.type = addressType;
-                                               }
-                                               else if (addressToken.search(/^\d/) != -1 && address.street == null)
-                                               {
-                                                       address.street = addressToken.replace(/\\n/, "");
-                                                       address.city = addressTokens[j+1];
-                                                       address.state = addressTokens[j+2];
-                                                       address.postalCode = addressTokens[j+3];
-                                               }
-                                       }
-                                       if (address.type != null && address.street != null)
-                                       {
-                                               vcard.addresses.push(address);
-                                       }
-
-                               }
-                               else if (line.search(/^PHOTO;BASE64/i) != -1)
-                               {
-                                       var imageStr:String = new String();
-                                       for (var k:uint = i+1; k < lines.length; ++k)
-                                       {
-                                               imageStr += lines[k];
-                                               //if (lines[k].search(/.+\=$/) != -1) // Very slow in Mac due to RegEx bug
-                                               if (lines[k].indexOf('=') != -1)
-                                               {
-                                                       var decoder:Base64Decoder = new Base64Decoder();
-                                                       decoder.decode(imageStr);
-                                                       vcard.image = decoder.flush();
-                                                       break;
-                                               }
-                                       }
-                               }
-                       }
-                       return vcards;
-               }
-       }
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/images/BitString.as b/redakcja/static/filebrowser/uploadify/com/adobe/images/BitString.as
deleted file mode 100644 (file)
index b5c2b84..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-package com.adobe.images\r
-{\r
-       public class BitString\r
-       {\r
-               public var len:int = 0;\r
-               public var val:int = 0;\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/images/JPGEncoder.as b/redakcja/static/filebrowser/uploadify/com/adobe/images/JPGEncoder.as
deleted file mode 100644 (file)
index 100d7e9..0000000
+++ /dev/null
@@ -1,648 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-package com.adobe.images\r
-{\r
-       import flash.geom.*;\r
-       import flash.display.*;\r
-       import flash.utils.*;\r
-       \r
-       /**\r
-        * Class that converts BitmapData into a valid JPEG\r
-        */             \r
-       public class JPGEncoder\r
-       {\r
-\r
-               // Static table initialization\r
-       \r
-               private var ZigZag:Array = [\r
-                        0, 1, 5, 6,14,15,27,28,\r
-                        2, 4, 7,13,16,26,29,42,\r
-                        3, 8,12,17,25,30,41,43,\r
-                        9,11,18,24,31,40,44,53,\r
-                       10,19,23,32,39,45,52,54,\r
-                       20,22,33,38,46,51,55,60,\r
-                       21,34,37,47,50,56,59,61,\r
-                       35,36,48,49,57,58,62,63\r
-               ];\r
-       \r
-               private var YTable:Array = new Array(64);\r
-               private var UVTable:Array = new Array(64);\r
-               private var fdtbl_Y:Array = new Array(64);\r
-               private var fdtbl_UV:Array = new Array(64);\r
-       \r
-               private function initQuantTables(sf:int):void\r
-               {\r
-                       var i:int;\r
-                       var t:Number;\r
-                       var YQT:Array = [\r
-                               16, 11, 10, 16, 24, 40, 51, 61,\r
-                               12, 12, 14, 19, 26, 58, 60, 55,\r
-                               14, 13, 16, 24, 40, 57, 69, 56,\r
-                               14, 17, 22, 29, 51, 87, 80, 62,\r
-                               18, 22, 37, 56, 68,109,103, 77,\r
-                               24, 35, 55, 64, 81,104,113, 92,\r
-                               49, 64, 78, 87,103,121,120,101,\r
-                               72, 92, 95, 98,112,100,103, 99\r
-                       ];\r
-                       for (i = 0; i < 64; i++) {\r
-                               t = Math.floor((YQT[i]*sf+50)/100);\r
-                               if (t < 1) {\r
-                                       t = 1;\r
-                               } else if (t > 255) {\r
-                                       t = 255;\r
-                               }\r
-                               YTable[ZigZag[i]] = t;\r
-                       }\r
-                       var UVQT:Array = [\r
-                               17, 18, 24, 47, 99, 99, 99, 99,\r
-                               18, 21, 26, 66, 99, 99, 99, 99,\r
-                               24, 26, 56, 99, 99, 99, 99, 99,\r
-                               47, 66, 99, 99, 99, 99, 99, 99,\r
-                               99, 99, 99, 99, 99, 99, 99, 99,\r
-                               99, 99, 99, 99, 99, 99, 99, 99,\r
-                               99, 99, 99, 99, 99, 99, 99, 99,\r
-                               99, 99, 99, 99, 99, 99, 99, 99\r
-                       ];\r
-                       for (i = 0; i < 64; i++) {\r
-                               t = Math.floor((UVQT[i]*sf+50)/100);\r
-                               if (t < 1) {\r
-                                       t = 1;\r
-                               } else if (t > 255) {\r
-                                       t = 255;\r
-                               }\r
-                               UVTable[ZigZag[i]] = t;\r
-                       }\r
-                       var aasf:Array = [\r
-                               1.0, 1.387039845, 1.306562965, 1.175875602,\r
-                               1.0, 0.785694958, 0.541196100, 0.275899379\r
-                       ];\r
-                       i = 0;\r
-                       for (var row:int = 0; row < 8; row++)\r
-                       {\r
-                               for (var col:int = 0; col < 8; col++)\r
-                               {\r
-                                       fdtbl_Y[i]  = (1.0 / (YTable [ZigZag[i]] * aasf[row] * aasf[col] * 8.0));\r
-                                       fdtbl_UV[i] = (1.0 / (UVTable[ZigZag[i]] * aasf[row] * aasf[col] * 8.0));\r
-                                       i++;\r
-                               }\r
-                       }\r
-               }\r
-       \r
-               private var YDC_HT:Array;\r
-               private var UVDC_HT:Array;\r
-               private var YAC_HT:Array;\r
-               private var UVAC_HT:Array;\r
-       \r
-               private function computeHuffmanTbl(nrcodes:Array, std_table:Array):Array\r
-               {\r
-                       var codevalue:int = 0;\r
-                       var pos_in_table:int = 0;\r
-                       var HT:Array = new Array();\r
-                       for (var k:int=1; k<=16; k++) {\r
-                               for (var j:int=1; j<=nrcodes[k]; j++) {\r
-                                       HT[std_table[pos_in_table]] = new BitString();\r
-                                       HT[std_table[pos_in_table]].val = codevalue;\r
-                                       HT[std_table[pos_in_table]].len = k;\r
-                                       pos_in_table++;\r
-                                       codevalue++;\r
-                               }\r
-                               codevalue*=2;\r
-                       }\r
-                       return HT;\r
-               }\r
-       \r
-               private var std_dc_luminance_nrcodes:Array = [0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0];\r
-               private var std_dc_luminance_values:Array = [0,1,2,3,4,5,6,7,8,9,10,11];\r
-               private var std_ac_luminance_nrcodes:Array = [0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,0x7d];\r
-               private var std_ac_luminance_values:Array = [\r
-                       0x01,0x02,0x03,0x00,0x04,0x11,0x05,0x12,\r
-                       0x21,0x31,0x41,0x06,0x13,0x51,0x61,0x07,\r
-                       0x22,0x71,0x14,0x32,0x81,0x91,0xa1,0x08,\r
-                       0x23,0x42,0xb1,0xc1,0x15,0x52,0xd1,0xf0,\r
-                       0x24,0x33,0x62,0x72,0x82,0x09,0x0a,0x16,\r
-                       0x17,0x18,0x19,0x1a,0x25,0x26,0x27,0x28,\r
-                       0x29,0x2a,0x34,0x35,0x36,0x37,0x38,0x39,\r
-                       0x3a,0x43,0x44,0x45,0x46,0x47,0x48,0x49,\r
-                       0x4a,0x53,0x54,0x55,0x56,0x57,0x58,0x59,\r
-                       0x5a,0x63,0x64,0x65,0x66,0x67,0x68,0x69,\r
-                       0x6a,0x73,0x74,0x75,0x76,0x77,0x78,0x79,\r
-                       0x7a,0x83,0x84,0x85,0x86,0x87,0x88,0x89,\r
-                       0x8a,0x92,0x93,0x94,0x95,0x96,0x97,0x98,\r
-                       0x99,0x9a,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,\r
-                       0xa8,0xa9,0xaa,0xb2,0xb3,0xb4,0xb5,0xb6,\r
-                       0xb7,0xb8,0xb9,0xba,0xc2,0xc3,0xc4,0xc5,\r
-                       0xc6,0xc7,0xc8,0xc9,0xca,0xd2,0xd3,0xd4,\r
-                       0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xe1,0xe2,\r
-                       0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,\r
-                       0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,\r
-                       0xf9,0xfa\r
-               ];\r
-       \r
-               private var std_dc_chrominance_nrcodes:Array = [0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0];\r
-               private var std_dc_chrominance_values:Array = [0,1,2,3,4,5,6,7,8,9,10,11];\r
-               private var std_ac_chrominance_nrcodes:Array = [0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,0x77];\r
-               private var std_ac_chrominance_values:Array = [\r
-                       0x00,0x01,0x02,0x03,0x11,0x04,0x05,0x21,\r
-                       0x31,0x06,0x12,0x41,0x51,0x07,0x61,0x71,\r
-                       0x13,0x22,0x32,0x81,0x08,0x14,0x42,0x91,\r
-                       0xa1,0xb1,0xc1,0x09,0x23,0x33,0x52,0xf0,\r
-                       0x15,0x62,0x72,0xd1,0x0a,0x16,0x24,0x34,\r
-                       0xe1,0x25,0xf1,0x17,0x18,0x19,0x1a,0x26,\r
-                       0x27,0x28,0x29,0x2a,0x35,0x36,0x37,0x38,\r
-                       0x39,0x3a,0x43,0x44,0x45,0x46,0x47,0x48,\r
-                       0x49,0x4a,0x53,0x54,0x55,0x56,0x57,0x58,\r
-                       0x59,0x5a,0x63,0x64,0x65,0x66,0x67,0x68,\r
-                       0x69,0x6a,0x73,0x74,0x75,0x76,0x77,0x78,\r
-                       0x79,0x7a,0x82,0x83,0x84,0x85,0x86,0x87,\r
-                       0x88,0x89,0x8a,0x92,0x93,0x94,0x95,0x96,\r
-                       0x97,0x98,0x99,0x9a,0xa2,0xa3,0xa4,0xa5,\r
-                       0xa6,0xa7,0xa8,0xa9,0xaa,0xb2,0xb3,0xb4,\r
-                       0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xc2,0xc3,\r
-                       0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xd2,\r
-                       0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,\r
-                       0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,\r
-                       0xea,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,\r
-                       0xf9,0xfa\r
-               ];\r
-       \r
-               private function initHuffmanTbl():void\r
-               {\r
-                       YDC_HT = computeHuffmanTbl(std_dc_luminance_nrcodes,std_dc_luminance_values);\r
-                       UVDC_HT = computeHuffmanTbl(std_dc_chrominance_nrcodes,std_dc_chrominance_values);\r
-                       YAC_HT = computeHuffmanTbl(std_ac_luminance_nrcodes,std_ac_luminance_values);\r
-                       UVAC_HT = computeHuffmanTbl(std_ac_chrominance_nrcodes,std_ac_chrominance_values);\r
-               }\r
-       \r
-               private var bitcode:Array = new Array(65535);\r
-               private var category:Array = new Array(65535);\r
-       \r
-               private function initCategoryNumber():void\r
-               {\r
-                       var nrlower:int = 1;\r
-                       var nrupper:int = 2;\r
-                       var nr:int;\r
-                       for (var cat:int=1; cat<=15; cat++) {\r
-                               //Positive numbers\r
-                               for (nr=nrlower; nr<nrupper; nr++) {\r
-                                       category[32767+nr] = cat;\r
-                                       bitcode[32767+nr] = new BitString();\r
-                                       bitcode[32767+nr].len = cat;\r
-                                       bitcode[32767+nr].val = nr;\r
-                               }\r
-                               //Negative numbers\r
-                               for (nr=-(nrupper-1); nr<=-nrlower; nr++) {\r
-                                       category[32767+nr] = cat;\r
-                                       bitcode[32767+nr] = new BitString();\r
-                                       bitcode[32767+nr].len = cat;\r
-                                       bitcode[32767+nr].val = nrupper-1+nr;\r
-                               }\r
-                               nrlower <<= 1;\r
-                               nrupper <<= 1;\r
-                       }\r
-               }\r
-       \r
-               // IO functions\r
-       \r
-               private var byteout:ByteArray;\r
-               private var bytenew:int = 0;\r
-               private var bytepos:int = 7;\r
-       \r
-               private function writeBits(bs:BitString):void\r
-               {\r
-                       var value:int = bs.val;\r
-                       var posval:int = bs.len-1;\r
-                       while ( posval >= 0 ) {\r
-                               if (value & uint(1 << posval) ) {\r
-                                       bytenew |= uint(1 << bytepos);\r
-                               }\r
-                               posval--;\r
-                               bytepos--;\r
-                               if (bytepos < 0) {\r
-                                       if (bytenew == 0xFF) {\r
-                                               writeByte(0xFF);\r
-                                               writeByte(0);\r
-                                       }\r
-                                       else {\r
-                                               writeByte(bytenew);\r
-                                       }\r
-                                       bytepos=7;\r
-                                       bytenew=0;\r
-                               }\r
-                       }\r
-               }\r
-       \r
-               private function writeByte(value:int):void\r
-               {\r
-                       byteout.writeByte(value);\r
-               }\r
-       \r
-               private function writeWord(value:int):void\r
-               {\r
-                       writeByte((value>>8)&0xFF);\r
-                       writeByte((value   )&0xFF);\r
-               }\r
-       \r
-               // DCT & quantization core\r
-       \r
-               private function fDCTQuant(data:Array, fdtbl:Array):Array\r
-               {\r
-                       var tmp0:Number, tmp1:Number, tmp2:Number, tmp3:Number, tmp4:Number, tmp5:Number, tmp6:Number, tmp7:Number;\r
-                       var tmp10:Number, tmp11:Number, tmp12:Number, tmp13:Number;\r
-                       var z1:Number, z2:Number, z3:Number, z4:Number, z5:Number, z11:Number, z13:Number;\r
-                       var i:int;\r
-                       /* Pass 1: process rows. */\r
-                       var dataOff:int=0;\r
-                       for (i=0; i<8; i++) {\r
-                               tmp0 = data[dataOff+0] + data[dataOff+7];\r
-                               tmp7 = data[dataOff+0] - data[dataOff+7];\r
-                               tmp1 = data[dataOff+1] + data[dataOff+6];\r
-                               tmp6 = data[dataOff+1] - data[dataOff+6];\r
-                               tmp2 = data[dataOff+2] + data[dataOff+5];\r
-                               tmp5 = data[dataOff+2] - data[dataOff+5];\r
-                               tmp3 = data[dataOff+3] + data[dataOff+4];\r
-                               tmp4 = data[dataOff+3] - data[dataOff+4];\r
-       \r
-                               /* Even part */\r
-                               tmp10 = tmp0 + tmp3;    /* phase 2 */\r
-                               tmp13 = tmp0 - tmp3;\r
-                               tmp11 = tmp1 + tmp2;\r
-                               tmp12 = tmp1 - tmp2;\r
-       \r
-                               data[dataOff+0] = tmp10 + tmp11; /* phase 3 */\r
-                               data[dataOff+4] = tmp10 - tmp11;\r
-       \r
-                               z1 = (tmp12 + tmp13) * 0.707106781; /* c4 */\r
-                               data[dataOff+2] = tmp13 + z1; /* phase 5 */\r
-                               data[dataOff+6] = tmp13 - z1;\r
-       \r
-                               /* Odd part */\r
-                               tmp10 = tmp4 + tmp5; /* phase 2 */\r
-                               tmp11 = tmp5 + tmp6;\r
-                               tmp12 = tmp6 + tmp7;\r
-       \r
-                               /* The rotator is modified from fig 4-8 to avoid extra negations. */\r
-                               z5 = (tmp10 - tmp12) * 0.382683433; /* c6 */\r
-                               z2 = 0.541196100 * tmp10 + z5; /* c2-c6 */\r
-                               z4 = 1.306562965 * tmp12 + z5; /* c2+c6 */\r
-                               z3 = tmp11 * 0.707106781; /* c4 */\r
-       \r
-                               z11 = tmp7 + z3;        /* phase 5 */\r
-                               z13 = tmp7 - z3;\r
-       \r
-                               data[dataOff+5] = z13 + z2;     /* phase 6 */\r
-                               data[dataOff+3] = z13 - z2;\r
-                               data[dataOff+1] = z11 + z4;\r
-                               data[dataOff+7] = z11 - z4;\r
-       \r
-                               dataOff += 8; /* advance pointer to next row */\r
-                       }\r
-       \r
-                       /* Pass 2: process columns. */\r
-                       dataOff = 0;\r
-                       for (i=0; i<8; i++) {\r
-                               tmp0 = data[dataOff+ 0] + data[dataOff+56];\r
-                               tmp7 = data[dataOff+ 0] - data[dataOff+56];\r
-                               tmp1 = data[dataOff+ 8] + data[dataOff+48];\r
-                               tmp6 = data[dataOff+ 8] - data[dataOff+48];\r
-                               tmp2 = data[dataOff+16] + data[dataOff+40];\r
-                               tmp5 = data[dataOff+16] - data[dataOff+40];\r
-                               tmp3 = data[dataOff+24] + data[dataOff+32];\r
-                               tmp4 = data[dataOff+24] - data[dataOff+32];\r
-       \r
-                               /* Even part */\r
-                               tmp10 = tmp0 + tmp3;    /* phase 2 */\r
-                               tmp13 = tmp0 - tmp3;\r
-                               tmp11 = tmp1 + tmp2;\r
-                               tmp12 = tmp1 - tmp2;\r
-       \r
-                               data[dataOff+ 0] = tmp10 + tmp11; /* phase 3 */\r
-                               data[dataOff+32] = tmp10 - tmp11;\r
-       \r
-                               z1 = (tmp12 + tmp13) * 0.707106781; /* c4 */\r
-                               data[dataOff+16] = tmp13 + z1; /* phase 5 */\r
-                               data[dataOff+48] = tmp13 - z1;\r
-       \r
-                               /* Odd part */\r
-                               tmp10 = tmp4 + tmp5; /* phase 2 */\r
-                               tmp11 = tmp5 + tmp6;\r
-                               tmp12 = tmp6 + tmp7;\r
-       \r
-                               /* The rotator is modified from fig 4-8 to avoid extra negations. */\r
-                               z5 = (tmp10 - tmp12) * 0.382683433; /* c6 */\r
-                               z2 = 0.541196100 * tmp10 + z5; /* c2-c6 */\r
-                               z4 = 1.306562965 * tmp12 + z5; /* c2+c6 */\r
-                               z3 = tmp11 * 0.707106781; /* c4 */\r
-       \r
-                               z11 = tmp7 + z3;        /* phase 5 */\r
-                               z13 = tmp7 - z3;\r
-       \r
-                               data[dataOff+40] = z13 + z2; /* phase 6 */\r
-                               data[dataOff+24] = z13 - z2;\r
-                               data[dataOff+ 8] = z11 + z4;\r
-                               data[dataOff+56] = z11 - z4;\r
-       \r
-                               dataOff++; /* advance pointer to next column */\r
-                       }\r
-       \r
-                       // Quantize/descale the coefficients\r
-                       for (i=0; i<64; i++) {\r
-                               // Apply the quantization and scaling factor & Round to nearest integer\r
-                               data[i] = Math.round((data[i]*fdtbl[i]));\r
-                       }\r
-                       return data;\r
-               }\r
-       \r
-               // Chunk writing\r
-       \r
-               private function writeAPP0():void\r
-               {\r
-                       writeWord(0xFFE0); // marker\r
-                       writeWord(16); // length\r
-                       writeByte(0x4A); // J\r
-                       writeByte(0x46); // F\r
-                       writeByte(0x49); // I\r
-                       writeByte(0x46); // F\r
-                       writeByte(0); // = "JFIF",'\0'\r
-                       writeByte(1); // versionhi\r
-                       writeByte(1); // versionlo\r
-                       writeByte(0); // xyunits\r
-                       writeWord(1); // xdensity\r
-                       writeWord(1); // ydensity\r
-                       writeByte(0); // thumbnwidth\r
-                       writeByte(0); // thumbnheight\r
-               }\r
-       \r
-               private function writeSOF0(width:int, height:int):void\r
-               {\r
-                       writeWord(0xFFC0); // marker\r
-                       writeWord(17);   // length, truecolor YUV JPG\r
-                       writeByte(8);    // precision\r
-                       writeWord(height);\r
-                       writeWord(width);\r
-                       writeByte(3);    // nrofcomponents\r
-                       writeByte(1);    // IdY\r
-                       writeByte(0x11); // HVY\r
-                       writeByte(0);    // QTY\r
-                       writeByte(2);    // IdU\r
-                       writeByte(0x11); // HVU\r
-                       writeByte(1);    // QTU\r
-                       writeByte(3);    // IdV\r
-                       writeByte(0x11); // HVV\r
-                       writeByte(1);    // QTV\r
-               }\r
-       \r
-               private function writeDQT():void\r
-               {\r
-                       writeWord(0xFFDB); // marker\r
-                       writeWord(132);    // length\r
-                       writeByte(0);\r
-                       var i:int;\r
-                       for (i=0; i<64; i++) {\r
-                               writeByte(YTable[i]);\r
-                       }\r
-                       writeByte(1);\r
-                       for (i=0; i<64; i++) {\r
-                               writeByte(UVTable[i]);\r
-                       }\r
-               }\r
-       \r
-               private function writeDHT():void\r
-               {\r
-                       writeWord(0xFFC4); // marker\r
-                       writeWord(0x01A2); // length\r
-                       var i:int;\r
-       \r
-                       writeByte(0); // HTYDCinfo\r
-                       for (i=0; i<16; i++) {\r
-                               writeByte(std_dc_luminance_nrcodes[i+1]);\r
-                       }\r
-                       for (i=0; i<=11; i++) {\r
-                               writeByte(std_dc_luminance_values[i]);\r
-                       }\r
-       \r
-                       writeByte(0x10); // HTYACinfo\r
-                       for (i=0; i<16; i++) {\r
-                               writeByte(std_ac_luminance_nrcodes[i+1]);\r
-                       }\r
-                       for (i=0; i<=161; i++) {\r
-                               writeByte(std_ac_luminance_values[i]);\r
-                       }\r
-       \r
-                       writeByte(1); // HTUDCinfo\r
-                       for (i=0; i<16; i++) {\r
-                               writeByte(std_dc_chrominance_nrcodes[i+1]);\r
-                       }\r
-                       for (i=0; i<=11; i++) {\r
-                               writeByte(std_dc_chrominance_values[i]);\r
-                       }\r
-       \r
-                       writeByte(0x11); // HTUACinfo\r
-                       for (i=0; i<16; i++) {\r
-                               writeByte(std_ac_chrominance_nrcodes[i+1]);\r
-                       }\r
-                       for (i=0; i<=161; i++) {\r
-                               writeByte(std_ac_chrominance_values[i]);\r
-                       }\r
-               }\r
-       \r
-               private function writeSOS():void\r
-               {\r
-                       writeWord(0xFFDA); // marker\r
-                       writeWord(12); // length\r
-                       writeByte(3); // nrofcomponents\r
-                       writeByte(1); // IdY\r
-                       writeByte(0); // HTY\r
-                       writeByte(2); // IdU\r
-                       writeByte(0x11); // HTU\r
-                       writeByte(3); // IdV\r
-                       writeByte(0x11); // HTV\r
-                       writeByte(0); // Ss\r
-                       writeByte(0x3f); // Se\r
-                       writeByte(0); // Bf\r
-               }\r
-       \r
-               // Core processing\r
-               private var DU:Array = new Array(64);\r
-       \r
-               private function processDU(CDU:Array, fdtbl:Array, DC:Number, HTDC:Array, HTAC:Array):Number\r
-               {\r
-                       var EOB:BitString = HTAC[0x00];\r
-                       var M16zeroes:BitString = HTAC[0xF0];\r
-                       var i:int;\r
-       \r
-                       var DU_DCT:Array = fDCTQuant(CDU, fdtbl);\r
-                       //ZigZag reorder\r
-                       for (i=0;i<64;i++) {\r
-                               DU[ZigZag[i]]=DU_DCT[i];\r
-                       }\r
-                       var Diff:int = DU[0] - DC; DC = DU[0];\r
-                       //Encode DC\r
-                       if (Diff==0) {\r
-                               writeBits(HTDC[0]); // Diff might be 0\r
-                       } else {\r
-                               writeBits(HTDC[category[32767+Diff]]);\r
-                               writeBits(bitcode[32767+Diff]);\r
-                       }\r
-                       //Encode ACs\r
-                       var end0pos:int = 63;\r
-                       for (; (end0pos>0)&&(DU[end0pos]==0); end0pos--) {\r
-                       };\r
-                       //end0pos = first element in reverse order !=0\r
-                       if ( end0pos == 0) {\r
-                               writeBits(EOB);\r
-                               return DC;\r
-                       }\r
-                       i = 1;\r
-                       while ( i <= end0pos ) {\r
-                               var startpos:int = i;\r
-                               for (; (DU[i]==0) && (i<=end0pos); i++) {\r
-                               }\r
-                               var nrzeroes:int = i-startpos;\r
-                               if ( nrzeroes >= 16 ) {\r
-                                       for (var nrmarker:int=1; nrmarker <= nrzeroes/16; nrmarker++) {\r
-                                               writeBits(M16zeroes);\r
-                                       }\r
-                                       nrzeroes = int(nrzeroes&0xF);\r
-                               }\r
-                               writeBits(HTAC[nrzeroes*16+category[32767+DU[i]]]);\r
-                               writeBits(bitcode[32767+DU[i]]);\r
-                               i++;\r
-                       }\r
-                       if ( end0pos != 63 ) {\r
-                               writeBits(EOB);\r
-                       }\r
-                       return DC;\r
-               }\r
-       \r
-               private var YDU:Array = new Array(64);\r
-               private var UDU:Array = new Array(64);\r
-               private var VDU:Array = new Array(64);\r
-       \r
-               private function RGB2YUV(img:BitmapData, xpos:int, ypos:int):void\r
-               {\r
-                       var pos:int=0;\r
-                       for (var y:int=0; y<8; y++) {\r
-                               for (var x:int=0; x<8; x++) {\r
-                                       var P:uint = img.getPixel32(xpos+x,ypos+y);\r
-                                       var R:Number = Number((P>>16)&0xFF);\r
-                                       var G:Number = Number((P>> 8)&0xFF);\r
-                                       var B:Number = Number((P    )&0xFF);\r
-                                       YDU[pos]=((( 0.29900)*R+( 0.58700)*G+( 0.11400)*B))-128;\r
-                                       UDU[pos]=(((-0.16874)*R+(-0.33126)*G+( 0.50000)*B));\r
-                                       VDU[pos]=((( 0.50000)*R+(-0.41869)*G+(-0.08131)*B));\r
-                                       pos++;\r
-                               }\r
-                       }\r
-               }\r
-       \r
-               /**\r
-                * Constructor for JPEGEncoder class\r
-                *\r
-                * @param quality The quality level between 1 and 100 that detrmines the\r
-                * level of compression used in the generated JPEG\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */             \r
-               public function JPGEncoder(quality:Number = 50)\r
-               {\r
-                       if (quality <= 0) {\r
-                               quality = 1;\r
-                       }\r
-                       if (quality > 100) {\r
-                               quality = 100;\r
-                       }\r
-                       var sf:int = 0;\r
-                       if (quality < 50) {\r
-                               sf = int(5000 / quality);\r
-                       } else {\r
-                               sf = int(200 - quality*2);\r
-                       }\r
-                       // Create tables\r
-                       initHuffmanTbl();\r
-                       initCategoryNumber();\r
-                       initQuantTables(sf);\r
-               }\r
-       \r
-               /**\r
-                * Created a JPEG image from the specified BitmapData\r
-                *\r
-                * @param image The BitmapData that will be converted into the JPEG format.\r
-                * @return a ByteArray representing the JPEG encoded image data.\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */     \r
-               public function encode(image:BitmapData):ByteArray\r
-               {\r
-                       // Initialize bit writer\r
-                       byteout = new ByteArray();\r
-                       bytenew=0;\r
-                       bytepos=7;\r
-       \r
-                       // Add JPEG headers\r
-                       writeWord(0xFFD8); // SOI\r
-                       writeAPP0();\r
-                       writeDQT();\r
-                       writeSOF0(image.width,image.height);\r
-                       writeDHT();\r
-                       writeSOS();\r
-\r
-       \r
-                       // Encode 8x8 macroblocks\r
-                       var DCY:Number=0;\r
-                       var DCU:Number=0;\r
-                       var DCV:Number=0;\r
-                       bytenew=0;\r
-                       bytepos=7;\r
-                       for (var ypos:int=0; ypos<image.height; ypos+=8) {\r
-                               for (var xpos:int=0; xpos<image.width; xpos+=8) {\r
-                                       RGB2YUV(image, xpos, ypos);\r
-                                       DCY = processDU(YDU, fdtbl_Y, DCY, YDC_HT, YAC_HT);\r
-                                       DCU = processDU(UDU, fdtbl_UV, DCU, UVDC_HT, UVAC_HT);\r
-                                       DCV = processDU(VDU, fdtbl_UV, DCV, UVDC_HT, UVAC_HT);\r
-                               }\r
-                       }\r
-       \r
-                       // Do the bit alignment of the EOI marker\r
-                       if ( bytepos >= 0 ) {\r
-                               var fillbits:BitString = new BitString();\r
-                               fillbits.len = bytepos+1;\r
-                               fillbits.val = (1<<(bytepos+1))-1;\r
-                               writeBits(fillbits);\r
-                       }\r
-       \r
-                       writeWord(0xFFD9); //EOI\r
-                       return byteout;\r
-               }\r
-       }\r
-}\r
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/images/PNGEncoder.as b/redakcja/static/filebrowser/uploadify/com/adobe/images/PNGEncoder.as
deleted file mode 100644 (file)
index 83c95f6..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-package com.adobe.images\r
-{\r
-       import flash.geom.*;\r
-       import flash.display.Bitmap;\r
-       import flash.display.BitmapData;\r
-       import flash.utils.ByteArray;\r
-\r
-       /**\r
-        * Class that converts BitmapData into a valid PNG\r
-        */     \r
-       public class PNGEncoder\r
-       {\r
-               /**\r
-                * Created a PNG image from the specified BitmapData\r
-                *\r
-                * @param image The BitmapData that will be converted into the PNG format.\r
-                * @return a ByteArray representing the PNG encoded image data.\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */                     \r
-           public static function encode(img:BitmapData):ByteArray {\r
-               // Create output byte array\r
-               var png:ByteArray = new ByteArray();\r
-               // Write PNG signature\r
-               png.writeUnsignedInt(0x89504e47);\r
-               png.writeUnsignedInt(0x0D0A1A0A);\r
-               // Build IHDR chunk\r
-               var IHDR:ByteArray = new ByteArray();\r
-               IHDR.writeInt(img.width);\r
-               IHDR.writeInt(img.height);\r
-               IHDR.writeUnsignedInt(0x08060000); // 32bit RGBA\r
-               IHDR.writeByte(0);\r
-               writeChunk(png,0x49484452,IHDR);\r
-               // Build IDAT chunk\r
-               var IDAT:ByteArray= new ByteArray();\r
-               for(var i:int=0;i < img.height;i++) {\r
-                   // no filter\r
-                   IDAT.writeByte(0);\r
-                   var p:uint;\r
-                   var j:int;\r
-                   if ( !img.transparent ) {\r
-                       for(j=0;j < img.width;j++) {\r
-                           p = img.getPixel(j,i);\r
-                           IDAT.writeUnsignedInt(\r
-                               uint(((p&0xFFFFFF) << 8)|0xFF));\r
-                       }\r
-                   } else {\r
-                       for(j=0;j < img.width;j++) {\r
-                           p = img.getPixel32(j,i);\r
-                           IDAT.writeUnsignedInt(\r
-                               uint(((p&0xFFFFFF) << 8)|\r
-                               (p>>>24)));\r
-                       }\r
-                   }\r
-               }\r
-               IDAT.compress();\r
-               writeChunk(png,0x49444154,IDAT);\r
-               // Build IEND chunk\r
-               writeChunk(png,0x49454E44,null);\r
-               // return PNG\r
-               return png;\r
-           }\r
-       \r
-           private static var crcTable:Array;\r
-           private static var crcTableComputed:Boolean = false;\r
-       \r
-           private static function writeChunk(png:ByteArray, \r
-                   type:uint, data:ByteArray):void {\r
-               if (!crcTableComputed) {\r
-                   crcTableComputed = true;\r
-                   crcTable = [];\r
-                   var c:uint;\r
-                   for (var n:uint = 0; n < 256; n++) {\r
-                       c = n;\r
-                       for (var k:uint = 0; k < 8; k++) {\r
-                           if (c & 1) {\r
-                               c = uint(uint(0xedb88320) ^ \r
-                                   uint(c >>> 1));\r
-                           } else {\r
-                               c = uint(c >>> 1);\r
-                           }\r
-                       }\r
-                       crcTable[n] = c;\r
-                   }\r
-               }\r
-               var len:uint = 0;\r
-               if (data != null) {\r
-                   len = data.length;\r
-               }\r
-               png.writeUnsignedInt(len);\r
-               var p:uint = png.position;\r
-               png.writeUnsignedInt(type);\r
-               if ( data != null ) {\r
-                   png.writeBytes(data);\r
-               }\r
-               var e:uint = png.position;\r
-               png.position = p;\r
-               c = 0xffffffff;\r
-               for (var i:int = 0; i < (e-p); i++) {\r
-                   c = uint(crcTable[\r
-                       (c ^ png.readUnsignedByte()) & \r
-                       uint(0xff)] ^ uint(c >>> 8));\r
-               }\r
-               c = uint(c^uint(0xffffffff));\r
-               png.position = e;\r
-               png.writeUnsignedInt(c);\r
-           }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/net/DynamicURLLoader.as b/redakcja/static/filebrowser/uploadify/com/adobe/net/DynamicURLLoader.as
deleted file mode 100644 (file)
index 2a9eea1..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.net\r
-{\r
-       import flash.net.URLLoader;\r
-\r
-       /**\r
-       *       Class that provides a dynamic implimentation of the URLLoader class.\r
-       * \r
-       *       This class provides no API implimentations. However, since the class is\r
-       *       declared as dynamic, it can be used in place of URLLoader, and allow\r
-       *       you to dynamically attach properties to it (which URLLoader does not allow).\r
-       * \r
-       *       @langversion ActionScript 3.0\r
-       *       @playerversion Flash 9.0\r
-       *       @tiptext\r
-       */      \r
-       public dynamic class DynamicURLLoader extends URLLoader \r
-       {\r
-               public function DynamicURLLoader()\r
-               {\r
-                       super();\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/net/IURIResolver.as b/redakcja/static/filebrowser/uploadify/com/adobe/net/IURIResolver.as
deleted file mode 100644 (file)
index 3610cc2..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.net\r
-{\r
-       /**\r
-        * The URI class cannot know about DNS aliases, virtual hosts, or\r
-        * symbolic links that may be involved.  The application can provide\r
-        * an implementation of this interface to resolve the URI before the\r
-        * URI class makes any comparisons.  For example, a web host has\r
-        * two aliases:\r
-        * \r
-        * <p><code>\r
-        *    http://www.site.com/\r
-        *    http://www.site.net/\r
-        * </code></p>\r
-        * \r
-        * <p>The application can provide an implementation that automatically\r
-        * resolves site.net to site.com before URI compares two URI objects.\r
-        * Only the application can know and understand the context in which\r
-        * the URI's are being used.</p>\r
-        * \r
-        * <p>Use the URI.resolver accessor to assign a custom resolver to\r
-        * the URI class.  Any resolver specified is global to all instances\r
-        * of URI.</p>\r
-        * \r
-        * <p>URI will call this before performing URI comparisons in the\r
-        * URI.getRelation() and URI.getCommonParent() functions.\r
-        * \r
-        * @see URI.getRelation\r
-        * @see URI.getCommonParent\r
-        * \r
-        * @langversion ActionScript 3.0\r
-        * @playerversion Flash 9.0\r
-        */\r
-       public interface IURIResolver\r
-       {\r
-               /**\r
-                * Implement this method to provide custom URI resolution for\r
-                * your application.\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */\r
-               function resolve(uri:URI) : URI;\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/net/MimeTypeMap.as b/redakcja/static/filebrowser/uploadify/com/adobe/net/MimeTypeMap.as
deleted file mode 100644 (file)
index 32e40a4..0000000
+++ /dev/null
@@ -1,196 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-package com.adobe.net
-{
-       public class MimeTypeMap
-       {
-               private var types:Array = 
-                       [["application/andrew-inset","ez"],
-                       ["application/atom+xml","atom"],
-                       ["application/mac-binhex40","hqx"],
-                       ["application/mac-compactpro","cpt"],
-                       ["application/mathml+xml","mathml"],
-                       ["application/msword","doc"],
-                       ["application/octet-stream","bin","dms","lha","lzh","exe","class","so","dll","dmg"],
-                       ["application/oda","oda"],
-                       ["application/ogg","ogg"],
-                       ["application/pdf","pdf"],
-                       ["application/postscript","ai","eps","ps"],
-                       ["application/rdf+xml","rdf"],
-                       ["application/smil","smi","smil"],
-                       ["application/srgs","gram"],
-                       ["application/srgs+xml","grxml"],
-                       ["application/vnd.adobe.apollo-application-installer-package+zip","air"],
-                       ["application/vnd.mif","mif"],
-                       ["application/vnd.mozilla.xul+xml","xul"],
-                       ["application/vnd.ms-excel","xls"],
-                       ["application/vnd.ms-powerpoint","ppt"],
-                       ["application/vnd.rn-realmedia","rm"],
-                       ["application/vnd.wap.wbxml","wbxml"],
-                       ["application/vnd.wap.wmlc","wmlc"],
-                       ["application/vnd.wap.wmlscriptc","wmlsc"],
-                       ["application/voicexml+xml","vxml"],
-                       ["application/x-bcpio","bcpio"],
-                       ["application/x-cdlink","vcd"],
-                       ["application/x-chess-pgn","pgn"],
-                       ["application/x-cpio","cpio"],
-                       ["application/x-csh","csh"],
-                       ["application/x-director","dcr","dir","dxr"],
-                       ["application/x-dvi","dvi"],
-                       ["application/x-futuresplash","spl"],
-                       ["application/x-gtar","gtar"],
-                       ["application/x-hdf","hdf"],
-                       ["application/x-javascript","js"],
-                       ["application/x-koan","skp","skd","skt","skm"],
-                       ["application/x-latex","latex"],
-                       ["application/x-netcdf","nc","cdf"],
-                       ["application/x-sh","sh"],
-                       ["application/x-shar","shar"],
-                       ["application/x-shockwave-flash","swf"],
-                       ["application/x-stuffit","sit"],
-                       ["application/x-sv4cpio","sv4cpio"],
-                       ["application/x-sv4crc","sv4crc"],
-                       ["application/x-tar","tar"],
-                       ["application/x-tcl","tcl"],
-                       ["application/x-tex","tex"],
-                       ["application/x-texinfo","texinfo","texi"],
-                       ["application/x-troff","t","tr","roff"],
-                       ["application/x-troff-man","man"],
-                       ["application/x-troff-me","me"],
-                       ["application/x-troff-ms","ms"],
-                       ["application/x-ustar","ustar"],
-                       ["application/x-wais-source","src"],
-                       ["application/xhtml+xml","xhtml","xht"],
-                       ["application/xml","xml","xsl"],
-                       ["application/xml-dtd","dtd"],
-                       ["application/xslt+xml","xslt"],
-                       ["application/zip","zip"],
-                       ["audio/basic","au","snd"],
-                       ["audio/midi","mid","midi","kar"],
-                       ["audio/mpeg","mp3","mpga","mp2"],
-                       ["audio/x-aiff","aif","aiff","aifc"],
-                       ["audio/x-mpegurl","m3u"],
-                       ["audio/x-pn-realaudio","ram","ra"],
-                       ["audio/x-wav","wav"],
-                       ["chemical/x-pdb","pdb"],
-                       ["chemical/x-xyz","xyz"],
-                       ["image/bmp","bmp"],
-                       ["image/cgm","cgm"],
-                       ["image/gif","gif"],
-                       ["image/ief","ief"],
-                       ["image/jpeg","jpg","jpeg","jpe"],
-                       ["image/png","png"],
-                       ["image/svg+xml","svg"],
-                       ["image/tiff","tiff","tif"],
-                       ["image/vnd.djvu","djvu","djv"],
-                       ["image/vnd.wap.wbmp","wbmp"],
-                       ["image/x-cmu-raster","ras"],
-                       ["image/x-icon","ico"],
-                       ["image/x-portable-anymap","pnm"],
-                       ["image/x-portable-bitmap","pbm"],
-                       ["image/x-portable-graymap","pgm"],
-                       ["image/x-portable-pixmap","ppm"],
-                       ["image/x-rgb","rgb"],
-                       ["image/x-xbitmap","xbm"],
-                       ["image/x-xpixmap","xpm"],
-                       ["image/x-xwindowdump","xwd"],
-                       ["model/iges","igs","iges"],
-                       ["model/mesh","msh","mesh","silo"],
-                       ["model/vrml","wrl","vrml"],
-                       ["text/calendar","ics","ifb"],
-                       ["text/css","css"],
-                       ["text/html","html","htm"],
-                       ["text/plain","txt","asc"],
-                       ["text/richtext","rtx"],
-                       ["text/rtf","rtf"],
-                       ["text/sgml","sgml","sgm"],
-                       ["text/tab-separated-values","tsv"],
-                       ["text/vnd.wap.wml","wml"],
-                       ["text/vnd.wap.wmlscript","wmls"],
-                       ["text/x-setext","etx"],
-                       ["video/mpeg","mpg","mpeg","mpe"],
-                       ["video/quicktime","mov","qt"],
-                       ["video/vnd.mpegurl","m4u","mxu"],
-                       ["video/x-flv","flv"],
-                       ["video/x-msvideo","avi"],
-                       ["video/x-sgi-movie","movie"],
-                       ["x-conference/x-cooltalk","ice"]];
-               
-               /**
-                * Returns the mimetype for the given extension.
-                */
-               public function getMimeType(extension:String):String
-               {
-                       extension = extension.toLocaleLowerCase();
-                       for each (var a:Array in types)
-                       {
-                               for each (var b:String in a)
-                               {
-                                       if (b == extension)
-                                       {
-                                               return a[0];
-                                       }
-                               }
-                       }
-                       return null;
-               }
-
-               /**
-                * Returns the prefered extension for the given mimetype.
-                */
-               public function getExtension(mimetype:String):String
-               {
-                       mimetype = mimetype.toLocaleLowerCase();
-                       for each (var a:Array in types)
-                       {
-                               if (a[0] == mimetype)
-                               {
-                                       return a[1];
-                               }
-                       }
-                       return null;
-               }
-
-               /**
-                * Adds a mimetype to the map. The order of the extensions matters. The most preferred should come first.
-                */
-               public function addMimeType(mimetype:String, extensions:Array):void
-               {
-                       var newType:Array = [mimetype];
-                       for each (var a:String in extensions)
-                       {
-                               newType.push(a);
-                       }
-                       types.push(newType);
-               }
-       }
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/net/URI.as b/redakcja/static/filebrowser/uploadify/com/adobe/net/URI.as
deleted file mode 100644 (file)
index d43ce9f..0000000
+++ /dev/null
@@ -1,2466 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.net\r
-{\r
-       import flash.utils.ByteArray;\r
-       \r
-       /**\r
-        * This class implements functions and utilities for working with URI's\r
-        * (Universal Resource Identifiers).  For technical description of the\r
-        * URI syntax, please see RFC 3986 at http://www.ietf.org/rfc/rfc3986.txt\r
-        * or do a web search for "rfc 3986".\r
-        * \r
-        * <p>The most important aspect of URI's to understand is that URI's\r
-        * and URL's are not strings.  URI's are complex data structures that\r
-        * encapsulate many pieces of information.  The string version of a\r
-        * URI is the serialized representation of that data structure.  This\r
-        * string serialization is used to provide a human readable\r
-        * representation and a means to transport the data over the network\r
-        * where it can then be parsed back into its' component parts.</p>\r
-        * \r
-        * <p>URI's fall into one of three categories:\r
-        * <ul>\r
-        *  <li>&lt;scheme&gt;:&lt;scheme-specific-part&gt;#&lt;fragment&gt;            (non-hierarchical)</li>\r
-        *  <li>&lt;scheme&gt;:<authority&gt;&lt;path&gt;?&lt;query&gt;#&lt;fragment&gt;        (hierarchical)</li>\r
-        *  <li>&lt;path&gt;?&lt;query&gt;#&lt;fragment&gt;                                             (relative hierarchical)</li>\r
-        * </ul></p>\r
-        * \r
-        * <p>The query and fragment parts are optional.</p>\r
-        * \r
-        * <p>This class supports both non-hierarchical and hierarchical URI's</p>\r
-        * \r
-        * <p>This class is intended to be used "as-is" for the vast majority\r
-        * of common URI's.  However, if your application requires a custom\r
-        * URI syntax (e.g. custom query syntax or special handling of\r
-        * non-hierarchical URI's), this class can be fully subclassed.  If you\r
-        * intended to subclass URI, please see the source code for complete\r
-        * documation on protected members and protected fuctions.</p>\r
-        * \r
-        * @langversion ActionScript 3.0\r
-        * @playerversion Flash 9.0 \r
-        */\r
-       public class URI\r
-       {       \r
-               // Here we define which characters must be escaped for each\r
-               // URI part.  The characters that must be escaped for each\r
-               // part differ depending on what would cause ambiguous parsing.\r
-               // RFC 3986 sec. 2.4 states that characters should only be\r
-               // encoded when they would conflict with subcomponent delimiters.\r
-               // We don't want to over-do the escaping.  We only want to escape\r
-               // the minimum needed to prevent parsing problems.\r
-               \r
-               // space and % must be escaped in all cases.  '%' is the delimiter\r
-               // for escaped characters.\r
-               public static const URImustEscape:String =      " %";\r
-               \r
-               // Baseline of what characters must be escaped\r
-               public static const URIbaselineEscape:String = URImustEscape + ":?#/@";\r
-               \r
-               // Characters that must be escaped in the part part.\r
-               public static const URIpathEscape:String = URImustEscape + "?#";\r
-               \r
-               // Characters that must be escaped in the query part, if setting\r
-               // the query as a whole string.  If the query is set by\r
-               // name/value, URIqueryPartEscape is used instead.\r
-               public static const URIqueryEscape:String = URImustEscape + "#";\r
-               \r
-               // This is what each name/value pair must escape "&=" as well\r
-               // so they don't conflict with the "param=value&param2=value2"\r
-               // syntax.\r
-               public static const URIqueryPartEscape:String = URImustEscape + "#&=";\r
-               \r
-               // Non-hierarchical URI's can have query and fragment parts, but\r
-               // we also want to prevent '/' otherwise it might end up looking\r
-               // like a hierarchical URI to the parser.\r
-               public static const URInonHierEscape:String =   URImustEscape + "?#/";\r
-               \r
-               // Baseline uninitialized setting for the URI scheme.\r
-               public static const UNKNOWN_SCHEME:String = "unknown";\r
-               \r
-               // The following bitmaps are used for performance enhanced\r
-               // character escaping.\r
-               \r
-               // Baseline characters that need to be escaped.  Many parts use\r
-               // this.\r
-               protected static const URIbaselineExcludedBitmap:URIEncodingBitmap =\r
-                       new URIEncodingBitmap(URIbaselineEscape);\r
-               \r
-               // Scheme escaping bitmap\r
-               protected static const URIschemeExcludedBitmap:URIEncodingBitmap = \r
-                       URIbaselineExcludedBitmap;\r
-               \r
-               // User/pass escaping bitmap\r
-               protected static const URIuserpassExcludedBitmap:URIEncodingBitmap =\r
-                       URIbaselineExcludedBitmap;\r
-               \r
-               // Authority escaping bitmap\r
-               protected static const URIauthorityExcludedBitmap:URIEncodingBitmap =\r
-                       URIbaselineExcludedBitmap;\r
-                       \r
-               // Port escaping bitmap\r
-               protected static const URIportExludedBitmap:URIEncodingBitmap = \r
-                       URIbaselineExcludedBitmap;\r
-               \r
-               // Path escaping bitmap\r
-               protected static const URIpathExcludedBitmap:URIEncodingBitmap =\r
-                       new URIEncodingBitmap(URIpathEscape);\r
-                       \r
-               // Query (whole) escaping bitmap\r
-               protected static const URIqueryExcludedBitmap:URIEncodingBitmap =\r
-                       new URIEncodingBitmap(URIqueryEscape);\r
-                       \r
-               // Query (individual parts) escaping bitmap\r
-               protected static const URIqueryPartExcludedBitmap:URIEncodingBitmap =\r
-                       new URIEncodingBitmap(URIqueryPartEscape);\r
-                       \r
-               // Fragments are the last part in the URI.  They only need to\r
-               // escape space, '#', and '%'.  Turns out that is what query\r
-               // uses too.\r
-               protected static const URIfragmentExcludedBitmap:URIEncodingBitmap =\r
-                       URIqueryExcludedBitmap;\r
-                       \r
-               // Characters that need to be escaped in the non-hierarchical part\r
-               protected static const URInonHierexcludedBitmap:URIEncodingBitmap =\r
-                       new URIEncodingBitmap(URInonHierEscape);\r
-                       \r
-               // Values used by getRelation()\r
-               public static const NOT_RELATED:int = 0;\r
-               public static const CHILD:int = 1;\r
-               public static const EQUAL:int = 2;\r
-               public static const PARENT:int = 3;\r
-\r
-               //-------------------------------------------------------------------\r
-               // protected class members\r
-               //-------------------------------------------------------------------\r
-               protected var _valid:Boolean = false;\r
-               protected var _relative:Boolean = false;\r
-               protected var _scheme:String = "";\r
-               protected var _authority:String = "";\r
-               protected var _username:String = "";\r
-               protected var _password:String = "";\r
-               protected var _port:String = "";\r
-               protected var _path:String = "";\r
-               protected var _query:String = "";\r
-               protected var _fragment:String = "";\r
-               protected var _nonHierarchical:String = "";\r
-               protected static var _resolver:IURIResolver = null;\r
-\r
-\r
-               /**\r
-                *  URI Constructor.  If no string is given, this will initialize\r
-                *  this URI object to a blank URI.\r
-                */\r
-               public function URI(uri:String = null) : void   \r
-               {\r
-                       if (uri == null)\r
-                               initialize();\r
-                       else\r
-                               constructURI(uri);\r
-               }\r
-\r
-               \r
-               /**\r
-                * @private\r
-                * Method that loads the URI from the given string.\r
-                */\r
-               protected function constructURI(uri:String) : Boolean\r
-               {\r
-                       if (!parseURI(uri))\r
-                               _valid = false;\r
-                               \r
-                       return isValid();\r
-               }\r
-               \r
-               \r
-               /**\r
-                * @private Private initializiation.\r
-                */\r
-               protected function initialize() : void\r
-               {\r
-                       _valid = false;\r
-                       _relative = false;\r
-               \r
-                       _scheme = UNKNOWN_SCHEME;\r
-                       _authority = "";\r
-                       _username = "";\r
-                       _password = "";\r
-                       _port = "";\r
-                       _path = "";\r
-                       _query = "";\r
-                       _fragment = "";\r
-               \r
-                       _nonHierarchical = "";\r
-               }       \r
-               \r
-               /**\r
-                * @private Accessor to explicitly set/get the hierarchical\r
-                * state of the URI.\r
-                */\r
-               protected function set hierState(state:Boolean) : void\r
-               {\r
-                       if (state)\r
-                       {\r
-                               // Clear the non-hierarchical data\r
-                               _nonHierarchical = "";\r
-               \r
-                               // Also set the state vars while we are at it\r
-                               if (_scheme == "" || _scheme == UNKNOWN_SCHEME)\r
-                                       _relative = true;\r
-                               else\r
-                                       _relative = false;\r
-               \r
-                               if (_authority.length == 0 && _path.length == 0)\r
-                                       _valid = false;\r
-                               else\r
-                                       _valid = true;\r
-                       }\r
-                       else\r
-                       {\r
-                               // Clear the hierarchical data\r
-                               _authority = "";\r
-                               _username = "";\r
-                               _password = "";\r
-                               _port = "";\r
-                               _path = "";\r
-               \r
-                               _relative = false;\r
-               \r
-                               if (_scheme == "" || _scheme == UNKNOWN_SCHEME)\r
-                                       _valid = false;\r
-                               else\r
-                                       _valid = true;\r
-                       }\r
-               }\r
-               protected function get hierState() : Boolean\r
-               {\r
-                       return (_nonHierarchical.length == 0);\r
-               }\r
-               \r
-               \r
-               /**\r
-                * @private Functions that performs some basic consistency validation.\r
-                */\r
-               protected function validateURI() : Boolean\r
-               {\r
-                       // Check the scheme\r
-                       if (isAbsolute())\r
-                       {\r
-                               if (_scheme.length <= 1 || _scheme == UNKNOWN_SCHEME)\r
-                               {\r
-                                       // we probably parsed a C:\ type path or no scheme\r
-                                       return false;\r
-                               }\r
-                               else if (verifyAlpha(_scheme) == false)\r
-                                       return false;  // Scheme contains bad characters\r
-                       }\r
-                       \r
-                       if (hierState)\r
-                       {\r
-                               if (_path.search('\\') != -1)\r
-                                       return false;  // local path\r
-                               else if (isRelative() == false && _scheme == UNKNOWN_SCHEME)\r
-                                       return false;  // It's an absolute URI, but it has a bad scheme\r
-                       }\r
-                       else\r
-                       {\r
-                               if (_nonHierarchical.search('\\') != -1)\r
-                                       return false;  // some kind of local path\r
-                       }\r
-               \r
-                       // Looks like it's ok.\r
-                       return true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * @private\r
-                *\r
-                * Given a URI in string format, parse that sucker into its basic\r
-                * components and assign them to this object.  A URI is of the form:\r
-                *    <scheme>:<authority><path>?<query>#<fragment>\r
-                *\r
-                * For simplicity, we parse the URI in the following order:\r
-                *              \r
-                *              1. Fragment (anchors)\r
-                *              2. Query        (CGI stuff)\r
-                *              3. Scheme       ("http")\r
-                *              4. Authority (host name)\r
-                *              5. Username/Password (if any)\r
-                *              6. Port         (server port if any)\r
-                *              7. Path         (/homepages/mypage.html)\r
-                *\r
-                * The reason for this order is to minimize any parsing ambiguities.\r
-                * Fragments and queries can contain almost anything (they are parts\r
-                * that can contain custom data with their own syntax).  Parsing\r
-                * them out first removes a large chance of parsing errors.  This\r
-                * method expects well formed URI's, but performing the parse in\r
-                * this order makes us a little more tolerant of user error.\r
-                * \r
-                * REGEXP\r
-                * Why doesn't this use regular expressions to parse the URI?  We\r
-                * have found that in a real world scenario, URI's are not always\r
-                * well formed.  Sometimes characters that should have been escaped\r
-                * are not, and those situations would break a regexp pattern.  This\r
-                * function attempts to be smart about what it is parsing based on\r
-                * location of characters relative to eachother.  This function has\r
-                * been proven through real-world use to parse the vast majority\r
-                * of URI's correctly.\r
-                *\r
-                * NOTE\r
-                * It is assumed that the string in URI form is escaped.  This function\r
-                * does not escape anything.  If you constructed the URI string by\r
-                * hand, and used this to parse in the URI and still need it escaped,\r
-                * call forceEscape() on your URI object.\r
-                *\r
-                * Parsing Assumptions\r
-                * This routine assumes that the URI being passed is well formed.\r
-                * Passing things like local paths, malformed URI's, and the such\r
-                * will result in parsing errors.  This function can handle\r
-                *       - absolute hierarchical (e.g. "http://something.com/index.html),\r
-                *   - relative hierarchical (e.g. "../images/flower.gif"), or\r
-                *   - non-hierarchical URIs (e.g. "mailto:jsmith@fungoo.com").\r
-                * \r
-                * Anything else will probably result in a parsing error, or a bogus\r
-                * URI object.\r
-                * \r
-                * Note that non-hierarchical URIs *MUST* have a scheme, otherwise\r
-                * they will be mistaken for relative URI's.\r
-                * \r
-                * If you are not sure what is being passed to you (like manually\r
-                * entered text from UI), you can construct a blank URI object and\r
-                * call unknownToURI() passing in the unknown string.\r
-                * \r
-                * @return      true if successful, false if there was some kind of\r
-                * parsing error\r
-                */\r
-               protected function parseURI(uri:String) : Boolean\r
-               {\r
-                       var baseURI:String = uri;\r
-                       var index:int, index2:int;\r
-               \r
-                       // Make sure this object is clean before we start.  If it was used\r
-                       // before and we are now parsing a new URI, we don't want any stale\r
-                       // info lying around.\r
-                       initialize();\r
-               \r
-                       // Remove any fragments (anchors) from the URI\r
-                       index = baseURI.indexOf("#");\r
-                       if (index != -1)\r
-                       {\r
-                               // Store the fragment piece if any\r
-                               if (baseURI.length > (index + 1)) // +1 is to skip the '#'\r
-                                       _fragment = baseURI.substr(index + 1, baseURI.length - (index + 1)); \r
-               \r
-                               // Trim off the fragment\r
-                               baseURI = baseURI.substr(0, index);\r
-                       }\r
-               \r
-                       // We need to strip off any CGI parameters (eg '?param=bob')\r
-                       index = baseURI.indexOf("?");\r
-                       if (index != -1)\r
-                       {\r
-                               if (baseURI.length > (index + 1))\r
-                                       _query = baseURI.substr(index + 1, baseURI.length - (index + 1)); // +1 is to skip the '?'\r
-               \r
-                               // Trim off the query\r
-                               baseURI = baseURI.substr(0, index);\r
-                       }\r
-               \r
-                       // Now try to find the scheme part\r
-                       index = baseURI.search(':');\r
-                       index2 = baseURI.search('/');\r
-               \r
-                       var containsColon:Boolean = (index != -1);\r
-                       var containsSlash:Boolean = (index2 != -1);\r
-               \r
-                       // This value is indeterminate if "containsColon" is false.\r
-                       // (if there is no colon, does the slash come before or\r
-                       // after said non-existing colon?)\r
-                       var colonBeforeSlash:Boolean = (!containsSlash || index < index2);\r
-               \r
-                       // If it has a colon and it's before the first slash, we will treat\r
-                       // it as a scheme.  If a slash is before a colon, there must be a\r
-                       // stray colon in a path or something.  In which case, the colon is\r
-                       // not the separator for the scheme.  Technically, we could consider\r
-                       // this an error, but since this is not an ambiguous state (we know\r
-                       // 100% that this has no scheme), we will keep going.\r
-                       if (containsColon && colonBeforeSlash)\r
-                       {\r
-                               // We found a scheme\r
-                               _scheme = baseURI.substr(0, index);\r
-                               \r
-                               // Normalize the scheme\r
-                               _scheme = _scheme.toLowerCase();\r
-               \r
-                               baseURI = baseURI.substr(index + 1);\r
-               \r
-                               if (baseURI.substr(0, 2) == "//")\r
-                               {\r
-                                       // This is a hierarchical URI\r
-                                       _nonHierarchical = "";\r
-               \r
-                                       // Trim off the "//"\r
-                                       baseURI = baseURI.substr(2, baseURI.length - 2);\r
-                               }\r
-                               else\r
-                               {\r
-                                       // This is a non-hierarchical URI like "mailto:bob@mail.com"\r
-                                       _nonHierarchical = baseURI;\r
-               \r
-                                       if ((_valid = validateURI()) == false)\r
-                                               initialize();  // Bad URI.  Clear it.\r
-               \r
-                                       // No more parsing to do for this case\r
-                                       return isValid();\r
-                               }\r
-                       }\r
-                       else\r
-                       {\r
-                               // No scheme.  We will consider this a relative URI\r
-                               _scheme = "";\r
-                               _relative = true;\r
-                               _nonHierarchical = "";\r
-                       }\r
-               \r
-                       // Ok, what we have left is everything after the <scheme>://\r
-               \r
-                       // Now that we have stripped off any query and fragment parts, we\r
-                       // need to split the authority from the path\r
-               \r
-                       if (isRelative())\r
-                       {\r
-                               // Don't bother looking for the authority.  It's a relative URI\r
-                               _authority = "";\r
-                               _port = "";\r
-                               _path = baseURI;\r
-                       }\r
-                       else\r
-                       {\r
-                               // Check for malformed UNC style file://///server/type/path/\r
-                               // By the time we get here, we have already trimmed the "file://"\r
-                               // so baseURI will be ///server/type/path.  If baseURI only\r
-                               // has one slash, we leave it alone because that is valid (that\r
-                               // is the case of "file:///path/to/file.txt" where there is no\r
-                               // server - implicit "localhost").\r
-                               if (baseURI.substr(0, 2) == "//")\r
-                               {\r
-                                       // Trim all leading slashes\r
-                                       while(baseURI.charAt(0) == "/")\r
-                                               baseURI = baseURI.substr(1, baseURI.length - 1);\r
-                               }\r
-               \r
-                               index = baseURI.search('/');\r
-                               if (index == -1)\r
-                               {\r
-                                       // No path.  We must have passed something like "http://something.com"\r
-                                       _authority = baseURI;\r
-                                       _path = "";\r
-                               }\r
-                               else\r
-                               {\r
-                                       _authority = baseURI.substr(0, index);\r
-                                       _path = baseURI.substr(index, baseURI.length - index);\r
-                               }\r
-               \r
-                               // Check to see if the URI has any username or password information.\r
-                               // For example:  ftp://username:password@server.com\r
-                               index = _authority.search('@');\r
-                               if (index != -1)\r
-                               {\r
-                                       // We have a username and possibly a password\r
-                                       _username = _authority.substr(0, index);\r
-               \r
-                                       // Remove the username/password from the authority\r
-                                       _authority = _authority.substr(index + 1);  // Skip the '@'\r
-               \r
-                                       // Now check to see if the username also has a password\r
-                                       index = _username.search(':');\r
-                                       if (index != -1)\r
-                                       {\r
-                                               _password = _username.substring(index + 1, _username.length);\r
-                                               _username = _username.substr(0, index);\r
-                                       }\r
-                                       else\r
-                                               _password = "";\r
-                               }\r
-                               else\r
-                               {\r
-                                       _username = "";\r
-                                       _password = "";\r
-                               }\r
-               \r
-                               // Lastly, check to see if the authorty has a port number.\r
-                               // This is parsed after the username/password to avoid conflicting\r
-                               // with the ':' in the 'username:password' if one exists.\r
-                               index = _authority.search(':');\r
-                               if (index != -1)\r
-                               {\r
-                                       _port = _authority.substring(index + 1, _authority.length);  // skip the ':'\r
-                                       _authority = _authority.substr(0, index);\r
-                               }\r
-                               else\r
-                               {\r
-                                       _port = "";\r
-                               }\r
-                               \r
-                               // Lastly, normalize the authority.  Domain names\r
-                               // are case insensitive.\r
-                               _authority = _authority.toLowerCase();\r
-                       }\r
-               \r
-                       if ((_valid = validateURI()) == false)\r
-                               initialize();  // Bad URI.  Clear it\r
-               \r
-                       return isValid();\r
-               }\r
-               \r
-               \r
-               /********************************************************************\r
-                * Copy function.\r
-                */\r
-               public function copyURI(uri:URI) : void\r
-               {\r
-                       this._scheme = uri._scheme;\r
-                       this._authority = uri._authority;\r
-                       this._username = uri._username;\r
-                       this._password = uri._password;\r
-                       this._port = uri._port;\r
-                       this._path = uri._path;\r
-                       this._query = uri._query;\r
-                       this._fragment = uri._fragment;\r
-                       this._nonHierarchical = uri._nonHierarchical;\r
-               \r
-                       this._valid = uri._valid;\r
-                       this._relative = uri._relative;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * @private\r
-                * Checks if the given string only contains a-z or A-Z.\r
-                */\r
-               protected function verifyAlpha(str:String) : Boolean\r
-               {\r
-                       var pattern:RegExp = /[^a-z]/;\r
-                       var index:int;\r
-                       \r
-                       str = str.toLowerCase();\r
-                       index = str.search(pattern);\r
-                       \r
-                       if (index == -1)\r
-                               return true;\r
-                       else\r
-                               return false;\r
-               }\r
-               \r
-               /**\r
-                * Is this a valid URI?\r
-                * \r
-                * @return true if this object represents a valid URI, false\r
-                * otherwise.\r
-                */\r
-               public function isValid() : Boolean\r
-               { \r
-                       return this._valid;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Is this URI an absolute URI?  An absolute URI is a complete, fully\r
-                * qualified reference to a resource.  e.g. http://site.com/index.htm\r
-                * Non-hierarchical URI's are always absolute.\r
-                */\r
-               public function isAbsolute() : Boolean\r
-               { \r
-                       return !this._relative;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Is this URI a relative URI?  Relative URI's do not have a scheme\r
-                * and only contain a relative path with optional anchor and query\r
-                * parts.  e.g. "../reports/index.htm".  Non-hierarchical URI's\r
-                * will never be relative.\r
-                */\r
-               public function isRelative() : Boolean\r
-               { \r
-                       return this._relative;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Does this URI point to a resource that is a directory/folder?\r
-                * The URI specification dictates that any path that ends in a slash\r
-                * is a directory.  This is needed to be able to perform correct path\r
-                * logic when combining relative URI's with absolute URI's to\r
-                * obtain the correct absolute URI to a resource.\r
-                * \r
-                * @see URI.chdir\r
-                * \r
-                * @return true if this URI represents a directory resource, false\r
-                * if this URI represents a file resource.\r
-                */\r
-               public function isDirectory() : Boolean\r
-               {\r
-                       if (_path.length == 0)\r
-                               return false;\r
-               \r
-                       return (_path.charAt(path.length - 1) == '/');\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Is this URI a hierarchical URI? URI's can be  \r
-                */\r
-               public function isHierarchical() : Boolean\r
-               { \r
-                       return hierState;\r
-               }\r
-                               \r
-               \r
-               /**\r
-                * The scheme of the URI.\r
-                */\r
-               public function get scheme() : String\r
-               { \r
-                       return URI.unescapeChars(_scheme);\r
-               }\r
-               public function set scheme(schemeStr:String) : void\r
-               {\r
-                       // Normalize the scheme\r
-                       var normalized:String = schemeStr.toLowerCase();\r
-                       _scheme = URI.fastEscapeChars(normalized, URI.URIschemeExcludedBitmap);\r
-               }\r
-               \r
-               \r
-               /**\r
-                * The authority (host) of the URI.  Only valid for\r
-                * hierarchical URI's.  If the URI is relative, this will\r
-                * be an empty string. When setting this value, the string\r
-                * given is assumed to be unescaped.  When retrieving this\r
-                * value, the resulting string is unescaped.\r
-                */\r
-               public function get authority() : String\r
-               { \r
-                       return URI.unescapeChars(_authority);\r
-               }\r
-               public function set authority(authorityStr:String) : void\r
-               {\r
-                       // Normalize the authority\r
-                       authorityStr = authorityStr.toLowerCase();\r
-                       \r
-                       _authority = URI.fastEscapeChars(authorityStr,\r
-                               URI.URIauthorityExcludedBitmap);\r
-                       \r
-                       // Only hierarchical URI's can have an authority, make\r
-                       // sure this URI is of the proper format.\r
-                       this.hierState = true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * The username of the URI.  Only valid for hierarchical\r
-                * URI's.  If the URI is relative, this will be an empty\r
-                * string.\r
-                * \r
-                * <p>The URI specification allows for authentication\r
-                * credentials to be embedded in the URI as such:</p>\r
-                * \r
-                * <p>http://user:passwd&#64;host/path/to/file.htm</p>\r
-                * \r
-                * <p>When setting this value, the string\r
-                * given is assumed to be unescaped.  When retrieving this\r
-                * value, the resulting string is unescaped.</p>\r
-                */\r
-               public function get username() : String\r
-               {\r
-                       return URI.unescapeChars(_username);\r
-               }\r
-               public function set username(usernameStr:String) : void\r
-               {\r
-                       _username = URI.fastEscapeChars(usernameStr, URI.URIuserpassExcludedBitmap);\r
-                       \r
-                       // Only hierarchical URI's can have a username.\r
-                       this.hierState = true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * The password of the URI.  Similar to username.\r
-                * @see URI.username\r
-                */\r
-               public function get password() : String\r
-               {\r
-                       return URI.unescapeChars(_password);\r
-               }\r
-               public function set password(passwordStr:String) : void\r
-               {\r
-                       _password = URI.fastEscapeChars(passwordStr,\r
-                               URI.URIuserpassExcludedBitmap);\r
-                       \r
-                       // Only hierarchical URI's can have a password.\r
-                       this.hierState = true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * The host port number.  Only valid for hierarchical URI's.  If\r
-                * the URI is relative, this will be an empty string. URI's can\r
-                * contain the port number of the remote host:\r
-                * \r
-                * <p>http://site.com:8080/index.htm</p>\r
-                */\r
-               public function get port() : String\r
-               { \r
-                       return URI.unescapeChars(_port);\r
-               }\r
-               public function set port(portStr:String) : void\r
-               {\r
-                       _port = URI.escapeChars(portStr);\r
-                       \r
-                       // Only hierarchical URI's can have a port.\r
-                       this.hierState = true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * The path portion of the URI.  Only valid for hierarchical\r
-                * URI's.  When setting this value, the string\r
-                * given is assumed to be unescaped.  When retrieving this\r
-                * value, the resulting string is unescaped.\r
-                * \r
-                * <p>The path portion can be in one of two formats. 1) an absolute\r
-                * path, or 2) a relative path.  An absolute path starts with a\r
-                * slash ('/'), a relative path does not.</p>\r
-                * \r
-                * <p>An absolute path may look like:</p>\r
-                * <listing>/full/path/to/my/file.htm</listing>\r
-                * \r
-                * <p>A relative path may look like:</p>\r
-                * <listing>\r
-                * path/to/my/file.htm\r
-                * ../images/logo.gif\r
-                * ../../reports/index.htm\r
-                * </listing>\r
-                * \r
-                * <p>Paths can be absolute or relative.  Note that this not the same as\r
-                * an absolute or relative URI.  An absolute URI can only have absolute\r
-                * paths.  For example:</p>\r
-                * \r
-                * <listing>http:/site.com/path/to/file.htm</listing>\r
-                * \r
-                * <p>This absolute URI has an absolute path of "/path/to/file.htm".</p>\r
-                * \r
-                * <p>Relative URI's can have either absolute paths or relative paths.\r
-                * All of the following relative URI's are valid:</p>\r
-                * \r
-                * <listing>\r
-                * /absolute/path/to/file.htm\r
-                * path/to/file.htm\r
-                * ../path/to/file.htm\r
-                * </listing>\r
-                */\r
-               public function get path() : String\r
-               { \r
-                       return URI.unescapeChars(_path);\r
-               }\r
-               public function set path(pathStr:String) : void\r
-               {       \r
-                       this._path = URI.fastEscapeChars(pathStr, URI.URIpathExcludedBitmap);\r
-               \r
-                       if (this._scheme == UNKNOWN_SCHEME)\r
-                       {\r
-                               // We set the path.  This is a valid URI now.\r
-                               this._scheme = "";\r
-                       }\r
-               \r
-                       // Only hierarchical URI's can have a path.\r
-                       hierState = true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * The query (CGI) portion of the URI.  This part is valid for\r
-                * both hierarchical and non-hierarchical URI's.\r
-                * \r
-                * <p>This accessor should only be used if a custom query syntax\r
-                * is used.  This URI class supports the common "param=value"\r
-                * style query syntax via the get/setQueryValue() and\r
-                * get/setQueryByMap() functions.  Those functions should be used\r
-                * instead if the common syntax is being used.\r
-                * \r
-                * <p>The URI RFC does not specify any particular\r
-                * syntax for the query part of a URI.  It is intended to allow\r
-                * any format that can be agreed upon by the two communicating hosts.\r
-                * However, most systems have standardized on the typical CGI\r
-                * format:</p>\r
-                * \r
-                * <listing>http://site.com/script.php?param1=value1&param2=value2</listing>\r
-                * \r
-                * <p>This class has specific support for this query syntax</p>\r
-                * \r
-                * <p>This common query format is an array of name/value\r
-                * pairs with its own syntax that is different from the overall URI\r
-                * syntax.  The query has its own escaping logic.  For a query part\r
-                * to be properly escaped and unescaped, it must be split into its\r
-                * component parts.  This accessor escapes/unescapes the entire query\r
-                * part without regard for it's component parts.  This has the\r
-                * possibliity of leaving the query string in an ambiguious state in\r
-                * regards to its syntax.  If the contents of the query part are\r
-                * important, it is recommended that get/setQueryValue() or\r
-                * get/setQueryByMap() are used instead.</p>\r
-                * \r
-                * If a different query syntax is being used, a subclass of URI\r
-                * can be created to handle that specific syntax.\r
-                *  \r
-                * @see URI.getQueryValue, URI.getQueryByMap\r
-                */\r
-               public function get query() : String\r
-               { \r
-                       return URI.unescapeChars(_query);\r
-               }\r
-               public function set query(queryStr:String) : void\r
-               {\r
-                       _query = URI.fastEscapeChars(queryStr, URI.URIqueryExcludedBitmap);\r
-                       \r
-                       // both hierarchical and non-hierarchical URI's can\r
-                       // have a query.  Do not set the hierState.\r
-               }\r
-               \r
-               /**\r
-                * Accessor to the raw query data.  If you are using a custom query\r
-                * syntax, this accessor can be used to get and set the query part\r
-                * directly with no escaping/unescaping.  This should ONLY be used\r
-                * if your application logic is handling custom query logic and\r
-                * handling the proper escaping of the query part.\r
-                */\r
-               public function get queryRaw() : String\r
-               {\r
-                       return _query;\r
-               }\r
-               public function set queryRaw(queryStr:String) : void\r
-               {\r
-                       _query = queryStr;\r
-               }\r
-\r
-\r
-               /**\r
-                * The fragment (anchor) portion of the URI.  This is valid for\r
-                * both hierarchical and non-hierarchical URI's.\r
-                */\r
-               public function get fragment() : String\r
-               { \r
-                       return URI.unescapeChars(_fragment);\r
-               }\r
-               public function set fragment(fragmentStr:String) : void\r
-               {\r
-                       _fragment = URI.fastEscapeChars(fragmentStr, URIfragmentExcludedBitmap);\r
-\r
-                       // both hierarchical and non-hierarchical URI's can\r
-                       // have a fragment.  Do not set the hierState.\r
-               }\r
-               \r
-               \r
-               /**\r
-                * The non-hierarchical part of the URI.  For example, if\r
-                * this URI object represents "mailto:somebody@company.com",\r
-                * this will contain "somebody@company.com".  This is valid only\r
-                * for non-hierarchical URI's.  \r
-                */\r
-               public function get nonHierarchical() : String\r
-               { \r
-                       return URI.unescapeChars(_nonHierarchical);\r
-               }\r
-               public function set nonHierarchical(nonHier:String) : void\r
-               {\r
-                       _nonHierarchical = URI.fastEscapeChars(nonHier, URInonHierexcludedBitmap);\r
-                       \r
-                       // This is a non-hierarchical URI.\r
-                       this.hierState = false;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Quick shorthand accessor to set the parts of this URI.\r
-                * The given parts are assumed to be in unescaped form.  If\r
-                * the URI is non-hierarchical (e.g. mailto:) you will need\r
-                * to call SetScheme() and SetNonHierarchical().\r
-                */\r
-               public function setParts(schemeStr:String, authorityStr:String,\r
-                               portStr:String, pathStr:String, queryStr:String,\r
-                               fragmentStr:String) : void\r
-               {\r
-                       this.scheme = schemeStr;\r
-                       this.authority = authorityStr;\r
-                       this.port = portStr;\r
-                       this.path = pathStr;\r
-                       this.query = queryStr;\r
-                       this.fragment = fragmentStr;\r
-\r
-                       hierState = true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * URI escapes the given character string.  This is similar in function\r
-                * to the global encodeURIComponent() function in ActionScript, but is\r
-                * slightly different in regards to which characters get escaped.  This\r
-                * escapes the characters specified in the URIbaselineExluded set (see class\r
-                * static members).  This is needed for this class to work properly.\r
-                * \r
-                * <p>If a different set of characters need to be used for the escaping,\r
-                * you may use fastEscapeChars() and specify a custom URIEncodingBitmap\r
-                * that contains the characters your application needs escaped.</p>\r
-                * \r
-                * <p>Never pass a full URI to this function.  A URI can only be properly\r
-                * escaped/unescaped when split into its component parts (see RFC 3986\r
-                * section 2.4).  This is due to the fact that the URI component separators\r
-                * could be characters that would normally need to be escaped.</p>\r
-                * \r
-                * @param unescaped character string to be escaped.\r
-                * \r
-                * @return      escaped character string\r
-                * \r
-                * @see encodeURIComponent\r
-                * @see fastEscapeChars\r
-                */\r
-               static public function escapeChars(unescaped:String) : String\r
-               {\r
-                       // This uses the excluded set by default.\r
-                       return fastEscapeChars(unescaped, URI.URIbaselineExcludedBitmap);\r
-               }\r
-               \r
-\r
-               /**\r
-                * Unescape any URI escaped characters in the given character\r
-                * string.\r
-                * \r
-                * <p>Never pass a full URI to this function.  A URI can only be properly\r
-                * escaped/unescaped when split into its component parts (see RFC 3986\r
-                * section 2.4).  This is due to the fact that the URI component separators\r
-                * could be characters that would normally need to be escaped.</p>\r
-                * \r
-                * @param escaped the escaped string to be unescaped.\r
-                * \r
-                * @return      unescaped string.\r
-                */\r
-               static public function unescapeChars(escaped:String /*, onlyHighASCII:Boolean = false*/) : String\r
-               {\r
-                       // We can just use the default AS function.  It seems to\r
-                       // decode everything correctly\r
-                       var unescaped:String;\r
-                       unescaped = decodeURIComponent(escaped);\r
-                       return unescaped;\r
-               }\r
-               \r
-               /**\r
-                * Performance focused function that escapes the given character\r
-                * string using the given URIEncodingBitmap as the rule for what\r
-                * characters need to be escaped.  This function is used by this\r
-                * class and can be used externally to this class to perform\r
-                * escaping on custom character sets.\r
-                * \r
-                * <p>Never pass a full URI to this function.  A URI can only be properly\r
-                * escaped/unescaped when split into its component parts (see RFC 3986\r
-                * section 2.4).  This is due to the fact that the URI component separators\r
-                * could be characters that would normally need to be escaped.</p>\r
-                * \r
-                * @param unescaped             the unescaped string to be escaped\r
-                * @param bitmap                the set of characters that need to be escaped\r
-                * \r
-                * @return      the escaped string.\r
-                */\r
-               static public function fastEscapeChars(unescaped:String, bitmap:URIEncodingBitmap) : String\r
-               {\r
-                       var escaped:String = "";\r
-                       var c:String;\r
-                       var x:int, i:int;\r
-                       \r
-                       for (i = 0; i < unescaped.length; i++)\r
-                       {\r
-                               c = unescaped.charAt(i);\r
-                               \r
-                               x = bitmap.ShouldEscape(c);\r
-                               if (x)\r
-                               {\r
-                                       c = x.toString(16);\r
-                                       if (c.length == 1)\r
-                                               c = "0" + c;\r
-                                               \r
-                                       c = "%" + c;\r
-                                       c = c.toUpperCase();\r
-                               }\r
-                               \r
-                               escaped += c;\r
-                       }\r
-                       \r
-                       return escaped;\r
-               }\r
-\r
-               \r
-               /**\r
-                * Is this URI of a particular scheme type?  For example,\r
-                * passing "http" to a URI object that represents the URI\r
-                * "http://site.com/" would return true.\r
-                * \r
-                * @param scheme        scheme to check for\r
-                * \r
-                * @return true if this URI object is of the given type, false\r
-                * otherwise.\r
-                */\r
-               public function isOfType(scheme:String) : Boolean\r
-               {\r
-                       // Schemes are never case sensitive.  Ignore case.\r
-                       scheme = scheme.toLowerCase();\r
-                       return (this._scheme == scheme);\r
-               }\r
-\r
-\r
-               /**\r
-                * Get the value for the specified named in the query part.  This\r
-                * assumes the query part of the URI is in the common\r
-                * "name1=value1&name2=value2" syntax.  Do not call this function\r
-                * if you are using a custom query syntax.\r
-                * \r
-                * @param name  name of the query value to get.\r
-                * \r
-                * @return the value of the query name, empty string if the\r
-                * query name does not exist.\r
-                */\r
-               public function getQueryValue(name:String) : String\r
-               {\r
-                       var map:Object;\r
-                       var item:String;\r
-                       var value:String;\r
-               \r
-                       map = getQueryByMap();\r
-               \r
-                       for (item in map)\r
-                       {\r
-                               if (item == name)\r
-                               {\r
-                                       value = map[item];\r
-                                       return value;\r
-                               }\r
-                       }\r
-               \r
-                       // Didn't find the specified key\r
-                       return new String("");\r
-               }\r
-               \r
-\r
-               /**\r
-                * Set the given value on the given query name.  If the given name\r
-                * does not exist, it will automatically add this name/value pair\r
-                * to the query.  If null is passed as the value, it will remove\r
-                * the given item from the query.\r
-                * \r
-                * <p>This automatically escapes any characters that may conflict with\r
-                * the query syntax so that they are "safe" within the query.  The\r
-                * strings passed are assumed to be literal unescaped name and value.</p>\r
-                * \r
-                * @param name  name of the query value to set\r
-                * @param value value of the query item to set.  If null, this will\r
-                * force the removal of this item from the query.\r
-                */\r
-               public function setQueryValue(name:String, value:String) : void\r
-               {\r
-                       var map:Object;\r
-\r
-                       map = getQueryByMap();\r
-               \r
-                       // If the key doesn't exist yet, this will create a new pair in\r
-                       // the map.  If it does exist, this will overwrite the previous\r
-                       // value, which is what we want.\r
-                       map[name] = value;\r
-               \r
-                       setQueryByMap(map);\r
-               }\r
-\r
-               \r
-               /**\r
-                * Get the query of the URI in an Object class that allows for easy\r
-                * access to the query data via Object accessors.  For example:\r
-                * \r
-                * <listing>\r
-                * var query:Object = uri.getQueryByMap();\r
-                * var value:String = query["param"];    // get a value\r
-                * query["param2"] = "foo";   // set a new value\r
-                * </listing>\r
-                * \r
-                * @return Object that contains the name/value pairs of the query.\r
-                * \r
-                * @see #setQueryByMap\r
-                * @see #getQueryValue\r
-                * @see #setQueryValue\r
-                */\r
-               public function getQueryByMap() : Object\r
-               {\r
-                       var queryStr:String;\r
-                       var pair:String;\r
-                       var pairs:Array;\r
-                       var item:Array;\r
-                       var name:String, value:String;\r
-                       var index:int;\r
-                       var map:Object = new Object();\r
-               \r
-               \r
-                       // We need the raw query string, no unescaping.\r
-                       queryStr = this._query;\r
-                       \r
-                       pairs = queryStr.split('&');\r
-                       for each (pair in pairs)\r
-                       {\r
-                               if (pair.length == 0)\r
-                                 continue;\r
-                                 \r
-                               item = pair.split('=');\r
-                               \r
-                               if (item.length > 0)\r
-                                       name = item[0];\r
-                               else\r
-                                       continue;  // empty array\r
-                               \r
-                               if (item.length > 1)\r
-                                       value = item[1];\r
-                               else\r
-                                       value = "";\r
-                                       \r
-                               name = queryPartUnescape(name);\r
-                               value = queryPartUnescape(value);\r
-                               \r
-                               map[name] = value;\r
-                       }\r
-       \r
-                       return map;\r
-               }\r
-               \r
-\r
-               /**\r
-                * Set the query part of this URI using the given object as the\r
-                * content source.  Any member of the object that has a value of\r
-                * null will not be in the resulting query.\r
-                * \r
-                * @param map   object that contains the name/value pairs as\r
-                *    members of that object.\r
-                * \r
-                * @see #getQueryByMap\r
-                * @see #getQueryValue\r
-                * @see #setQueryValue\r
-                */\r
-               public function setQueryByMap(map:Object) : void\r
-               {\r
-                       var item:String;\r
-                       var name:String, value:String;\r
-                       var queryStr:String = "";\r
-                       var tmpPair:String;\r
-                       var foo:String;\r
-               \r
-                       for (item in map)\r
-                       {\r
-                               name = item;\r
-                               value = map[item];\r
-               \r
-                               if (value == null)\r
-                                       value = "";\r
-                               \r
-                               // Need to escape the name/value pair so that they\r
-                               // don't conflict with the query syntax (specifically\r
-                               // '=', '&', and <whitespace>).\r
-                               name = queryPartEscape(name);\r
-                               value = queryPartEscape(value);\r
-                               \r
-                               tmpPair = name;\r
-                               \r
-                               if (value.length > 0)\r
-                               {\r
-                                       tmpPair += "=";\r
-                                       tmpPair += value;\r
-                               }\r
-\r
-                               if (queryStr.length != 0)\r
-                                       queryStr += '&';  // Add the separator\r
-               \r
-                               queryStr += tmpPair;\r
-                       }\r
-               \r
-                       // We don't want to escape.  We already escaped the\r
-                       // individual name/value pairs.  If we escaped the\r
-                       // query string again by assigning it to "query",\r
-                       // we would have double escaping.\r
-                       _query = queryStr;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Similar to Escape(), except this also escapes characters that\r
-                * would conflict with the name/value pair query syntax.  This is\r
-                * intended to be called on each individual "name" and "value"\r
-                * in the query making sure that nothing in the name or value\r
-                * strings contain characters that would conflict with the query\r
-                * syntax (e.g. '=' and '&').\r
-                * \r
-                * @param unescaped             unescaped string that is to be escaped.\r
-                * \r
-                * @return escaped string.\r
-                * \r
-                * @see #queryUnescape\r
-                */\r
-               static public function queryPartEscape(unescaped:String) : String\r
-               {\r
-                       var escaped:String = unescaped;\r
-                       escaped = URI.fastEscapeChars(unescaped, URI.URIqueryPartExcludedBitmap);\r
-                       return escaped;\r
-               }\r
-               \r
-\r
-               /**\r
-                * Unescape the individual name/value string pairs.\r
-                * \r
-                * @param escaped       escaped string to be unescaped\r
-                * \r
-                * @return unescaped string\r
-                * \r
-                * @see #queryEscape\r
-                */\r
-               static public function queryPartUnescape(escaped:String) : String\r
-               {\r
-                       var unescaped:String = escaped;\r
-                       unescaped = unescapeChars(unescaped);\r
-                       return unescaped;\r
-               }\r
-               \r
-               /**\r
-                * Output this URI as a string.  The resulting string is properly\r
-                * escaped and well formed for machine processing.\r
-                */\r
-               public function toString() : String\r
-               {\r
-                       if (this == null)\r
-                               return "";\r
-                       else\r
-                               return toStringInternal(false);\r
-               }\r
-               \r
-               /**\r
-                * Output the URI as a string that is easily readable by a human.\r
-                * This outputs the URI with all escape sequences unescaped to\r
-                * their character representation.  This makes the URI easier for\r
-                * a human to read, but the URI could be completely invalid\r
-                * because some unescaped characters may now cause ambiguous parsing.\r
-                * This function should only be used if you want to display a URI to\r
-                * a user.  This function should never be used outside that specific\r
-                * case.\r
-                * \r
-                * @return the URI in string format with all escape sequences\r
-                * unescaped.\r
-                * \r
-                * @see #toString\r
-                */\r
-               public function toDisplayString() : String\r
-               {\r
-                       return toStringInternal(true);\r
-               }\r
-               \r
-               \r
-               /**\r
-                * @private\r
-                * \r
-                * The guts of toString()\r
-                */\r
-               protected function toStringInternal(forDisplay:Boolean) : String\r
-               {\r
-                       var uri:String = "";\r
-                       var part:String = "";\r
-               \r
-                       if (isHierarchical() == false)\r
-                       {\r
-                               // non-hierarchical URI\r
-               \r
-                               uri += (forDisplay ? this.scheme : _scheme);\r
-                               uri += ":";\r
-                               uri += (forDisplay ? this.nonHierarchical : _nonHierarchical);\r
-                       }\r
-                       else\r
-                       {\r
-                               // Hierarchical URI\r
-               \r
-                               if (isRelative() == false)\r
-                               {\r
-                                       // If it is not a relative URI, then we want the scheme and\r
-                                       // authority parts in the string.  If it is relative, we\r
-                                       // do NOT want this stuff.\r
-               \r
-                                       if (_scheme.length != 0)\r
-                                       {\r
-                                               part = (forDisplay ? this.scheme : _scheme);\r
-                                               uri += part + ":";\r
-                                       }\r
-               \r
-                                       if (_authority.length != 0 || isOfType("file"))\r
-                                       {\r
-                                               uri += "//";\r
-               \r
-                                               // Add on any username/password associated with this\r
-                                               // authority\r
-                                               if (_username.length != 0)\r
-                                               {\r
-                                                       part = (forDisplay ? this.username : _username);\r
-                                                       uri += part;\r
-               \r
-                                                       if (_password.length != 0)\r
-                                                       {\r
-                                                               part = (forDisplay ? this.password : _password);\r
-                                                               uri += ":" + part;\r
-                                                       }\r
-               \r
-                                                       uri += "@";\r
-                                               }\r
-               \r
-                                               // add the authority\r
-                                               part = (forDisplay ? this.authority : _authority);\r
-                                               uri += part;\r
-               \r
-                                               // Tack on the port number, if any\r
-                                               if (port.length != 0)\r
-                                                       uri += ":" + port;\r
-                                       }\r
-                               }\r
-               \r
-                               // Tack on the path\r
-                               part = (forDisplay ? this.path : _path);\r
-                               uri += part;\r
-               \r
-                       } // end hierarchical part\r
-               \r
-                       // Both non-hier and hierarchical have query and fragment parts\r
-               \r
-                       // Add on the query and fragment parts\r
-                       if (_query.length != 0)\r
-                       {\r
-                               part = (forDisplay ? this.query : _query);\r
-                               uri += "?" + part;\r
-                       }\r
-               \r
-                       if (fragment.length != 0)\r
-                       {\r
-                               part = (forDisplay ? this.fragment : _fragment);\r
-                               uri += "#" + part;\r
-                       }\r
-               \r
-                       return uri;\r
-               }\r
-       \r
-               /**\r
-                * Forcefully ensure that this URI is properly escaped.\r
-                * \r
-                * <p>Sometimes URI's are constructed by hand using strings outside\r
-                * this class.  In those cases, it is unlikely the URI has been\r
-                * properly escaped.  This function forcefully escapes this URI\r
-                * by unescaping each part and then re-escaping it.  If the URI\r
-                * did not have any escaping, the first unescape will do nothing\r
-                * and then the re-escape will properly escape everything.  If\r
-                * the URI was already escaped, the unescape and re-escape will\r
-                * essentally be a no-op.  This provides a safe way to make sure\r
-                * a URI is in the proper escaped form.</p>\r
-                */\r
-               public function forceEscape() : void\r
-               {\r
-                       // The accessors for each of the members will unescape\r
-                       // and then re-escape as we get and assign them.\r
-                       \r
-                       // Handle the parts that are common for both hierarchical\r
-                       // and non-hierarchical URI's\r
-                       this.scheme = this.scheme;\r
-                       this.setQueryByMap(this.getQueryByMap());\r
-                       this.fragment = this.fragment;\r
-                       \r
-                       if (isHierarchical())\r
-                       {\r
-                               this.authority = this.authority;\r
-                               this.path = this.path;\r
-                               this.port = this.port;\r
-                               this.username = this.username;\r
-                               this.password = this.password;\r
-                       }\r
-                       else\r
-                       {\r
-                               this.nonHierarchical = this.nonHierarchical;\r
-                       }\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Does this URI point to a resource of the given file type?\r
-                * Given a file extension (or just a file name, this will strip the\r
-                * extension), check to see if this URI points to a file of that\r
-                * type.\r
-                * \r
-                * @param extension     string that contains a file extension with or\r
-                * without a dot ("html" and ".html" are both valid), or a file\r
-                * name with an extension (e.g. "index.html").\r
-                * \r
-                * @return true if this URI points to a resource with the same file\r
-                * file extension as the extension provided, false otherwise.\r
-                */\r
-               public function isOfFileType(extension:String) : Boolean\r
-               {\r
-                       var thisExtension:String;\r
-                       var index:int;\r
-               \r
-                       index = extension.lastIndexOf(".");\r
-                       if (index != -1)\r
-                       {\r
-                               // Strip the extension\r
-                               extension = extension.substr(index + 1);\r
-                       }\r
-                       else\r
-                       {\r
-                               // The caller passed something without a dot in it.  We\r
-                               // will assume that it is just a plain extension (e.g. "html").\r
-                               // What they passed is exactly what we want\r
-                       }\r
-               \r
-                       thisExtension = getExtension(true);\r
-               \r
-                       if (thisExtension == "")\r
-                               return false;\r
-               \r
-                       // Compare the extensions ignoring case\r
-                       if (compareStr(thisExtension, extension, false) == 0)\r
-                               return true;\r
-                       else\r
-                               return false;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Get the ".xyz" file extension from the filename in the URI.\r
-                * For example, if we have the following URI:\r
-                * \r
-                * <listing>http://something.com/path/to/my/page.html?form=yes&name=bob#anchor</listing>\r
-                * \r
-                * <p>This will return ".html".</p>\r
-                * \r
-                * @param minusDot   If true, this will strip the dot from the extension.\r
-                * If true, the above example would have returned "html".\r
-                * \r
-                * @return  the file extension\r
-                */\r
-               public function getExtension(minusDot:Boolean = false) : String\r
-               {\r
-                       var filename:String = getFilename();\r
-                       var extension:String;\r
-                       var index:int;\r
-               \r
-                       if (filename == "")\r
-                               return String("");\r
-               \r
-                       index = filename.lastIndexOf(".");\r
-               \r
-                       // If it doesn't have an extension, or if it is a "hidden" file,\r
-                       // it doesn't have an extension.  Hidden files on unix start with\r
-                       // a dot (e.g. ".login").\r
-                       if (index == -1 || index == 0)\r
-                               return String("");\r
-               \r
-                       extension = filename.substr(index);\r
-               \r
-                       // If the caller does not want the dot, remove it.\r
-                       if (minusDot && extension.charAt(0) == ".")\r
-                               extension = extension.substr(1);\r
-               \r
-                       return extension;\r
-               }\r
-               \r
-               /**\r
-                * Quick function to retrieve the file name off the end of a URI.\r
-                * \r
-                * <p>For example, if the URI is:</p>\r
-                * <listing>http://something.com/some/path/to/my/file.html</listing>\r
-                * <p>this function will return "file.html".</p>\r
-                * \r
-                * @param minusExtension true if the file extension should be stripped\r
-                * \r
-                * @return the file name.  If this URI is a directory, the return\r
-                * value will be empty string.\r
-                */\r
-               public function getFilename(minusExtension:Boolean = false) : String\r
-               {\r
-                       if (isDirectory())\r
-                               return String("");\r
-               \r
-                       var pathStr:String = this.path;\r
-                       var filename:String;\r
-                       var index:int;\r
-               \r
-                       // Find the last path separator.\r
-                       index = pathStr.lastIndexOf("/");\r
-               \r
-                       if (index != -1)\r
-                               filename = pathStr.substr(index + 1);\r
-                       else\r
-                               filename = pathStr;\r
-               \r
-                       if (minusExtension)\r
-                       {\r
-                               // The caller has requested that the extension be removed\r
-                               index = filename.lastIndexOf(".");\r
-               \r
-                               if (index != -1)\r
-                                       filename = filename.substr(0, index);\r
-                       }\r
-               \r
-                       return filename;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * @private\r
-                * Helper function to compare strings.\r
-                * \r
-                * @return true if the two strings are identical, false otherwise.\r
-                */\r
-               static protected function compareStr(str1:String, str2:String,\r
-                       sensitive:Boolean = true) : Boolean\r
-               {\r
-                       if (sensitive == false)\r
-                       {\r
-                               str1 = str1.toLowerCase();\r
-                               str2 = str2.toLowerCase();\r
-                       }\r
-                       \r
-                       return (str1 == str2)\r
-               }\r
-               \r
-               /**\r
-                * Based on the type of this URI (http, ftp, etc.) get\r
-                * the default port used for that protocol.  This is\r
-                * just intended to be a helper function for the most\r
-                * common cases.\r
-                */\r
-               public function getDefaultPort() : String\r
-               {\r
-                       if (_scheme == "http")\r
-                               return String("80");\r
-                       else if (_scheme == "ftp")\r
-                               return String("21");\r
-                       else if (_scheme == "file")\r
-                               return String("");\r
-                       else if (_scheme == "sftp")\r
-                               return String("22"); // ssh standard port\r
-                       else\r
-                       {\r
-                               // Don't know the port for this URI type\r
-                               return String("");\r
-                       }\r
-               }\r
-               \r
-               /**\r
-                * @private\r
-                * \r
-                * This resolves the given URI if the application has a\r
-                * resolver interface defined.  This function does not\r
-                * modify the passed in URI and returns a new URI.\r
-                */\r
-               static protected function resolve(uri:URI) : URI\r
-               {\r
-                       var copy:URI = new URI();\r
-                       copy.copyURI(uri);\r
-                       \r
-                       if (_resolver != null)\r
-                       {\r
-                               // A resolver class has been registered.  Call it.\r
-                               return _resolver.resolve(copy);\r
-                       }\r
-                       else\r
-                       {\r
-                               // No resolver.  Nothing to do, but we don't\r
-                               // want to reuse the one passed in.\r
-                               return copy;\r
-                       }\r
-               }\r
-               \r
-               /**\r
-                * Accessor to set and get the resolver object used by all URI\r
-                * objects to dynamically resolve URI's before comparison.\r
-                */\r
-               static public function set resolver(resolver:IURIResolver) : void\r
-               {\r
-                       _resolver = resolver;\r
-               }\r
-               static public function get resolver() : IURIResolver\r
-               {\r
-                       return _resolver;\r
-               }\r
-               \r
-               /**\r
-                * Given another URI, return this URI object's relation to the one given.\r
-                * URI's can have 1 of 4 possible relationships.  They can be unrelated,\r
-                * equal, parent, or a child of the given URI.\r
-                * \r
-                * @param uri   URI to compare this URI object to.\r
-                * @param caseSensitive  true if the URI comparison should be done\r
-                * taking case into account, false if the comparison should be\r
-                * performed case insensitive.\r
-                * \r
-                * @return URI.NOT_RELATED, URI.CHILD, URI.PARENT, or URI.EQUAL\r
-                */\r
-               public function getRelation(uri:URI, caseSensitive:Boolean = true) : int\r
-               {\r
-                       // Give the app a chance to resolve these URI's before we compare them.\r
-                       var thisURI:URI = URI.resolve(this);\r
-                       var thatURI:URI = URI.resolve(uri);\r
-                       \r
-                       if (thisURI.isRelative() || thatURI.isRelative())\r
-                       {\r
-                               // You cannot compare relative URI's due to their lack of context.\r
-                               // You could have two relative URI's that look like:\r
-                               //              ../../images/\r
-                               //              ../../images/marketing/logo.gif\r
-                               // These may appear related, but you have no overall context\r
-                               // from which to make the comparison.  The first URI could be\r
-                               // from one site and the other URI could be from another site.\r
-                               return URI.NOT_RELATED;\r
-                       }\r
-                       else if (thisURI.isHierarchical() == false || thatURI.isHierarchical() == false)\r
-                       {\r
-                               // One or both of the URI's are non-hierarchical.\r
-                               if (((thisURI.isHierarchical() == false) && (thatURI.isHierarchical() == true)) ||\r
-                                       ((thisURI.isHierarchical() == true) && (thatURI.isHierarchical() == false)))\r
-                               {\r
-                                       // XOR.  One is hierarchical and the other is\r
-                                       // non-hierarchical.  They cannot be compared.\r
-                                       return URI.NOT_RELATED;\r
-                               }\r
-                               else\r
-                               {\r
-                                       // They are both non-hierarchical\r
-                                       if (thisURI.scheme != thatURI.scheme)\r
-                                               return URI.NOT_RELATED;\r
-               \r
-                                       if (thisURI.nonHierarchical != thatURI.nonHierarchical)\r
-                                               return URI.NOT_RELATED;\r
-                                               \r
-                                       // The two non-hierarcical URI's are equal.\r
-                                       return URI.EQUAL;\r
-                               }\r
-                       }\r
-                       \r
-                       // Ok, this URI and the one we are being compared to are both\r
-                       // absolute hierarchical URI's.\r
-               \r
-                       if (thisURI.scheme != thatURI.scheme)\r
-                               return URI.NOT_RELATED;\r
-               \r
-                       if (thisURI.authority != thatURI.authority)\r
-                               return URI.NOT_RELATED;\r
-               \r
-                       var thisPort:String = thisURI.port;\r
-                       var thatPort:String = thatURI.port;\r
-                       \r
-                       // Different ports are considered completely different servers.\r
-                       if (thisPort == "")\r
-                               thisPort = thisURI.getDefaultPort();\r
-                       if (thatPort == "")\r
-                               thatPort = thatURI.getDefaultPort();\r
-               \r
-                       // Check to see if the port is the default port.\r
-                       if (thisPort != thatPort)\r
-                               return URI.NOT_RELATED;\r
-               \r
-                       if (compareStr(thisURI.path, thatURI.path, caseSensitive))\r
-                               return URI.EQUAL;\r
-               \r
-                       // Special case check.  If we are here, the scheme, authority,\r
-                       // and port match, and it is not a relative path, but the\r
-                       // paths did not match.  There is a special case where we\r
-                       // could have:\r
-                       //              http://something.com/\r
-                       //              http://something.com\r
-                       // Technically, these are equal.  So lets, check for this case.\r
-                       var thisPath:String = thisURI.path;\r
-                       var thatPath:String = thatURI.path;\r
-               \r
-                       if ( (thisPath == "/" || thatPath == "/") &&\r
-                                (thisPath == "" || thatPath == "") )\r
-                       {\r
-                               // We hit the special case.  These two are equal.\r
-                               return URI.EQUAL;\r
-                       }\r
-               \r
-                       // Ok, the paths do not match, but one path may be a parent/child\r
-                       // of the other.  For example, we may have:\r
-                       //              http://something.com/path/to/homepage/\r
-                       //              http://something.com/path/to/homepage/images/logo.gif\r
-                       // In this case, the first is a parent of the second (or the second\r
-                       // is a child of the first, depending on which you compare to the\r
-                       // other).  To make this comparison, we must split the path into\r
-                       // its component parts (split the string on the '/' path delimiter).\r
-                       // We then compare the \r
-                       var thisParts:Array, thatParts:Array;\r
-                       var thisPart:String, thatPart:String;\r
-                       var i:int;\r
-               \r
-                       thisParts = thisPath.split("/");\r
-                       thatParts = thatPath.split("/");\r
-               \r
-                       if (thisParts.length > thatParts.length)\r
-                       {\r
-                               thatPart = thatParts[thatParts.length - 1];\r
-                               if (thatPart.length > 0)\r
-                               {\r
-                                       // if the last part is not empty, the passed URI is\r
-                                       // not a directory.  There is no way the passed URI\r
-                                       // can be a parent.\r
-                                       return URI.NOT_RELATED;\r
-                               }\r
-                               else\r
-                               {\r
-                                       // Remove the empty trailing part\r
-                                       thatParts.pop();\r
-                               }\r
-                               \r
-                               // This may be a child of the one passed in\r
-                               for (i = 0; i < thatParts.length; i++)\r
-                               {\r
-                                       thisPart = thisParts[i];\r
-                                       thatPart = thatParts[i];\r
-                                               \r
-                                       if (compareStr(thisPart, thatPart, caseSensitive) == false)\r
-                                               return URI.NOT_RELATED;\r
-                               }\r
-               \r
-                               return URI.CHILD;\r
-                       }\r
-                       else if (thisParts.length < thatParts.length)\r
-                       {\r
-                               thisPart = thisParts[thisParts.length - 1];\r
-                               if (thisPart.length > 0)\r
-                               {\r
-                                       // if the last part is not empty, this URI is not a\r
-                                       // directory.  There is no way this object can be\r
-                                       // a parent.\r
-                                       return URI.NOT_RELATED;\r
-                               }\r
-                               else\r
-                               {\r
-                                       // Remove the empty trailing part\r
-                                       thisParts.pop();\r
-                               }\r
-                               \r
-                               // This may be the parent of the one passed in\r
-                               for (i = 0; i < thisParts.length; i++)\r
-                               {\r
-                                       thisPart = thisParts[i];\r
-                                       thatPart = thatParts[i];\r
-               \r
-                                       if (compareStr(thisPart, thatPart, caseSensitive) == false)\r
-                                               return URI.NOT_RELATED;\r
-                               }\r
-                               \r
-                               return URI.PARENT;\r
-                       }\r
-                       else\r
-                       {\r
-                               // Both URI's have the same number of path components, but\r
-                               // it failed the equivelence check above.  This means that\r
-                               // the two URI's are not related.\r
-                               return URI.NOT_RELATED;\r
-                       }\r
-                       \r
-                       // If we got here, the scheme and authority are the same,\r
-                       // but the paths pointed to two different locations that\r
-                       // were in different parts of the file system tree\r
-                       return URI.NOT_RELATED;\r
-               }\r
-               \r
-               /**\r
-                * Given another URI, return the common parent between this one\r
-                * and the provided URI.\r
-                * \r
-                * @param uri the other URI from which to find a common parent\r
-                * @para caseSensitive true if this operation should be done\r
-                * with case sensitive comparisons.\r
-                * \r
-                * @return the parent URI if successful, null otherwise.\r
-                */\r
-               public function getCommonParent(uri:URI, caseSensitive:Boolean = true) : URI\r
-               {\r
-                       var thisURI:URI = URI.resolve(this);\r
-                       var thatURI:URI = URI.resolve(uri);\r
-               \r
-                       if(!thisURI.isAbsolute() || !thatURI.isAbsolute() ||\r
-                               thisURI.isHierarchical() == false ||\r
-                               thatURI.isHierarchical() == false)\r
-                       {\r
-                               // Both URI's must be absolute hierarchical for this to\r
-                               // make sense.\r
-                               return null;\r
-                       }\r
-                       \r
-                       var relation:int = thisURI.getRelation(thatURI);\r
-                       if (relation == URI.NOT_RELATED)\r
-                       {\r
-                               // The given URI is not related to this one.  No\r
-                               // common parent.\r
-                               return null;\r
-                       }\r
-               \r
-                       thisURI.chdir(".");\r
-                       thatURI.chdir(".");\r
-                       \r
-                       var strBefore:String, strAfter:String;\r
-                       do\r
-                       {\r
-                               relation = thisURI.getRelation(thatURI, caseSensitive);\r
-                               if(relation == URI.EQUAL || relation == URI.PARENT)\r
-                                       break;\r
-               \r
-                               // If strBefore and strAfter end up being the same,\r
-                               // we know we are at the root of the path because\r
-                               // chdir("..") is doing nothing.\r
-                               strBefore = thisURI.toString();\r
-                               thisURI.chdir("..");\r
-                               strAfter = thisURI.toString();\r
-                       }\r
-                       while(strBefore != strAfter);\r
-               \r
-                       return thisURI;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * This function is used to move around in a URI in a way similar\r
-                * to the 'cd' or 'chdir' commands on Unix.  These operations are\r
-                * completely string based, using the context of the URI to\r
-                * determine the position within the path.  The heuristics used\r
-                * to determine the action are based off Appendix C in RFC 2396.\r
-                * \r
-                * <p>URI paths that end in '/' are considered paths that point to\r
-                * directories, while paths that do not end in '/' are files.  For\r
-                * example, if you execute chdir("d") on the following URI's:<br/>\r
-                *    1.  http://something.com/a/b/c/  (directory)<br/>\r
-                *    2.  http://something.com/a/b/c  (not directory)<br/>\r
-                * you will get:<br/>\r
-                *    1.  http://something.com/a/b/c/d<br/>\r
-                *    2.  http://something.com/a/b/d<br/></p>\r
-                * \r
-                * <p>See RFC 2396, Appendix C for more info.</p>\r
-                * \r
-                * @param reference     the URI or path to "cd" to.\r
-                * @param escape true if the passed reference string should be URI\r
-                * escaped before using it.\r
-                * \r
-                * @return true if the chdir was successful, false otherwise.\r
-                */\r
-               public function chdir(reference:String, escape:Boolean = false) : Boolean\r
-               {\r
-                       var uriReference:URI;\r
-                       var ref:String = reference;\r
-               \r
-                       if (escape)\r
-                               ref = URI.escapeChars(reference);\r
-               \r
-                       if (ref == "")\r
-                       {\r
-                               // NOOP\r
-                               return true;\r
-                       }\r
-                       else if (ref.substr(0, 2) == "//")\r
-                       {\r
-                               // Special case.  This is an absolute URI but without the scheme.\r
-                               // Take the scheme from this URI and tack it on.  This is\r
-                               // intended to make working with chdir() a little more\r
-                               // tolerant.\r
-                               var final:String = this.scheme + ":" + ref;\r
-                               \r
-                               return constructURI(final);\r
-                       }\r
-                       else if (ref.charAt(0) == "?")\r
-                       {\r
-                               // A relative URI that is just a query part is essentially\r
-                               // a "./?query".  We tack on the "./" here to make the rest\r
-                               // of our logic work.\r
-                               ref = "./" + ref;\r
-                       }\r
-               \r
-                       // Parse the reference passed in as a URI.  This way we\r
-                       // get any query and fragments parsed out as well.\r
-                       uriReference = new URI(ref);\r
-               \r
-                       if (uriReference.isAbsolute() ||\r
-                               uriReference.isHierarchical() == false)\r
-                       {\r
-                               // If the URI given is a full URI, it replaces this one.\r
-                               copyURI(uriReference);\r
-                               return true;\r
-                       }\r
-               \r
-               \r
-                       var thisPath:String, thatPath:String;\r
-                       var thisParts:Array, thatParts:Array;\r
-                       var thisIsDir:Boolean = false, thatIsDir:Boolean = false;\r
-                       var thisIsAbs:Boolean = false, thatIsAbs:Boolean = false;\r
-                       var lastIsDotOperation:Boolean = false;\r
-                       var curDir:String;\r
-                       var i:int;\r
-               \r
-                       thisPath = this.path;\r
-                       thatPath = uriReference.path;\r
-               \r
-                       if (thisPath.length > 0)\r
-                               thisParts = thisPath.split("/");\r
-                       else\r
-                               thisParts = new Array();\r
-                               \r
-                       if (thatPath.length > 0)\r
-                               thatParts = thatPath.split("/");\r
-                       else\r
-                               thatParts = new Array();\r
-                       \r
-                       if (thisParts.length > 0 && thisParts[0] == "")\r
-                       {\r
-                               thisIsAbs = true;\r
-                               thisParts.shift(); // pop the first one off the array\r
-                       }\r
-                       if (thisParts.length > 0 && thisParts[thisParts.length - 1] == "")\r
-                       {\r
-                               thisIsDir = true;\r
-                               thisParts.pop();  // pop the last one off the array\r
-                       }\r
-                               \r
-                       if (thatParts.length > 0 && thatParts[0] == "")\r
-                       {\r
-                               thatIsAbs = true;\r
-                               thatParts.shift(); // pop the first one off the array\r
-                       }\r
-                       if (thatParts.length > 0 && thatParts[thatParts.length - 1] == "")\r
-                       {\r
-                               thatIsDir = true;\r
-                               thatParts.pop();  // pop the last one off the array\r
-                       }\r
-                               \r
-                       if (thatIsAbs)\r
-                       {\r
-                               // The reference is an absolute path (starts with a slash).\r
-                               // It replaces this path wholesale.\r
-                               this.path = uriReference.path;\r
-               \r
-                               // And it inherits the query and fragment\r
-                               this.queryRaw = uriReference.queryRaw;\r
-                               this.fragment = uriReference.fragment;\r
-               \r
-                               return true;\r
-                       }\r
-                       else if (thatParts.length == 0 && uriReference.query == "")\r
-                       {\r
-                               // The reference must have only been a fragment.  Fragments just\r
-                               // get appended to whatever the current path is.  We don't want\r
-                               // to overwrite any query that may already exist, so this case\r
-                               // only takes on the new fragment.\r
-                               this.fragment = uriReference.fragment;\r
-                               return true;\r
-                       }\r
-                       else if (thisIsDir == false && thisParts.length > 0)\r
-                       {\r
-                               // This path ends in a file.  It goes away no matter what.\r
-                               thisParts.pop();\r
-                       }\r
-               \r
-                       // By default, this assumes the query and fragment of the reference\r
-                       this.queryRaw = uriReference.queryRaw;\r
-                       this.fragment = uriReference.fragment;\r
-               \r
-                       // Append the parts of the path from the passed in reference\r
-                       // to this object's path.\r
-                       thisParts = thisParts.concat(thatParts);\r
-                                       \r
-                       for(i = 0; i < thisParts.length; i++)\r
-                       {\r
-                               curDir = thisParts[i];\r
-                               lastIsDotOperation = false;\r
-               \r
-                               if (curDir == ".")\r
-                               {\r
-                                       thisParts.splice(i, 1);\r
-                                       i = i - 1;  // account for removing this item\r
-                                       lastIsDotOperation = true;\r
-                               }\r
-                               else if (curDir == "..")\r
-                               {\r
-                                       if (i >= 1)\r
-                                       {\r
-                                               if (thisParts[i - 1] == "..")\r
-                                               {\r
-                                                       // If the previous is a "..", we must have skipped\r
-                                                       // it due to this URI being relative.  We can't\r
-                                                       // collapse leading ".."s in a relative URI, so\r
-                                                       // do nothing.\r
-                                               }\r
-                                               else\r
-                                               {\r
-                                                       thisParts.splice(i - 1, 2);\r
-                                                       i = i - 2;  // move back to account for the 2 we removed\r
-                                               }\r
-                                       }\r
-                                       else\r
-                                       {\r
-                                               // This is the first thing in the path.\r
-               \r
-                                               if (isRelative())\r
-                                               {\r
-                                                       // We can't collapse leading ".."s in a relative\r
-                                                       // path.  Do noting.\r
-                                               }\r
-                                               else\r
-                                               {\r
-                                                       // This is an abnormal case.  We have dot-dotted up\r
-                                                       // past the base of our "file system".  This is a\r
-                                                       // case where we had a /path/like/this.htm and were\r
-                                                       // given a path to chdir to like this:\r
-                                                       // ../../../../../../mydir\r
-                                                       // Obviously, it has too many ".." and will take us\r
-                                                       // up beyond the top of the URI.  However, according\r
-                                                       // RFC 2396 Appendix C.2, we should try to handle\r
-                                                       // these abnormal cases appropriately.  In this case,\r
-                                                       // we will do what UNIX command lines do if you are\r
-                                                       // at the root (/) of the filesystem and execute:\r
-                                                       // # cd ../../../../../bin\r
-                                                       // Which will put you in /bin.  Essentially, the extra\r
-                                                       // ".."'s will just get eaten.\r
-               \r
-                                                       thisParts.splice(i, 1);\r
-                                                       i = i - 1;  // account for the ".." we just removed\r
-                                               }\r
-                                       }\r
-               \r
-                                       lastIsDotOperation = true;\r
-                               }\r
-                       }\r
-                       \r
-                       var finalPath:String = "";\r
-               \r
-                       // If the last thing in the path was a "." or "..", then this thing is a\r
-                       // directory.  If the last thing isn't a dot-op, then we don't want to \r
-                       // blow away any information about the directory (hence the "|=" binary\r
-                       // assignment).\r
-                       thatIsDir = thatIsDir || lastIsDotOperation;\r
-               \r
-                       // Reconstruct the path with the abs/dir info we have\r
-                       finalPath = joinPath(thisParts, thisIsAbs, thatIsDir);\r
-               \r
-                       // Set the path (automatically escaping it)\r
-                       this.path = finalPath;\r
-               \r
-                       return true;\r
-               }\r
-               \r
-               /**\r
-                * @private\r
-                * Join an array of path parts back into a URI style path string.\r
-                * This is used by the various path logic functions to recombine\r
-                * a path.  This is different than the standard Array.join()\r
-                * function because we need to take into account the starting and\r
-                * ending path delimiters if this is an absolute path or a\r
-                * directory.\r
-                * \r
-                * @param parts the Array that contains strings of each path part.\r
-                * @param isAbs         true if the given path is absolute\r
-                * @param isDir         true if the given path is a directory\r
-                * \r
-                * @return the combined path string.\r
-                */\r
-               protected function joinPath(parts:Array, isAbs:Boolean, isDir:Boolean) : String\r
-               {\r
-                       var pathStr:String = "";\r
-                       var i:int;\r
-               \r
-                       for (i = 0; i < parts.length; i++)\r
-                       {\r
-                               if (pathStr.length > 0)\r
-                                       pathStr += "/";\r
-               \r
-                               pathStr += parts[i];\r
-                       }\r
-               \r
-                       // If this path is a directory, tack on the directory delimiter,\r
-                       // but only if the path contains something.  Adding this to an\r
-                       // empty path would make it "/", which is an absolute path that\r
-                       // starts at the root.\r
-                       if (isDir && pathStr.length > 0)\r
-                               pathStr += "/";\r
-               \r
-                       if (isAbs)\r
-                               pathStr = "/" + pathStr;\r
-               \r
-                       return pathStr;\r
-               }\r
-               \r
-               /**\r
-                * Given an absolute URI, make this relative URI absolute using\r
-                * the given URI as a base.  This URI instance must be relative\r
-                * and the base_uri must be absolute.\r
-                * \r
-                * @param base_uri      URI to use as the base from which to make\r
-                * this relative URI into an absolute URI.\r
-                * \r
-                * @return true if successful, false otherwise.\r
-                */\r
-               public function makeAbsoluteURI(base_uri:URI) : Boolean\r
-               {\r
-                       if (isAbsolute() || base_uri.isRelative())\r
-                       {\r
-                               // This URI needs to be relative, and the base needs to be\r
-                               // absolute otherwise we won't know what to do!\r
-                               return false;\r
-                       }\r
-               \r
-                       // Make a copy of the base URI.  We don't want to modify\r
-                       // the passed URI.\r
-                       var base:URI = new URI();\r
-                       base.copyURI(base_uri);\r
-               \r
-                       // ChDir on the base URI.  This will preserve any query\r
-                       // and fragment we have.\r
-                       if (base.chdir(toString()) == false)\r
-                               return false;\r
-               \r
-                       // It worked, so copy the base into this one\r
-                       copyURI(base);\r
-               \r
-                       return true;\r
-               }\r
-               \r
-               \r
-               /**\r
-                * Given a URI to use as a base from which this object should be\r
-                * relative to, convert this object into a relative URI.  For example,\r
-                * if you have:\r
-                * \r
-                * <listing>\r
-                * var uri1:URI = new URI("http://something.com/path/to/some/file.html");\r
-                * var uri2:URI = new URI("http://something.com/path/to/another/file.html");\r
-                * \r
-                * uri1.MakeRelativePath(uri2);</listing>\r
-                * \r
-                * <p>uri1 will have a final value of "../some/file.html"</p>\r
-                * \r
-                * <p>Note! This function is brute force.  If you have two URI's\r
-                * that are completely unrelated, this will still attempt to make\r
-                * the relative URI.  In that case, you will most likely get a\r
-                * relative path that looks something like:</p>\r
-                * \r
-                * <p>../../../../../../some/path/to/my/file.html</p>\r
-                * \r
-                * @param base_uri the URI from which to make this URI relative\r
-                * \r
-                * @return true if successful, false if the base_uri and this URI\r
-                * are not related, of if error.\r
-                */\r
-               public function makeRelativeURI(base_uri:URI, caseSensitive:Boolean = true) : Boolean\r
-               {\r
-                       var base:URI = new URI();\r
-                       base.copyURI(base_uri);\r
-                       \r
-                       var thisParts:Array, thatParts:Array;\r
-                       var finalParts:Array = new Array();\r
-                       var thisPart:String, thatPart:String, finalPath:String;\r
-                       var pathStr:String = this.path;\r
-                       var queryStr:String = this.queryRaw;\r
-                       var fragmentStr:String = this.fragment;\r
-                       var i:int;\r
-                       var diff:Boolean = false;\r
-                       var isDir:Boolean = false;\r
-               \r
-                       if (isRelative())\r
-                       {\r
-                               // We're already relative.\r
-                               return true;\r
-                       }\r
-               \r
-                       if (base.isRelative())\r
-                       {\r
-                               // The base is relative.  A relative base doesn't make sense.\r
-                               return false;\r
-                       }\r
-               \r
-               \r
-                       if ( (isOfType(base_uri.scheme) == false) ||\r
-                               (this.authority != base_uri.authority) )\r
-                       {\r
-                               // The schemes and/or authorities are different.  We can't\r
-                               // make a relative path to something that is completely\r
-                               // unrelated.\r
-                               return false;\r
-                       }\r
-               \r
-                       // Record the state of this URI\r
-                       isDir = isDirectory();\r
-               \r
-                       // We are based of the directory of the given URI.  We need to\r
-                       // make sure the URI is pointing to a directory.  Changing\r
-                       // directory to "." will remove any file name if the base is\r
-                       // not a directory.\r
-                       base.chdir(".");\r
-               \r
-                       thisParts = pathStr.split("/");\r
-                       thatParts = base.path.split("/");\r
-                       \r
-                       if (thisParts.length > 0 && thisParts[0] == "")\r
-                               thisParts.shift();\r
-                       \r
-                       if (thisParts.length > 0 && thisParts[thisParts.length - 1] == "")\r
-                       {\r
-                               isDir = true;\r
-                               thisParts.pop();\r
-                       }\r
-                       \r
-                       if (thatParts.length > 0 && thatParts[0] == "")\r
-                               thatParts.shift();\r
-                       if (thatParts.length > 0 && thatParts[thatParts.length - 1] == "")\r
-                               thatParts.pop();\r
-               \r
-               \r
-                       // Now that we have the paths split into an array of directories,\r
-                       // we can compare the two paths.  We start from the left of side\r
-                       // of the path and start comparing.  When we either run out of\r
-                       // directories (one path is longer than the other), or we find\r
-                       // a directory that is different, we stop.  The remaining parts\r
-                       // of each path is then used to determine the relative path.  For\r
-                       // example, lets say we have:\r
-                       //    path we want to make relative: /a/b/c/d/e.txt\r
-                       //    path to use as base for relative: /a/b/f/\r
-                       //\r
-                       // This loop will start at the left, and remove directories\r
-                       // until we get a mismatch or run off the end of one of them.\r
-                       // In this example, the result will be:\r
-                       //    c/d/e.txt\r
-                       //    f\r
-                       //\r
-                       // For every part left over in the base path, we prepend a ".."\r
-                       // to the relative to get the final path:\r
-                       //   ../c/d/e.txt\r
-                       while(thatParts.length > 0)\r
-                       {\r
-                               if (thisParts.length == 0)\r
-                               {\r
-                                       // we matched all there is to match, we are done.\r
-                                       // This is the case where "this" object is a parent\r
-                                       // path of the given URI.  eg:\r
-                                       //   this.path = /a/b/                          (thisParts)\r
-                                       //   base.path = /a/b/c/d/e/            (thatParts)\r
-                                       break;\r
-                               }\r
-               \r
-                               thisPart = thisParts[0];\r
-                               thatPart = thatParts[0];\r
-               \r
-                               if (compareStr(thisPart, thatPart, caseSensitive))\r
-                               {\r
-                                       thisParts.shift();\r
-                                       thatParts.shift();\r
-                               }\r
-                               else\r
-                                       break;\r
-                       }\r
-               \r
-                       // If there are any path info left from the base URI, that means\r
-                       // **this** object is above the given URI in the file tree.  For\r
-                       // each part left over in the given URI, we need to move up one\r
-                       // directory to get where we are.\r
-                       var dotdot:String = "..";\r
-                       for (i = 0; i < thatParts.length; i++)\r
-                       {\r
-                               finalParts.push(dotdot);\r
-                       }\r
-               \r
-                       // Append the parts of this URI to any dot-dot's we have\r
-                       finalParts = finalParts.concat(thisParts);\r
-               \r
-                       // Join the parts back into a path\r
-                       finalPath = joinPath(finalParts, false /* not absolute */, isDir);\r
-               \r
-                       if (finalPath.length == 0)\r
-                       {\r
-                               // The two URI's are exactly the same.  The proper relative\r
-                               // path is:\r
-                               finalPath = "./";\r
-                       }\r
-               \r
-                       // Set the parts of the URI, preserving the original query and\r
-                       // fragment parts.\r
-                       setParts("", "", "", finalPath, queryStr, fragmentStr);\r
-               \r
-                       return true;\r
-               }\r
-               \r
-               /**\r
-                * Given a string, convert it to a URI.  The string could be a\r
-                * full URI that is improperly escaped, a malformed URI (e.g.\r
-                * missing a protocol like "www.something.com"), a relative URI,\r
-                * or any variation there of.\r
-                * \r
-                * <p>The intention of this function is to take anything that a\r
-                * user might manually enter as a URI/URL and try to determine what\r
-                * they mean.  This function differs from the URI constructor in\r
-                * that it makes some assumptions to make it easy to import user\r
-                * entered URI data.</p>\r
-                * \r
-                * <p>This function is intended to be a helper function.\r
-                * It is not all-knowning and will probably make mistakes\r
-                * when attempting to parse a string of unknown origin.  If\r
-                * your applicaiton is receiving input from the user, your\r
-                * application should already have a good idea what the user\r
-                * should  be entering, and your application should be\r
-                * pre-processing the user's input to make sure it is well formed\r
-                * before passing it to this function.</p>\r
-                * \r
-                * <p>It is assumed that the string given to this function is\r
-                * something the user may have manually entered.  Given this,\r
-                * the URI string is probably unescaped or improperly escaped.\r
-                * This function will attempt to properly escape the URI by\r
-                * using forceEscape().  The result is that a toString() call\r
-                * on a URI that was created from unknownToURI() may not match\r
-                * the input string due to the difference in escaping.</p>\r
-                *\r
-                * @param unknown       a potental URI string that should be parsed\r
-                * and loaded into this object.\r
-                * @param defaultScheme if it is determined that the passed string\r
-                * looks like a URI, but it is missing the scheme part, this\r
-                * string will be used as the missing scheme.\r
-                * \r
-                * @return      true if the given string was successfully parsed into\r
-                * a valid URI object, false otherwise.\r
-                */\r
-               public function unknownToURI(unknown:String, defaultScheme:String = "http") : Boolean\r
-               {\r
-                       var temp:String;\r
-                       \r
-                       if (unknown.length == 0)\r
-                       {\r
-                               this.initialize();\r
-                               return false;\r
-                       }\r
-                       \r
-                       // Some users love the backslash key.  Fix it.\r
-                       unknown = unknown.replace(/\\/g, "/");\r
-                       \r
-                       // Check for any obviously missing scheme.\r
-                       if (unknown.length >= 2)\r
-                       {\r
-                               temp = unknown.substr(0, 2);\r
-                               if (temp == "//")\r
-                                       unknown = defaultScheme + ":" + unknown;\r
-                       }\r
-                       \r
-                       if (unknown.length >= 3)\r
-                       {\r
-                               temp = unknown.substr(0, 3);\r
-                               if (temp == "://")\r
-                                       unknown = defaultScheme + unknown;\r
-                       }\r
-\r
-                       // Try parsing it as a normal URI\r
-                       var uri:URI = new URI(unknown);\r
-               \r
-                       if (uri.isHierarchical() == false)\r
-                       {\r
-                               if (uri.scheme == UNKNOWN_SCHEME)\r
-                               {\r
-                                       this.initialize();\r
-                                       return false;\r
-                               }\r
-               \r
-                               // It's a non-hierarchical URI\r
-                               copyURI(uri);\r
-                               forceEscape();\r
-                               return true;\r
-                       }\r
-                       else if ((uri.scheme != UNKNOWN_SCHEME) &&\r
-                               (uri.scheme.length > 0))\r
-                       {\r
-                               if ( (uri.authority.length > 0) ||\r
-                                       (uri.scheme == "file") )\r
-                               {\r
-                                       // file://... URI\r
-                                       copyURI(uri);\r
-                                       forceEscape();  // ensure proper escaping\r
-                                       return true;\r
-                               }\r
-                               else if (uri.authority.length == 0 && uri.path.length == 0)\r
-                               {\r
-                                       // It's is an incomplete URI (eg "http://")\r
-                                       \r
-                                       setParts(uri.scheme, "", "", "", "", "");\r
-                                       return false;\r
-                               }\r
-                       }\r
-                       else\r
-                       {\r
-                               // Possible relative URI.  We can only detect relative URI's\r
-                               // that start with "." or "..".  If it starts with something\r
-                               // else, the parsing is ambiguous.\r
-                               var path:String = uri.path;\r
-               \r
-                               if (path == ".." || path == "." || \r
-                                       (path.length >= 3 && path.substr(0, 3) == "../") ||\r
-                                       (path.length >= 2 && path.substr(0, 2) == "./") )\r
-                               {\r
-                                       // This is a relative URI.\r
-                                       copyURI(uri);\r
-                                       forceEscape();\r
-                                       return true;\r
-                               }\r
-                       }\r
-               \r
-                       // Ok, it looks like we are just a normal URI missing the scheme.  Tack\r
-                       // on the scheme.\r
-                       uri = new URI(defaultScheme + "://" + unknown);\r
-               \r
-                       // Check to see if we are good now\r
-                       if (uri.scheme.length > 0 && uri.authority.length > 0)\r
-                       {\r
-                               // It was just missing the scheme.\r
-                               copyURI(uri);\r
-                               forceEscape();  // Make sure we are properly encoded.\r
-                               return true;\r
-                       }\r
-               \r
-                       // don't know what this is\r
-                       this.initialize();\r
-                       return false;\r
-               }\r
-               \r
-       } // end URI class\r
-} // end package
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/net/URIEncodingBitmap.as b/redakcja/static/filebrowser/uploadify/com/adobe/net/URIEncodingBitmap.as
deleted file mode 100644 (file)
index d786b33..0000000
+++ /dev/null
@@ -1,139 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.net\r
-{\r
-       import flash.utils.ByteArray;\r
-       \r
-       /**\r
-        * This class implements an efficient lookup table for URI\r
-        * character escaping.  This class is only needed if you\r
-        * create a derived class of URI to handle custom URI\r
-        * syntax.  This class is used internally by URI.\r
-        * \r
-        * @langversion ActionScript 3.0\r
-        * @playerversion Flash 9.0* \r
-        */\r
-       public class URIEncodingBitmap extends ByteArray\r
-       {\r
-               /**\r
-                * Constructor.  Creates an encoding bitmap using the given\r
-                * string of characters as the set of characters that need\r
-                * to be URI escaped.\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */\r
-               public function URIEncodingBitmap(charsToEscape:String) : void\r
-               {\r
-                       var i:int;\r
-                       var data:ByteArray = new ByteArray();\r
-                       \r
-                       // Initialize our 128 bits (16 bytes) to zero\r
-                       for (i = 0; i < 16; i++)\r
-                               this.writeByte(0);\r
-                               \r
-                       data.writeUTFBytes(charsToEscape);\r
-                       data.position = 0;\r
-                       \r
-                       while (data.bytesAvailable)\r
-                       {\r
-                               var c:int = data.readByte();\r
-                               \r
-                               if (c > 0x7f)\r
-                                       continue;  // only escape low bytes\r
-                                       \r
-                               var enc:int;\r
-                               this.position = (c >> 3);\r
-                               enc = this.readByte();\r
-                               enc |= 1 << (c & 0x7);\r
-                               this.position = (c >> 3);\r
-                               this.writeByte(enc);\r
-                       }\r
-               }\r
-               \r
-               /**\r
-                * Based on the data table contained in this object, check\r
-                * if the given character should be escaped.\r
-                * \r
-                * @param char  the character to be escaped.  Only the first\r
-                * character in the string is used.  Any other characters\r
-                * are ignored.\r
-                * \r
-                * @return      the integer value of the raw UTF8 character.  For\r
-                * example, if '%' is given, the return value is 37 (0x25).\r
-                * If the character given does not need to be escaped, the\r
-                * return value is zero.\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0 \r
-                */\r
-               public function ShouldEscape(char:String) : int\r
-               {\r
-                       var data:ByteArray = new ByteArray();\r
-                       var c:int, mask:int;\r
-                       \r
-                       // write the character into a ByteArray so\r
-                       // we can pull it out as a raw byte value.\r
-                       data.writeUTFBytes(char);\r
-                       data.position = 0;\r
-                       c = data.readByte();\r
-                       \r
-                       if (c & 0x80)\r
-                       {\r
-                               // don't escape high byte characters.  It can make international\r
-                               // URI's unreadable.  We just want to escape characters that would\r
-                               // make URI syntax ambiguous.\r
-                               return 0;\r
-                       }\r
-                       else if ((c < 0x1f) || (c == 0x7f))\r
-                       {\r
-                               // control characters must be escaped.\r
-                               return c;\r
-                       }\r
-                       \r
-                       this.position = (c >> 3);\r
-                       mask = this.readByte();\r
-                       \r
-                       if (mask & (1 << (c & 0x7)))\r
-                       {\r
-                               // we need to escape this, return the numeric value\r
-                               // of the character\r
-                               return c;\r
-                       }\r
-                       else\r
-                       {\r
-                               return 0;\r
-                       }\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/net/proxies/RFC2817Socket.as b/redakcja/static/filebrowser/uploadify/com/adobe/net/proxies/RFC2817Socket.as
deleted file mode 100644 (file)
index e73e9e7..0000000
+++ /dev/null
@@ -1,198 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-package com.adobe.net.proxies\r
-{\r
-       import flash.events.Event;\r
-       import flash.events.IOErrorEvent;\r
-       import flash.events.ProgressEvent;\r
-       import flash.net.Socket;\r
-\r
-       /**\r
-        * This class allows TCP socket connections through HTTP proxies in accordance with\r
-        * RFC 2817:\r
-        * \r
-        * ftp://ftp.rfc-editor.org/in-notes/rfc2817.txt\r
-        * \r
-        * It can also be used to make direct connections to a destination, as well. If you\r
-        * pass the host and port into the constructor, no proxy will be used. You can also\r
-        * call connect, passing in the host and the port, and if you didn't set the proxy\r
-        * info, a direct connection will be made. A proxy is only used after you have called\r
-        * the setProxyInfo function.\r
-        * \r
-        * The connection to and negotiation with the proxy is completely hidden. All the\r
-        * same events are thrown whether you are using a proxy or not, and the data you\r
-        * receive from the target server will look exact as it would if you were connected\r
-        * to it directly rather than through a proxy.\r
-        * \r
-        * @author Christian Cantrell\r
-        * \r
-        **/\r
-       public class RFC2817Socket\r
-               extends Socket\r
-       {\r
-               private var proxyHost:String = null;\r
-               private var host:String = null;\r
-               private var proxyPort:int = 0;\r
-               private var port:int = 0;\r
-               private var deferredEventHandlers:Object = new Object();\r
-               private var buffer:String = new String();\r
-\r
-               /**\r
-                * Construct a new RFC2817Socket object. If you pass in the host and the port,\r
-                * no proxy will be used. If you want to use a proxy, instantiate with no\r
-                * arguments, call setProxyInfo, then call connect.\r
-                **/\r
-               public function RFC2817Socket(host:String = null, port:int = 0)\r
-               {\r
-                       super(host, port);\r
-               }\r
-               \r
-               /**\r
-                * Set the proxy host and port number. Your connection will only proxied if\r
-                * this function has been called.\r
-                **/\r
-               public function setProxyInfo(host:String, port:int):void\r
-               {\r
-                       this.proxyHost = host;\r
-                       this.proxyPort = port;\r
-\r
-                       var deferredSocketDataHandler:Object = this.deferredEventHandlers[ProgressEvent.SOCKET_DATA];\r
-                       var deferredConnectHandler:Object = this.deferredEventHandlers[Event.CONNECT];\r
-\r
-                       if (deferredSocketDataHandler != null)\r
-                       {\r
-                               super.removeEventListener(ProgressEvent.SOCKET_DATA, deferredSocketDataHandler.listener, deferredSocketDataHandler.useCapture);\r
-                       }\r
-\r
-                       if (deferredConnectHandler != null)\r
-                       {\r
-                               super.removeEventListener(Event.CONNECT, deferredConnectHandler.listener, deferredConnectHandler.useCapture);\r
-                       }\r
-               }\r
-               \r
-               /**\r
-                * Connect to the specified host over the specified port. If you want your\r
-                * connection proxied, call the setProxyInfo function first.\r
-                **/\r
-               public override function connect(host:String, port:int):void\r
-               {\r
-                       if (this.proxyHost == null)\r
-                       {\r
-                               this.redirectConnectEvent();\r
-                               this.redirectSocketDataEvent();\r
-                               super.connect(host, port);\r
-                       }\r
-                       else\r
-                       {\r
-                               this.host = host;\r
-                               this.port = port;\r
-                               super.addEventListener(Event.CONNECT, this.onConnect);\r
-                               super.addEventListener(ProgressEvent.SOCKET_DATA, this.onSocketData);\r
-                               super.connect(this.proxyHost, this.proxyPort);\r
-                       }\r
-               }\r
-\r
-               private function onConnect(event:Event):void\r
-               {\r
-                       this.writeUTFBytes("CONNECT "+this.host+":"+this.port+" HTTP/1.1\n\n");\r
-                       this.flush();\r
-                       this.redirectConnectEvent();\r
-               }\r
-               \r
-               private function onSocketData(event:ProgressEvent):void\r
-               {\r
-                       while (this.bytesAvailable != 0)\r
-                       {\r
-                               this.buffer += this.readUTFBytes(1);\r
-                               if (this.buffer.search(/\r?\n\r?\n$/) != -1)\r
-                               {\r
-                                       this.checkResponse(event);\r
-                                       break;\r
-                               }\r
-                       }\r
-               }\r
-               \r
-               private function checkResponse(event:ProgressEvent):void\r
-               {\r
-                       var responseCode:String = this.buffer.substr(this.buffer.indexOf(" ")+1, 3);\r
-\r
-                       if (responseCode.search(/^2/) == -1)\r
-                       {\r
-                               var ioError:IOErrorEvent = new IOErrorEvent(IOErrorEvent.IO_ERROR);\r
-                               ioError.text = "Error connecting to the proxy ["+this.proxyHost+"] on port ["+this.proxyPort+"]: " + this.buffer;\r
-                               this.dispatchEvent(ioError);\r
-                       }\r
-                       else\r
-                       {\r
-                               this.redirectSocketDataEvent();\r
-                               this.dispatchEvent(new Event(Event.CONNECT));\r
-                               if (this.bytesAvailable > 0)\r
-                               {\r
-                                       this.dispatchEvent(event);\r
-                               }\r
-                       }\r
-                       this.buffer = null;\r
-               }\r
-               \r
-               private function redirectConnectEvent():void\r
-               {\r
-                       super.removeEventListener(Event.CONNECT, onConnect);\r
-                       var deferredEventHandler:Object = this.deferredEventHandlers[Event.CONNECT];\r
-                       if (deferredEventHandler != null)\r
-                       {\r
-                               super.addEventListener(Event.CONNECT, deferredEventHandler.listener, deferredEventHandler.useCapture, deferredEventHandler.priority, deferredEventHandler.useWeakReference);                    \r
-                       }\r
-               }\r
-               \r
-               private function redirectSocketDataEvent():void\r
-               {\r
-                       super.removeEventListener(ProgressEvent.SOCKET_DATA, onSocketData);\r
-                       var deferredEventHandler:Object = this.deferredEventHandlers[ProgressEvent.SOCKET_DATA];\r
-                       if (deferredEventHandler != null)\r
-                       {\r
-                               super.addEventListener(ProgressEvent.SOCKET_DATA, deferredEventHandler.listener, deferredEventHandler.useCapture, deferredEventHandler.priority, deferredEventHandler.useWeakReference);                        \r
-                       }\r
-               }\r
-               \r
-               public override function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int=0.0, useWeakReference:Boolean=false):void\r
-               {\r
-                       if (type == Event.CONNECT || type == ProgressEvent.SOCKET_DATA)\r
-                       {\r
-                               this.deferredEventHandlers[type] = {listener:listener,useCapture:useCapture, priority:priority, useWeakReference:useWeakReference};\r
-                       }\r
-                       else\r
-                       {\r
-                               super.addEventListener(type, listener, useCapture, priority, useWeakReference);\r
-                       }\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/Database.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/Database.as
deleted file mode 100644 (file)
index 0ddeef5..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.adobe.protocols.dict\r
-{\r
-       public class Database\r
-       {\r
-               private var _name:String;\r
-               private var _description:String;\r
-\r
-               public function Database(name:String, description:String)\r
-               {\r
-                       this._name = name;\r
-                       this._description = description;\r
-               }\r
-\r
-               public function set name(name:String):void\r
-               {\r
-                       this._name = name;\r
-               }\r
-\r
-               public function get name():String\r
-               {\r
-                       return this._name;\r
-               }\r
-\r
-               public function set description(description:String):void\r
-               {\r
-                       this._description = description;\r
-               }\r
-\r
-               public function get description():String\r
-               {\r
-                       return this._description;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/Definition.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/Definition.as
deleted file mode 100644 (file)
index 934a330..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-package com.adobe.protocols.dict\r
-{\r
-       public class Definition\r
-       {\r
-               private var _definition:String;\r
-               private var _database:String;\r
-               private var _term:String;\r
-               \r
-               public function set definition(definition:String):void\r
-               {\r
-                       this._definition = definition;\r
-               }\r
-               \r
-               public function get definition():String\r
-               {\r
-                       return this._definition;\r
-               }\r
-\r
-               public function set database(database:String):void\r
-               {\r
-                       this._database = database;\r
-               }\r
-               \r
-               public function get database():String\r
-               {\r
-                       return this._database;\r
-               }\r
-\r
-               public function set term(term:String):void\r
-               {\r
-                       this._term = term;\r
-               }\r
-               \r
-               public function get term():String\r
-               {\r
-                       return this._term;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/Dict.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/Dict.as
deleted file mode 100644 (file)
index 07d2530..0000000
+++ /dev/null
@@ -1,328 +0,0 @@
-package com.adobe.protocols.dict\r
-{\r
-       import com.adobe.protocols.dict.events.*;\r
-       import com.adobe.protocols.dict.util.*;\r
-       \r
-       import flash.events.Event;\r
-       import flash.events.EventDispatcher;\r
-       import flash.events.IOErrorEvent;\r
-       import flash.events.ProgressEvent;\r
-       import flash.events.SecurityErrorEvent;\r
-       import flash.net.Socket;\r
-       import mx.rpc.http.HTTPService;\r
-       import mx.rpc.events.ResultEvent;\r
-       import mx.rpc.events.FaultEvent;\r
-       import flash.xml.XMLNode;\r
-       import mx.utils.StringUtil;\r
-\r
-       public class Dict\r
-               extends EventDispatcher\r
-       {\r
-               // Event type names.\r
-               public static var CONNECTED:String = "connected";\r
-               public static var DISCONNECTED:String = "disconnected";\r
-               public static var IO_ERROR:String = IOErrorEvent.IO_ERROR;\r
-               public static var ERROR:String = "error";\r
-               public static var SERVERS:String = "servers";\r
-               public static var DATABASES:String = "databases";\r
-               public static var MATCH_STRATEGIES:String = "matchStrategies";\r
-               public static var DEFINITION:String = "definition";\r
-               public static var DEFINITION_HEADER:String = "definitionHeader";\r
-               public static var MATCH:String = "match";\r
-               public static var NO_MATCH:String = "noMatch";\r
-\r
-               public static var FIRST_MATCH:uint = 0;\r
-               public static var ALL_DATABASES:uint = 1;\r
-\r
-               private var socket:SocketHelper;\r
-               \r
-               private var dbShortList:Boolean;\r
-\r
-               public function Dict()\r
-               {\r
-                       this.socket = new SocketHelper();\r
-                       this.socket.addEventListener(Event.CONNECT, connected);\r
-                       this.socket.addEventListener(Event.CLOSE, disconnected);\r
-                       this.socket.addEventListener(SocketHelper.COMPLETE_RESPONSE, incomingData);\r
-                       this.socket.addEventListener(IOErrorEvent.IO_ERROR, ioError);\r
-                       this.socket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityError);\r
-               }\r
-\r
-               public function connect(server:String, port:uint = 2628):void\r
-               {\r
-                       if (this.socket.connected)\r
-                       {\r
-                               this.socket.close();\r
-                       }\r
-                       this.socket.connect(server, port);\r
-               }\r
-\r
-               public function connectThroughProxy(proxyServer:String,\r
-                                                                                       proxyPort:int,\r
-                                                                                       server:String,\r
-                                                                                       port:uint = 2628):void\r
-               {\r
-                       if (this.socket.connected)\r
-                       {\r
-                               this.socket.close();\r
-                       }\r
-                       this.socket.setProxyInfo(proxyServer, proxyPort);\r
-                       this.socket.connect(server, port);\r
-               }\r
-\r
-               public function disconnect():void\r
-               {\r
-                       this.socket.close();\r
-                       this.disconnected(null);\r
-               }\r
-\r
-               public function getServers():void\r
-               {\r
-                       var http:HTTPService = new HTTPService();\r
-                       http.url = "http://luetzschena-stahmeln.de/dictd/xmllist.php";\r
-                       http.addEventListener(ResultEvent.RESULT, incomingServerXML);\r
-                       http.addEventListener(FaultEvent.FAULT, httpError);\r
-                       http.resultFormat = HTTPService.RESULT_FORMAT_E4X;\r
-                       http.send();\r
-               }\r
-\r
-               public function getDatabases(shortList:Boolean=true):void\r
-               {\r
-                       this.dbShortList = shortList;\r
-                       this.socket.writeUTFBytes("show db\r\n");\r
-                       this.socket.flush();\r
-               }\r
-\r
-               public function getMatchStrategies():void\r
-               {\r
-                       this.socket.writeUTFBytes("show strat\r\n");\r
-                       this.socket.flush();\r
-               }\r
-\r
-               public function match(database:String, term:String, scope:String="prefix"):void\r
-               {\r
-                       this.socket.writeUTFBytes("match " + database + " " + scope + " \"" + term + "\"\r\n");\r
-                       this.socket.flush();\r
-               }\r
-\r
-               public function define(database:String, term:String):void\r
-               {\r
-                       this.socket.writeUTFBytes("define " + database + " \"" + term + "\"\r\n");\r
-                       this.socket.flush();\r
-               }\r
-\r
-               public function lookup(term:String, scope:uint):void\r
-               {\r
-                       var flag:String;\r
-                       if (scope == Dict.ALL_DATABASES)\r
-                       {\r
-                               flag = "*";\r
-                       }\r
-                       else if (scope == Dict.FIRST_MATCH)\r
-                       {\r
-                               flag = "!";\r
-                       }\r
-                       this.socket.writeUTFBytes("define " + flag + " \"" + term + "\"\r\n");\r
-                       this.socket.flush();\r
-               }\r
-\r
-               //// Private functions ////\r
-\r
-               private function connected(event:Event):void\r
-               {\r
-               // Wait to dispatch an event until we get the 220 response.\r
-       }\r
-\r
-               private function disconnected(event:Event):void\r
-               {\r
-               dispatchEvent(new DisconnectedEvent());\r
-       }\r
-\r
-               private function incomingServerXML(event:ResultEvent):void\r
-               {\r
-                       var dictd:Namespace = new Namespace("http://www.luetzschena-stahmeln.de/dictd/");\r
-                       var result:XML = event.result as XML;\r
-                       var server:String, description:String;\r
-                       var servers:Array = new Array();\r
-                       for each (var serverNode:XML in result.dictd::server)\r
-                       {\r
-                               server = serverNode.dictd::dictdurl;\r
-                               description = serverNode.dictd::description;\r
-                               if (StringUtil.trim(server).length != 0 &&\r
-                                       StringUtil.trim(description).length != 0)\r
-                               {\r
-                                       var dServer:DictionaryServer = new DictionaryServer();\r
-                                       dServer.server = server.replace("dict://", "");\r
-                                       dServer.description = description;\r
-                                       servers.push(dServer);\r
-                               }\r
-                       }\r
-                       var dEvent:DictionaryServerEvent = new DictionaryServerEvent();\r
-                       dEvent.servers = servers;\r
-                       dispatchEvent(dEvent);\r
-               }\r
-\r
-               private function incomingData(event:CompleteResponseEvent):void\r
-               {                       \r
-                       var rawResponse:String = event.response;\r
-                       var response:Response = this.parseRawResponse(rawResponse);\r
-                       var responseCode:uint = response.code;\r
-                       if (responseCode == 552) // no matches\r
-                       {\r
-                               throwNoMatchEvent(response);\r
-                       }\r
-                       else if (responseCode >= 400 && responseCode <= 599) // error\r
-                       {\r
-                               throwErrorEvent(response);\r
-                       }\r
-                       else if (responseCode == 220) // successful connection\r
-                       {\r
-                               dispatchEvent(new ConnectedEvent());\r
-                       }\r
-                       else if (responseCode == 110) // databases are being returned\r
-                       {\r
-                               throwDatabasesEvent(response);                          \r
-                       }\r
-                       else if (responseCode == 111) // matches strategies\r
-                       {\r
-                               throwMatchStrategiesEvent(response);\r
-                       }\r
-                       else if (responseCode == 152) // matches\r
-                       {\r
-                               throwMatchEvent(response);\r
-                       }\r
-                       else if (responseCode == 150)\r
-                       {\r
-                               throwDefinitionHeaderEvent(response);\r
-                       }\r
-                       else if (responseCode == 151)\r
-                       {\r
-                               throwDefinitionEvent(response);\r
-                       }\r
-       }\r
-\r
-       private function ioError(event:IOErrorEvent):void\r
-       {\r
-                       dispatchEvent(event);\r
-       }\r
-\r
-       private function httpError(event:FaultEvent):void\r
-       {\r
-               trace("httpError!");\r
-       }\r
-\r
-       private function securityError(event:SecurityErrorEvent):void\r
-       {\r
-               trace("security error!");\r
-               trace(event.text);\r
-       }\r
-\r
-       // Dispatch new events.\r
-\r
-       private function throwDatabasesEvent(response:Response):void\r
-       {\r
-                       var databases:Array = new Array();\r
-                       var responseArray:Array = response.body.split("\r\n");\r
-               for each (var line:String in responseArray)\r
-               {\r
-                       var name:String = line.substring(0, line.indexOf(" "));\r
-                       if (name == "--exit--")\r
-                       {\r
-                               if (this.dbShortList)\r
-                               {\r
-                                       break;\r
-                               }\r
-                               continue;\r
-                       }\r
-                       var description:String = line.substring(line.indexOf(" ")+1, line.length).replace(/\"/g,"");\r
-                       databases.push(new Database(name, description));\r
-               }\r
-               var event:DatabaseEvent = new DatabaseEvent();\r
-               event.databases = databases;\r
-               dispatchEvent(event);\r
-       }\r
-\r
-       private function throwMatchStrategiesEvent(response:Response):void\r
-       {\r
-                       var strategies:Array = new Array();\r
-                       var responseArray:Array = response.body.split("\r\n");\r
-               for each (var line:String in responseArray)\r
-               {\r
-                       var name:String = line.substring(0, line.indexOf(" "));\r
-                       var description:String = line.substring(line.indexOf(" ")+1, line.length).replace(/\"/g,"");\r
-                       strategies.push(new MatchStrategy(name, description));\r
-               }\r
-               var event:MatchStrategiesEvent = new MatchStrategiesEvent();\r
-               event.strategies = strategies;\r
-               dispatchEvent(event);\r
-       }\r
-\r
-       private function throwMatchEvent(response:Response):void\r
-       {\r
-                       var matches:Array = new Array();\r
-                       var responseArray:Array = response.body.split("\r\n");\r
-               for each (var line:String in responseArray)\r
-               {\r
-                       var match:String = line.substring(line.indexOf(" ")+1, line.length).replace(/\"/g,"");\r
-                       matches.push(match);\r
-               }\r
-               var event:MatchEvent = new MatchEvent();\r
-               event.matches = matches;\r
-               dispatchEvent(event);\r
-       }\r
-\r
-       private function throwErrorEvent(response:Response):void\r
-       {\r
-               var event:ErrorEvent = new ErrorEvent();\r
-               event.code = response.code;\r
-               event.message = response.headerText;\r
-                       dispatchEvent(event);\r
-       }\r
-\r
-       private function throwNoMatchEvent(response:Response):void\r
-       {\r
-                       dispatchEvent(new NoMatchEvent());\r
-       }\r
-\r
-       private function throwDefinitionHeaderEvent(response:Response):void\r
-       {\r
-                       var event:DefinitionHeaderEvent = new DefinitionHeaderEvent();\r
-                       event.definitionCount = uint(response.headerText.substring(0, response.headerText.indexOf(" ")));\r
-                       dispatchEvent(event);\r
-       }\r
-\r
-       private function throwDefinitionEvent(response:Response):void\r
-       {\r
-               var event:DefinitionEvent = new DefinitionEvent();\r
-               var def:Definition = new Definition();\r
-               var headerText:String = response.headerText;\r
-               var tokens:Array = headerText.match(/"[^"]+"/g);\r
-               def.term = String(tokens[0]).replace(/"/g, "");\r
-               def.database = String(tokens[1]).replace(/"/g, "");\r
-               def.definition = response.body;\r
-               event.definition = def;\r
-                       dispatchEvent(event);\r
-       }\r
-\r
-       private function parseRawResponse(rawResponse:String):Response\r
-       {\r
-               var response:Response = new Response();\r
-               var fullHeader:String;\r
-               if (rawResponse.indexOf("\r\n") != -1)\r
-               {\r
-                       fullHeader = rawResponse.substring(0, rawResponse.indexOf("\r\n"));\r
-               }\r
-               else\r
-               {\r
-                       fullHeader = rawResponse;\r
-               }\r
-               var responseCodeMatch:Array = fullHeader.match(/^\d{3}/);\r
-               response.code = uint(responseCodeMatch[0]);\r
-               response.headerText = fullHeader.substring(fullHeader.indexOf(" ")+1, fullHeader.length);\r
-                       var body:String = rawResponse.substring(rawResponse.indexOf("\r\n")+2, rawResponse.length);\r
-                       body = body.replace(/\r\n\.\./, "\r\n.");\r
-                       response.body = body;\r
-               return response;\r
-       }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/DictionaryServer.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/DictionaryServer.as
deleted file mode 100644 (file)
index 422b603..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.adobe.protocols.dict\r
-{\r
-       public class DictionaryServer\r
-       {\r
-               private var _server:String;\r
-               private var _description:String;\r
-\r
-               public function set server(server:String):void\r
-               {\r
-                       this._server = server;\r
-               }\r
-               \r
-               public function get server():String\r
-               {\r
-                       return this._server;\r
-               }\r
-\r
-               public function set description(description:String):void\r
-               {\r
-                       this._description = description;\r
-               }\r
-               \r
-               public function get description():String\r
-               {\r
-                       return this._description;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/MatchStrategy.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/MatchStrategy.as
deleted file mode 100644 (file)
index 1e17da3..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.adobe.protocols.dict\r
-{\r
-       public class MatchStrategy\r
-       {\r
-               private var _name:String;\r
-               private var _description:String;\r
-\r
-               public function MatchStrategy(name:String, description:String)\r
-               {\r
-                       this._name = name;\r
-                       this._description = description;\r
-               }\r
-\r
-               public function set name(name:String):void\r
-               {\r
-                       this._name = name;\r
-               }\r
-\r
-               public function get name():String\r
-               {\r
-                       return this._name;\r
-               }\r
-\r
-               public function set description(description:String):void\r
-               {\r
-                       this._description = description;\r
-               }\r
-\r
-               public function get description():String\r
-               {\r
-                       return this._description;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/Response.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/Response.as
deleted file mode 100644 (file)
index 619a8e9..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-package com.adobe.protocols.dict\r
-{\r
-       public class Response\r
-       {\r
-               private var _code:uint;\r
-               private var _headerText:String;\r
-               private var _body:String;\r
-\r
-               public function set code(code:uint):void\r
-               {\r
-                       this._code = code;\r
-               }\r
-\r
-               public function set headerText(headerText:String):void\r
-               {\r
-                       this._headerText = headerText;\r
-               }\r
-\r
-               public function set body(body:String):void\r
-               {\r
-                       this._body = body;\r
-               }\r
-\r
-               public function get code():uint\r
-               {\r
-                       return this._code;\r
-               }\r
-\r
-               public function get headerText():String\r
-               {\r
-                       return this._headerText;\r
-               }\r
-\r
-               public function get body():String\r
-               {\r
-                       return this._body;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/ConnectedEvent.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/ConnectedEvent.as
deleted file mode 100644 (file)
index c4a4145..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class ConnectedEvent extends Event\r
-       {\r
-               public function ConnectedEvent()\r
-               {\r
-                       super(Dict.CONNECTED);\r
-               }\r
-               \r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DatabaseEvent.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DatabaseEvent.as
deleted file mode 100644 (file)
index fdd2cc1..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class DatabaseEvent\r
-               extends Event\r
-       {\r
-               private var _databases:Array;\r
-               \r
-               public function DatabaseEvent()\r
-               {\r
-                       super(Dict.DATABASES);\r
-               }\r
-               \r
-               public function set databases(databases:Array):void\r
-               {\r
-                       this._databases = databases;\r
-               }\r
-               \r
-               public function get databases():Array\r
-               {\r
-                       return this._databases;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionEvent.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionEvent.as
deleted file mode 100644 (file)
index 8107173..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-       import com.adobe.protocols.dict.Definition;\r
-\r
-       public class DefinitionEvent\r
-               extends Event\r
-       {\r
-               private var _definition:Definition;\r
-               \r
-               public function DefinitionEvent()\r
-               {\r
-                       super(Dict.DEFINITION);\r
-               }\r
-               \r
-               public function set definition(definition:Definition):void\r
-               {\r
-                       this._definition = definition;\r
-               }\r
-               \r
-               public function get definition():Definition\r
-               {\r
-                       return this._definition;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as
deleted file mode 100644 (file)
index e77c402..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class DefinitionHeaderEvent\r
-               extends Event\r
-       {\r
-               private var _definitionCount:uint;\r
-               \r
-               public function DefinitionHeaderEvent()\r
-               {\r
-                       super(Dict.DEFINITION_HEADER);\r
-               }\r
-               \r
-               public function set definitionCount(definitionCount:uint):void\r
-               {\r
-                       this._definitionCount = definitionCount;\r
-               }\r
-               \r
-               public function get definitionCount():uint\r
-               {\r
-                       return this._definitionCount;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DictionaryServerEvent.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DictionaryServerEvent.as
deleted file mode 100644 (file)
index 9b406e9..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class DictionaryServerEvent\r
-               extends Event\r
-       {\r
-               private var _servers:Array;\r
-               \r
-               public function DictionaryServerEvent()\r
-               {\r
-                       super(Dict.SERVERS);\r
-               }\r
-               \r
-               public function set servers(servers:Array):void\r
-               {\r
-                       this._servers = servers;\r
-               }\r
-               \r
-               public function get servers():Array\r
-               {\r
-                       return this._servers;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DisconnectedEvent.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DisconnectedEvent.as
deleted file mode 100644 (file)
index 485b3ed..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class DisconnectedEvent extends Event\r
-       {\r
-               public function DisconnectedEvent()\r
-               {\r
-                       super(Dict.DISCONNECTED);\r
-               }\r
-               \r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/ErrorEvent.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/ErrorEvent.as
deleted file mode 100644 (file)
index 9e5fc7a..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-       \r
-       public class ErrorEvent\r
-               extends Event\r
-       {\r
-               private var _code:uint;\r
-               private var _message:String;\r
-               \r
-               public function ErrorEvent()\r
-               {\r
-                       super(Dict.ERROR);\r
-               }\r
-\r
-               public function set code(code:uint):void\r
-               {\r
-                       this._code = code;\r
-               }\r
-\r
-               public function set message(message:String):void\r
-               {\r
-                       this._message = message;\r
-               }\r
-\r
-               public function get code():uint\r
-               {\r
-                       return this._code;\r
-               }\r
-\r
-               public function get message():String\r
-               {\r
-                       return this._message;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchEvent.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchEvent.as
deleted file mode 100644 (file)
index 65b8688..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class MatchEvent\r
-               extends Event\r
-       {\r
-               private var _matches:Array;\r
-               \r
-               public function MatchEvent()\r
-               {\r
-                       super(Dict.MATCH);\r
-               }\r
-               \r
-               public function set matches(matches:Array):void\r
-               {\r
-                       this._matches = matches;\r
-               }\r
-               \r
-               public function get matches():Array\r
-               {\r
-                       return this._matches;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchStrategiesEvent.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchStrategiesEvent.as
deleted file mode 100644 (file)
index 75b76f8..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class MatchStrategiesEvent\r
-               extends Event\r
-       {\r
-               private var _strategies:Array;\r
-               \r
-               public function MatchStrategiesEvent()\r
-               {\r
-                       super(Dict.MATCH_STRATEGIES);\r
-               }\r
-               \r
-               public function set strategies(strategies:Array):void\r
-               {\r
-                       this._strategies = strategies;\r
-               }\r
-               \r
-               public function get strategies():Array\r
-               {\r
-                       return this._strategies;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/NoMatchEvent.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/events/NoMatchEvent.as
deleted file mode 100644 (file)
index 894d1ae..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.adobe.protocols.dict.events\r
-{\r
-       import flash.events.Event;\r
-       import com.adobe.protocols.dict.Dict;\r
-\r
-       public class NoMatchEvent\r
-               extends Event\r
-       {\r
-               public function NoMatchEvent()\r
-               {\r
-                       super(Dict.NO_MATCH);\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/util/CompleteResponseEvent.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/util/CompleteResponseEvent.as
deleted file mode 100644 (file)
index fc552f1..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.adobe.protocols.dict.util\r
-{\r
-       import flash.events.Event;\r
-\r
-       public class CompleteResponseEvent\r
-               extends Event\r
-       {\r
-               private var _response:String;\r
-\r
-               public function CompleteResponseEvent()\r
-               {\r
-                       super(SocketHelper.COMPLETE_RESPONSE);\r
-               }\r
-\r
-               public function set response(response:String):void\r
-               {\r
-                       this._response = response;\r
-               }\r
-               \r
-               public function get response():String\r
-               {\r
-                       return this._response;\r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/util/SocketHelper.as b/redakcja/static/filebrowser/uploadify/com/adobe/protocols/dict/util/SocketHelper.as
deleted file mode 100644 (file)
index feb494b..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-package com.adobe.protocols.dict.util\r
-{\r
-       import com.adobe.net.proxies.RFC2817Socket;\r
-       import flash.events.ProgressEvent;\r
-\r
-       public class SocketHelper\r
-               extends RFC2817Socket\r
-       {\r
-               private var terminator:String = "\r\n.\r\n";\r
-               private var buffer:String;\r
-               public static var COMPLETE_RESPONSE:String = "completeResponse";\r
-\r
-               public function SocketHelper()\r
-               {\r
-                       super();\r
-                       buffer = new String();\r
-                       addEventListener(ProgressEvent.SOCKET_DATA, incomingData);\r
-               }\r
-\r
-               private function incomingData(event:ProgressEvent):void\r
-               {\r
-                       buffer += readUTFBytes(bytesAvailable);\r
-                       buffer = buffer.replace(/250[^\r\n]+\r\n/, ""); // Get rid of all 250s. Don't need them.\r
-                       var codeStr:String = buffer.substring(0, 3);\r
-                       if (!isNaN(parseInt(codeStr)))\r
-                       {\r
-                               var code:uint = uint(codeStr);\r
-                               if (code == 150 || code >= 200)\r
-                               {\r
-                                       buffer = buffer.replace("\r\n", this.terminator);\r
-                               }\r
-                       }\r
-\r
-                       while (buffer.indexOf(this.terminator) != -1)\r
-                       {\r
-                               var chunk:String = buffer.substring(0, buffer.indexOf(this.terminator));\r
-                               buffer = buffer.substring(chunk.length + this.terminator.length, buffer.length);\r
-                               throwResponseEvent(chunk);\r
-                       }\r
-               }\r
-               \r
-               private function throwResponseEvent(response:String):void\r
-               {\r
-                       var responseEvent:CompleteResponseEvent = new CompleteResponseEvent();\r
-                       responseEvent.response = response;\r
-                       dispatchEvent(responseEvent);                   \r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSON.as b/redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSON.as
deleted file mode 100644 (file)
index bfee6d9..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.serialization.json {\r
-\r
-       /**\r
-        * This class provides encoding and decoding of the JSON format.\r
-        *\r
-        * Example usage:\r
-        * <code>\r
-        *              // create a JSON string from an internal object\r
-        *              JSON.encode( myObject );\r
-        *\r
-        *              // read a JSON string into an internal object\r
-        *              var myObject:Object = JSON.decode( jsonString );\r
-        *      </code>\r
-        */\r
-       public class JSON {\r
-       \r
-       \r
-               /**\r
-                * Encodes a object into a JSON string.\r
-                *\r
-                * @param o The object to create a JSON string for\r
-                * @return the JSON string representing o\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public static function encode( o:Object ):String {\r
-                       \r
-                       var encoder:JSONEncoder = new JSONEncoder( o );\r
-                       return encoder.getString();\r
-               \r
-               }\r
-               \r
-               /**\r
-                * Decodes a JSON string into a native object.\r
-                * \r
-                * @param s The JSON string representing the object\r
-                * @return A native object as specified by s\r
-                * @throw JSONParseError\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public static function decode( s:String ):* {\r
-                       \r
-                       var decoder:JSONDecoder = new JSONDecoder( s )\r
-                       return decoder.getValue();\r
-                       \r
-               }\r
-       \r
-       }\r
-\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONDecoder.as b/redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONDecoder.as
deleted file mode 100644 (file)
index 82ade19..0000000
+++ /dev/null
@@ -1,221 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.serialization.json {\r
-\r
-       public class JSONDecoder {\r
-               \r
-               /** The value that will get parsed from the JSON string */\r
-               private var value:*;\r
-               \r
-               /** The tokenizer designated to read the JSON string */\r
-               private var tokenizer:JSONTokenizer;\r
-               \r
-               /** The current token from the tokenizer */\r
-               private var token:JSONToken;\r
-               \r
-               /**\r
-                * Constructs a new JSONDecoder to parse a JSON string \r
-                * into a native object.\r
-                *\r
-                * @param s The JSON string to be converted\r
-                *              into a native object\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function JSONDecoder( s:String ) {\r
-                       \r
-                       tokenizer = new JSONTokenizer( s );\r
-                       \r
-                       nextToken();\r
-                       value = parseValue();\r
-               }\r
-               \r
-               /**\r
-                * Gets the internal object that was created by parsing\r
-                * the JSON string passed to the constructor.\r
-                *\r
-                * @return The internal object representation of the JSON\r
-                *              string that was passed to the constructor\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function getValue():* {\r
-                       return value;\r
-               }\r
-               \r
-               /**\r
-                * Returns the next token from the tokenzier reading\r
-                * the JSON string\r
-                */\r
-               private function nextToken():JSONToken {\r
-                       return token = tokenizer.getNextToken();\r
-               }\r
-               \r
-               /**\r
-                * Attempt to parse an array\r
-                */\r
-               private function parseArray():Array {\r
-                       // create an array internally that we're going to attempt\r
-                       // to parse from the tokenizer\r
-                       var a:Array = new Array();\r
-                       \r
-                       // grab the next token from the tokenizer to move\r
-                       // past the opening [\r
-                       nextToken();\r
-                       \r
-                       // check to see if we have an empty array\r
-                       if ( token.type == JSONTokenType.RIGHT_BRACKET ) {\r
-                               // we're done reading the array, so return it\r
-                               return a;\r
-                       }\r
-                       \r
-                       // deal with elements of the array, and use an "infinite"\r
-                       // loop because we could have any amount of elements\r
-                       while ( true ) {\r
-                               // read in the value and add it to the array\r
-                               a.push ( parseValue() );\r
-                       \r
-                               // after the value there should be a ] or a ,\r
-                               nextToken();\r
-                               \r
-                               if ( token.type == JSONTokenType.RIGHT_BRACKET ) {\r
-                                       // we're done reading the array, so return it\r
-                                       return a;\r
-                               } else if ( token.type == JSONTokenType.COMMA ) {\r
-                                       // move past the comma and read another value\r
-                                       nextToken();\r
-                               } else {\r
-                                       tokenizer.parseError( "Expecting ] or , but found " + token.value );\r
-                               }\r
-                       }\r
-            return null;\r
-               }\r
-               \r
-               /**\r
-                * Attempt to parse an object\r
-                */\r
-               private function parseObject():Object {\r
-                       // create the object internally that we're going to\r
-                       // attempt to parse from the tokenizer\r
-                       var o:Object = new Object();\r
-                                               \r
-                       // store the string part of an object member so\r
-                       // that we can assign it a value in the object\r
-                       var key:String\r
-                       \r
-                       // grab the next token from the tokenizer\r
-                       nextToken();\r
-                       \r
-                       // check to see if we have an empty object\r
-                       if ( token.type == JSONTokenType.RIGHT_BRACE ) {\r
-                               // we're done reading the object, so return it\r
-                               return o;\r
-                       }\r
-                       \r
-                       // deal with members of the object, and use an "infinite"\r
-                       // loop because we could have any amount of members\r
-                       while ( true ) {\r
-                       \r
-                               if ( token.type == JSONTokenType.STRING ) {\r
-                                       // the string value we read is the key for the object\r
-                                       key = String( token.value );\r
-                                       \r
-                                       // move past the string to see what's next\r
-                                       nextToken();\r
-                                       \r
-                                       // after the string there should be a :\r
-                                       if ( token.type == JSONTokenType.COLON ) {\r
-                                               \r
-                                               // move past the : and read/assign a value for the key\r
-                                               nextToken();\r
-                                               o[key] = parseValue();  \r
-                                               \r
-                                               // move past the value to see what's next\r
-                                               nextToken();\r
-                                               \r
-                                               // after the value there's either a } or a ,\r
-                                               if ( token.type == JSONTokenType.RIGHT_BRACE ) {\r
-                                                       // // we're done reading the object, so return it\r
-                                                       return o;\r
-                                                       \r
-                                               } else if ( token.type == JSONTokenType.COMMA ) {\r
-                                                       // skip past the comma and read another member\r
-                                                       nextToken();\r
-                                               } else {\r
-                                                       tokenizer.parseError( "Expecting } or , but found " + token.value );\r
-                                               }\r
-                                       } else {\r
-                                               tokenizer.parseError( "Expecting : but found " + token.value );\r
-                                       }\r
-                               } else {\r
-                                       tokenizer.parseError( "Expecting string but found " + token.value );\r
-                               }\r
-                       }\r
-            return null;\r
-               }\r
-               \r
-               /**\r
-                * Attempt to parse a value\r
-                */\r
-               private function parseValue():Object\r
-               {\r
-                       // Catch errors when the input stream ends abruptly\r
-                       if ( token == null )\r
-                       {\r
-                               tokenizer.parseError( "Unexpected end of input" );\r
-                       }\r
-                                       \r
-                       switch ( token.type ) {\r
-                               case JSONTokenType.LEFT_BRACE:\r
-                                       return parseObject();\r
-                                       \r
-                               case JSONTokenType.LEFT_BRACKET:\r
-                                       return parseArray();\r
-                                       \r
-                               case JSONTokenType.STRING:\r
-                               case JSONTokenType.NUMBER:\r
-                               case JSONTokenType.TRUE:\r
-                               case JSONTokenType.FALSE:\r
-                               case JSONTokenType.NULL:\r
-                                       return token.value;\r
-\r
-                               default:\r
-                                       tokenizer.parseError( "Unexpected " + token.value );\r
-                                       \r
-                       }\r
-            return null;\r
-               }\r
-       }\r
-}\r
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONEncoder.as b/redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONEncoder.as
deleted file mode 100644 (file)
index 44469d0..0000000
+++ /dev/null
@@ -1,299 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.serialization.json \r
-{\r
-\r
-       import flash.utils.describeType;\r
-\r
-       public class JSONEncoder {\r
-       \r
-               /** The string that is going to represent the object we're encoding */\r
-               private var jsonString:String;\r
-               \r
-               /**\r
-                * Creates a new JSONEncoder.\r
-                *\r
-                * @param o The object to encode as a JSON string\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function JSONEncoder( value:* ) {\r
-                       jsonString = convertToString( value );\r
-               \r
-               }\r
-               \r
-               /**\r
-                * Gets the JSON string from the encoder.\r
-                *\r
-                * @return The JSON string representation of the object\r
-                *              that was passed to the constructor\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function getString():String {\r
-                       return jsonString;\r
-               }\r
-               \r
-               /**\r
-                * Converts a value to it's JSON string equivalent.\r
-                *\r
-                * @param value The value to convert.  Could be any \r
-                *              type (object, number, array, etc)\r
-                */\r
-               private function convertToString( value:* ):String {\r
-                       \r
-                       // determine what value is and convert it based on it's type\r
-                       if ( value is String ) {\r
-                               \r
-                               // escape the string so it's formatted correctly\r
-                               return escapeString( value as String );\r
-                               \r
-                       } else if ( value is Number ) {\r
-                               \r
-                               // only encode numbers that finate\r
-                               return isFinite( value as Number) ? value.toString() : "null";\r
-\r
-                       } else if ( value is Boolean ) {\r
-                               \r
-                               // convert boolean to string easily\r
-                               return value ? "true" : "false";\r
-\r
-                       } else if ( value is Array ) {\r
-                       \r
-                               // call the helper method to convert an array\r
-                               return arrayToString( value as Array );\r
-                       \r
-                       } else if ( value is Object && value != null ) {\r
-                       \r
-                               // call the helper method to convert an object\r
-                               return objectToString( value );\r
-                       }\r
-            return "null";\r
-               }\r
-               \r
-               /**\r
-                * Escapes a string accoding to the JSON specification.\r
-                *\r
-                * @param str The string to be escaped\r
-                * @return The string with escaped special characters\r
-                *              according to the JSON specification\r
-                */\r
-               private function escapeString( str:String ):String {\r
-                       // create a string to store the string's jsonstring value\r
-                       var s:String = "";\r
-                       // current character in the string we're processing\r
-                       var ch:String;\r
-                       // store the length in a local variable to reduce lookups\r
-                       var len:Number = str.length;\r
-                       \r
-                       // loop over all of the characters in the string\r
-                       for ( var i:int = 0; i < len; i++ ) {\r
-                       \r
-                               // examine the character to determine if we have to escape it\r
-                               ch = str.charAt( i );\r
-                               switch ( ch ) {\r
-                               \r
-                                       case '"':       // quotation mark\r
-                                               s += "\\\"";\r
-                                               break;\r
-                                               \r
-                                       //case '/':     // solidus\r
-                                       //      s += "\\/";\r
-                                       //      break;\r
-                                               \r
-                                       case '\\':      // reverse solidus\r
-                                               s += "\\\\";\r
-                                               break;\r
-                                               \r
-                                       case '\b':      // bell\r
-                                               s += "\\b";\r
-                                               break;\r
-                                               \r
-                                       case '\f':      // form feed\r
-                                               s += "\\f";\r
-                                               break;\r
-                                               \r
-                                       case '\n':      // newline\r
-                                               s += "\\n";\r
-                                               break;\r
-                                               \r
-                                       case '\r':      // carriage return\r
-                                               s += "\\r";\r
-                                               break;\r
-                                               \r
-                                       case '\t':      // horizontal tab\r
-                                               s += "\\t";\r
-                                               break;\r
-                                               \r
-                                       default:        // everything else\r
-                                               \r
-                                               // check for a control character and escape as unicode\r
-                                               if ( ch < ' ' ) {\r
-                                                       // get the hex digit(s) of the character (either 1 or 2 digits)\r
-                                                       var hexCode:String = ch.charCodeAt( 0 ).toString( 16 );\r
-                                                       \r
-                                                       // ensure that there are 4 digits by adjusting\r
-                                                       // the # of zeros accordingly.\r
-                                                       var zeroPad:String = hexCode.length == 2 ? "00" : "000";\r
-                                                       \r
-                                                       // create the unicode escape sequence with 4 hex digits\r
-                                                       s += "\\u" + zeroPad + hexCode;\r
-                                               } else {\r
-                                               \r
-                                                       // no need to do any special encoding, just pass-through\r
-                                                       s += ch;\r
-                                                       \r
-                                               }\r
-                               }       // end switch\r
-                               \r
-                       }       // end for loop\r
-                                               \r
-                       return "\"" + s + "\"";\r
-               }\r
-               \r
-               /**\r
-                * Converts an array to it's JSON string equivalent\r
-                *\r
-                * @param a The array to convert\r
-                * @return The JSON string representation of <code>a</code>\r
-                */\r
-               private function arrayToString( a:Array ):String {\r
-                       // create a string to store the array's jsonstring value\r
-                       var s:String = "";\r
-                       \r
-                       // loop over the elements in the array and add their converted\r
-                       // values to the string\r
-                       for ( var i:int = 0; i < a.length; i++ ) {\r
-                               // when the length is 0 we're adding the first element so\r
-                               // no comma is necessary\r
-                               if ( s.length > 0 ) {\r
-                                       // we've already added an element, so add the comma separator\r
-                                       s += ","\r
-                               }\r
-                               \r
-                               // convert the value to a string\r
-                               s += convertToString( a[i] );   \r
-                       }\r
-                       \r
-                       // KNOWN ISSUE:  In ActionScript, Arrays can also be associative\r
-                       // objects and you can put anything in them, ie:\r
-                       //              myArray["foo"] = "bar";\r
-                       //\r
-                       // These properties aren't picked up in the for loop above because\r
-                       // the properties don't correspond to indexes.  However, we're\r
-                       // sort of out luck because the JSON specification doesn't allow\r
-                       // these types of array properties.\r
-                       //\r
-                       // So, if the array was also used as an associative object, there\r
-                       // may be some values in the array that don't get properly encoded.\r
-                       //\r
-                       // A possible solution is to instead encode the Array as an Object\r
-                       // but then it won't get decoded correctly (and won't be an\r
-                       // Array instance)\r
-                                               \r
-                       // close the array and return it's string value\r
-                       return "[" + s + "]";\r
-               }\r
-               \r
-               /**\r
-                * Converts an object to it's JSON string equivalent\r
-                *\r
-                * @param o The object to convert\r
-                * @return The JSON string representation of <code>o</code>\r
-                */\r
-               private function objectToString( o:Object ):String\r
-               {\r
-                       // create a string to store the object's jsonstring value\r
-                       var s:String = "";\r
-                       \r
-                       // determine if o is a class instance or a plain object\r
-                       var classInfo:XML = describeType( o );\r
-                       if ( classInfo.@name.toString() == "Object" )\r
-                       {\r
-                               // the value of o[key] in the loop below - store this \r
-                               // as a variable so we don't have to keep looking up o[key]\r
-                               // when testing for valid values to convert\r
-                               var value:Object;\r
-                               \r
-                               // loop over the keys in the object and add their converted\r
-                               // values to the string\r
-                               for ( var key:String in o )\r
-                               {\r
-                                       // assign value to a variable for quick lookup\r
-                                       value = o[key];\r
-                                       \r
-                                       // don't add function's to the JSON string\r
-                                       if ( value is Function )\r
-                                       {\r
-                                               // skip this key and try another\r
-                                               continue;\r
-                                       }\r
-                                       \r
-                                       // when the length is 0 we're adding the first item so\r
-                                       // no comma is necessary\r
-                                       if ( s.length > 0 ) {\r
-                                               // we've already added an item, so add the comma separator\r
-                                               s += ","\r
-                                       }\r
-                                       \r
-                                       s += escapeString( key ) + ":" + convertToString( value );\r
-                               }\r
-                       }\r
-                       else // o is a class instance\r
-                       {\r
-                               // Loop over all of the variables and accessors in the class and \r
-                               // serialize them along with their values.\r
-                               for each ( var v:XML in classInfo..*.( name() == "variable" || name() == "accessor" ) )\r
-                               {\r
-                                       // When the length is 0 we're adding the first item so\r
-                                       // no comma is necessary\r
-                                       if ( s.length > 0 ) {\r
-                                               // We've already added an item, so add the comma separator\r
-                                               s += ","\r
-                                       }\r
-                                       \r
-                                       s += escapeString( v.@name.toString() ) + ":" \r
-                                                       + convertToString( o[ v.@name ] );\r
-                               }\r
-                               \r
-                       }\r
-                       \r
-                       return "{" + s + "}";\r
-               }\r
-\r
-               \r
-       }\r
-       \r
-}\r
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONParseError.as b/redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONParseError.as
deleted file mode 100644 (file)
index 5aec1e3..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.serialization.json {\r
-\r
-       /**\r
-        *\r
-        *\r
-        */\r
-       public class JSONParseError extends Error       {\r
-       \r
-               /** The location in the string where the error occurred */\r
-               private var _location:int;\r
-               \r
-               /** The string in which the parse error occurred */\r
-               private var _text:String;\r
-       \r
-               /**\r
-                * Constructs a new JSONParseError.\r
-                *\r
-                * @param message The error message that occured during parsing\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function JSONParseError( message:String = "", location:int = 0, text:String = "") {\r
-                       super( message );\r
-                       name = "JSONParseError";\r
-                       _location = location;\r
-                       _text = text;\r
-               }\r
-\r
-               /**\r
-                * Provides read-only access to the location variable.\r
-                *\r
-                * @return The location in the string where the error occurred\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function get location():int {\r
-                       return _location;\r
-               }\r
-               \r
-               /**\r
-                * Provides read-only access to the text variable.\r
-                *\r
-                * @return The string in which the error occurred\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function get text():String {\r
-                       return _text;\r
-               }\r
-       }\r
-       \r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONToken.as b/redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONToken.as
deleted file mode 100644 (file)
index 258d63c..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.serialization.json {\r
-\r
-       public class JSONToken {\r
-       \r
-               private var _type:int;\r
-               private var _value:Object;\r
-               \r
-               /**\r
-                * Creates a new JSONToken with a specific token type and value.\r
-                *\r
-                * @param type The JSONTokenType of the token\r
-                * @param value The value of the token\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function JSONToken( type:int = -1 /* JSONTokenType.UNKNOWN */, value:Object = null ) {\r
-                       _type = type;\r
-                       _value = value;\r
-               }\r
-               \r
-               /**\r
-                * Returns the type of the token.\r
-                *\r
-                * @see com.adobe.serialization.json.JSONTokenType\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function get type():int {\r
-                       return _type;   \r
-               }\r
-               \r
-               /**\r
-                * Sets the type of the token.\r
-                *\r
-                * @see com.adobe.serialization.json.JSONTokenType\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function set type( value:int ):void {\r
-                       _type = value;  \r
-               }\r
-               \r
-               /**\r
-                * Gets the value of the token\r
-                *\r
-                * @see com.adobe.serialization.json.JSONTokenType\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function get value():Object {\r
-                       return _value;  \r
-               }\r
-               \r
-               /**\r
-                * Sets the value of the token\r
-                *\r
-                * @see com.adobe.serialization.json.JSONTokenType\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public function set value ( v:Object ):void {\r
-                       _value = v;     \r
-               }\r
-\r
-       }\r
-       \r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenType.as b/redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenType.as
deleted file mode 100644 (file)
index fceb3f0..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.serialization.json {\r
-\r
-       /**\r
-        * Class containing constant values for the different types\r
-        * of tokens in a JSON encoded string.\r
-        */\r
-       public class JSONTokenType {\r
-       \r
-               public static const UNKNOWN:int = -1;\r
-               \r
-               public static const COMMA:int = 0;\r
-               \r
-               public static const LEFT_BRACE:int = 1;\r
-               \r
-               public static const RIGHT_BRACE:int = 2;\r
-               \r
-               public static const LEFT_BRACKET:int = 3;\r
-               \r
-               public static const RIGHT_BRACKET:int = 4;\r
-               \r
-               public static const COLON:int = 6;\r
-               \r
-               public static const TRUE:int = 7;\r
-               \r
-               public static const FALSE:int = 8;\r
-               \r
-               public static const NULL:int = 9;\r
-               \r
-               public static const STRING:int = 10;\r
-               \r
-               public static const NUMBER:int = 11;\r
-               \r
-       }\r
-       \r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenizer.as b/redakcja/static/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenizer.as
deleted file mode 100644 (file)
index dc36bfc..0000000
+++ /dev/null
@@ -1,583 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.serialization.json {\r
-\r
-       public class JSONTokenizer {\r
-       \r
-               /** The object that will get parsed from the JSON string */\r
-               private var obj:Object;\r
-               \r
-               /** The JSON string to be parsed */\r
-               private var jsonString:String;\r
-               \r
-               /** The current parsing location in the JSON string */\r
-               private var loc:int;\r
-               \r
-               /** The current character in the JSON string during parsing */\r
-               private var ch:String;\r
-               \r
-               /**\r
-                * Constructs a new JSONDecoder to parse a JSON string \r
-                * into a native object.\r
-                *\r
-                * @param s The JSON string to be converted\r
-                *              into a native object\r
-                */\r
-               public function JSONTokenizer( s:String ) {\r
-                       jsonString = s;\r
-                       loc = 0;\r
-                       \r
-                       // prime the pump by getting the first character\r
-                       nextChar();\r
-               }\r
-               \r
-               /**\r
-                * Gets the next token in the input sting and advances\r
-               * the character to the next character after the token\r
-                */\r
-               public function getNextToken():JSONToken {\r
-                       var token:JSONToken = new JSONToken();\r
-                       \r
-                       // skip any whitespace / comments since the last \r
-                       // token was read\r
-                       skipIgnored();\r
-                                               \r
-                       // examine the new character and see what we have...\r
-                       switch ( ch ) {\r
-                               \r
-                               case '{':\r
-                                       token.type = JSONTokenType.LEFT_BRACE;\r
-                                       token.value = '{';\r
-                                       nextChar();\r
-                                       break\r
-                                       \r
-                               case '}':\r
-                                       token.type = JSONTokenType.RIGHT_BRACE;\r
-                                       token.value = '}';\r
-                                       nextChar();\r
-                                       break\r
-                                       \r
-                               case '[':\r
-                                       token.type = JSONTokenType.LEFT_BRACKET;\r
-                                       token.value = '[';\r
-                                       nextChar();\r
-                                       break\r
-                                       \r
-                               case ']':\r
-                                       token.type = JSONTokenType.RIGHT_BRACKET;\r
-                                       token.value = ']';\r
-                                       nextChar();\r
-                                       break\r
-                               \r
-                               case ',':\r
-                                       token.type = JSONTokenType.COMMA;\r
-                                       token.value = ',';\r
-                                       nextChar();\r
-                                       break\r
-                                       \r
-                               case ':':\r
-                                       token.type = JSONTokenType.COLON;\r
-                                       token.value = ':';\r
-                                       nextChar();\r
-                                       break;\r
-                                       \r
-                               case 't': // attempt to read true\r
-                                       var possibleTrue:String = "t" + nextChar() + nextChar() + nextChar();\r
-                                       \r
-                                       if ( possibleTrue == "true" ) {\r
-                                               token.type = JSONTokenType.TRUE;\r
-                                               token.value = true;\r
-                                               nextChar();\r
-                                       } else {\r
-                                               parseError( "Expecting 'true' but found " + possibleTrue );\r
-                                       }\r
-                                       \r
-                                       break;\r
-                                       \r
-                               case 'f': // attempt to read false\r
-                                       var possibleFalse:String = "f" + nextChar() + nextChar() + nextChar() + nextChar();\r
-                                       \r
-                                       if ( possibleFalse == "false" ) {\r
-                                               token.type = JSONTokenType.FALSE;\r
-                                               token.value = false;\r
-                                               nextChar();\r
-                                       } else {\r
-                                               parseError( "Expecting 'false' but found " + possibleFalse );\r
-                                       }\r
-                                       \r
-                                       break;\r
-                                       \r
-                               case 'n': // attempt to read null\r
-                               \r
-                                       var possibleNull:String = "n" + nextChar() + nextChar() + nextChar();\r
-                                       \r
-                                       if ( possibleNull == "null" ) {\r
-                                               token.type = JSONTokenType.NULL;\r
-                                               token.value = null;\r
-                                               nextChar();\r
-                                       } else {\r
-                                               parseError( "Expecting 'null' but found " + possibleNull );\r
-                                       }\r
-                                       \r
-                                       break;\r
-                                       \r
-                               case '"': // the start of a string\r
-                                       token = readString();\r
-                                       break;\r
-                                       \r
-                               default: \r
-                                       // see if we can read a number\r
-                                       if ( isDigit( ch ) || ch == '-' ) {\r
-                                               token = readNumber();\r
-                                       } else if ( ch == '' ) {\r
-                                               // check for reading past the end of the string\r
-                                               return null;\r
-                                       } else {                                                \r
-                                               // not sure what was in the input string - it's not\r
-                                               // anything we expected\r
-                                               parseError( "Unexpected " + ch + " encountered" );\r
-                                       }\r
-                       }\r
-                       \r
-                       return token;\r
-               }\r
-               \r
-               /**\r
-                * Attempts to read a string from the input string.  Places\r
-                * the character location at the first character after the\r
-                * string.  It is assumed that ch is " before this method is called.\r
-                *\r
-                * @return the JSONToken with the string value if a string could\r
-                *              be read.  Throws an error otherwise.\r
-                */\r
-               private function readString():JSONToken {\r
-                       // the token for the string we'll try to read\r
-                       var token:JSONToken = new JSONToken();\r
-                       token.type = JSONTokenType.STRING;\r
-                       \r
-                       // the string to store the string we'll try to read\r
-                       var string:String = "";\r
-                       \r
-                       // advance past the first "\r
-                       nextChar();\r
-                       \r
-                       while ( ch != '"' && ch != '' ) {\r
-                                                               \r
-                               // unescape the escape sequences in the string\r
-                               if ( ch == '\\' ) {\r
-                                       \r
-                                       // get the next character so we know what\r
-                                       // to unescape\r
-                                       nextChar();\r
-                                       \r
-                                       switch ( ch ) {\r
-                                               \r
-                                               case '"': // quotation mark\r
-                                                       string += '"';\r
-                                                       break;\r
-                                               \r
-                                               case '/':       // solidus\r
-                                                       string += "/";\r
-                                                       break;\r
-                                                       \r
-                                               case '\\':      // reverse solidus\r
-                                                       string += '\\';\r
-                                                       break;\r
-                                                       \r
-                                               case 'b':       // bell\r
-                                                       string += '\b';\r
-                                                       break;\r
-                                                       \r
-                                               case 'f':       // form feed\r
-                                                       string += '\f';\r
-                                                       break;\r
-                                                       \r
-                                               case 'n':       // newline\r
-                                                       string += '\n';\r
-                                                       break;\r
-                                                       \r
-                                               case 'r':       // carriage return\r
-                                                       string += '\r';\r
-                                                       break;\r
-                                                       \r
-                                               case 't':       // horizontal tab\r
-                                                       string += '\t'\r
-                                                       break;\r
-                                               \r
-                                               case 'u':\r
-                                                       // convert a unicode escape sequence\r
-                                                       // to it's character value - expecting\r
-                                                       // 4 hex digits\r
-                                                       \r
-                                                       // save the characters as a string we'll convert to an int\r
-                                                       var hexValue:String = "";\r
-                                                       \r
-                                                       // try to find 4 hex characters\r
-                                                       for ( var i:int = 0; i < 4; i++ ) {\r
-                                                               // get the next character and determine\r
-                                                               // if it's a valid hex digit or not\r
-                                                               if ( !isHexDigit( nextChar() ) ) {\r
-                                                                       parseError( " Excepted a hex digit, but found: " + ch );\r
-                                                               }\r
-                                                               // valid, add it to the value\r
-                                                               hexValue += ch;\r
-                                                       }\r
-                                                       \r
-                                                       // convert hexValue to an integer, and use that\r
-                                                       // integrer value to create a character to add\r
-                                                       // to our string.\r
-                                                       string += String.fromCharCode( parseInt( hexValue, 16 ) );\r
-                                                       \r
-                                                       break;\r
-                                       \r
-                                               default:\r
-                                                       // couldn't unescape the sequence, so just\r
-                                                       // pass it through\r
-                                                       string += '\\' + ch;\r
-                                               \r
-                                       }\r
-                                       \r
-                               } else {\r
-                                       // didn't have to unescape, so add the character to the string\r
-                                       string += ch;\r
-                                       \r
-                               }\r
-                               \r
-                               // move to the next character\r
-                               nextChar();\r
-                               \r
-                       }\r
-                       \r
-                       // we read past the end of the string without closing it, which\r
-                       // is a parse error\r
-                       if ( ch == '' ) {\r
-                               parseError( "Unterminated string literal" );\r
-                       }\r
-                       \r
-                       // move past the closing " in the input string\r
-                       nextChar();\r
-                       \r
-                       // attach to the string to the token so we can return it\r
-                       token.value = string;\r
-                       \r
-                       return token;\r
-               }\r
-               \r
-               /**\r
-                * Attempts to read a number from the input string.  Places\r
-                * the character location at the first character after the\r
-                * number.\r
-                * \r
-                * @return The JSONToken with the number value if a number could\r
-                *              be read.  Throws an error otherwise.\r
-                */\r
-               private function readNumber():JSONToken {\r
-                       // the token for the number we'll try to read\r
-                       var token:JSONToken = new JSONToken();\r
-                       token.type = JSONTokenType.NUMBER;\r
-                       \r
-                       // the string to accumulate the number characters\r
-                       // into that we'll convert to a number at the end\r
-                       var input:String = "";\r
-                       \r
-                       // check for a negative number\r
-                       if ( ch == '-' ) {\r
-                               input += '-';\r
-                               nextChar();\r
-                       }\r
-                       \r
-                       // the number must start with a digit\r
-                       if ( !isDigit( ch ) )\r
-                       {\r
-                               parseError( "Expecting a digit" );\r
-                       }\r
-                       \r
-                       // 0 can only be the first digit if it\r
-                       // is followed by a decimal point\r
-                       if ( ch == '0' )\r
-                       {\r
-                               input += ch;\r
-                               nextChar();\r
-                               \r
-                               // make sure no other digits come after 0\r
-                               if ( isDigit( ch ) )\r
-                               {\r
-                                       parseError( "A digit cannot immediately follow 0" );\r
-                               }\r
-// Commented out - this should only be available when "strict" is false\r
-//                             // unless we have 0x which starts a hex number\\r
-//                             else if ( ch == 'x' )\r
-//                             {\r
-//                                     // include the x in the input\r
-//                                     input += ch;\r
-//                                     nextChar();\r
-//                                     \r
-//                                     // need at least one hex digit after 0x to\r
-//                                     // be valid\r
-//                                     if ( isHexDigit( ch ) )\r
-//                                     {\r
-//                                             input += ch;\r
-//                                             nextChar();\r
-//                                     }\r
-//                                     else\r
-//                                     {\r
-//                                             parseError( "Number in hex format require at least one hex digit after \"0x\"" );       \r
-//                                     }\r
-//                                     \r
-//                                     // consume all of the hex values\r
-//                                     while ( isHexDigit( ch ) )\r
-//                                     {\r
-//                                             input += ch;\r
-//                                             nextChar();\r
-//                                     }\r
-//                             }\r
-                       }\r
-                       else\r
-                       {\r
-                               // read numbers while we can\r
-                               while ( isDigit( ch ) ) {\r
-                                       input += ch;\r
-                                       nextChar();\r
-                               }\r
-                       }\r
-                       \r
-                       // check for a decimal value\r
-                       if ( ch == '.' ) {\r
-                               input += '.';\r
-                               nextChar();\r
-                               \r
-                               // after the decimal there has to be a digit\r
-                               if ( !isDigit( ch ) )\r
-                               {\r
-                                       parseError( "Expecting a digit" );\r
-                               }\r
-                               \r
-                               // read more numbers to get the decimal value\r
-                               while ( isDigit( ch ) ) {\r
-                                       input += ch;\r
-                                       nextChar();\r
-                               }\r
-                       }\r
-                       \r
-                       // check for scientific notation\r
-                       if ( ch == 'e' || ch == 'E' )\r
-                       {\r
-                               input += "e"\r
-                               nextChar();\r
-                               // check for sign\r
-                               if ( ch == '+' || ch == '-' )\r
-                               {\r
-                                       input += ch;\r
-                                       nextChar();\r
-                               }\r
-                               \r
-                               // require at least one number for the exponent\r
-                               // in this case\r
-                               if ( !isDigit( ch ) )\r
-                               {\r
-                                       parseError( "Scientific notation number needs exponent value" );\r
-                               }\r
-                                                       \r
-                               // read in the exponent\r
-                               while ( isDigit( ch ) )\r
-                               {\r
-                                       input += ch;\r
-                                       nextChar();\r
-                               }\r
-                       }\r
-                       \r
-                       // convert the string to a number value\r
-                       var num:Number = Number( input );\r
-                       \r
-                       if ( isFinite( num ) && !isNaN( num ) ) {\r
-                               token.value = num;\r
-                               return token;\r
-                       } else {\r
-                               parseError( "Number " + num + " is not valid!" );\r
-                       }\r
-            return null;\r
-               }\r
-\r
-               /**\r
-                * Reads the next character in the input\r
-                * string and advances the character location.\r
-                *\r
-                * @return The next character in the input string, or\r
-                *              null if we've read past the end.\r
-                */\r
-               private function nextChar():String {\r
-                       return ch = jsonString.charAt( loc++ );\r
-               }\r
-               \r
-               /**\r
-                * Advances the character location past any\r
-                * sort of white space and comments\r
-                */\r
-               private function skipIgnored():void\r
-               {\r
-                       var originalLoc:int;\r
-                       \r
-                       // keep trying to skip whitespace and comments as long\r
-                       // as we keep advancing past the original location \r
-                       do\r
-                       {\r
-                               originalLoc = loc;\r
-                               skipWhite();\r
-                               skipComments();\r
-                       }\r
-                       while ( originalLoc != loc );\r
-               }\r
-               \r
-               /**\r
-                * Skips comments in the input string, either\r
-                * single-line or multi-line.  Advances the character\r
-                * to the first position after the end of the comment.\r
-                */\r
-               private function skipComments():void {\r
-                       if ( ch == '/' ) {\r
-                               // Advance past the first / to find out what type of comment\r
-                               nextChar();\r
-                               switch ( ch ) {\r
-                                       case '/': // single-line comment, read through end of line\r
-                                               \r
-                                               // Loop over the characters until we find\r
-                                               // a newline or until there's no more characters left\r
-                                               do {\r
-                                                       nextChar();\r
-                                               } while ( ch != '\n' && ch != '' )\r
-                                               \r
-                                               // move past the \n\r
-                                               nextChar();\r
-                                               \r
-                                               break;\r
-                                       \r
-                                       case '*': // multi-line comment, read until closing */\r
-\r
-                                               // move past the opening *\r
-                                               nextChar();\r
-                                               \r
-                                               // try to find a trailing */\r
-                                               while ( true ) {\r
-                                                       if ( ch == '*' ) {\r
-                                                               // check to see if we have a closing /\r
-                                                               nextChar();\r
-                                                               if ( ch == '/') {\r
-                                                                       // move past the end of the closing */\r
-                                                                       nextChar();\r
-                                                                       break;\r
-                                                               }\r
-                                                       } else {\r
-                                                               // move along, looking if the next character is a *\r
-                                                               nextChar();\r
-                                                       }\r
-                                                       \r
-                                                       // when we're here we've read past the end of \r
-                                                       // the string without finding a closing */, so error\r
-                                                       if ( ch == '' ) {\r
-                                                               parseError( "Multi-line comment not closed" );\r
-                                                       }\r
-                                               }\r
-\r
-                                               break;\r
-                                       \r
-                                       // Can't match a comment after a /, so it's a parsing error\r
-                                       default:\r
-                                               parseError( "Unexpected " + ch + " encountered (expecting '/' or '*' )" );\r
-                               }\r
-                       }\r
-                       \r
-               }\r
-               \r
-               \r
-               /**\r
-                * Skip any whitespace in the input string and advances\r
-                * the character to the first character after any possible\r
-                * whitespace.\r
-                */\r
-               private function skipWhite():void {\r
-                       \r
-                       // As long as there are spaces in the input \r
-                       // stream, advance the current location pointer\r
-                       // past them\r
-                       while ( isWhiteSpace( ch ) ) {\r
-                               nextChar();\r
-                       }\r
-                       \r
-               }\r
-               \r
-               /**\r
-                * Determines if a character is whitespace or not.\r
-                *\r
-                * @return True if the character passed in is a whitespace\r
-                *      character\r
-                */\r
-               private function isWhiteSpace( ch:String ):Boolean {\r
-                       return ( ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r' );\r
-               }\r
-               \r
-               /**\r
-                * Determines if a character is a digit [0-9].\r
-                *\r
-                * @return True if the character passed in is a digit\r
-                */\r
-               private function isDigit( ch:String ):Boolean {\r
-                       return ( ch >= '0' && ch <= '9' );\r
-               }\r
-               \r
-               /**\r
-                * Determines if a character is a digit [0-9].\r
-                *\r
-                * @return True if the character passed in is a digit\r
-                */\r
-               private function isHexDigit( ch:String ):Boolean {\r
-                       // get the uppercase value of ch so we only have\r
-                       // to compare the value between 'A' and 'F'\r
-                       var uc:String = ch.toUpperCase();\r
-                       \r
-                       // a hex digit is a digit of A-F, inclusive ( using\r
-                       // our uppercase constraint )\r
-                       return ( isDigit( ch ) || ( uc >= 'A' && uc <= 'F' ) );\r
-               }\r
-       \r
-               /**\r
-                * Raises a parsing error with a specified message, tacking\r
-                * on the error location and the original string.\r
-                *\r
-                * @param message The message indicating why the error occurred\r
-                */\r
-               public function parseError( message:String ):void {\r
-                       throw new JSONParseError( message, loc, jsonString );\r
-               }\r
-       }\r
-       \r
-}\r
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/utils/ArrayUtil.as b/redakcja/static/filebrowser/uploadify/com/adobe/utils/ArrayUtil.as
deleted file mode 100644 (file)
index e656120..0000000
+++ /dev/null
@@ -1,187 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.utils\r
-{\r
-       \r
-       /**\r
-       *       Class that contains static utility methods for manipulating and working\r
-       *       with Arrays.\r
-       * \r
-       *       Note that all APIs assume that they are working with well formed arrays.\r
-       *       i.e. they will only manipulate indexed values.  \r
-       * \r
-       *       @langversion ActionScript 3.0\r
-       *       @playerversion Flash 9.0\r
-       *       @tiptext\r
-       */              \r
-       public class ArrayUtil\r
-       {\r
-                               \r
-               /**\r
-               *       Determines whether the specified array contains the specified value.    \r
-               * \r
-               *       @param arr The array that will be checked for the specified value.\r
-               *\r
-               *       @param value The object which will be searched for within the array\r
-               * \r
-               *       @return True if the array contains the value, False if it does not.\r
-               *\r
-               *       @langversion ActionScript 3.0\r
-               *       @playerversion Flash 9.0\r
-               *       @tiptext\r
-               */                      \r
-               public static function arrayContainsValue(arr:Array, value:Object):Boolean\r
-               {\r
-                       return (arr.indexOf(value) != -1);\r
-               }       \r
-               \r
-               /**\r
-               *       Remove all instances of the specified value from the array,\r
-               * \r
-               *       @param arr The array from which the value will be removed\r
-               *\r
-               *       @param value The object that will be removed from the array.\r
-               *\r
-               *       @langversion ActionScript 3.0\r
-               *       @playerversion Flash 9.0\r
-               *       @tiptext\r
-               */              \r
-               public static function removeValueFromArray(arr:Array, value:Object):void\r
-               {\r
-                       var len:uint = arr.length;\r
-                       \r
-                       for(var i:Number = len; i > -1; i--)\r
-                       {\r
-                               if(arr[i] === value)\r
-                               {\r
-                                       arr.splice(i, 1);\r
-                               }\r
-                       }                                       \r
-               }\r
-\r
-               /**\r
-               *       Create a new array that only contains unique instances of objects\r
-               *       in the specified array.\r
-               *\r
-               *       Basically, this can be used to remove duplication object instances\r
-               *       from an array\r
-               * \r
-               *       @param arr The array which contains the values that will be used to\r
-               *       create the new array that contains no duplicate values.\r
-               *\r
-               *       @return A new array which only contains unique items from the specified\r
-               *       array.\r
-               *\r
-               *       @langversion ActionScript 3.0\r
-               *       @playerversion Flash 9.0\r
-               *       @tiptext\r
-               */      \r
-               public static function createUniqueCopy(a:Array):Array\r
-               {\r
-                       var newArray:Array = new Array();\r
-                       \r
-                       var len:Number = a.length;\r
-                       var item:Object;\r
-                       \r
-                       for (var i:uint = 0; i < len; ++i)\r
-                       {\r
-                               item = a[i];\r
-                               \r
-                               if(ArrayUtil.arrayContainsValue(newArray, item))\r
-                               {\r
-                                       continue;\r
-                               }\r
-                               \r
-                               newArray.push(item);\r
-                       }\r
-                       \r
-                       return newArray;\r
-               }\r
-               \r
-               /**\r
-               *       Creates a copy of the specified array.\r
-               *\r
-               *       Note that the array returned is a new array but the items within the\r
-               *       array are not copies of the items in the original array (but rather \r
-               *       references to the same items)\r
-               * \r
-               *       @param arr The array that will be copies\r
-               *\r
-               *       @return A new array which contains the same items as the array passed\r
-               *       in.\r
-               *\r
-               *       @langversion ActionScript 3.0\r
-               *       @playerversion Flash 9.0\r
-               *       @tiptext\r
-               */                      \r
-               public static function copyArray(arr:Array):Array\r
-               {       \r
-                       return arr.slice();\r
-               }\r
-               \r
-               /**\r
-               *       Compares two arrays and returns a boolean indicating whether the arrays\r
-               *       contain the same values at the same indexes.\r
-               * \r
-               *       @param arr1 The first array that will be compared to the second.\r
-               *\r
-               *       @param arr2 The second array that will be compared to the first.\r
-               *\r
-               *       @return True if the arrays contains the same values at the same indexes.\r
-                       False if they do not.\r
-               *\r
-               *       @langversion ActionScript 3.0\r
-               *       @playerversion Flash 9.0\r
-               *       @tiptext\r
-               */              \r
-               public static function arraysAreEqual(arr1:Array, arr2:Array):Boolean\r
-               {\r
-                       if(arr1.length != arr2.length)\r
-                       {\r
-                               return false;\r
-                       }\r
-                       \r
-                       var len:Number = arr1.length;\r
-                       \r
-                       for(var i:Number = 0; i < len; i++)\r
-                       {\r
-                               if(arr1[i] !== arr2[i])\r
-                               {\r
-                                       return false;\r
-                               }\r
-                       }\r
-                       \r
-                       return true;\r
-               }\r
-       }\r
-}\r
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/utils/DateUtil.as b/redakcja/static/filebrowser/uploadify/com/adobe/utils/DateUtil.as
deleted file mode 100644 (file)
index a49fe43..0000000
+++ /dev/null
@@ -1,699 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package com.adobe.utils
-{
-       import mx.formatters.DateBase;
-
-       /**
-       *       Class that contains static utility methods for manipulating and working
-       *       with Dates.
-       * 
-       *       @langversion ActionScript 3.0
-       *       @playerversion Flash 9.0
-       *       @tiptext
-       */      
-       public class DateUtil
-       {
-       
-               /**
-               *       Returns the English Short Month name (3 letters) for the Month that
-               *       the Date represents.    
-               * 
-               *       @param d The Date instance whose month will be used to retrieve the
-               *       short month name.
-               * 
-               *       @return An English 3 Letter Month abbreviation.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see SHORT_MONTH
-               */      
-               public static function getShortMonthName(d:Date):String
-               {
-                       return DateBase.monthNamesShort[d.getMonth()];
-               }
-
-               /**
-               *       Returns the index of the month that the short month name string
-               *       represents.     
-               * 
-               *       @param m The 3 letter abbreviation representing a short month name.
-               *
-               *       @param Optional parameter indicating whether the search should be case
-               *       sensitive
-               * 
-               *       @return A int that represents that month represented by the specifed
-               *       short name.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see SHORT_MONTH
-               */      
-               public static function getShortMonthIndex(m:String):int
-               {
-                       return DateBase.monthNamesShort.indexOf(m);
-               }
-               
-               /**
-               *       Returns the English full Month name for the Month that
-               *       the Date represents.    
-               * 
-               *       @param d The Date instance whose month will be used to retrieve the
-               *       full month name.
-               * 
-               *       @return An English full month name.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see FULL_MONTH
-               */      
-               public static function getFullMonthName(d:Date):String
-               {
-                       return DateBase.monthNamesLong[d.getMonth()];   
-               }
-
-               /**
-               *       Returns the index of the month that the full month name string
-               *       represents.     
-               * 
-               *       @param m A full month name.
-               * 
-               *       @return A int that represents that month represented by the specifed
-               *       full month name.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see FULL_MONTH
-               */      
-               public static function getFullMonthIndex(m:String):int
-               {
-                       return DateBase.monthNamesLong.indexOf(m);
-               }
-
-               /**
-               *       Returns the English Short Day name (3 letters) for the day that
-               *       the Date represents.    
-               * 
-               *       @param d The Date instance whose day will be used to retrieve the
-               *       short day name.
-               * 
-               *       @return An English 3 Letter day abbreviation.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see SHORT_DAY
-               */      
-               public static function getShortDayName(d:Date):String
-               {
-                       return DateBase.dayNamesShort[d.getDay()];      
-               }
-               
-               /**
-               *       Returns the index of the day that the short day name string
-               *       represents.     
-               * 
-               *       @param m A short day name.
-               * 
-               *       @return A int that represents that short day represented by the specifed
-               *       full month name.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see SHORT_DAY
-               */                      
-               public static function getShortDayIndex(d:String):int
-               {
-                       return DateBase.dayNamesShort.indexOf(d);
-               }
-
-               /**
-               *       Returns the English full day name for the day that
-               *       the Date represents.    
-               * 
-               *       @param d The Date instance whose day will be used to retrieve the
-               *       full day name.
-               * 
-               *       @return An English full day name.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see FULL_DAY
-               */      
-               public static function getFullDayName(d:Date):String
-               {
-                       return DateBase.dayNamesLong[d.getDay()];       
-               }               
-
-               /**
-               *       Returns the index of the day that the full day name string
-               *       represents.     
-               * 
-               *       @param m A full day name.
-               * 
-               *       @return A int that represents that full day represented by the specifed
-               *       full month name.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               *
-               *       @see FULL_DAY
-               */              
-               public static function getFullDayIndex(d:String):int
-               {
-                       return DateBase.dayNamesLong.indexOf(d);
-               }
-
-               /**
-               *       Returns a two digit representation of the year represented by the 
-               *       specified date.
-               * 
-               *       @param d The Date instance whose year will be used to generate a two
-               *       digit string representation of the year.
-               * 
-               *       @return A string that contains a 2 digit representation of the year.
-               *       Single digits will be padded with 0.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function getShortYear(d:Date):String
-               {
-                       var dStr:String = String(d.getFullYear());
-                       
-                       if(dStr.length < 3)
-                       {
-                               return dStr;
-                       }
-
-                       return (dStr.substr(dStr.length - 2));
-               }
-
-               /**
-               *       Compares two dates and returns an integer depending on their relationship.
-               *
-               *       Returns -1 if d1 is greater than d2.
-               *       Returns 1 if d2 is greater than d1.
-               *       Returns 0 if both dates are equal.
-               * 
-               *       @param d1 The date that will be compared to the second date.
-               *       @param d2 The date that will be compared to the first date.
-               * 
-               *       @return An int indicating how the two dates compare.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function compareDates(d1:Date, d2:Date):int
-               {
-                       var d1ms:Number = d1.getTime();
-                       var d2ms:Number = d2.getTime();
-                       
-                       if(d1ms > d2ms)
-                       {
-                               return -1;
-                       }
-                       else if(d1ms < d2ms)
-                       {
-                               return 1;
-                       }
-                       else
-                       {
-                               return 0;
-                       }
-               }
-
-               /**
-               *       Returns a short hour (0 - 12) represented by the specified date.
-               *
-               *       If the hour is less than 12 (0 - 11 AM) then the hour will be returned.
-               *
-               *       If the hour is greater than 12 (12 - 23 PM) then the hour minus 12
-               *       will be returned.
-               * 
-               *       @param d1 The Date from which to generate the short hour
-               * 
-               *       @return An int between 0 and 13 ( 1 - 12 ) representing the short hour.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function getShortHour(d:Date):int
-               {
-                       var h:int = d.hours;
-                       
-                       if(h == 0 || h == 12)
-                       {
-                               return 12;
-                       }
-                       else if(h > 12)
-                       {
-                               return h - 12;
-                       }
-                       else
-                       {
-                               return h;
-                       }
-               }
-               
-               /**
-               *       Returns a string indicating whether the date represents a time in the
-               *       ante meridiem (AM) or post meridiem (PM).
-               *
-               *       If the hour is less than 12 then "AM" will be returned.
-               *
-               *       If the hour is greater than 12 then "PM" will be returned.
-               * 
-               *       @param d1 The Date from which to generate the 12 hour clock indicator.
-               * 
-               *       @return A String ("AM" or "PM") indicating which half of the day the 
-               *       hour represents.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function getAMPM(d:Date):String
-               {
-                       return (d.hours > 11)? "PM" : "AM";
-               }
-
-               /**
-               * Parses dates that conform to RFC822 into Date objects. This method also
-               * supports four-digit years (not supported in RFC822), but two-digit years
-               * (referring to the 20th century) are fine, too.
-               *
-               * This function is useful for parsing RSS .91, .92, and 2.0 dates.
-               *
-               * @param str
-               *
-               * @returns
-               *
-               * @langversion ActionScript 3.0
-               * @playerversion Flash 9.0
-               * @tiptext
-               *
-               * @see http://asg.web.cmu.edu/rfc/rfc822.html
-               */              
-               public static function parseRFC822(str:String):Date
-               {
-            var finalDate:Date;
-                       try
-                       {
-                               var dateParts:Array = str.split(" ");
-                               var day:String = null;
-                               
-                               if (dateParts[0].search(/\d/) == -1)
-                               {
-                                       day = dateParts.shift().replace(/\W/, "");
-                               }
-                               
-                               var date:Number = Number(dateParts.shift());
-                               var month:Number = Number(DateUtil.getShortMonthIndex(dateParts.shift()));
-                               var year:Number = Number(dateParts.shift());
-                               var timeParts:Array = dateParts.shift().split(":");
-                               var hour:Number = int(timeParts.shift());
-                               var minute:Number = int(timeParts.shift());
-                               var second:Number = (timeParts.length > 0) ? int(timeParts.shift()): 0;
-       
-                               var milliseconds:Number = Date.UTC(year, month, date, hour, minute, second, 0);
-       
-                               var timezone:String = dateParts.shift();
-                               var offset:Number = 0;
-
-                               if (timezone.search(/\d/) == -1)
-                               {
-                                       switch(timezone)
-                                       {
-                                               case "UT":
-                                                       offset = 0;
-                                                       break;
-                                               case "UTC":
-                                                       offset = 0;
-                                                       break;
-                                               case "GMT":
-                                                       offset = 0;
-                                                       break;
-                                               case "EST":
-                                                       offset = (-5 * 3600000);
-                                                       break;
-                                               case "EDT":
-                                                       offset = (-4 * 3600000);
-                                                       break;
-                                               case "CST":
-                                                       offset = (-6 * 3600000);
-                                                       break;
-                                               case "CDT":
-                                                       offset = (-5 * 3600000);
-                                                       break;
-                                               case "MST":
-                                                       offset = (-7 * 3600000);
-                                                       break;
-                                               case "MDT":
-                                                       offset = (-6 * 3600000);
-                                                       break;
-                                               case "PST":
-                                                       offset = (-8 * 3600000);
-                                                       break;
-                                               case "PDT":
-                                                       offset = (-7 * 3600000);
-                                                       break;
-                                               case "Z":
-                                                       offset = 0;
-                                                       break;
-                                               case "A":
-                                                       offset = (-1 * 3600000);
-                                                       break;
-                                               case "M":
-                                                       offset = (-12 * 3600000);
-                                                       break;
-                                               case "N":
-                                                       offset = (1 * 3600000);
-                                                       break;
-                                               case "Y":
-                                                       offset = (12 * 3600000);
-                                                       break;
-                                               default:
-                                                       offset = 0;
-                                       }
-                               }
-                               else
-                               {
-                                       var multiplier:Number = 1;
-                                       var oHours:Number = 0;
-                                       var oMinutes:Number = 0;
-                                       if (timezone.length != 4)
-                                       {
-                                               if (timezone.charAt(0) == "-")
-                                               {
-                                                       multiplier = -1;
-                                               }
-                                               timezone = timezone.substr(1, 4);
-                                       }
-                                       oHours = Number(timezone.substr(0, 2));
-                                       oMinutes = Number(timezone.substr(2, 2));
-                                       offset = (((oHours * 3600000) + (oMinutes * 60000)) * multiplier);
-                               }
-
-                               finalDate = new Date(milliseconds - offset);
-
-                               if (finalDate.toString() == "Invalid Date")
-                               {
-                                       throw new Error("This date does not conform to RFC822.");
-                               }
-                       }
-                       catch (e:Error)
-                       {
-                               var eStr:String = "Unable to parse the string [" +str+ "] into a date. ";
-                               eStr += "The internal error was: " + e.toString();
-                               throw new Error(eStr);
-                       }
-            return finalDate;
-               }
-            
-               /**
-               * Returns a date string formatted according to RFC822.
-               *
-               * @param d
-               *
-               * @returns
-               *
-               * @langversion ActionScript 3.0
-               * @playerversion Flash 9.0
-               * @tiptext
-               *
-               * @see http://asg.web.cmu.edu/rfc/rfc822.html
-               */      
-               public static function toRFC822(d:Date):String
-               {
-                       var date:Number = d.getUTCDate();
-                       var hours:Number = d.getUTCHours();
-                       var minutes:Number = d.getUTCMinutes();
-                       var seconds:Number = d.getUTCSeconds();
-                       var sb:String = new String();
-                       sb += DateBase.dayNamesShort[d.getUTCDay()];
-                       sb += ", ";
-                       
-                       if (date < 10)
-                       {
-                               sb += "0";
-                       }
-                       sb += date;
-                       sb += " ";
-                       //sb += DateUtil.SHORT_MONTH[d.getUTCMonth()];
-                       sb += DateBase.monthNamesShort[d.getUTCMonth()];
-                       sb += " ";
-                       sb += d.getUTCFullYear();
-                       sb += " ";
-                       if (hours < 10)
-                       {                       
-                               sb += "0";
-                       }
-                       sb += hours;
-                       sb += ":";
-                       if (minutes < 10)
-                       {                       
-                               sb += "0";
-                       }
-                       sb += minutes;
-                       sb += ":";
-                       if (seconds < 10)
-                       {                       
-                               sb += "0";
-                       }
-                       sb += seconds;
-                       sb += " GMT";
-                       return sb;
-               }
-            
-               /**
-               * Parses dates that conform to the W3C Date-time Format into Date objects.
-               *
-               * This function is useful for parsing RSS 1.0 and Atom 1.0 dates.
-               *
-               * @param str
-               *
-               * @returns
-               *
-               * @langversion ActionScript 3.0
-               * @playerversion Flash 9.0
-               * @tiptext
-               *
-               * @see http://www.w3.org/TR/NOTE-datetime
-               */                   
-               public static function parseW3CDTF(str:String):Date
-               {
-            var finalDate:Date;
-                       try
-                       {
-                               var dateStr:String = str.substring(0, str.indexOf("T"));
-                               var timeStr:String = str.substring(str.indexOf("T")+1, str.length);
-                               var dateArr:Array = dateStr.split("-");
-                               var year:Number = Number(dateArr.shift());
-                               var month:Number = Number(dateArr.shift());
-                               var date:Number = Number(dateArr.shift());
-                               
-                               var multiplier:Number;
-                               var offsetHours:Number;
-                               var offsetMinutes:Number;
-                               var offsetStr:String;
-                               
-                               if (timeStr.indexOf("Z") != -1)
-                               {
-                                       multiplier = 1;
-                                       offsetHours = 0;
-                                       offsetMinutes = 0;
-                                       timeStr = timeStr.replace("Z", "");
-                               }
-                               else if (timeStr.indexOf("+") != -1)
-                               {
-                                       multiplier = 1;
-                                       offsetStr = timeStr.substring(timeStr.indexOf("+")+1, timeStr.length);
-                                       offsetHours = Number(offsetStr.substring(0, offsetStr.indexOf(":")));
-                                       offsetMinutes = Number(offsetStr.substring(offsetStr.indexOf(":")+1, offsetStr.length));
-                                       timeStr = timeStr.substring(0, timeStr.indexOf("+"));
-                               }
-                               else // offset is -
-                               {
-                                       multiplier = -1;
-                                       offsetStr = timeStr.substring(timeStr.indexOf("-")+1, timeStr.length);
-                                       offsetHours = Number(offsetStr.substring(0, offsetStr.indexOf(":")));
-                                       offsetMinutes = Number(offsetStr.substring(offsetStr.indexOf(":")+1, offsetStr.length));
-                                       timeStr = timeStr.substring(0, timeStr.indexOf("-"));
-                               }
-                               var timeArr:Array = timeStr.split(":");
-                               var hour:Number = Number(timeArr.shift());
-                               var minutes:Number = Number(timeArr.shift());
-                               var secondsArr:Array = (timeArr.length > 0) ? String(timeArr.shift()).split(".") : null;
-                               var seconds:Number = (secondsArr != null && secondsArr.length > 0) ? Number(secondsArr.shift()) : 0;
-                               var milliseconds:Number = (secondsArr != null && secondsArr.length > 0) ? Number(secondsArr.shift()) : 0;
-                               var utc:Number = Date.UTC(year, month-1, date, hour, minutes, seconds, milliseconds);
-                               var offset:Number = (((offsetHours * 3600000) + (offsetMinutes * 60000)) * multiplier);
-                               finalDate = new Date(utc - offset);
-       
-                               if (finalDate.toString() == "Invalid Date")
-                               {
-                                       throw new Error("This date does not conform to W3CDTF.");
-                               }
-                       }
-                       catch (e:Error)
-                       {
-                               var eStr:String = "Unable to parse the string [" +str+ "] into a date. ";
-                               eStr += "The internal error was: " + e.toString();
-                               throw new Error(eStr);
-                       }
-            return finalDate;
-               }
-            
-               /**
-               * Returns a date string formatted according to W3CDTF.
-               *
-               * @param d
-               * @param includeMilliseconds Determines whether to include the
-               * milliseconds value (if any) in the formatted string.
-               *
-               * @returns
-               *
-               * @langversion ActionScript 3.0
-               * @playerversion Flash 9.0
-               * @tiptext
-               *
-               * @see http://www.w3.org/TR/NOTE-datetime
-               */                   
-               public static function toW3CDTF(d:Date,includeMilliseconds:Boolean=false):String
-               {
-                       var date:Number = d.getUTCDate();
-                       var month:Number = d.getUTCMonth();
-                       var hours:Number = d.getUTCHours();
-                       var minutes:Number = d.getUTCMinutes();
-                       var seconds:Number = d.getUTCSeconds();
-                       var milliseconds:Number = d.getUTCMilliseconds();
-                       var sb:String = new String();
-                       
-                       sb += d.getUTCFullYear();
-                       sb += "-";
-                       
-                       //thanks to "dom" who sent in a fix for the line below
-                       if (month + 1 < 10)
-                       {
-                               sb += "0";
-                       }
-                       sb += month + 1;
-                       sb += "-";
-                       if (date < 10)
-                       {
-                               sb += "0";
-                       }
-                       sb += date;
-                       sb += "T";
-                       if (hours < 10)
-                       {
-                               sb += "0";
-                       }
-                       sb += hours;
-                       sb += ":";
-                       if (minutes < 10)
-                       {
-                               sb += "0";
-                       }
-                       sb += minutes;
-                       sb += ":";
-                       if (seconds < 10)
-                       {
-                               sb += "0";
-                       }
-                       sb += seconds;
-                       if (includeMilliseconds && milliseconds > 0)
-                       {
-                               sb += ".";
-                               sb += milliseconds;
-                       }
-                       sb += "-00:00";
-                       return sb;
-               }
-               
-               /**
-                * Converts a date into just after midnight.
-                */
-               public static function makeMorning(d:Date):Date
-               {
-                       var d:Date = new Date(d.time);
-                       d.hours = 0;
-            d.minutes = 0;
-            d.seconds = 0;
-            d.milliseconds = 0;
-            return d;
-               }
-               
-               /**
-                * Converts a date into just befor midnight.
-                */
-               public static function makeNight(d:Date):Date
-               {
-                       var d:Date = new Date(d.time);
-                       d.hours = 23;
-            d.minutes = 59;
-            d.seconds = 59;
-            d.milliseconds = 999;                              
-            return d;
-               }
-
-               /**
-                * Sort of converts a date into UTC.
-                */
-               public static function getUTCDate(d:Date):Date
-               {
-                       var nd:Date = new Date();
-                       var offset:Number = d.getTimezoneOffset() * 60 * 1000; 
-                       nd.setTime(d.getTime() + offset);
-                       return nd;
-               }
-       }
-}
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/utils/DictionaryUtil.as b/redakcja/static/filebrowser/uploadify/com/adobe/utils/DictionaryUtil.as
deleted file mode 100644 (file)
index 9552ef4..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package com.adobe.utils
-{
-       import flash.utils.Dictionary;
-       
-       public class DictionaryUtil
-       {
-               
-               /**
-               *       Returns an Array of all keys within the specified dictionary.   
-               * 
-               *       @param d The Dictionary instance whose keys will be returned.
-               * 
-               *       @return Array of keys contained within the Dictionary
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */                                      
-               public static function getKeys(d:Dictionary):Array
-               {
-                       var a:Array = new Array();
-                       
-                       for (var key:Object in d)
-                       {
-                               a.push(key);
-                       }
-                       
-                       return a;
-               }
-               
-               /**
-               *       Returns an Array of all values within the specified dictionary.         
-               * 
-               *       @param d The Dictionary instance whose values will be returned.
-               * 
-               *       @return Array of values contained within the Dictionary
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */                                      
-               public static function getValues(d:Dictionary):Array
-               {
-                       var a:Array = new Array();
-                       
-                       for each (var value:Object in d)
-                       {
-                               a.push(value);
-                       }
-                       
-                       return a;
-               }
-               
-       }
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/utils/IntUtil.as b/redakcja/static/filebrowser/uploadify/com/adobe/utils/IntUtil.as
deleted file mode 100644 (file)
index 8c812fe..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-package com.adobe.utils {\r
-       \r
-       import flash.utils.Endian;\r
-       \r
-       /**\r
-        * Contains reusable methods for operations pertaining \r
-        * to int values.\r
-        */\r
-       public class IntUtil {\r
-               \r
-               /**\r
-                * Rotates x left n bits\r
-                *\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public static function rol ( x:int, n:int ):int {\r
-                       return ( x << n ) | ( x >>> ( 32 - n ) );\r
-               }\r
-               \r
-               /**\r
-                * Rotates x right n bits\r
-                *\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public static function ror ( x:int, n:int ):uint {\r
-                       var nn:int = 32 - n;\r
-                       return ( x << nn ) | ( x >>> ( 32 - nn ) );\r
-               }\r
-               \r
-               /** String for quick lookup of a hex character based on index */\r
-               private static var hexChars:String = "0123456789abcdef";\r
-               \r
-               /**\r
-                * Outputs the hex value of a int, allowing the developer to specify\r
-                * the endinaness in the process.  Hex output is lowercase.\r
-                *\r
-                * @param n The int value to output as hex\r
-                * @param bigEndian Flag to output the int as big or little endian\r
-                * @return A string of length 8 corresponding to the \r
-                *              hex representation of n ( minus the leading "0x" )\r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                * @tiptext\r
-                */\r
-               public static function toHex( n:int, bigEndian:Boolean = false ):String {\r
-                       var s:String = "";\r
-                       \r
-                       if ( bigEndian ) {\r
-                               for ( var i:int = 0; i < 4; i++ ) {\r
-                                       s += hexChars.charAt( ( n >> ( ( 3 - i ) * 8 + 4 ) ) & 0xF ) \r
-                                               + hexChars.charAt( ( n >> ( ( 3 - i ) * 8 ) ) & 0xF );\r
-                               }\r
-                       } else {\r
-                               for ( var x:int = 0; x < 4; x++ ) {\r
-                                       s += hexChars.charAt( ( n >> ( x * 8 + 4 ) ) & 0xF )\r
-                                               + hexChars.charAt( ( n >> ( x * 8 ) ) & 0xF );\r
-                               }\r
-                       }\r
-                       \r
-                       return s;\r
-               }\r
-       }\r
-               \r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/utils/NumberFormatter.as b/redakcja/static/filebrowser/uploadify/com/adobe/utils/NumberFormatter.as
deleted file mode 100644 (file)
index 6fe12e1..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.utils\r
-{\r
-\r
-       /**\r
-       *       Class that contains static utility methods for formatting Numbers\r
-       * \r
-       *       @langversion ActionScript 3.0\r
-       *       @playerversion Flash 9.0\r
-       *       @tiptext\r
-       *\r
-       *       @see #mx.formatters.NumberFormatter\r
-       */              \r
-       public class NumberFormatter\r
-       {\r
-       \r
-               /**\r
-               *       Formats a number to include a leading zero if it is a single digit\r
-               *       between -1 and 10.      \r
-               * \r
-               *       @param n The number that will be formatted\r
-               *\r
-               *       @return A string with single digits between -1 and 10 padded with a \r
-               *       leading zero.\r
-               *\r
-               *       @langversion ActionScript 3.0\r
-               *       @playerversion Flash 9.0\r
-               *       @tiptext\r
-               */              \r
-               public static function addLeadingZero(n:Number):String\r
-               {\r
-                       var out:String = String(n);\r
-                       \r
-                       if(n < 10 && n > -1)\r
-                       {\r
-                               out = "0" + out;\r
-                       }\r
-                       \r
-                       return out;\r
-               }       \r
-       \r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/utils/StringUtil.as b/redakcja/static/filebrowser/uploadify/com/adobe/utils/StringUtil.as
deleted file mode 100644 (file)
index 6aa1979..0000000
+++ /dev/null
@@ -1,270 +0,0 @@
-/*
-  Copyright (c) 2008, Adobe Systems Incorporated
-  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without 
-  modification, are permitted provided that the following conditions are
-  met:
-
-  * Redistributions of source code must retain the above copyright notice, 
-    this list of conditions and the following disclaimer.
-  
-  * Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the 
-    documentation and/or other materials provided with the distribution.
-  
-  * Neither the name of Adobe Systems Incorporated nor the names of its 
-    contributors may be used to endorse or promote products derived from 
-    this software without specific prior written permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-package com.adobe.utils
-{
-       
-       /**
-       *       Class that contains static utility methods for manipulating Strings.
-       * 
-       *       @langversion ActionScript 3.0
-       *       @playerversion Flash 9.0
-       *       @tiptext
-       */              
-       public class StringUtil
-       {
-
-               
-               /**
-               *       Does a case insensitive compare or two strings and returns true if
-               *       they are equal.
-               * 
-               *       @param s1 The first string to compare.
-               *
-               *       @param s2 The second string to compare.
-               *
-               *       @returns A boolean value indicating whether the strings' values are 
-               *       equal in a case sensitive compare.      
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */                      
-               public static function stringsAreEqual(s1:String, s2:String, 
-                                                                                       caseSensitive:Boolean):Boolean
-               {
-                       if(caseSensitive)
-                       {
-                               return (s1 == s2);
-                       }
-                       else
-                       {
-                               return (s1.toUpperCase() == s2.toUpperCase());
-                       }
-               }
-               
-               /**
-               *       Removes whitespace from the front and the end of the specified
-               *       string.
-               * 
-               *       @param input The String whose beginning and ending whitespace will
-               *       will be removed.
-               *
-               *       @returns A String with whitespace removed from the begining and end     
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */                      
-               public static function trim(input:String):String
-               {
-                       return StringUtil.ltrim(StringUtil.rtrim(input));
-               }
-
-               /**
-               *       Removes whitespace from the front of the specified string.
-               * 
-               *       @param input The String whose beginning whitespace will will be removed.
-               *
-               *       @returns A String with whitespace removed from the begining     
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function ltrim(input:String):String
-               {
-                       var size:Number = input.length;
-                       for(var i:Number = 0; i < size; i++)
-                       {
-                               if(input.charCodeAt(i) > 32)
-                               {
-                                       return input.substring(i);
-                               }
-                       }
-                       return "";
-               }
-
-               /**
-               *       Removes whitespace from the end of the specified string.
-               * 
-               *       @param input The String whose ending whitespace will will be removed.
-               *
-               *       @returns A String with whitespace removed from the end  
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function rtrim(input:String):String
-               {
-                       var size:Number = input.length;
-                       for(var i:Number = size; i > 0; i--)
-                       {
-                               if(input.charCodeAt(i - 1) > 32)
-                               {
-                                       return input.substring(0, i);
-                               }
-                       }
-
-                       return "";
-               }
-
-               /**
-               *       Determines whether the specified string begins with the spcified prefix.
-               * 
-               *       @param input The string that the prefix will be checked against.
-               *
-               *       @param prefix The prefix that will be tested against the string.
-               *
-               *       @returns True if the string starts with the prefix, false if it does not.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function beginsWith(input:String, prefix:String):Boolean
-               {                       
-                       return (prefix == input.substring(0, prefix.length));
-               }       
-
-               /**
-               *       Determines whether the specified string ends with the spcified suffix.
-               * 
-               *       @param input The string that the suffic will be checked against.
-               *
-               *       @param prefix The suffic that will be tested against the string.
-               *
-               *       @returns True if the string ends with the suffix, false if it does not.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function endsWith(input:String, suffix:String):Boolean
-               {
-                       return (suffix == input.substring(input.length - suffix.length));
-               }       
-
-               /**
-               *       Removes all instances of the remove string in the input string.
-               * 
-               *       @param input The string that will be checked for instances of remove
-               *       string
-               *
-               *       @param remove The string that will be removed from the input string.
-               *
-               *       @returns A String with the remove string removed.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */      
-               public static function remove(input:String, remove:String):String
-               {
-                       return StringUtil.replace(input, remove, "");
-               }
-
-               /**
-               *       Replaces all instances of the replace string in the input string
-               *       with the replaceWith string.
-               * 
-               *       @param input The string that instances of replace string will be 
-               *       replaces with removeWith string.
-               *
-               *       @param replace The string that will be replaced by instances of 
-               *       the replaceWith string.
-               *
-               *       @param replaceWith The string that will replace instances of replace
-               *       string.
-               *
-               *       @returns A new String with the replace string replaced with the 
-               *       replaceWith string.
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */
-               public static function replace(input:String, replace:String, replaceWith:String):String
-               {
-                       //change to StringBuilder
-                       var sb:String = new String();
-                       var found:Boolean = false;
-
-                       var sLen:Number = input.length;
-                       var rLen:Number = replace.length;
-
-                       for (var i:Number = 0; i < sLen; i++)
-                       {
-                               if(input.charAt(i) == replace.charAt(0))
-                               {   
-                                       found = true;
-                                       for(var j:Number = 0; j < rLen; j++)
-                                       {
-                                               if(!(input.charAt(i + j) == replace.charAt(j)))
-                                               {
-                                                       found = false;
-                                                       break;
-                                               }
-                                       }
-
-                                       if(found)
-                                       {
-                                               sb += replaceWith;
-                                               i = i + (rLen - 1);
-                                               continue;
-                                       }
-                               }
-                               sb += input.charAt(i);
-                       }
-                       //TODO : if the string is not found, should we return the original
-                       //string?
-                       return sb;
-               }
-               
-               /**
-               *       Specifies whether the specified string is either non-null, or contains
-               *       characters (i.e. length is greater that 0)
-               * 
-               *       @param s The string which is being checked for a value
-               *
-               *       @langversion ActionScript 3.0
-               *       @playerversion Flash 9.0
-               *       @tiptext
-               */              
-               public static function stringHasValue(s:String):Boolean
-               {
-                       //todo: this needs a unit test
-                       return (s != null && s.length > 0);                     
-               }
-       }
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/utils/XMLUtil.as b/redakcja/static/filebrowser/uploadify/com/adobe/utils/XMLUtil.as
deleted file mode 100644 (file)
index 24fce00..0000000
+++ /dev/null
@@ -1,168 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.utils\r
-{\r
-\r
-       public class XMLUtil\r
-       {\r
-               /**\r
-                * Constant representing a text node type returned from XML.nodeKind.\r
-                * \r
-                * @see XML.nodeKind()\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */\r
-               public static const TEXT:String = "text";\r
-               \r
-               /**\r
-                * Constant representing a comment node type returned from XML.nodeKind.\r
-                * \r
-                * @see XML.nodeKind()\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */             \r
-               public static const COMMENT:String = "comment";\r
-               \r
-               /**\r
-                * Constant representing a processing instruction type returned from XML.nodeKind.\r
-                * \r
-                * @see XML.nodeKind()\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */             \r
-               public static const PROCESSING_INSTRUCTION:String = "processing-instruction";\r
-               \r
-               /**\r
-                * Constant representing an attribute type returned from XML.nodeKind.\r
-                * \r
-                * @see XML.nodeKind()\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */             \r
-               public static const ATTRIBUTE:String = "attribute";\r
-               \r
-               /**\r
-                * Constant representing a element type returned from XML.nodeKind.\r
-                * \r
-                * @see XML.nodeKind()\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */             \r
-               public static const ELEMENT:String = "element";\r
-               \r
-               /**\r
-                * Checks whether the specified string is valid and well formed XML.\r
-                * \r
-                * @param data The string that is being checked to see if it is valid XML.\r
-                * \r
-                * @return A Boolean value indicating whether the specified string is\r
-                * valid XML.\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */\r
-               public static function isValidXML(data:String):Boolean\r
-               {\r
-                       var xml:XML;\r
-                       \r
-                       try\r
-                       {\r
-                               xml = new XML(data);\r
-                       }\r
-                       catch(e:Error)\r
-                       {\r
-                               return false;\r
-                       }\r
-                       \r
-                       if(xml.nodeKind() != XMLUtil.ELEMENT)\r
-                       {\r
-                               return false;\r
-                       }\r
-                       \r
-                       return true;\r
-               }\r
-               \r
-               /**\r
-                * Returns the next sibling of the specified node relative to the node's parent.\r
-                * \r
-                * @param x The node whose next sibling will be returned.\r
-                * \r
-                * @return The next sibling of the node. null if the node does not have \r
-                * a sibling after it, or if the node has no parent.\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */             \r
-               public static function getNextSibling(x:XML):XML\r
-               {       \r
-                       return XMLUtil.getSiblingByIndex(x, 1);\r
-               }\r
-               \r
-               /**\r
-                * Returns the sibling before the specified node relative to the node's parent.\r
-                * \r
-                * @param x The node whose sibling before it will be returned.\r
-                * \r
-                * @return The sibling before the node. null if the node does not have \r
-                * a sibling before it, or if the node has no parent.\r
-                * \r
-                * @langversion ActionScript 3.0\r
-                * @playerversion Flash 9.0\r
-                */                     \r
-               public static function getPreviousSibling(x:XML):XML\r
-               {       \r
-                       return XMLUtil.getSiblingByIndex(x, -1);\r
-               }               \r
-               \r
-               protected static function getSiblingByIndex(x:XML, count:int):XML       \r
-               {\r
-                       var out:XML;\r
-                       \r
-                       try\r
-                       {\r
-                               out = x.parent().children()[x.childIndex() + count];    \r
-                       }               \r
-                       catch(e:Error)\r
-                       {\r
-                               return null;\r
-                       }\r
-                       \r
-                       return out;                     \r
-               }\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/webapis/ServiceBase.as b/redakcja/static/filebrowser/uploadify/com/adobe/webapis/ServiceBase.as
deleted file mode 100644 (file)
index 7080287..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-\r
-package com.adobe.webapis \r
-{\r
-       import flash.events.EventDispatcher;\r
-\r
-       /**\r
-       * Base class for remote service classes.\r
-       */\r
-       public class ServiceBase extends EventDispatcher\r
-       {\r
-               public function ServiceBase()\r
-               {\r
-               }\r
-               \r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/webapis/URLLoaderBase.as b/redakcja/static/filebrowser/uploadify/com/adobe/webapis/URLLoaderBase.as
deleted file mode 100644 (file)
index fc0085c..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-package com.adobe.webapis\r
-{\r
-       import flash.events.IOErrorEvent;\r
-       import flash.events.SecurityErrorEvent;\r
-       import flash.events.ProgressEvent;\r
-       \r
-       import com.adobe.net.DynamicURLLoader;\r
-       \r
-               /**\r
-               *       Dispatched when data is \r
-               *       received as the download operation progresses.\r
-               *        \r
-               *       @eventType flash.events.ProgressEvent.PROGRESS\r
-               * \r
-               * @langversion ActionScript 3.0\r
-               * @playerversion Flash 9.0\r
-               */\r
-               [Event(name="progress", type="flash.events.ProgressEvent")]             \r
-       \r
-               /**\r
-               *       Dispatched if a call to the server results in a fatal \r
-               *       error that terminates the download.\r
-               * \r
-               *       @eventType flash.events.IOErrorEvent.IO_ERROR\r
-               * \r
-               * @langversion ActionScript 3.0\r
-               * @playerversion Flash 9.0\r
-               */\r
-               [Event(name="ioError", type="flash.events.IOErrorEvent")]               \r
-               \r
-               /**\r
-               *       A securityError event occurs if a call attempts to\r
-               *       load data from a server outside the security sandbox.\r
-               * \r
-               *       @eventType flash.events.SecurityErrorEvent.SECURITY_ERROR\r
-               * \r
-               * @langversion ActionScript 3.0\r
-               * @playerversion Flash 9.0\r
-               */\r
-               [Event(name="securityError", type="flash.events.SecurityErrorEvent")]   \r
-       \r
-       /**\r
-       *       Base class for services that utilize URLLoader\r
-       *       to communicate with remote APIs / Services.\r
-       * \r
-       * @langversion ActionScript 3.0\r
-       * @playerversion Flash 9.0\r
-       */\r
-       public class URLLoaderBase extends ServiceBase\r
-       {       \r
-               protected function getURLLoader():DynamicURLLoader\r
-               {\r
-                       var loader:DynamicURLLoader = new DynamicURLLoader();\r
-                               loader.addEventListener("progress", onProgress);\r
-                               loader.addEventListener("ioError", onIOError);\r
-                               loader.addEventListener("securityError", onSecurityError);\r
-                       \r
-                       return loader;                  \r
-               }               \r
-               \r
-               private function onIOError(event:IOErrorEvent):void\r
-               {\r
-                       dispatchEvent(event);\r
-               }                       \r
-               \r
-               private function onSecurityError(event:SecurityErrorEvent):void\r
-               {\r
-                       dispatchEvent(event);\r
-               }       \r
-               \r
-               private function onProgress(event:ProgressEvent):void\r
-               {\r
-                       dispatchEvent(event);\r
-               }       \r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/com/adobe/webapis/events/ServiceEvent.as b/redakcja/static/filebrowser/uploadify/com/adobe/webapis/events/ServiceEvent.as
deleted file mode 100644 (file)
index d1aaf3d..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-/*\r
-  Copyright (c) 2008, Adobe Systems Incorporated\r
-  All rights reserved.\r
-\r
-  Redistribution and use in source and binary forms, with or without \r
-  modification, are permitted provided that the following conditions are\r
-  met:\r
-\r
-  * Redistributions of source code must retain the above copyright notice, \r
-    this list of conditions and the following disclaimer.\r
-  \r
-  * Redistributions in binary form must reproduce the above copyright\r
-    notice, this list of conditions and the following disclaimer in the \r
-    documentation and/or other materials provided with the distribution.\r
-  \r
-  * Neither the name of Adobe Systems Incorporated nor the names of its \r
-    contributors may be used to endorse or promote products derived from \r
-    this software without specific prior written permission.\r
-\r
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
-  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\r
-  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
-  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \r
-  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
-  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
-  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
-  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
-  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
-*/\r
-\r
-\r
-package com.adobe.webapis.events\r
-{\r
-\r
-       import flash.events.Event;\r
-\r
-       /**\r
-       * Event class that contains data loaded from remote services.\r
-       *\r
-       * @author Mike Chambers\r
-       */\r
-       public class ServiceEvent extends Event\r
-       {\r
-               private var _data:Object = new Object();;\r
-\r
-               /**\r
-               * Constructor for ServiceEvent class.\r
-               *\r
-               * @param type The type of event that the instance represents.\r
-               */\r
-               public function ServiceEvent(type:String, bubbles:Boolean = false, \r
-                                                                                                               cancelable:Boolean=false)\r
-               {\r
-                       super(type, bubbles, cancelable);\r
-               }\r
-\r
-               /**\r
-               *       This object contains data loaded in response\r
-               *       to remote service calls, and properties associated with that call.\r
-               */\r
-               public function get data():Object\r
-               {\r
-                       return _data;\r
-               }\r
-\r
-               public function set data(d:Object):void\r
-               {\r
-                       _data = d;\r
-               }\r
-               \r
-\r
-       }\r
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/example/_notes/dwsync.xml b/redakcja/static/filebrowser/uploadify/example/_notes/dwsync.xml
deleted file mode 100644 (file)
index 36ecaa5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>\r
-<dwsync>\r
-<file name="index.php" server="ftp.uploadify.com/www.uploadify.com/" local="128911652226450000" remote="128911651800000000" />\r
-<file name="cancel.png" server="ftp.uploadify.com/www.uploadify.com/" local="128794107540000000" remote="128911638000000000" />\r
-</dwsync>
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/example/cancel.png b/redakcja/static/filebrowser/uploadify/example/cancel.png
deleted file mode 100644 (file)
index 1c062ae..0000000
Binary files a/redakcja/static/filebrowser/uploadify/example/cancel.png and /dev/null differ
diff --git a/redakcja/static/filebrowser/uploadify/example/css/_notes/dwsync.xml b/redakcja/static/filebrowser/uploadify/example/css/_notes/dwsync.xml
deleted file mode 100644 (file)
index 049ffa5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>\r
-<dwsync>\r
-<file name="default.css" server="ftp.uploadify.com/www.uploadify.com/" local="128911634053800000" remote="128911633800000000" />\r
-<file name="uploadify.css" server="ftp.uploadify.com/www.uploadify.com/" local="128911650121540000" remote="128911650000000000" />\r
-</dwsync>
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/example/css/default.css b/redakcja/static/filebrowser/uploadify/example/css/default.css
deleted file mode 100644 (file)
index 2173d9e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-body {
-       font: 12px/16px Arial, Helvetica, sans-serif;
-}
-#fileQueue {
-       width: 400px;
-       height: 300px;
-       overflow: auto;
-       border: 1px solid #E5E5E5;
-       margin-bottom: 10px;
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/example/css/uploadify.css b/redakcja/static/filebrowser/uploadify/example/css/uploadify.css
deleted file mode 100644 (file)
index 754de06..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-Uploadify v2.1.0
-Release Date: August 24, 2009
-
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
-.uploadifyQueueItem {
-       font: 11px Verdana, Geneva, sans-serif;
-       border: 2px solid #E5E5E5;
-       background-color: #F5F5F5;
-       margin-top: 5px;
-       padding: 10px;
-       width: 350px;
-}
-.uploadifyError {
-       border: 2px solid #FBCBBC !important;
-       background-color: #FDE5DD !important;
-}
-.uploadifyQueueItem .cancel {
-       float: right;
-}
-.uploadifyProgress {
-       background-color: #FFFFFF;
-       border-top: 1px solid #808080;
-       border-left: 1px solid #808080;
-       border-right: 1px solid #C5C5C5;
-       border-bottom: 1px solid #C5C5C5;
-       margin-top: 10px;
-       width: 100%;
-}
-.uploadifyProgressBar {
-       background-color: #0099FF;
-       width: 1px;
-       height: 3px;
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/example/index.php b/redakcja/static/filebrowser/uploadify/example/index.php
deleted file mode 100644 (file)
index 769d11c..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
-<head>\r
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
-<title>Uploadify Example Script</title>\r
-<link href="/example/css/default.css" rel="stylesheet" type="text/css" />\r
-<link href="/example/css/uploadify.css" rel="stylesheet" type="text/css" />\r
-<script type="text/javascript" src="/example/scripts/jquery-1.3.2.min.js"></script>\r
-<script type="text/javascript" src="/example/scripts/swfobject.js"></script>\r
-<script type="text/javascript" src="/example/scripts/jquery.uploadify.v2.1.0.min.js"></script>\r
-<script type="text/javascript">\r
-$(document).ready(function() {\r
-       $("#uploadify").uploadify({\r
-               'uploader'       : 'scripts/uploadify.swf',\r
-               'script'         : 'scripts/uploadify.php',\r
-               'cancelImg'      : 'cancel.png',\r
-               'folder'         : 'uploads',\r
-               'queueID'        : 'fileQueue',\r
-               'auto'           : true,\r
-               'multi'          : true\r
-       });\r
-});\r
-</script>\r
-</head>\r
-\r
-<body>\r
-<div id="fileQueue"></div>\r
-<input type="file" name="uploadify" id="uploadify" />\r
-<p><a href="javascript:jQuery('#uploadify').uploadifyClearQueue()">Cancel All Uploads</a></p>\r
-</body>\r
-</html>\r
diff --git a/redakcja/static/filebrowser/uploadify/example/scripts/_notes/dwsync.xml b/redakcja/static/filebrowser/uploadify/example/scripts/_notes/dwsync.xml
deleted file mode 100644 (file)
index 13ca043..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>\r
-<dwsync>\r
-<file name="check.php" server="ftp.uploadify.com/www.uploadify.com/" local="128870002502195719" remote="128911633200000000" />\r
-<file name="expressInstall.swf" server="ftp.uploadify.com/www.uploadify.com/" local="128886114740000000" remote="128911633200000000" />\r
-<file name="jquery-1.3.2.min.js" server="ftp.uploadify.com/www.uploadify.com/" local="128799223180000000" remote="128911633200000000" />\r
-<file name="jquery.uploadify.v2.0.0.min.js" server="ftp.uploadify.com/www.uploadify.com/" local="128911646622270000" remote="128911646400000000" />\r
-<file name="uploadify.php" server="ftp.uploadify.com/www.uploadify.com/" local="128907148701750000" remote="128911633200000000" />\r
-<file name="uploadify.swf" server="ftp.uploadify.com/www.uploadify.com/" local="128911508403330000" remote="128911633200000000" />\r
-<file name="swfobject.js" server="ftp.uploadify.com/www.uploadify.com/" local="128892320400000000" remote="128911637400000000" />\r
-</dwsync>
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/example/scripts/check.php b/redakcja/static/filebrowser/uploadify/example/scripts/check.php
deleted file mode 100644 (file)
index d7dc571..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php\r
-/*\r
-Uploadify v2.1.0\r
-Release Date: August 24, 2009\r
-\r
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels\r
-\r
-Permission is hereby granted, free of charge, to any person obtaining a copy\r
-of this software and associated documentation files (the "Software"), to deal\r
-in the Software without restriction, including without limitation the rights\r
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-copies of the Software, and to permit persons to whom the Software is\r
-furnished to do so, subject to the following conditions:\r
-\r
-The above copyright notice and this permission notice shall be included in\r
-all copies or substantial portions of the Software.\r
-\r
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-THE SOFTWARE.\r
-*/\r
-$fileArray = array();\r
-foreach ($_POST as $key => $value) {\r
-       if ($key != 'folder') {\r
-               if (file_exists($_SERVER['DOCUMENT_ROOT'] . $_POST['folder'] . '/' . $value)) {\r
-                       $fileArray[$key] = $value;\r
-               }\r
-       }\r
-}\r
-echo json_encode($fileArray);\r
-?>
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/example/scripts/expressInstall.swf b/redakcja/static/filebrowser/uploadify/example/scripts/expressInstall.swf
deleted file mode 100644 (file)
index 0fbf8fc..0000000
Binary files a/redakcja/static/filebrowser/uploadify/example/scripts/expressInstall.swf and /dev/null differ
diff --git a/redakcja/static/filebrowser/uploadify/example/scripts/jquery-1.3.2.min.js b/redakcja/static/filebrowser/uploadify/example/scripts/jquery-1.3.2.min.js
deleted file mode 100644 (file)
index b1ae21d..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * jQuery JavaScript Library v1.3.2
- * http://jquery.com/
- *
- * Copyright (c) 2009 John Resig
- * Dual licensed under the MIT and GPL licenses.
- * http://docs.jquery.com/License
- *
- * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
- * Revision: 6246
- */
-(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
-/*
- * Sizzle CSS Selector Engine - v0.9.3
- *  Copyright 2009, The Dojo Foundation
- *  Released under the MIT, BSD, and GPL Licenses.
- *  More information: http://sizzlejs.com/
- */
-(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/example/scripts/jquery.uploadify.v2.1.0.min.js b/redakcja/static/filebrowser/uploadify/example/scripts/jquery.uploadify.v2.1.0.min.js
deleted file mode 100644 (file)
index 4305311..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
-Uploadify v2.1.0
-Release Date: August 24, 2009
-
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
-
-if(jQuery){(function(a){a.extend(a.fn,{uploadify:function(b){a(this).each(function(){settings=a.extend({id:a(this).attr("id"),uploader:"uploadify.swf",script:"uploadify.php",expressInstall:null,folder:"",height:30,width:110,cancelImg:"cancel.png",wmode:"opaque",scriptAccess:"sameDomain",fileDataName:"Filedata",method:"POST",queueSizeLimit:999,simUploadLimit:1,queueID:false,displayData:"percentage",onInit:function(){},onSelect:function(){},onQueueFull:function(){},onCheck:function(){},onCancel:function(){},onError:function(){},onProgress:function(){},onComplete:function(){},onAllComplete:function(){}},b);var e=location.pathname;e=e.split("/");e.pop();e=e.join("/")+"/";var f={};f.uploadifyID=settings.id;f.pagepath=e;if(settings.buttonImg){f.buttonImg=escape(settings.buttonImg)}if(settings.buttonText){f.buttonText=escape(settings.buttonText)}if(settings.rollover){f.rollover=true}f.script=settings.script;f.folder=escape(settings.folder);if(settings.scriptData){var g="";for(var d in settings.scriptData){g+="&"+d+"="+settings.scriptData[d]}f.scriptData=escape(g.substr(1))}f.width=settings.width;f.height=settings.height;f.wmode=settings.wmode;f.method=settings.method;f.queueSizeLimit=settings.queueSizeLimit;f.simUploadLimit=settings.simUploadLimit;if(settings.hideButton){f.hideButton=true}if(settings.fileDesc){f.fileDesc=settings.fileDesc}if(settings.fileExt){f.fileExt=settings.fileExt}if(settings.multi){f.multi=true}if(settings.auto){f.auto=true}if(settings.sizeLimit){f.sizeLimit=settings.sizeLimit}if(settings.checkScript){f.checkScript=settings.checkScript}if(settings.fileDataName){f.fileDataName=settings.fileDataName}if(settings.queueID){f.queueID=settings.queueID}if(settings.onInit()!==false){a(this).css("display","none");a(this).after('<div id="'+a(this).attr("id")+'Uploader"></div>');swfobject.embedSWF(settings.uploader,settings.id+"Uploader",settings.width,settings.height,"9.0.24",settings.expressInstall,f,{quality:"high",wmode:settings.wmode,allowScriptAccess:settings.scriptAccess});if(settings.queueID==false){a("#"+a(this).attr("id")+"Uploader").after('<div id="'+a(this).attr("id")+'Queue" class="uploadifyQueue"></div>')}}if(typeof(settings.onOpen)=="function"){a(this).bind("uploadifyOpen",settings.onOpen)}a(this).bind("uploadifySelect",{action:settings.onSelect,queueID:settings.queueID},function(j,h,i){if(j.data.action(j,h,i)!==false){var k=Math.round(i.size/1024*100)*0.01;var l="KB";if(k>1000){k=Math.round(k*0.001*100)*0.01;l="MB"}var m=k.toString().split(".");if(m.length>1){k=m[0]+"."+m[1].substr(0,2)}else{k=m[0]}if(i.name.length>20){fileName=i.name.substr(0,20)+"..."}else{fileName=i.name}queue="#"+a(this).attr("id")+"Queue";if(j.data.queueID){queue="#"+j.data.queueID}a(queue).append('<div id="'+a(this).attr("id")+h+'" class="uploadifyQueueItem"><div class="cancel"><a href="javascript:jQuery(\'#'+a(this).attr("id")+"').uploadifyCancel('"+h+'\')"><img src="'+settings.cancelImg+'" border="0" /></a></div><span class="fileName">'+fileName+" ("+k+l+')</span><span class="percentage"></span><div class="uploadifyProgress"><div id="'+a(this).attr("id")+h+'ProgressBar" class="uploadifyProgressBar"><!--Progress Bar--></div></div></div>')}});if(typeof(settings.onSelectOnce)=="function"){a(this).bind("uploadifySelectOnce",settings.onSelectOnce)}a(this).bind("uploadifyQueueFull",{action:settings.onQueueFull},function(h,i){if(h.data.action(h,i)!==false){alert("The queue is full.  The max size is "+i+".")}});a(this).bind("uploadifyCheckExist",{action:settings.onCheck},function(m,l,k,j,o){var i=new Object();i=k;i.folder=e+j;if(o){for(var h in k){var n=h}}a.post(l,i,function(r){for(var p in r){if(m.data.action(m,l,k,j,o)!==false){var q=confirm("Do you want to replace the file "+r[p]+"?");if(!q){document.getElementById(a(m.target).attr("id")+"Uploader").cancelFileUpload(p,true,true)}}}if(o){document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(n,true)}else{document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(null,true)}},"json")});a(this).bind("uploadifyCancel",{action:settings.onCancel},function(l,h,k,m,j){if(l.data.action(l,h,k,m,j)!==false){var i=(j==true)?0:250;a("#"+a(this).attr("id")+h).fadeOut(i,function(){a(this).remove()})}});if(typeof(settings.onClearQueue)=="function"){a(this).bind("uploadifyClearQueue",settings.onClearQueue)}var c=[];a(this).bind("uploadifyError",{action:settings.onError},function(l,h,k,j){if(l.data.action(l,h,k,j)!==false){var i=new Array(h,k,j);c.push(i);a("#"+a(this).attr("id")+h+" .percentage").text(" - "+j.type+" Error");a("#"+a(this).attr("id")+h).addClass("uploadifyError")}});a(this).bind("uploadifyProgress",{action:settings.onProgress,toDisplay:settings.displayData},function(j,h,i,k){if(j.data.action(j,h,i,k)!==false){a("#"+a(this).attr("id")+h+"ProgressBar").css("width",k.percentage+"%");if(j.data.toDisplay=="percentage"){displayData=" - "+k.percentage+"%"}if(j.data.toDisplay=="speed"){displayData=" - "+k.speed+"KB/s"}if(j.data.toDisplay==null){displayData=" "}a("#"+a(this).attr("id")+h+" .percentage").text(displayData)}});a(this).bind("uploadifyComplete",{action:settings.onComplete},function(k,h,j,i,l){if(k.data.action(k,h,j,unescape(i),l)!==false){a("#"+a(this).attr("id")+h+" .percentage").text(" - Completed");a("#"+a(this).attr("id")+h).fadeOut(250,function(){a(this).remove()})}});if(typeof(settings.onAllComplete)=="function"){a(this).bind("uploadifyAllComplete",{action:settings.onAllComplete},function(h,i){if(h.data.action(h,i)!==false){c=[]}})}})},uploadifySettings:function(f,j,c){var g=false;a(this).each(function(){if(f=="scriptData"&&j!=null){if(c){var i=j}else{var i=a.extend(settings.scriptData,j)}var l="";for(var k in i){l+="&"+k+"="+escape(i[k])}j=l.substr(1)}g=document.getElementById(a(this).attr("id")+"Uploader").updateSettings(f,j)});if(j==null){if(f=="scriptData"){var b=unescape(g).split("&");var e=new Object();for(var d=0;d<b.length;d++){var h=b[d].split("=");e[h[0]]=h[1]}g=e}return g}},uploadifyUpload:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").startFileUpload(b,false)})},uploadifyCancel:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").cancelFileUpload(b,true,false)})},uploadifyClearQueue:function(){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").clearFileUploadQueue(false)})}})})(jQuery)};
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/example/scripts/swfobject.js b/redakcja/static/filebrowser/uploadify/example/scripts/swfobject.js
deleted file mode 100644 (file)
index acc7da4..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-/*     SWFObject v2.2 <http://code.google.com/p/swfobject/>
-       is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
-*/
-var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/example/scripts/uploadify.php b/redakcja/static/filebrowser/uploadify/example/scripts/uploadify.php
deleted file mode 100644 (file)
index 8bf14a6..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php\r
-/*\r
-Uploadify v2.1.0\r
-Release Date: August 24, 2009\r
-\r
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels\r
-\r
-Permission is hereby granted, free of charge, to any person obtaining a copy\r
-of this software and associated documentation files (the "Software"), to deal\r
-in the Software without restriction, including without limitation the rights\r
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-copies of the Software, and to permit persons to whom the Software is\r
-furnished to do so, subject to the following conditions:\r
-\r
-The above copyright notice and this permission notice shall be included in\r
-all copies or substantial portions of the Software.\r
-\r
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-THE SOFTWARE.\r
-*/\r
-if (!empty($_FILES)) {\r
-       $tempFile = $_FILES['Filedata']['tmp_name'];\r
-       $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/';\r
-       $targetFile =  str_replace('//','/',$targetPath) . $_FILES['Filedata']['name'];\r
-       \r
-       // $fileTypes  = str_replace('*.','',$_REQUEST['fileext']);\r
-       // $fileTypes  = str_replace(';','|',$fileTypes);\r
-       // $typesArray = split('\|',$fileTypes);\r
-       // $fileParts  = pathinfo($_FILES['Filedata']['name']);\r
-       \r
-       // if (in_array($fileParts['extension'],$typesArray)) {\r
-               // Uncomment the following line if you want to make the directory if it doesn't exist\r
-               // mkdir(str_replace('//','/',$targetPath), 0755, true);\r
-               \r
-               move_uploaded_file($tempFile,$targetFile);\r
-               echo "1";\r
-       // } else {\r
-       //      echo 'Invalid file type.';\r
-       // }\r
-}\r
-?>
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/example/scripts/uploadify.swf b/redakcja/static/filebrowser/uploadify/example/scripts/uploadify.swf
deleted file mode 100644 (file)
index 4d27952..0000000
Binary files a/redakcja/static/filebrowser/uploadify/example/scripts/uploadify.swf and /dev/null differ
diff --git a/redakcja/static/filebrowser/uploadify/expressInstall.swf b/redakcja/static/filebrowser/uploadify/expressInstall.swf
deleted file mode 100644 (file)
index 0fbf8fc..0000000
Binary files a/redakcja/static/filebrowser/uploadify/expressInstall.swf and /dev/null differ
diff --git a/redakcja/static/filebrowser/uploadify/jquery-1.3.2.min.js b/redakcja/static/filebrowser/uploadify/jquery-1.3.2.min.js
deleted file mode 100644 (file)
index b1ae21d..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * jQuery JavaScript Library v1.3.2
- * http://jquery.com/
- *
- * Copyright (c) 2009 John Resig
- * Dual licensed under the MIT and GPL licenses.
- * http://docs.jquery.com/License
- *
- * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
- * Revision: 6246
- */
-(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
-/*
- * Sizzle CSS Selector Engine - v0.9.3
- *  Copyright 2009, The Dojo Foundation
- *  Released under the MIT, BSD, and GPL Licenses.
- *  More information: http://sizzlejs.com/
- */
-(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/jquery.uploadify.v2.1.0.js b/redakcja/static/filebrowser/uploadify/jquery.uploadify.v2.1.0.js
deleted file mode 100644 (file)
index 43c87be..0000000
+++ /dev/null
@@ -1,258 +0,0 @@
-/*
-Uploadify v2.1.0
-Release Date: August 24, 2009
-
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
-
-if(jQuery)(
-       function(jQuery){
-               jQuery.extend(jQuery.fn,{
-                       uploadify:function(options) {
-                               jQuery(this).each(function(){
-                                       settings = jQuery.extend({
-                                       id             : jQuery(this).attr('id'), // The ID of the object being Uploadified
-                                       uploader       : 'uploadify.swf', // The path to the uploadify swf file
-                                       script         : 'uploadify.php', // The path to the uploadify backend upload script
-                                       expressInstall : null, // The path to the express install swf file
-                                       folder         : '', // The path to the upload folder
-                                       height         : 30, // The height of the flash button
-                                       width          : 110, // The width of the flash button
-                                       cancelImg      : 'cancel.png', // The path to the cancel image for the default file queue item container
-                                       wmode          : 'opaque', // The wmode of the flash file
-                                       scriptAccess   : 'sameDomain', // Set to "always" to allow script access across domains
-                                       fileDataName   : 'Filedata', // The name of the file collection object in the backend upload script
-                                       method         : 'POST', // The method for sending variables to the backend upload script
-                                       queueSizeLimit : 999, // The maximum size of the file queue
-                                       simUploadLimit : 1, // The number of simultaneous uploads allowed
-                                       queueID        : false, // The optional ID of the queue container
-                                       displayData    : 'percentage', // Set to "speed" to show the upload speed in the default queue item
-                                       onInit         : function() {}, // Function to run when uploadify is initialized
-                                       onSelect       : function() {}, // Function to run when a file is selected
-                                       onQueueFull    : function() {}, // Function to run when the queue reaches capacity
-                                       onCheck        : function() {}, // Function to run when script checks for duplicate files on the server
-                                       onCancel       : function() {}, // Function to run when an item is cleared from the queue
-                                       onError        : function() {}, // Function to run when an upload item returns an error
-                                       onProgress     : function() {}, // Function to run each time the upload progress is updated
-                                       onComplete     : function() {}, // Function to run when an upload is completed
-                                       onAllComplete  : function() {}  // Functino to run when all uploads are completed
-                               }, options);
-                               var pagePath = location.pathname;
-                               pagePath = pagePath.split('/');
-                               pagePath.pop();
-                               pagePath = pagePath.join('/') + '/';
-                               var data = {};
-                               data.uploadifyID = settings.id;
-                               data.pagepath = pagePath;
-                               if (settings.buttonImg) data.buttonImg = escape(settings.buttonImg);
-                               if (settings.buttonText) data.buttonText = escape(settings.buttonText);
-                               if (settings.rollover) data.rollover = true;
-                               data.script = settings.script;
-                               data.folder = escape(settings.folder);
-                               if (settings.scriptData) {
-                                       var scriptDataString = '';
-                                       for (var name in settings.scriptData) {
-                                               scriptDataString += '&' + name + '=' + settings.scriptData[name];
-                                       }
-                                       data.scriptData = escape(scriptDataString.substr(1));
-                               }
-                               data.width          = settings.width;
-                               data.height         = settings.height;
-                               data.wmode          = settings.wmode;
-                               data.method         = settings.method;
-                               data.queueSizeLimit = settings.queueSizeLimit;
-                               data.simUploadLimit = settings.simUploadLimit;
-                               if (settings.hideButton)   data.hideButton   = true;
-                               if (settings.fileDesc)     data.fileDesc     = settings.fileDesc;
-                               if (settings.fileExt)      data.fileExt      = settings.fileExt;
-                               if (settings.multi)        data.multi        = true;
-                               if (settings.auto)         data.auto         = true;
-                               if (settings.sizeLimit)    data.sizeLimit    = settings.sizeLimit;
-                               if (settings.checkScript)  data.checkScript  = settings.checkScript;
-                               if (settings.fileDataName) data.fileDataName = settings.fileDataName;
-                               if (settings.queueID)      data.queueID      = settings.queueID;
-                               if (settings.onInit() !== false) {
-                                       jQuery(this).css('display','none');
-                                       jQuery(this).after('<div id="' + jQuery(this).attr('id') + 'Uploader"></div>');
-                                       swfobject.embedSWF(settings.uploader, settings.id + 'Uploader', settings.width, settings.height, '9.0.24', settings.expressInstall, data, {'quality':'high','wmode':settings.wmode,'allowScriptAccess':settings.scriptAccess});
-                                       if (settings.queueID == false) {
-                                               jQuery("#" + jQuery(this).attr('id') + "Uploader").after('<div id="' + jQuery(this).attr('id') + 'Queue" class="uploadifyQueue"></div>');
-                                       }
-                               }
-                               if (typeof(settings.onOpen) == 'function') {
-                                       jQuery(this).bind("uploadifyOpen", settings.onOpen);
-                               }
-                               jQuery(this).bind("uploadifySelect", {'action': settings.onSelect, 'queueID': settings.queueID}, function(event, ID, fileObj) {
-                                       if (event.data.action(event, ID, fileObj) !== false) {
-                                               var byteSize = Math.round(fileObj.size / 1024 * 100) * .01;
-                                               var suffix = 'KB';
-                                               if (byteSize > 1000) {
-                                                       byteSize = Math.round(byteSize *.001 * 100) * .01;
-                                                       suffix = 'MB';
-                                               }
-                                               var sizeParts = byteSize.toString().split('.');
-                                               if (sizeParts.length > 1) {
-                                                       byteSize = sizeParts[0] + '.' + sizeParts[1].substr(0,2);
-                                               } else {
-                                                       byteSize = sizeParts[0];
-                                               }
-                                               if (fileObj.name.length > 20) {
-                                                       fileName = fileObj.name.substr(0,20) + '...';
-                                               } else {
-                                                       fileName = fileObj.name;
-                                               }
-                                               queue = '#' + jQuery(this).attr('id') + 'Queue';
-                                               if (event.data.queueID) {
-                                                       queue = '#' + event.data.queueID;
-                                               }
-                                               jQuery(queue).append('<div id="' + jQuery(this).attr('id') + ID + '" class="uploadifyQueueItem">\
-                                                               <div class="cancel">\
-                                                                       <a href="javascript:jQuery(\'#' + jQuery(this).attr('id') + '\').uploadifyCancel(\'' + ID + '\')"><img src="' + settings.cancelImg + '" border="0" /></a>\
-                                                               </div>\
-                                                               <span class="fileName">' + fileName + ' (' + byteSize + suffix + ')</span><span class="percentage"></span>\
-                                                               <div class="uploadifyProgress">\
-                                                                       <div id="' + jQuery(this).attr('id') + ID + 'ProgressBar" class="uploadifyProgressBar"><!--Progress Bar--></div>\
-                                                               </div>\
-                                                       </div>');
-                                       }
-                               });
-                               if (typeof(settings.onSelectOnce) == 'function') {
-                                       jQuery(this).bind("uploadifySelectOnce", settings.onSelectOnce);
-                               }
-                               jQuery(this).bind("uploadifyQueueFull", {'action': settings.onQueueFull}, function(event, queueSizeLimit) {
-                                       if (event.data.action(event, queueSizeLimit) !== false) {
-                                               alert('The queue is full.  The max size is ' + queueSizeLimit + '.');
-                                       }
-                               });
-                               jQuery(this).bind("uploadifyCheckExist", {'action': settings.onCheck}, function(event, checkScript, fileQueueObj, folder, single) {
-                                       var postData = new Object();
-                                       postData = fileQueueObj;
-                                       postData.folder = pagePath + folder;
-                                       if (single) {
-                                               for (var ID in fileQueueObj) {
-                                                       var singleFileID = ID;
-                                               }
-                                       }
-                                       jQuery.post(checkScript, postData, function(data) {
-                                               for(var key in data) {
-                                                       if (event.data.action(event, checkScript, fileQueueObj, folder, single) !== false) {
-                                                               var replaceFile = confirm("Do you want to replace the file " + data[key] + "?");
-                                                               if (!replaceFile) {
-                                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').cancelFileUpload(key, true,true);
-                                                               }
-                                                       }
-                                               }
-                                               if (single) {
-                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').startFileUpload(singleFileID, true);
-                                               } else {
-                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').startFileUpload(null, true);
-                                               }
-                                       }, "json");
-                               });
-                               jQuery(this).bind("uploadifyCancel", {'action': settings.onCancel}, function(event, ID, fileObj, data, clearFast) {
-                                       if (event.data.action(event, ID, fileObj, data, clearFast) !== false) {
-                                               var fadeSpeed = (clearFast == true) ? 0 : 250;
-                                               jQuery("#" + jQuery(this).attr('id') + ID).fadeOut(fadeSpeed, function() { jQuery(this).remove() });
-                                       }
-                               });
-                               if (typeof(settings.onClearQueue) == 'function') {
-                                       jQuery(this).bind("uploadifyClearQueue", settings.onClearQueue);
-                               }
-                               var errorArray = [];
-                               jQuery(this).bind("uploadifyError", {'action': settings.onError}, function(event, ID, fileObj, errorObj) {
-                                       if (event.data.action(event, ID, fileObj, errorObj) !== false) {
-                                               var fileArray = new Array(ID, fileObj, errorObj);
-                                               errorArray.push(fileArray);
-                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(" - " + errorObj.type + " Error");
-                                               jQuery("#" + jQuery(this).attr('id') + ID).addClass('uploadifyError');
-                                       }
-                               });
-                               jQuery(this).bind("uploadifyProgress", {'action': settings.onProgress, 'toDisplay': settings.displayData}, function(event, ID, fileObj, data) {
-                                       if (event.data.action(event, ID, fileObj, data) !== false) {
-                                               jQuery("#" + jQuery(this).attr('id') + ID + "ProgressBar").css('width', data.percentage + '%');
-                                               if (event.data.toDisplay == 'percentage') displayData = ' - ' + data.percentage + '%';
-                                               if (event.data.toDisplay == 'speed') displayData = ' - ' + data.speed + 'KB/s';
-                                               if (event.data.toDisplay == null) displayData = ' ';
-                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(displayData);
-                                       }
-                               });
-                               jQuery(this).bind("uploadifyComplete", {'action': settings.onComplete}, function(event, ID, fileObj, response, data) {
-                                       if (event.data.action(event, ID, fileObj, unescape(response), data) !== false) {
-                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(' - Completed');
-                                               jQuery("#" + jQuery(this).attr('id') + ID).fadeOut(250, function() { jQuery(this).remove()});
-                                       }
-                               });
-                               if (typeof(settings.onAllComplete) == 'function') {
-                                       jQuery(this).bind("uploadifyAllComplete", {'action': settings.onAllComplete}, function(event, uploadObj) {
-                                               if (event.data.action(event, uploadObj) !== false) {
-                                                       errorArray = [];
-                                               }
-                                       });
-                               }
-                       });
-               },
-               uploadifySettings:function(settingName, settingValue, resetObject) {
-                       var returnValue = false;
-                       jQuery(this).each(function() {
-                               if (settingName == 'scriptData' && settingValue != null) {
-                                       if (resetObject) {
-                                               var scriptData = settingValue;
-                                       } else {
-                                               var scriptData = jQuery.extend(settings.scriptData, settingValue);
-                                       }
-                                       var scriptDataString = '';
-                                       for (var name in scriptData) {
-                                               scriptDataString += '&' + name + '=' + escape(scriptData[name]);
-                                       }
-                                       settingValue = scriptDataString.substr(1);
-                               }
-                               returnValue = document.getElementById(jQuery(this).attr('id') + 'Uploader').updateSettings(settingName, settingValue);
-                       });
-                       if (settingValue == null) {
-                               if (settingName == 'scriptData') {
-                                       var returnSplit = unescape(returnValue).split('&');
-                                       var returnObj   = new Object();
-                                       for (var i = 0; i < returnSplit.length; i++) {
-                                               var iSplit = returnSplit[i].split('=');
-                                               returnObj[iSplit[0]] = iSplit[1];
-                                       }
-                                       returnValue = returnObj;
-                               }
-                               return returnValue;
-                       }
-               },
-               uploadifyUpload:function(ID) {
-                       jQuery(this).each(function() {
-                               document.getElementById(jQuery(this).attr('id') + 'Uploader').startFileUpload(ID, false);
-                       });
-               },
-               uploadifyCancel:function(ID) {
-                       jQuery(this).each(function() {
-                               document.getElementById(jQuery(this).attr('id') + 'Uploader').cancelFileUpload(ID, true, false);
-                       });
-               },
-               uploadifyClearQueue:function() {
-                       jQuery(this).each(function() {
-                               document.getElementById(jQuery(this).attr('id') + 'Uploader').clearFileUploadQueue(false);
-                       });
-               }
-       })
-})(jQuery);
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/jquery.uploadify.v2.1.0.min.js b/redakcja/static/filebrowser/uploadify/jquery.uploadify.v2.1.0.min.js
deleted file mode 100644 (file)
index 4305311..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
-Uploadify v2.1.0
-Release Date: August 24, 2009
-
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
-
-if(jQuery){(function(a){a.extend(a.fn,{uploadify:function(b){a(this).each(function(){settings=a.extend({id:a(this).attr("id"),uploader:"uploadify.swf",script:"uploadify.php",expressInstall:null,folder:"",height:30,width:110,cancelImg:"cancel.png",wmode:"opaque",scriptAccess:"sameDomain",fileDataName:"Filedata",method:"POST",queueSizeLimit:999,simUploadLimit:1,queueID:false,displayData:"percentage",onInit:function(){},onSelect:function(){},onQueueFull:function(){},onCheck:function(){},onCancel:function(){},onError:function(){},onProgress:function(){},onComplete:function(){},onAllComplete:function(){}},b);var e=location.pathname;e=e.split("/");e.pop();e=e.join("/")+"/";var f={};f.uploadifyID=settings.id;f.pagepath=e;if(settings.buttonImg){f.buttonImg=escape(settings.buttonImg)}if(settings.buttonText){f.buttonText=escape(settings.buttonText)}if(settings.rollover){f.rollover=true}f.script=settings.script;f.folder=escape(settings.folder);if(settings.scriptData){var g="";for(var d in settings.scriptData){g+="&"+d+"="+settings.scriptData[d]}f.scriptData=escape(g.substr(1))}f.width=settings.width;f.height=settings.height;f.wmode=settings.wmode;f.method=settings.method;f.queueSizeLimit=settings.queueSizeLimit;f.simUploadLimit=settings.simUploadLimit;if(settings.hideButton){f.hideButton=true}if(settings.fileDesc){f.fileDesc=settings.fileDesc}if(settings.fileExt){f.fileExt=settings.fileExt}if(settings.multi){f.multi=true}if(settings.auto){f.auto=true}if(settings.sizeLimit){f.sizeLimit=settings.sizeLimit}if(settings.checkScript){f.checkScript=settings.checkScript}if(settings.fileDataName){f.fileDataName=settings.fileDataName}if(settings.queueID){f.queueID=settings.queueID}if(settings.onInit()!==false){a(this).css("display","none");a(this).after('<div id="'+a(this).attr("id")+'Uploader"></div>');swfobject.embedSWF(settings.uploader,settings.id+"Uploader",settings.width,settings.height,"9.0.24",settings.expressInstall,f,{quality:"high",wmode:settings.wmode,allowScriptAccess:settings.scriptAccess});if(settings.queueID==false){a("#"+a(this).attr("id")+"Uploader").after('<div id="'+a(this).attr("id")+'Queue" class="uploadifyQueue"></div>')}}if(typeof(settings.onOpen)=="function"){a(this).bind("uploadifyOpen",settings.onOpen)}a(this).bind("uploadifySelect",{action:settings.onSelect,queueID:settings.queueID},function(j,h,i){if(j.data.action(j,h,i)!==false){var k=Math.round(i.size/1024*100)*0.01;var l="KB";if(k>1000){k=Math.round(k*0.001*100)*0.01;l="MB"}var m=k.toString().split(".");if(m.length>1){k=m[0]+"."+m[1].substr(0,2)}else{k=m[0]}if(i.name.length>20){fileName=i.name.substr(0,20)+"..."}else{fileName=i.name}queue="#"+a(this).attr("id")+"Queue";if(j.data.queueID){queue="#"+j.data.queueID}a(queue).append('<div id="'+a(this).attr("id")+h+'" class="uploadifyQueueItem"><div class="cancel"><a href="javascript:jQuery(\'#'+a(this).attr("id")+"').uploadifyCancel('"+h+'\')"><img src="'+settings.cancelImg+'" border="0" /></a></div><span class="fileName">'+fileName+" ("+k+l+')</span><span class="percentage"></span><div class="uploadifyProgress"><div id="'+a(this).attr("id")+h+'ProgressBar" class="uploadifyProgressBar"><!--Progress Bar--></div></div></div>')}});if(typeof(settings.onSelectOnce)=="function"){a(this).bind("uploadifySelectOnce",settings.onSelectOnce)}a(this).bind("uploadifyQueueFull",{action:settings.onQueueFull},function(h,i){if(h.data.action(h,i)!==false){alert("The queue is full.  The max size is "+i+".")}});a(this).bind("uploadifyCheckExist",{action:settings.onCheck},function(m,l,k,j,o){var i=new Object();i=k;i.folder=e+j;if(o){for(var h in k){var n=h}}a.post(l,i,function(r){for(var p in r){if(m.data.action(m,l,k,j,o)!==false){var q=confirm("Do you want to replace the file "+r[p]+"?");if(!q){document.getElementById(a(m.target).attr("id")+"Uploader").cancelFileUpload(p,true,true)}}}if(o){document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(n,true)}else{document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(null,true)}},"json")});a(this).bind("uploadifyCancel",{action:settings.onCancel},function(l,h,k,m,j){if(l.data.action(l,h,k,m,j)!==false){var i=(j==true)?0:250;a("#"+a(this).attr("id")+h).fadeOut(i,function(){a(this).remove()})}});if(typeof(settings.onClearQueue)=="function"){a(this).bind("uploadifyClearQueue",settings.onClearQueue)}var c=[];a(this).bind("uploadifyError",{action:settings.onError},function(l,h,k,j){if(l.data.action(l,h,k,j)!==false){var i=new Array(h,k,j);c.push(i);a("#"+a(this).attr("id")+h+" .percentage").text(" - "+j.type+" Error");a("#"+a(this).attr("id")+h).addClass("uploadifyError")}});a(this).bind("uploadifyProgress",{action:settings.onProgress,toDisplay:settings.displayData},function(j,h,i,k){if(j.data.action(j,h,i,k)!==false){a("#"+a(this).attr("id")+h+"ProgressBar").css("width",k.percentage+"%");if(j.data.toDisplay=="percentage"){displayData=" - "+k.percentage+"%"}if(j.data.toDisplay=="speed"){displayData=" - "+k.speed+"KB/s"}if(j.data.toDisplay==null){displayData=" "}a("#"+a(this).attr("id")+h+" .percentage").text(displayData)}});a(this).bind("uploadifyComplete",{action:settings.onComplete},function(k,h,j,i,l){if(k.data.action(k,h,j,unescape(i),l)!==false){a("#"+a(this).attr("id")+h+" .percentage").text(" - Completed");a("#"+a(this).attr("id")+h).fadeOut(250,function(){a(this).remove()})}});if(typeof(settings.onAllComplete)=="function"){a(this).bind("uploadifyAllComplete",{action:settings.onAllComplete},function(h,i){if(h.data.action(h,i)!==false){c=[]}})}})},uploadifySettings:function(f,j,c){var g=false;a(this).each(function(){if(f=="scriptData"&&j!=null){if(c){var i=j}else{var i=a.extend(settings.scriptData,j)}var l="";for(var k in i){l+="&"+k+"="+escape(i[k])}j=l.substr(1)}g=document.getElementById(a(this).attr("id")+"Uploader").updateSettings(f,j)});if(j==null){if(f=="scriptData"){var b=unescape(g).split("&");var e=new Object();for(var d=0;d<b.length;d++){var h=b[d].split("=");e[h[0]]=h[1]}g=e}return g}},uploadifyUpload:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").startFileUpload(b,false)})},uploadifyCancel:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").cancelFileUpload(b,true,false)})},uploadifyClearQueue:function(){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").clearFileUploadQueue(false)})}})})(jQuery)};
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/swfobject.js b/redakcja/static/filebrowser/uploadify/swfobject.js
deleted file mode 100644 (file)
index acc7da4..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-/*     SWFObject v2.2 <http://code.google.com/p/swfobject/>
-       is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
-*/
-var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/uploadify.allglyphs.swf b/redakcja/static/filebrowser/uploadify/uploadify.allglyphs.swf
deleted file mode 100644 (file)
index 4bad011..0000000
Binary files a/redakcja/static/filebrowser/uploadify/uploadify.allglyphs.swf and /dev/null differ
diff --git a/redakcja/static/filebrowser/uploadify/uploadify.css b/redakcja/static/filebrowser/uploadify/uploadify.css
deleted file mode 100644 (file)
index 754de06..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-Uploadify v2.1.0
-Release Date: August 24, 2009
-
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
-.uploadifyQueueItem {
-       font: 11px Verdana, Geneva, sans-serif;
-       border: 2px solid #E5E5E5;
-       background-color: #F5F5F5;
-       margin-top: 5px;
-       padding: 10px;
-       width: 350px;
-}
-.uploadifyError {
-       border: 2px solid #FBCBBC !important;
-       background-color: #FDE5DD !important;
-}
-.uploadifyQueueItem .cancel {
-       float: right;
-}
-.uploadifyProgress {
-       background-color: #FFFFFF;
-       border-top: 1px solid #808080;
-       border-left: 1px solid #808080;
-       border-right: 1px solid #C5C5C5;
-       border-bottom: 1px solid #C5C5C5;
-       margin-top: 10px;
-       width: 100%;
-}
-.uploadifyProgressBar {
-       background-color: #0099FF;
-       width: 1px;
-       height: 3px;
-}
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/uploadify.fla b/redakcja/static/filebrowser/uploadify/uploadify.fla
deleted file mode 100644 (file)
index c07bbaf..0000000
Binary files a/redakcja/static/filebrowser/uploadify/uploadify.fla and /dev/null differ
diff --git a/redakcja/static/filebrowser/uploadify/uploadify.php b/redakcja/static/filebrowser/uploadify/uploadify.php
deleted file mode 100644 (file)
index 8bf14a6..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php\r
-/*\r
-Uploadify v2.1.0\r
-Release Date: August 24, 2009\r
-\r
-Copyright (c) 2009 Ronnie Garcia, Travis Nickels\r
-\r
-Permission is hereby granted, free of charge, to any person obtaining a copy\r
-of this software and associated documentation files (the "Software"), to deal\r
-in the Software without restriction, including without limitation the rights\r
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-copies of the Software, and to permit persons to whom the Software is\r
-furnished to do so, subject to the following conditions:\r
-\r
-The above copyright notice and this permission notice shall be included in\r
-all copies or substantial portions of the Software.\r
-\r
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-THE SOFTWARE.\r
-*/\r
-if (!empty($_FILES)) {\r
-       $tempFile = $_FILES['Filedata']['tmp_name'];\r
-       $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/';\r
-       $targetFile =  str_replace('//','/',$targetPath) . $_FILES['Filedata']['name'];\r
-       \r
-       // $fileTypes  = str_replace('*.','',$_REQUEST['fileext']);\r
-       // $fileTypes  = str_replace(';','|',$fileTypes);\r
-       // $typesArray = split('\|',$fileTypes);\r
-       // $fileParts  = pathinfo($_FILES['Filedata']['name']);\r
-       \r
-       // if (in_array($fileParts['extension'],$typesArray)) {\r
-               // Uncomment the following line if you want to make the directory if it doesn't exist\r
-               // mkdir(str_replace('//','/',$targetPath), 0755, true);\r
-               \r
-               move_uploaded_file($tempFile,$targetFile);\r
-               echo "1";\r
-       // } else {\r
-       //      echo 'Invalid file type.';\r
-       // }\r
-}\r
-?>
\ No newline at end of file
diff --git a/redakcja/static/filebrowser/uploadify/uploadify.swf b/redakcja/static/filebrowser/uploadify/uploadify.swf
deleted file mode 100644 (file)
index 0385d9e..0000000
Binary files a/redakcja/static/filebrowser/uploadify/uploadify.swf and /dev/null differ
diff --git a/redakcja/static/icons/clock.png b/redakcja/static/icons/clock.png
new file mode 100644 (file)
index 0000000..57e496f
Binary files /dev/null and b/redakcja/static/icons/clock.png differ
diff --git a/redakcja/static/icons/ok.png b/redakcja/static/icons/ok.png
new file mode 100644 (file)
index 0000000..ea094f4
Binary files /dev/null and b/redakcja/static/icons/ok.png differ
diff --git a/redakcja/static/icons/revert.png b/redakcja/static/icons/revert.png
new file mode 100644 (file)
index 0000000..de96265
Binary files /dev/null and b/redakcja/static/icons/revert.png differ
diff --git a/redakcja/static/icons/revert_.png b/redakcja/static/icons/revert_.png
new file mode 100755 (executable)
index 0000000..afdf20d
Binary files /dev/null and b/redakcja/static/icons/revert_.png differ
diff --git a/redakcja/static/icons/stop.png b/redakcja/static/icons/stop.png
new file mode 100644 (file)
index 0000000..adf1b73
Binary files /dev/null and b/redakcja/static/icons/stop.png differ
diff --git a/redakcja/static/icons/user.png b/redakcja/static/icons/user.png
new file mode 100644 (file)
index 0000000..45390a6
Binary files /dev/null and b/redakcja/static/icons/user.png differ
diff --git a/redakcja/static/img/arrow-down.png b/redakcja/static/img/arrow-down.png
new file mode 100644 (file)
index 0000000..0e32315
Binary files /dev/null and b/redakcja/static/img/arrow-down.png differ
diff --git a/redakcja/static/img/arrow-up.png b/redakcja/static/img/arrow-up.png
new file mode 100644 (file)
index 0000000..cdf9cf6
Binary files /dev/null and b/redakcja/static/img/arrow-up.png differ
diff --git a/redakcja/static/img/logo-220.png b/redakcja/static/img/logo-220.png
new file mode 100644 (file)
index 0000000..9b15e88
Binary files /dev/null and b/redakcja/static/img/logo-220.png differ
index eb7e7d1..f7a678e 100644 (file)
Binary files a/redakcja/static/img/sample_cover.png and b/redakcja/static/img/sample_cover.png differ
diff --git a/redakcja/static/js/book_text/book.js b/redakcja/static/js/book_text/book.js
new file mode 100644 (file)
index 0000000..335fe39
--- /dev/null
@@ -0,0 +1,61 @@
+$(function() {
+    function scrollToAnchor(anchor) {
+        if (anchor) {
+            var anchor_name = anchor.slice(1);
+            var element = $('a[name="' + anchor_name + '"]');
+            if (element.length > 0) {
+                $.scrollTo(element, 500, {offset: {top: -50, left: 0}});
+                foot_elem = $('#footnotes a[name="' + anchor_name + '"]');
+                if (foot_elem.length > 0) {
+                    $(element).parent().highlightFade('yellow');
+                }
+                window.location.hash = anchor;
+            }
+        }
+    }
+
+    $.highlightFade.defaults.speed = 3000;
+    $('#toc').hide();
+    if ($('#toc li').length == 0) {
+        $('#menu li a[href="#toc"]').remove();
+    }
+    if ($('#nota_red').length == 0) {
+        $('#menu li a[href="#nota_red"]').remove();
+    }
+
+    // On page load, scroll to anchor
+    scrollToAnchor(window.location.hash)
+
+    $('#toc, #themes, #book-text').delegate('click', 'a', function(event) {
+        event.preventDefault();
+        $('#menu li a.selected').click();
+        scrollToAnchor($(this).attr('href'));
+    });
+
+    $('#menu li a.menu').toggle(function() {
+        $('#menu li a.selected').click();
+        $(this).addClass('selected');
+        $($(this).attr('href')).slideDown('fast');
+    }, function() {
+        $(this).removeClass('selected');
+        $($(this).attr('href')).slideUp('fast');
+    });
+    
+
+    if (window.getSelection) {
+        $('.theme-begin').click(function() {
+            var selection = window.getSelection();
+            selection.removeAllRanges();
+            var range = document.createRange();
+
+            var e = $(".theme-end[fid='" + $(this).attr('fid') + "']")[0];
+
+            if (e) {
+                range.setStartAfter(this);
+                range.setEndBefore(e);
+                selection.addRange(range);
+            }
+        });
+    }
+
+});
diff --git a/redakcja/static/js/book_text/jquery.eventdelegation.js b/redakcja/static/js/book_text/jquery.eventdelegation.js
new file mode 100644 (file)
index 0000000..52fce07
--- /dev/null
@@ -0,0 +1,55 @@
+/*
+ * jQuery Event Delegation Plugin - jquery.eventdelegation.js
+ * Fast flexible event handling
+ *
+ * January 2008 - Randy Morey (http://dev.distilldesign.com/)
+ */
+
+(function ($) {
+       /* setup list of allowed events for event delegation
+        * only events that bubble are appropriate
+        */
+       var allowed = {};
+       $.each([
+               'click',
+               'dblclick',
+               'mousedown',
+               'mouseup',
+               'mousemove',
+               'mouseover',
+               'mouseout',
+               'keydown',
+               'keypress',
+               'keyup'
+               ], function(i, eventName) {
+                       allowed[eventName] = true;
+       });
+
+       $.fn.extend({
+               delegate: function (event, selector, f) {
+                       return $(this).each(function () {
+                               if (allowed[event])
+                                       $(this).bind(event, function (e) {
+                                               var el = $(e.target),
+                                                       result = false;
+
+                                               while (!$(el).is('body')) {
+                                                       if ($(el).is(selector)) {
+                                                               result = f.apply($(el)[0], [e]);
+                                                               if (result === false)
+                                                                       e.preventDefault();
+                                                               return;
+                                                       }
+
+                                                       el = $(el).parent();
+                                               }
+                                       });
+                       });
+               },
+               undelegate: function (event) {
+                       return $(this).each(function () {
+                               $(this).unbind(event);
+                       });
+               }
+       });
+})(jQuery);
\ No newline at end of file
diff --git a/redakcja/static/js/book_text/jquery.highlightfade.js b/redakcja/static/js/book_text/jquery.highlightfade.js
new file mode 100644 (file)
index 0000000..bbe39f0
--- /dev/null
@@ -0,0 +1,150 @@
+/**
+ *  jQuery Plugin highlightFade (jquery.offput.ca/highlightFade)
+ *  (c) 2006 Blair Mitchelmore (offput.ca) blair@offput.ca
+ */
+/**
+ * This is version 0.7 of my highlightFade plugin. It follows the yellow fade technique of Web 2.0 fame
+ * but expands it to allow any starting colour and allows you to specify the end colour as well.
+ *
+ * For the moment, I'm done with this plug-in. Unless I come upon a really cool feature it should have
+ * this plug-in will only receive updates to ensure future compatibility with jQuery.
+ *
+ * As of now (Aug. 16, 2006) the plugin has been written with the 1.0.1 release of jQuery (rev 249) which
+ * is available from http://jquery.com/src/jquery-1.0.1.js
+ *
+ * A note regarding rgb() syntax: I noticed that most browsers implement rgb syntax as either an integer
+ * (0-255) or percentage (0-100%) value for each field, that is, rgb(i/p,i/p,i/p); however, the W3C
+ * standard clearly defines it as "either three integer values or three percentage values" [http://www.w3.org/TR/CSS21/syndata.html]
+ * which I choose to follow despite the error redundancy of the typical behaviour browsers employ.
+ *
+ * Changelog:
+ *
+ *    0.7:
+ *        - Added the awesome custom attribute support written by George Adamson (slightly modified)
+ *        - Removed bgColor plugin dependency seeing as attr is customizable now...
+ *    0.6:
+ *        - Abstracted getBGColor into its own plugin with optional test and data retrieval functions
+ *        - Converted all $ references to jQuery references as John's code seems to be shifting away
+ *          from that and I don't want to have to update this for a long time.
+ *    0.5:
+ *        - Added simple argument syntax for only specifying start colour of event
+ *        - Removed old style argument syntax
+ *        - Added 'interval', 'final, and 'end' properties
+ *        - Renamed 'color' property to 'start'
+ *        - Added second argument to $.highlightFade.getBGColor to bypass the e.highlighting check
+ *    0.4:
+ *        - Added rgb(%,%,%) color syntax
+ *    0.3:
+ *        - Fixed bug when event was called while parent was also running event corrupting the
+ *          the background colour of the child
+ *    0.2:
+ *        - Fixed bug where an unspecified onComplete function made the page throw continuous errors
+ *        - Fixed bug where multiple events on the same element would speed each subsequent event
+ *    0.1:
+ *        - Initial Release
+ *
+ * @author          Blair Mitchelmore (blair@offput.ca)
+ * @version         0.5
+ */
+jQuery.fn.highlightFade = function(settings) {
+       var o = (settings && settings.constructor == String) ? {start: settings} : settings || {};
+       var d = jQuery.highlightFade.defaults;
+       var i = o['interval'] || d['interval'];
+       var a = o['attr'] || d['attr'];
+       var ts = {
+               'linear': function(s,e,t,c) { return parseInt(s+(c/t)*(e-s)); },
+               'sinusoidal': function(s,e,t,c) { return parseInt(s+Math.sin(((c/t)*90)*(Math.PI/180))*(e-s)); },
+               'exponential': function(s,e,t,c) { return parseInt(s+(Math.pow(c/t,2))*(e-s)); }
+       };
+       var t = (o['iterator'] && o['iterator'].constructor == Function) ? o['iterator'] : ts[o['iterator']] || ts[d['iterator']] || ts['linear'];
+       if (d['iterator'] && d['iterator'].constructor == Function) t = d['iterator'];
+       return this.each(function() {
+               if (!this.highlighting) this.highlighting = {};
+               var e = (this.highlighting[a]) ? this.highlighting[a].end : jQuery.highlightFade.getBaseValue(this,a) || [255,255,255];
+               var c = jQuery.highlightFade.getRGB(o['start'] || o['colour'] || o['color'] || d['start'] || [255,255,128]);
+               var s = jQuery.speed(o['speed'] || d['speed']);
+               var r = o['final'] || (this.highlighting[a] && this.highlighting[a].orig) ? this.highlighting[a].orig : jQuery.curCSS(this,a);
+               if (o['end'] || d['end']) r = jQuery.highlightFade.asRGBString(e = jQuery.highlightFade.getRGB(o['end'] || d['end']));
+               if (typeof o['final'] != 'undefined') r = o['final'];
+               if (this.highlighting[a] && this.highlighting[a].timer) window.clearInterval(this.highlighting[a].timer);
+               this.highlighting[a] = { steps: ((s.duration) / i), interval: i, currentStep: 0, start: c, end: e, orig: r, attr: a };
+               jQuery.highlightFade(this,a,o['complete'],t);
+       });
+};
+
+jQuery.highlightFade = function(e,a,o,t) {
+       e.highlighting[a].timer = window.setInterval(function() {
+               var newR = t(e.highlighting[a].start[0],e.highlighting[a].end[0],e.highlighting[a].steps,e.highlighting[a].currentStep);
+               var newG = t(e.highlighting[a].start[1],e.highlighting[a].end[1],e.highlighting[a].steps,e.highlighting[a].currentStep);
+               var newB = t(e.highlighting[a].start[2],e.highlighting[a].end[2],e.highlighting[a].steps,e.highlighting[a].currentStep);
+               jQuery(e).css(a,jQuery.highlightFade.asRGBString([newR,newG,newB]));
+               if (e.highlighting[a].currentStep++ >= e.highlighting[a].steps) {
+                       jQuery(e).css(a,e.highlighting[a].orig || '');
+                       window.clearInterval(e.highlighting[a].timer);
+                       e.highlighting[a] = null;
+                       if (o && o.constructor == Function) o.call(e);
+               }
+       },e.highlighting[a].interval);
+};
+
+jQuery.highlightFade.defaults = {
+       start: [255,255,128],
+       interval: 50,
+       speed: 400,
+       attr: 'backgroundColor'
+};
+
+jQuery.highlightFade.getRGB = function(c,d) {
+       var result;
+       if (c && c.constructor == Array && c.length == 3) return c;
+       if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))
+               return [parseInt(result[1]),parseInt(result[2]),parseInt(result[3])];
+       else if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))
+               return [parseFloat(result[1])*2.55,parseFloat(result[2])*2.55,parseFloat(result[3])*2.55];
+       else if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))
+               return [parseInt("0x" + result[1]),parseInt("0x" + result[2]),parseInt("0x" + result[3])];
+       else if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))
+               return [parseInt("0x"+ result[1] + result[1]),parseInt("0x" + result[2] + result[2]),parseInt("0x" + result[3] + result[3])];
+       else
+               return jQuery.highlightFade.checkColorName(c) || d || null;
+};
+
+jQuery.highlightFade.asRGBString = function(a) {
+       return "rgb(" + a.join(",") + ")";
+};
+
+jQuery.highlightFade.getBaseValue = function(e,a,b) {
+       var s, t;
+       b = b || false;
+       t = a = a || jQuery.highlightFade.defaults['attr'];
+       do {
+               s = jQuery(e).css(t || 'backgroundColor');
+               if ((s  != '' && s != 'transparent') || (e.tagName.toLowerCase() == "body") || (!b && e.highlighting && e.highlighting[a] && e.highlighting[a].end)) break;
+               t = false;
+       } while (e = e.parentNode);
+       if (!b && e.highlighting && e.highlighting[a] && e.highlighting[a].end) s = e.highlighting[a].end;
+       if (s == undefined || s == '' || s == 'transparent') s = [255,255,255];
+       return jQuery.highlightFade.getRGB(s);
+};
+
+jQuery.highlightFade.checkColorName = function(c) {
+       if (!c) return null;
+       switch(c.replace(/^\s*|\s*$/g,'').toLowerCase()) {
+               case 'aqua': return [0,255,255];
+               case 'black': return [0,0,0];
+               case 'blue': return [0,0,255];
+               case 'fuchsia': return [255,0,255];
+               case 'gray': return [128,128,128];
+               case 'green': return [0,128,0];
+               case 'lime': return [0,255,0];
+               case 'maroon': return [128,0,0];
+               case 'navy': return [0,0,128];
+               case 'olive': return [128,128,0];
+               case 'purple': return [128,0,128];
+               case 'red': return [255,0,0];
+               case 'silver': return [192,192,192];
+               case 'teal': return [0,128,128];
+               case 'white': return [255,255,255];
+               case 'yellow': return [255,255,0];
+       }
+};
diff --git a/redakcja/static/js/book_text/jquery.scrollto.js b/redakcja/static/js/book_text/jquery.scrollto.js
new file mode 100644 (file)
index 0000000..c403ab9
--- /dev/null
@@ -0,0 +1,194 @@
+/**
+ * jQuery.ScrollTo
+ * Copyright (c) 2007-2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
+ * Dual licensed under MIT and GPL.
+ * Date: 9/11/2008
+ *
+ * @projectDescription Easy element scrolling using jQuery.
+ * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
+ * Tested with jQuery 1.2.6. On FF 2/3, IE 6/7, Opera 9.2/5 and Safari 3. on Windows.
+ *
+ * @author Ariel Flesler
+ * @version 1.4
+ *
+ * @id jQuery.scrollTo
+ * @id jQuery.fn.scrollTo
+ * @param {String, Number, DOMElement, jQuery, Object} target Where to scroll the matched elements.
+ *       The different options for target are:
+ *             - A number position (will be applied to all axes).
+ *             - A string position ('44', '100px', '+=90', etc ) will be applied to all axes
+ *             - A jQuery/DOM element ( logically, child of the element to scroll )
+ *             - A string selector, that will be relative to the element to scroll ( 'li:eq(2)', etc )
+ *             - A hash { top:x, left:y }, x and y can be any kind of number/string like above.
+ * @param {Number} duration The OVERALL length of the animation, this argument can be the settings object instead.
+ * @param {Object,Function} settings Optional set of settings or the onAfter callback.
+ *      @option {String} axis Which axis must be scrolled, use 'x', 'y', 'xy' or 'yx'.
+ *      @option {Number} duration The OVERALL length of the animation.
+ *      @option {String} easing The easing method for the animation.
+ *      @option {Boolean} margin If true, the margin of the target element will be deducted from the final position.
+ *      @option {Object, Number} offset Add/deduct from the end position. One number for both axes or { top:x, left:y }.
+ *      @option {Object, Number} over Add/deduct the height/width multiplied by 'over', can be { top:x, left:y } when using both axes.
+ *      @option {Boolean} queue If true, and both axis are given, the 2nd axis will only be animated after the first one ends.
+ *      @option {Function} onAfter Function to be called after the scrolling ends.
+ *      @option {Function} onAfterFirst If queuing is activated, this function will be called after the first scrolling ends.
+ * @return {jQuery} Returns the same jQuery object, for chaining.
+ *
+ * @desc Scroll to a fixed position
+ * @example $('div').scrollTo( 340 );
+ *
+ * @desc Scroll relatively to the actual position
+ * @example $('div').scrollTo( '+=340px', { axis:'y' } );
+ *
+ * @dec Scroll using a selector (relative to the scrolled element)
+ * @example $('div').scrollTo( 'p.paragraph:eq(2)', 500, { easing:'swing', queue:true, axis:'xy' } );
+ *
+ * @ Scroll to a DOM element (same for jQuery object)
+ * @example var second_child = document.getElementById('container').firstChild.nextSibling;
+ *                     $('#container').scrollTo( second_child, { duration:500, axis:'x', onAfter:function(){
+ *                             alert('scrolled!!');
+ *                     }});
+ *
+ * @desc Scroll on both axes, to different values
+ * @example $('div').scrollTo( { top: 300, left:'+=200' }, { axis:'xy', offset:-20 } );
+ */
+;(function( $ ){
+
+       var $scrollTo = $.scrollTo = function( target, duration, settings ){
+               $(window).scrollTo( target, duration, settings );
+       };
+
+       $scrollTo.defaults = {
+               axis:'y',
+               duration:1
+       };
+
+       // Returns the element that needs to be animated to scroll the window.
+       // Kept for backwards compatibility (specially for localScroll & serialScroll)
+       $scrollTo.window = function( scope ){
+               return $(window).scrollable();
+       };
+
+       // Hack, hack, hack... stay away!
+       // Returns the real elements to scroll (supports window/iframes, documents and regular nodes)
+       $.fn.scrollable = function(){
+               return this.map(function(){
+                       // Just store it, we might need it
+                       var win = this.parentWindow || this.defaultView,
+                               // If it's a document, get its iframe or the window if it's THE document
+                               elem = this.nodeName == '#document' ? win.frameElement || win : this,
+                               // Get the corresponding document
+                               doc = elem.contentDocument || (elem.contentWindow || elem).document,
+                               isWin = elem.setInterval;
+
+                       return elem.nodeName == 'IFRAME' || isWin && $.browser.safari ? doc.body
+                               : isWin ? doc.documentElement
+                               : this;
+               });
+       };
+
+       $.fn.scrollTo = function( target, duration, settings ){
+               if( typeof duration == 'object' ){
+                       settings = duration;
+                       duration = 0;
+               }
+               if( typeof settings == 'function' )
+                       settings = { onAfter:settings };
+
+               settings = $.extend( {}, $scrollTo.defaults, settings );
+               // Speed is still recognized for backwards compatibility
+               duration = duration || settings.speed || settings.duration;
+               // Make sure the settings are given right
+               settings.queue = settings.queue && settings.axis.length > 1;
+
+               if( settings.queue )
+                       // Let's keep the overall duration
+                       duration /= 2;
+               settings.offset = both( settings.offset );
+               settings.over = both( settings.over );
+
+               return this.scrollable().each(function(){
+                       var elem = this,
+                               $elem = $(elem),
+                               targ = target, toff, attr = {},
+                               win = $elem.is('html,body');
+
+                       switch( typeof targ ){
+                               // A number will pass the regex
+                               case 'number':
+                               case 'string':
+                                       if( /^([+-]=)?\d+(px)?$/.test(targ) ){
+                                               targ = both( targ );
+                                               // We are done
+                                               break;
+                                       }
+                                       // Relative selector, no break!
+                                       targ = $(targ,this);
+                               case 'object':
+                                       // DOMElement / jQuery
+                                       if( targ.is || targ.style )
+                                               // Get the real position of the target
+                                               toff = (targ = $(targ)).offset();
+                       }
+                       $.each( settings.axis.split(''), function( i, axis ){
+                               var Pos = axis == 'x' ? 'Left' : 'Top',
+                                       pos = Pos.toLowerCase(),
+                                       key = 'scroll' + Pos,
+                                       old = elem[key],
+                                       Dim = axis == 'x' ? 'Width' : 'Height',
+                                       dim = Dim.toLowerCase();
+
+                               if( toff ){// jQuery / DOMElement
+                                       attr[key] = toff[pos] + ( win ? 0 : old - $elem.offset()[pos] );
+
+                                       // If it's a dom element, reduce the margin
+                                       if( settings.margin ){
+                                               attr[key] -= parseInt(targ.css('margin'+Pos)) || 0;
+                                               attr[key] -= parseInt(targ.css('border'+Pos+'Width')) || 0;
+                                       }
+
+                                       attr[key] += settings.offset[pos] || 0;
+
+                                       if( settings.over[pos] )
+                                               // Scroll to a fraction of its width/height
+                                               attr[key] += targ[dim]() * settings.over[pos];
+                               }else
+                                       attr[key] = targ[pos];
+
+                               // Number or 'number'
+                               if( /^\d+$/.test(attr[key]) )
+                                       // Check the limits
+                                       attr[key] = attr[key] <= 0 ? 0 : Math.min( attr[key], max(Dim) );
+
+                               // Queueing axes
+                               if( !i && settings.queue ){
+                                       // Don't waste time animating, if there's no need.
+                                       if( old != attr[key] )
+                                               // Intermediate animation
+                                               animate( settings.onAfterFirst );
+                                       // Don't animate this axis again in the next iteration.
+                                       delete attr[key];
+                               }
+                       });
+                       animate( settings.onAfter );
+
+                       function animate( callback ){
+                               $elem.animate( attr, duration, settings.easing, callback && function(){
+                                       callback.call(this, target, settings);
+                               });
+                       };
+                       function max( Dim ){
+                               var attr ='scroll'+Dim,
+                                       doc = elem.ownerDocument;
+
+                               return win
+                                               ? Math.max( doc.documentElement[attr], doc.body[attr]  )
+                                               : elem[attr];
+                       };
+               }).end();
+       };
+
+       function both( val ){
+               return typeof val == 'object' ? val : { top:val, left:val };
+       };
+
+})( jQuery );
\ No newline at end of file
diff --git a/redakcja/static/js/catalogue/book_list.js b/redakcja/static/js/catalogue/book_list.js
new file mode 100644 (file)
index 0000000..9dd1e41
--- /dev/null
@@ -0,0 +1,108 @@
+(function($) {
+    $(function() {
+       // clicking on book checks chunks, too
+       $("input[name=select_book]").change(function(ev) {
+           $book = $(this);
+           $book.closest("table").find("input[name=select_chunk][data-book-id=" + $book.val() + "]").attr("checked", $book.is(':checked'));
+           });
+
+       // initialize context menu
+
+       var get_ids = function() {
+           return $.map($("input[name=select_chunk]:checked"), function(ele, idx) {
+               return ele.value;
+               }).concat(
+                   $.map($("input[name=select_book][data-chunk-id!=]:checked"), function(ele, idx) {
+                       return $(ele).attr("data-chunk-id");
+                       })).join();
+       };
+    
+
+       var set_field = function(key, ops) {
+            var fds = {}
+            fds.stage = "";
+            fds.user = "";
+            fds.status = "";
+
+           if (key == "publish" || key == "unpublish") {
+               fds["status"] = key;
+           } else {
+               var kp = key.split('_');
+               var field = kp[0];
+               var idx = parseInt(kp[1]);
+
+               var target_field = field;
+               if (field == 'other-user')
+                   target_field = 'user';
+
+               fds[target_field] = $("select[name="+field+"] option[value!=]").eq(idx).val();
+           }
+           /* fill in the form */
+            $("#chunk_mass_edit [name=ids]").val(get_ids());
+            for (var fn in fds) {
+                $("#chunk_mass_edit [name="+fn+"]").val(fds[fn]);
+            }
+
+            $.post($("#chunk_mass_edit").attr("action"),
+                   $("#chunk_mass_edit").serialize(),
+                   function(data, status) {
+                       location.reload(true);
+                   }
+                  );
+            return true;
+
+           
+       };
+
+        var get_items = function(field) {
+           var d = {};
+            $.each($("select[name="+field+"] option[value!=]"),
+                         function(idx, ele) {
+                            d[field+"_"+idx] = { name: $(ele).text() };
+                        });
+           return d;
+        };
+
+
+       $.contextMenu({
+           selector: '#file-list',
+           items: {
+               "stage": { 
+                   name: $("label[for=mass_edit_stage]").text(),
+                   items: get_items("stage"),
+                   icon: "clock",
+               },
+               "user": { 
+                   name: $("label[for=mass_edit_user]").text(),
+                    items: (function() {
+                       var active_users = get_items("user");
+                       active_users['other'] = {
+                           name: $("label[for=mass_edit_other]").text(),
+                           items: get_items("other-user"),
+                       };
+                       return active_users;
+                       })(),
+                   icon: "user",
+                },
+                "publish": {
+                    name:  $("label[for=mass_edit_publish]").text(),
+                   icon: "ok",
+                },
+        "project" :{
+            name: $("label[for=mass_edit_project]").text(),
+            items: get_items("project"),
+            },
+        "publish": {
+            name:  $("label[for=mass_edit_publish]").text(),
+            icon: "ok",
+            },
+               "unpublish": {
+                   name:  $("label[for=mass_edit_unpublish]").text(),
+                   icon: "stop",
+               },
+           },
+           callback: set_field,
+       });
+       
+    });
+})(jQuery);
diff --git a/redakcja/static/js/lib/jquery-1.4.2.min.js b/redakcja/static/js/lib/jquery-1.4.2.min.js
deleted file mode 100644 (file)
index 7c24308..0000000
+++ /dev/null
@@ -1,154 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.4.2
- * http://jquery.com/
- *
- * Copyright 2010, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2010, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Sat Feb 13 22:33:48 2010 -0500
- */
-(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?
-e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=
-j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
-"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e=
-true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,
-Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&&
-(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,
-a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b===
-"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,
-function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
-c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
-L,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,
-"isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+
-a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
-d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===
-a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&
-!c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari=
-true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
-var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,
-parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent=
-false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n=
-s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,
-applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];
-else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,
-a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===
-w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,
-cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=" "+e.className+" ",
-i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(Aa," "),i=0,o=b.length;i<o;i++)j=j.replace(" "+b[i]+" ",
-" ");e.className=c.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=
-this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i=
-e[j];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(Ba.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return w}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o)r=a.call(this,k,n.val());if(typeof r==="number")r+="";if(c.isArray(r)&&Ba.test(this.type))this.checked=c.inArray(n.val(),r)>=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected=
-c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");
-a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,
-function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");
-k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a),
-C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B<r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&&r.splice(B--,1);n.remove&&n.remove.call(a,u)}if(f!=
-null)break}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else for(var B=0;B<r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=z.handle)b.elem=null;delete z.events;delete z.handle;c.isEmptyObject(z)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=
-e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&&
-f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;
-if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
-fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
-d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,
-"events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=
-a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
-isImmediatePropagationStopped:Y};var Da=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ea=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ea:Da,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ea:Da)}}});if(!c.support.submitBubbles)c.event.special.submit=
-{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
-if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",
-e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,
-"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,
-d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
-!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
-toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
-u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
-function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0;g[m];m++){l=g[m];if(l.nodeType===3||l.nodeType===4)h+=l.nodeValue;else if(l.nodeType!==8)h+=a(l.childNodes)}return h}function b(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];
-if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1&&!p){t.sizcache=l;t.sizset=q}if(t.nodeName.toLowerCase()===h){y=t;break}t=t[g]}m[q]=y}}}function d(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1){if(!p){t.sizcache=l;t.sizset=q}if(typeof h!=="string"){if(t===h){y=true;break}}else if(k.filter(h,[t]).length>0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
-e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift();
-t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D||
-g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];
-for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-
-1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
-CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},
-relative:{"+":function(g,h){var l=typeof h==="string",m=l&&!/\W/.test(h);l=l&&!m;if(m)h=h.toLowerCase();m=0;for(var q=g.length,p;m<q;m++)if(p=g[m]){for(;(p=p.previousSibling)&&p.nodeType!==1;);g[m]=l||p&&p.nodeName.toLowerCase()===h?p||false:p===h}l&&k.filter(h,g,true)},">":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m<q;m++){var p=g[m];if(p){l=p.parentNode;g[m]=l.nodeName.toLowerCase()===h?l:false}}}else{m=0;for(q=g.length;m<q;m++)if(p=g[m])g[m]=
-l?p.parentNode:p.parentNode===h;l&&k.filter(h,g,true)}},"":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,l)},"~":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,m,g,p,l)}},find:{ID:function(g,h,l){if(typeof h.getElementById!=="undefined"&&!l)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var l=[];
-h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++)h[m].getAttribute("name")===g[1]&&l.push(h[m]);return l.length===0?null:l}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,l,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p)return g;p=0;for(var v;(v=h[p])!=null;p++)if(v)if(q^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},
-CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m,
-g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},
-text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},
-setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h<l[3]-0},gt:function(g,h,l){return h>l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=
-h[3];l=0;for(m=h.length;l<m;l++)if(h[l]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+q)},CHILD:function(g,h){var l=h[1],m=g;switch(l){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(l==="first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":l=h[2];var q=h[3];if(l===1&&q===0)return true;h=h[0];var p=g.parentNode;if(p&&(p.sizcache!==h||!g.nodeIndex)){var v=0;for(m=p.firstChild;m;m=
-m.nextSibling)if(m.nodeType===1)m.nodeIndex=++v;p.sizcache=h}g=g.nodeIndex-q;return l===0?g===0:g%l===0&&g/l>=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m===
-"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g,
-h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l<m;l++)h.push(g[l]);else for(l=0;g[l];l++)h.push(g[l]);return h}}var B;if(s.documentElement.compareDocumentPosition)B=function(g,h){if(!g.compareDocumentPosition||
-!h.compareDocumentPosition){if(g==h)i=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)i=true;return g};else if("sourceIndex"in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)i=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)i=true;return g};else if(s.createRange)B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h)i=true;return g.ownerDocument?-1:1}var l=g.ownerDocument.createRange(),m=
-h.ownerDocument.createRange();l.setStart(g,0);l.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=l.compareBoundaryPoints(Range.START_TO_END,m);if(g===0)i=true;return g};(function(){var g=s.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&&
-q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML="<a href='#'></a>";
-if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();
-(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:
-function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,
-gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
-c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
-{},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a===
-"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",
-d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?
-a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
-1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?
-a:b+"></"+d+">"},F={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
-c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
-wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
-prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
-this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
-return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,
-""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
-this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||
-u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===
-1?(k=k.firstChild):k.firstChild){b=b&&c.nodeName(j,"tr");for(var n=0,r=this.length;n<r;n++)d.call(b?f(this[n],j):this[n],n>0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]);
-return this}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["",
-""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]==="<table>"&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e=
-c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]?
-c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja=
-function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=
-Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,
-"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=
-a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=
-a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!==
-"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("<div />").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this},
-serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),
-function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,
-global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&&
-e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)?
-"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===
-false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B=
-false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since",
-c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E||
-d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x);
-g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===
-1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b===
-"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional;
-if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");
-this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(K("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],
-"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},
-animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[i]==="show"&&!o)return j.complete.call(this);if((i==="height"||i==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow}if(c.isArray(a[i])){(j.specialEasing=
-j.specialEasing||{})[i]=a[i][1];a[i]=a[i][0]}}if(j.overflow!=null)this.style.overflow="hidden";j.curAnim=c.extend({},a);c.each(a,function(r,u){var z=new c.fx(k,j,r);if(Ab.test(u))z[u==="toggle"?o?"show":"hide":u](a);else{var C=Bb.exec(u),B=z.cur(true)||0;if(C){u=parseFloat(C[2]);var E=C[3]||"px";if(E!=="px"){k.style[r]=(u||1)+E;B=(u||1)/z.cur(true)*B;k.style[r]=B+E}if(C[1])u=(C[1]==="-="?-1:1)*u+B;z.custom(B,u,E)}else z.custom(B,u,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);
-this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration===
-"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||
-c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;
-this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=
-this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,
-e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||
-c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?
-function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=
-this[0];if(a)return this.each(function(r){c.offset.setOffset(this,a,r)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b,e=b.ownerDocument,j,i=e.documentElement,o=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==o&&b!==i;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;j=e?e.getComputedStyle(b,null):b.currentStyle;
-k-=b.scrollTop;n-=b.scrollLeft;if(b===d){k+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position==="relative"||f.position==="static"){k+=o.offsetTop;n+=o.offsetLeft}if(c.offset.supportsFixedPosition&&
-f.position==="fixed"){k+=Math.max(i.scrollTop,o.scrollTop);n+=Math.max(i.scrollLeft,o.scrollLeft)}return{top:k,left:n}};c.offset={initialize:function(){var a=s.body,b=s.createElement("div"),d,f,e,j=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
-a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b);
-c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,
-d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-
-f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset":
-"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in
-e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);
diff --git a/redakcja/static/js/lib/jquery-1.7.2.min.js b/redakcja/static/js/lib/jquery-1.7.2.min.js
new file mode 100644 (file)
index 0000000..16ad06c
--- /dev/null
@@ -0,0 +1,4 @@
+/*! jQuery v1.7.2 jquery.com | jquery.org/license */
+(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"<!doctype html>":"")+"<html><body>"),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function ca(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function b_(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bD.test(a)?d(a,e):b_(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&f.type(b)==="object")for(var e in b)b_(a+"["+e+"]",b[e],c,d);else d(a,b)}function b$(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function bZ(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bS,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bZ(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bZ(a,c,d,e,"*",g));return l}function bY(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bO),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bB(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?1:0,g=4;if(d>0){if(c!=="border")for(;e<g;e+=2)c||(d-=parseFloat(f.css(a,"padding"+bx[e]))||0),c==="margin"?d+=parseFloat(f.css(a,c+bx[e]))||0:d-=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0;return d+"px"}d=by(a,b);if(d<0||d==null)d=a.style[b];if(bt.test(d))return d;d=parseFloat(d)||0;if(c)for(;e<g;e+=2)d+=parseFloat(f.css(a,"padding"+bx[e]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+bx[e]))||0);return d+"px"}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;b.nodeType===1&&(b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase(),c==="object"?b.outerHTML=a.outerHTML:c!=="input"||a.type!=="checkbox"&&a.type!=="radio"?c==="option"?b.selected=a.defaultSelected:c==="input"||c==="textarea"?b.defaultValue=a.defaultValue:c==="script"&&b.text!==a.text&&(b.text=a.text):(a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value)),b.removeAttribute(f.expando),b.removeAttribute("_submit_attached"),b.removeAttribute("_change_attached"))}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d<e;d++)f.event.add(b,c,i[c][d])}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function T(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H)return H.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h,i){var j,k=d==null,l=0,m=a.length;if(d&&typeof d=="object"){for(l in d)e.access(a,c,l,d[l],1,h,f);g=1}else if(f!==b){j=i===b&&e.isFunction(f),k&&(j?(j=c,c=function(a,b,c){return j.call(e(a),c)}):(c.call(a,f),c=null));if(c)for(;l<m;l++)c(a[l],d,j?f.call(a[l],l,c(a[l],d)):f,i);g=1}return g?a:k?c.call(a):m?c(a[0],d):h},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m,n=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++)g=b[d],h=f.type(g),h==="array"?n(g):h==="function"&&(!a.unique||!p.has(g))&&c.push(g)},o=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,j=!0,m=k||0,k=0,l=c.length;for(;c&&m<l;m++)if(c[m].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}j=!1,c&&(a.once?e===!0?p.disable():c=[]:d&&d.length&&(e=d.shift(),p.fireWith(e[0],e[1])))},p={add:function(){if(c){var a=c.length;n(arguments),j?l=c.length:e&&e!==!0&&(k=a,o(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++)for(var f=0;f<c.length;f++)if(b[d]===c[f]){j&&f<=l&&(l--,f<=m&&m--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0)&&p.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(j?a.once||d.push([b,c]):(!a.once||!e)&&o(b,c));return this},fire:function(){p.fireWith(this,arguments);return this},fired:function(){return!!i}};return p};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a&&j.resolveWith(j,d?[a]:[]);return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p=c.createElement("div"),q=c.documentElement;p.setAttribute("className","t"),p.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="<div "+n+"display:block;'><div style='"+t+"0;display:block;overflow:hidden;'></div></div>"+"<table "+n+"' cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="<table><tr><td style='"+t+"0;display:none'></td><td>t</td></tr></table>",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="<div style='width:5px;'></div>",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++)delete d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d,e,g,h,i,j=this[0],k=0,m=null;if(a===b){if(this.length){m=f.data(j);if(j.nodeType===1&&!f._data(j,"parsedAttrs")){g=j.attributes;for(i=g.length;k<i;k++)h=g[k].name,h.indexOf("data-")===0&&(h=f.camelCase(h.substring(5)),l(j,h,m[h]));f._data(j,"parsedAttrs",!0)}}return m}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split(".",2),d[1]=d[1]?"."+d[1]:"",e=d[1]+"!";return f.access(this,function(c){if(c===b){m=this.triggerHandler("getData"+e,[d[0]]),m===b&&j&&(m=f.data(j,a),m=l(j,a,m));return m===b&&d[1]?this.data(d[0]):m}d[1]=c,this.each(function(){var b=f(this);b.triggerHandler("setData"+e,d),f.data(this,a,c),b.triggerHandler("changeData"+e,d)})},null,c,arguments.length>1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length<d)return f.queue(this[0],a);return c===b?this:this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise(c)}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,f.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i<g;i++)e=d[i],e&&(c=f.propFix[e]||e,h=u.test(e),h||f.attr(a,e,""),a.removeAttribute(v?e:c),h&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return w.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return w.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set"in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get"in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0,coords:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""&&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(
+a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:g&&G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1)a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function(a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o)f.event.remove(a,j+b[h],c,d,!0);continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++)s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s));r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered))return;h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++)m=r[l][0],c.type=r[l][1],q=(f._data(m,"events")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault();c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=f.event.special[c.type]||{},j=[],k,l,m,n,o,p,q,r,s,t,u;g[0]=c,c.delegateTarget=this;if(!i.preDispatch||i.preDispatch.call(this,c)!==!1){if(e&&(!c.button||c.type!=="click")){n=f(this),n.context=this.ownerDocument||this;for(m=c.target;m!=this;m=m.parentNode||this)if(m.disabled!==!0){p={},r=[],n[0]=m;for(k=0;k<e;k++)s=d[k],t=s.selector,p[t]===b&&(p[t]=s.quick?H(m,s.quick):n.is(t)),p[t]&&r.push(s);r.length&&j.push({elem:m,matches:r})}}d.length>e&&j.push({elem:this,matches:d.slice(e)});for(k=0;k<j.length&&!c.isPropagationStopped();k++){q=j[k],c.currentTarget=q.elem;for(l=0;l<q.matches.length&&!c.isImmediatePropagationStopped();l++){s=q.matches[l];if(h||!c.namespace&&!s.namespace||c.namespace_re&&c.namespace_re.test(s.namespace))c.data=s.data,c.handleObj=s,o=((f.event.special[s.origType]||{}).handle||s.handler).apply(q.elem,g),o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()))}}i.postDispatch&&i.postDispatch.call(this,c);return c.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pageX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;)e=i[--d],a[e]=g[e];a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d))a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b;return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){a._submit_bubble=!0}),d._submit_attached=!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,"._submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=d||c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=J;else if(!e)return this;g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a)this.off(g,c,a[g]);return this}if(c===!1||typeof c=="function")d=c,c=b;d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else if(m.filter(b,[j]).length>0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter)if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\")continue;s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f)g=i=!0;else if(f===!0)continue}if(f)for(n=0;(j=s[n])!=null;n++)j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0));if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g)return[];break}}if(a===q)if(g==null)m.error(a);else break;q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9||d===11){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)e+=n(a)}else if(d===3||d===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(e+=n(c));return e},o=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling)if(l.nodeType===1)return!1;if(k==="first")return!0;l=a;case"last":while(l=l.nextSibling)if(l.nodeType===1)return!1;return!0;case"nth":c=b[2],e=b[3];if(c===1&&e===0)return!0;f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling)l.nodeType===1&&(l.nodeIndex=++i);g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i)return v(a,b);if(!g)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return v(e[k],f[k]);return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++)m(a,g[h],e,c);return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.globalPOS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++)f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h});g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")[\\s/>]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f
+.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(;d<e;d++)c=this[d]||{},c.nodeType===1&&(f.cleanData(c.getElementsByTagName("*")),c.innerHTML=a);c=0}catch(g){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,function(a,b){b.src?f.ajax({type:"GET",global:!1,url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)})}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1></$2>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]==="<table>"&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i<u;i++)bn(l[i]);else bn(l);l.nodeType?j.push(l):j=f.merge(j,l)}if(d){g=function(a){return!a.type||be.test(a.type)};for(k=0;j[k];k++){h=j[k];if(e&&f.nodeName(h,"script")&&(!h.type||be.test(h.type)))e.push(h.parentNode?h.parentNode.removeChild(h):h);else{if(h.nodeType===1){var v=f.grep(h.getElementsByTagName("script"),g);j.splice.apply(j,[k+1,0].concat(v))}d.appendChild(h)}}}return j},cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()])continue;c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events)e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle);b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bp=/alpha\([^)]*\)/i,bq=/opacity=([^)]*)/,br=/([A-Z]|^ms)/g,bs=/^[\-+]?(?:\d*\.)?\d+$/i,bt=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,bu=/^([\-+])=([\-+.\de]+)/,bv=/^margin/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Top","Right","Bottom","Left"],by,bz,bA;f.fn.css=function(a,c){return f.access(this,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)},a,c,arguments.length>1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),(e===""&&f.css(d,"display")==="none"||!f.contains(d.ownerDocument.documentElement,d))&&f._data(d,"olddisplay",cu(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(ct("hide",3),a,b,c);var d,e,g=0,h=this.length;for(;g<h;g++)d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e));for(g=0;g<h;g++)this[g].style&&(this[g].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(ct("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o,p,q;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]);if((k=f.cssHooks[g])&&"expand"in k){l=k.expand(a[g]),delete a[g];for(i in l)i in a||(a[i]=l[i])}}for(g in a){h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cu(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)j=new f.fx(this,b,i),h=a[i],cm.test(h)?(q=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),q?(f._data(this,"toggle"+i,q==="show"?"hide":"show"),j[q]()):j[h]()):(m=cn.exec(h),n=j.cur(),m?(o=parseFloat(m[2]),p=m[3]||(f.cssNumber[i]?"":"px"),p!=="px"&&(f.style(this,i,(o||1)+p),n=(o||1)/j.cur()*n,f.style(this,i,n+p)),m[1]&&(o=(m[1]==="-="?-1:1)*o+n),j.custom(n,o,p)):j.custom(n,h,""));return!0}var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null)for(b in g)g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b);else g[b=a+".run"]&&g[b].stop&&h(this,g,b);for(b=e.length;b--;)e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1));(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:ct("show",1),slideUp:ct("hide",1),slideToggle:ct("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a){return a},swing:function(a){return-Math.cos(a*Math.PI)/2+.5}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;this.startTime=cq||cr(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){f._data(e.elem,"fxshow"+e.prop)===b&&(e.options.hide?f._data(e.elem,"fxshow"+e.prop,e.start):e.options.show&&f._data(e.elem,"fxshow"+e.prop,e.end))},h()&&f.timers.push(h)&&!co&&(co=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cq||cr(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(co),co=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}}),f.each(cp.concat.apply([],cp),function(a,b){b.indexOf("margin")&&(f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)})}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cv,cw=/^t(?:able|d|h)$/i,cx=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?cv=function(a,b,c,d){try{d=a.getBoundingClientRect()}catch(e){}if(!d||!f.contains(c,a))return d?{top:d.top,left:d.left}:{top:0,left:0};var g=b.body,h=cy(b),i=c.clientTop||g.clientTop||0,j=c.clientLeft||g.clientLeft||0,k=h.pageYOffset||f.support.boxModel&&c.scrollTop||g.scrollTop,l=h.pageXOffset||f.support.boxModel&&c.scrollLeft||g.scrollLeft,m=d.top+k-i,n=d.left+l-j;return{top:m,left:n}}:cv=function(a,b,c){var d,e=a.offsetParent,g=a,h=b.body,i=b.defaultView,j=i?i.getComputedStyle(a,null):a.currentStyle,k=a.offsetTop,l=a.offsetLeft;while((a=a.parentNode)&&a!==h&&a!==c){if(f.support.fixedPosition&&j.position==="fixed")break;d=i?i.getComputedStyle(a,null):a.currentStyle,k-=a.scrollTop,l-=a.scrollLeft,a===e&&(k+=a.offsetTop,l+=a.offsetLeft,f.support.doesNotAddBorder&&(!f.support.doesAddBorderForTableAndCells||!cw.test(a.nodeName))&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),g=e,e=a.offsetParent),f.support.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),j=d}if(j.position==="relative"||j.position==="static")k+=h.offsetTop,l+=h.offsetLeft;f.support.fixedPosition&&j.position==="fixed"&&(k+=Math.max(c.scrollTop,h.scrollTop),l+=Math.max(c.scrollLeft,h.scrollLeft));return{top:k,left:l}},f.fn.offset=function(a){if(arguments.length)return a===b?this:this.each(function(b){f.offset.setOffset(this,a,b)});var c=this[0],d=c&&c.ownerDocument;if(!d)return null;if(c===d.body)return f.offset.bodyOffset(c);return cv(c,d,d.documentElement)},f.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);
\ No newline at end of file
index 1d7a51d..83d8f9d 100644 (file)
@@ -99,7 +99,8 @@ $.Autocompleter = function(input, options) {
                switch(event.keyCode) {
 
             // changed by fnp
-            case 0:
+            case 18:
+            case 17:
                 break;
             // changed by fnp
 
index cb31eef..7e1b790 100644 (file)
@@ -1,8 +1,8 @@
 /*
  * imgAreaSelect jQuery plugin
- * version 0.9.3
+ * version 0.9.10
  *
- * Copyright (c) 2008-2010 Michal Wojciechowski (odyniec.net)
+ * Copyright (c) 2008-2013 Michal Wojciechowski (odyniec.net)
  *
  * Dual licensed under the MIT (MIT-LICENSE.txt)
  * and GPL (GPL-LICENSE.txt) licenses.
@@ -55,8 +55,6 @@ $.imgAreaSelect = function (img, options) {
 
         scaleX, scaleY,
 
-        resizeMargin = 10,
-
         resize,
 
         minWidth, minHeight, maxWidth, maxHeight,
@@ -71,6 +69,8 @@ $.imgAreaSelect = function (img, options) {
 
         docElem = document.documentElement,
 
+        ua = navigator.userAgent,
+
         $p, d, i, o, w, h, adjusted;
 
     function viewX(x) {
@@ -112,10 +112,10 @@ $.imgAreaSelect = function (img, options) {
         var sx = noScale || scaleX, sy = noScale || scaleY;
 
         selection = {
-            x1: round(x1 / sx),
-            y1: round(y1 / sy),
-            x2: round(x2 / sx),
-            y2: round(y2 / sy)
+            x1: round(x1 / sx || 0),
+            y1: round(y1 / sy || 0),
+            x2: round(x2 / sx || 0),
+            y2: round(y2 / sy || 0)
         };
 
         selection.width = selection.x2 - selection.x1;
@@ -123,18 +123,21 @@ $.imgAreaSelect = function (img, options) {
     }
 
     function adjust() {
-        if (!$img.width())
+        if (!imgLoaded || !$img.width())
             return;
 
         imgOfs = { left: round($img.offset().left), top: round($img.offset().top) };
 
-        imgWidth = $img.width();
-        imgHeight = $img.height();
+        imgWidth = $img.innerWidth();
+        imgHeight = $img.innerHeight();
+
+        imgOfs.top += ($img.outerHeight() - imgHeight) >> 1;
+        imgOfs.left += ($img.outerWidth() - imgWidth) >> 1;
 
-        minWidth = options.minWidth || 0;
-        minHeight = options.minHeight || 0;
-        maxWidth = min(options.maxWidth || 1<<24, imgWidth);
-        maxHeight = min(options.maxHeight || 1<<24, imgHeight);
+        minWidth = round(options.minWidth / scaleX) || 0;
+        minHeight = round(options.minHeight / scaleY) || 0;
+        maxWidth = round(min(options.maxWidth / scaleX || 1<<24, imgWidth));
+        maxHeight = round(min(options.maxHeight / scaleY || 1<<24, imgHeight));
 
         if ($().jquery == '1.3.2' && position == 'fixed' &&
             !docElem['getBoundingClientRect'])
@@ -143,7 +146,7 @@ $.imgAreaSelect = function (img, options) {
             imgOfs.left += max(document.body.scrollLeft, docElem.scrollLeft);
         }
 
-        parOfs = $.inArray($parent.css('position'), ['absolute', 'relative']) + 1 ?
+        parOfs = /absolute|relative/.test($parent.css('position')) ?
             { left: round($parent.offset().left) - $parent.scrollLeft(),
                 top: round($parent.offset().top) - $parent.scrollTop() } :
             position == 'fixed' ?
@@ -183,17 +186,17 @@ $.imgAreaSelect = function (img, options) {
 
         switch ($handles.length) {
         case 8:
-            $($handles[4]).css({ left: w / 2 });
-            $($handles[5]).css({ left: w, top: h / 2 });
-            $($handles[6]).css({ left: w / 2, top: h });
-            $($handles[7]).css({ top: h / 2 });
+            $($handles[4]).css({ left: w >> 1 });
+            $($handles[5]).css({ left: w, top: h >> 1 });
+            $($handles[6]).css({ left: w >> 1, top: h });
+            $($handles[7]).css({ top: h >> 1 });
         case 4:
             $handles.slice(1,3).css({ left: w });
             $handles.slice(2,4).css({ top: h });
         }
 
         if (resetKeyPress !== false) {
-            if ($.imgAreaSelect.keyPress != docKeyPress)
+            if ($.imgAreaSelect.onKeyPress != docKeyPress)
                 $(document).unbind($.imgAreaSelect.keyPress,
                     $.imgAreaSelect.onKeyPress);
 
@@ -202,7 +205,7 @@ $.imgAreaSelect = function (img, options) {
                     $.imgAreaSelect.onKeyPress = docKeyPress);
         }
 
-        if ($.browser.msie && $border.outerWidth() - $border.innerWidth() == 2) {
+        if (msie && $border.outerWidth() - $border.innerWidth() == 2) {
             $border.css('margin', 0);
             setTimeout(function () { $border.css('margin', 'auto'); }, 0);
         }
@@ -234,13 +237,13 @@ $.imgAreaSelect = function (img, options) {
         resize = '';
 
         if (options.resizable) {
-            if (y <= resizeMargin)
+            if (y <= options.resizeMargin)
                 resize = 'n';
-            else if (y >= selection.height - resizeMargin)
+            else if (y >= selection.height - options.resizeMargin)
                 resize = 's';
-            if (x <= resizeMargin)
+            if (x <= options.resizeMargin)
                 resize += 'w';
-            else if (x >= selection.width - resizeMargin)
+            else if (x >= selection.width - options.resizeMargin)
                 resize += 'e';
         }
 
@@ -252,14 +255,13 @@ $.imgAreaSelect = function (img, options) {
 
     function docMouseUp(event) {
         $('body').css('cursor', '');
-
         if (options.autoHide || selection.width * selection.height == 0)
             hide($box.add($outer), function () { $(this).hide(); });
 
-        options.onSelectEnd(img, getSelection());
-
         $(document).unbind('mousemove', selectingMouseMove);
         $box.mousemove(areaMouseMove);
+
+        options.onSelectEnd(img, getSelection());
     }
 
     function areaMouseDown(event) {
@@ -363,8 +365,8 @@ $.imgAreaSelect = function (img, options) {
     }
 
     function selectingMouseMove(event) {
-        x2 = resize == '' || /w|e/.test(resize) || aspectRatio ? evX(event) : viewX(selection.x2);
-        y2 = resize == '' || /n|s/.test(resize) || aspectRatio ? evY(event) : viewY(selection.y2);
+        x2 = /w|e|^$/.test(resize) || aspectRatio ? evX(event) : viewX(selection.x2);
+        y2 = /n|s|^$/.test(resize) || aspectRatio ? evY(event) : viewY(selection.y2);
 
         doResize();
 
@@ -396,6 +398,7 @@ $.imgAreaSelect = function (img, options) {
     }
 
     function startSelection() {
+        $(document).unbind('mousemove', startSelection);
         adjust();
 
         x2 = x1;
@@ -405,7 +408,7 @@ $.imgAreaSelect = function (img, options) {
 
         resize = '';
 
-        if ($outer.is(':not(:visible)'))
+        if (!$outer.is(':visible'))
             $box.add($outer).hide().fadeIn(options.fadeSpeed||0);
 
         shown = true;
@@ -418,14 +421,16 @@ $.imgAreaSelect = function (img, options) {
     }
 
     function cancelSelection() {
-        $(document).unbind('mousemove', startSelection);
+        $(document).unbind('mousemove', startSelection)
+            .unbind('mouseup', cancelSelection);
         hide($box.add($outer));
 
-        selection = { x1: selX(x1), y1: selY(y1), x2: selX(x1), y2: selY(y1),
-                width: 0, height: 0 };
+        setSelection(selX(x1), selY(y1), selX(x1), selY(y1));
 
-        options.onSelectChange(img, getSelection());
-        options.onSelectEnd(img, getSelection());
+        if (!(this instanceof $.imgAreaSelect)) {
+            options.onSelectChange(img, getSelection());
+            options.onSelectEnd(img, getSelection());
+        }
     }
 
     function imgMouseDown(event) {
@@ -435,8 +440,7 @@ $.imgAreaSelect = function (img, options) {
         startX = x1 = evX(event);
         startY = y1 = evY(event);
 
-        $(document).one('mousemove', startSelection)
-            .one('mouseup', cancelSelection);
+        $(document).mousemove(startSelection).mouseup(cancelSelection);
 
         return false;
     }
@@ -451,8 +455,9 @@ $.imgAreaSelect = function (img, options) {
         setOptions(options = $.extend({
             classPrefix: 'imgareaselect',
             movable: true,
-            resizable: true,
             parent: 'body',
+            resizable: true,
+            resizeMargin: 10,
             onInit: function () {},
             onSelectStart: function () {},
             onSelectChange: function () {},
@@ -532,7 +537,7 @@ $.imgAreaSelect = function (img, options) {
     };
 
     function styleOptions($elem, props) {
-        for (option in props)
+        for (var option in props)
             if (options[option] !== undefined)
                 $elem.css(props[option], options[option]);
     }
@@ -600,12 +605,12 @@ $.imgAreaSelect = function (img, options) {
         if (o = options.borderColor2)
             $($border[1]).css({ borderStyle: 'dashed', borderColor: o });
 
-        $box.append($area.add($border).add($handles).add($areaOpera));
+        $box.append($area.add($border).add($areaOpera)).append($handles);
 
-        if ($.browser.msie) {
-            if (o = $outer.css('filter').match(/opacity=([0-9]+)/))
+        if (msie) {
+            if (o = ($outer.css('filter')||'').match(/opacity=(\d+)/))
                 $outer.css('opacity', o[1]/100);
-            if (o = $border.css('filter').match(/opacity=([0-9]+)/))
+            if (o = ($border.css('filter')||'').match(/opacity=(\d+)/))
                 $border.css('opacity', o[1]/100);
         }
 
@@ -641,7 +646,7 @@ $.imgAreaSelect = function (img, options) {
     }
 
     this.remove = function () {
-        $img.unbind('mousedown', imgMouseDown);
+        setOptions({ disable: true });
         $box.add($outer).remove();
     };
 
@@ -653,8 +658,14 @@ $.imgAreaSelect = function (img, options) {
 
     this.setSelection = setSelection;
 
+    this.cancelSelection = cancelSelection;
+
     this.update = doUpdate;
 
+    var msie = (/msie ([\w.]+)/i.exec(ua)||[])[1],
+        opera = /opera/i.test(ua),
+        safari = /webkit/i.test(ua) && !/chrome/i.test(ua);
+
     $p = $img;
 
     while ($p.length) {
@@ -668,13 +679,13 @@ $.imgAreaSelect = function (img, options) {
 
     zIndex = options.zIndex || zIndex;
 
-    if ($.browser.msie)
+    if (msie)
         $img.attr('unselectable', 'on');
 
-    $.imgAreaSelect.keyPress = $.browser.msie ||
-        $.browser.safari ? 'keydown' : 'keypress';
+    $.imgAreaSelect.keyPress = msie || safari ? 'keydown' : 'keypress';
+
+    if (opera)
 
-    if ($.browser.opera)
         $areaOpera = div().css({ width: '100%', height: '100%',
             position: 'absolute', zIndex: zIndex + 2 || 2 });
 
@@ -685,6 +696,9 @@ $.imgAreaSelect = function (img, options) {
 
     img.complete || img.readyState == 'complete' || !$img.is('img') ?
         imgLoad() : $img.one('load', imgLoad);
+
+    if (!imgLoaded && msie && msie >= 7)
+        img.src = img.src;
 };
 
 $.fn.imgAreaSelect = function (options) {
index 8625b11..ad2ee3a 100644 (file)
@@ -10,7 +10,7 @@
                        "perspectives": {
                                "ScanGalleryPerspective": {
                                        "show": true,
-                                       "page": 1
+                                       "page": undefined
                                },
                                "CodeMirrorPerspective": {}
                                /*
index da95172..1223992 100644 (file)
@@ -17,6 +17,23 @@ $(function()
 
     function initialize()
        {
+        var splitter = $('#splitter'),
+            editors = $('#editor .editor'),
+            vsplitbar = $('.vsplitbar'),
+            sidebar = $('#sidebar'),
+            dragLayer = $('#drag-layer'),
+            vsplitbarWidth = vsplitbar.outerWidth(),
+            isHolding = false;
+
+        // Moves panes so that left border of the vsplitbar lands x pixels from the left border of the splitter
+        function setSplitbarAt(x) {
+            var right = splitterWidth - x;
+            editors.each(function() {
+                this.style.right = right + 'px';
+            });
+            vsplitbar[0].style.right = sidebar[0].style.width = (right - vsplitbarWidth) + 'px';
+        };
+
                $(document).keydown(function(event) {
                        console.log("Received key:", event);
                });
@@ -52,31 +69,51 @@ $(function()
 
         $(window).resize(function(){
             $('iframe').height($(window).height() - $('#tabs').outerHeight() - $('#source-editor .toolbar').outerHeight());
+            splitterWidth = splitter.width();
         });
 
         $(window).resize();
 
-        $('.vsplitbar').toggle(
+        vsplitbar.toggle(
                        function() {
                                $.wiki.state.perspectives.ScanGalleryPerspective.show = true;
-                               $('#sidebar').show();
-                               $('.vsplitbar').css('right', 480).addClass('active');
-                               $('#editor .editor').css('right', 510);
+                               setSplitbarAt(splitterWidth - (480 + vsplitbarWidth));
+                               $('.vsplitbar').addClass('active');
                                $(window).resize();
                                $.wiki.perspectiveForTab('#tabs-right .active').onEnter();
                        },
                        function() {
                            var active_right = $.wiki.perspectiveForTab('#tabs-right .active');
                                $.wiki.state.perspectives.ScanGalleryPerspective.show = false;
-                               $('#sidebar').hide();
-                               $('.vsplitbar').css('right', 0).removeClass('active');
                                $(".vsplitbar-title").html("&uarr;&nbsp;" + active_right.vsplitbar + "&nbsp;&uarr;");
-                               $('#editor .editor').css('right', 30);
+                               setSplitbarAt(splitterWidth - vsplitbarWidth);
+                               $('.vsplitbar').removeClass('active');
                                $(window).resize();
                                active_right.onExit();
                        }
                );
 
+
+        /* Splitbar dragging support */
+        vsplitbar
+            .mousedown(function(e) {
+                e.preventDefault();
+                isHolding = true;
+            })
+            .mousemove(function(e) {
+                if(isHolding) {
+                    dragLayer.show(); // We don't show it up until now so that we don't lose single click events on vsplitbar
+                }
+            });
+        dragLayer.mousemove(function(e) {
+            setSplitbarAt(e.clientX - vsplitbarWidth/2);
+        });
+        $('body').mouseup(function(e) {
+            dragLayer.hide();
+            isHolding = false;
+        });
+
+
                if($.wiki.state.perspectives.ScanGalleryPerspective.show){
             $('.vsplitbar').trigger('click');
             $(".vsplitbar-title").html("&darr;&nbsp;GALERIA&nbsp;&darr;");
index 5bac593..76a0ae9 100644 (file)
 
     AnnotationsPerspective.prototype = new $.wiki.Perspective();
 
+    AnnotationsPerspective.prototype.updateAnnotationIds = function(self){
+       self.annotationToAnchor = {};
+       $('#html-view .annotation-inline-box').each(
+           function(i, annoBox) {
+               var $annoBox = $(annoBox);
+               var $anchor = $("a[name|=anchor]", $annoBox);
+               var htmlContent = $('span', $annoBox).html();
+               // TBD: perhaps use a hash of htmlContent as key
+               self.annotationToAnchor[htmlContent] = $anchor.attr('name');
+               });
+    }
+
+    AnnotationsPerspective.prototype.goToAnnotation = function(self, srcNode){
+       var content = $(srcNode).html();
+       content = content.replace('&gt;', '>', 'g').replace('&lt;', '<', 'g').replace('&amp;', '&', 'g');
+       xml2html({
+           xml: '<root>'+content+'</root>',
+           success: function(txt) {
+               content = $(txt).html();
+               },
+            error: function(text) {
+                $.unblockUI();
+                self.$error.html(text);
+                self.$spinner.hide();
+                self.$error.show();
+            }
+       });
+
+       var anchor = self.annotationToAnchor[content];
+       if (anchor != undefined) {
+           var $htmlView = $("#html-view");
+           var top = $htmlView.offset().top + 
+               $("[name=" + anchor + "]", $htmlView).offset().top - 
+               $htmlView.children().eq(0).offset().top
+
+           $htmlView.animate({scrollTop: top}, 250);
+       }
+    }
+
     AnnotationsPerspective.prototype.refresh = function(self, atype) {
         var xml;
 
@@ -59,6 +98,7 @@
                     self.$error.show();
                 }
             });
+           self.updateAnnotationIds(self);
         }
         else {
             xml = this.doc.text;
                             elem.sortby = $(elem).text().trim();
                             $(elem).append("<div class='src'>"+ xml_text.replace("&", "&amp;", "g").replace("<", "&lt;", "g") +"</div>")
                             anno_list.push(elem);
+                           $(".src", elem).click(function() { self.goToAnnotation(self, this); });
                             counter--;
 
                             if (!counter) {
index 3ccaea7..4353848 100644 (file)
@@ -37,7 +37,7 @@
         }
 
         // don't allow themes inside annotations
-        if (node.is('*[x-annotation-box] *'))
+        if (node.closest('[x-node="pe"]').length > 0)
             return false;
 
         return true;
         var random = Math.floor(4000000000 * Math.random());
         var id = ('' + date) + '-' + ('' + random);
 
-        var spoint = document.createRange();
-        var epoint = document.createRange();
-
-        spoint.setStart(range.startContainer, range.startOffset);
-        epoint.setStart(range.endContainer, range.endOffset);
-
+        var createPoint = function(container, offset) {
+            var offsetBetweenCommas = function(text, offset) {
+                if(text.length < 2 || offset < 1 || offset > text.length)
+                    return false;
+                return text[offset-1] === ',' && text[offset] === ',';
+            }
+            var point = document.createRange();
+            offset = offsetBetweenCommas(container.textContent, offset) ? offset - 1 : offset;
+            point.setStart(container, offset);
+            return point;
+        }
+        
+        var spoint = createPoint(range.startContainer, range.startOffset);
+        var epoint = createPoint(range.endContainer, range.endOffset);
+               
         var mtag, btag, etag, errors;
 
         // insert theme-ref
                         localStorage.setItem("recentSymbols", insertVal);
                     }
                 }
-                
                 $(specialCharsContainer).remove();
             });         
             $('#specialCharsClose').click(function(){
         /* http://www.scottklarr.com/topic/425/how-to-insert-text-into-a-textarea-where-the-cursor-is/ */
         var scrollPos = txtarea.scrollTop; 
         var strPos = 0; 
+        var backStart = 0;
         var br = ((txtarea.selectionStart || txtarea.selectionStart == '0') ? "ff" : (document.selection ? "ie" : false ) );
         if (br == "ie") { 
             txtarea.focus();
             var range = document.selection.createRange(); 
             range.moveStart ('character', -txtarea.value.length); 
-            strPos = range.text.length; 
-        } else if (br == "ff") strPos = txtarea.selectionStart; 
+            strPos = backStart = range.text.length; 
+        } else if (br == "ff") {
+            strPos = txtarea.selectionStart; 
+            backStart = txtarea.selectionEnd;
+        }
         var front = (txtarea.value).substring(0,strPos); 
-        var back = (txtarea.value).substring(strPos,txtarea.value.length); 
+        var back = (txtarea.value).substring(backStart,txtarea.value.length); 
         txtarea.value=front+text+back; 
         strPos = strPos + text.length; 
         if (br == "ie") { 
                             $overlay.remove();
                         },
                         error: function(text){
-                            $overlay.remove();
                             alert('Błąd! ' + text);
                         }
                     })
 
                 $('.accept-button', $overlay).click(function(){
                     save();
+                    $(document).unbind('click.blur-overlay');
                 });
 
                 $(document).bind('click.blur-overlay', function(event){
-                    if ($(event.target).parents('.html-editarea').length > 0) {
+                    if ($(event.target).closest('.html-editarea, #specialCharsContainer').length > 0) {
                         return;
                     }
                     save();
         xml2html({
             xml: this.doc.text,
             success: function(element){
-                $('#html-view').html(element);
+                var htmlView = $('#html-view');
+                htmlView.html(element);
+                htmlView.find('*[x-node]').dblclick(function(e) {
+                    if($(e.target).is('textarea'))
+                        return;
+                    var selection = window.getSelection();
+                    selection.collapseToStart();
+                    selection.modify('extend', 'forward', 'word');
+                    e.stopPropagation();
+                });
                 _finalize(success);
             },
             error: function(text, source){
index 4b74b3e..65a716a 100644 (file)
@@ -55,7 +55,8 @@
 
             this.dimensions = {};
             this.zoomFactor = 1;
-            this.config().page = CurrentDocument.galleryStart;
+           if (this.config().page == undefined)
+               this.config().page = CurrentDocument.galleryStart;
             this.$element = $("#side-gallery");
             this.$numberInput = $('.page-number', this.$element);
 
                 self.setPage($(this).val());
             });
                     
+           $('.start-page', this.$element).click(function(){
+               self.setPage(CurrentDocument.galleryStart);
+           });
+
             $('.previous-page', this.$element).click(function(){
                 self.setPage(parseInt(self.$numberInput.val(),10) - 1);
             });
index 64a35c4..21127dc 100644 (file)
@@ -90,7 +90,9 @@
         else {}
         self.searchCursor.select();
         self.searchCursor.replace(query);
-        self.search();
+        if(self.options['replace-all'] && self.search()) {
+            self.replace();
+        }
     };
 
     SearchPerspective.prototype.onEnter = function(success, failure){
index de6fcf1..099a0e8 100644 (file)
@@ -1,11 +1,34 @@
 (function($){
 
        function SummaryPerspective(options) {
+               var old_callback = options.callback || function() {};
+
+               options.callback = function() {
+                       var self = this;
+
+                       // first time page is rendered
+               $('#summary-cover-refresh').click(function() {
+                               self.refreshCover();
+                       });
+
+               old_callback.call(this);
+               }
+
                $.wiki.Perspective.call(this, options);
     };
 
     SummaryPerspective.prototype = new $.wiki.Perspective();
 
+       SummaryPerspective.prototype.refreshCover = function() {
+               $('#summary-cover-refresh').attr('disabled', 'disabled');
+               this.doc.refreshCover({
+                       success: function(text) {
+                               $('#summary-cover').attr('src', text);
+                       $('#summary-cover-refresh').removeAttr('disabled');
+                       }
+               });
+       };
+
     SummaryPerspective.prototype.showCharCount = function() {
         var cc;
         try {
index 4a4da5a..8df3ef5 100644 (file)
@@ -50,6 +50,9 @@
                if (vname == "ajax_document_pubmark")
                        return base_path + "/pubmark/" + arguments[1] + '/';
 
+               if (vname == "ajax_cover_preview")
+                       return "/cover/preview/";
+
                console.log("Couldn't reverse match:", vname);
                return "/404.html";
        };
         * Set document's text
         */
        WikiDocument.prototype.setText = function(text) {
-               this.text = text;
-               this.has_local_changes = true;
+               return this.setDocumentProperty('text', text);
        };
 
        /*
         * Set document's gallery link
         */
        WikiDocument.prototype.setGalleryLink = function(gallery) {
-               this.galleryLink = gallery;
-               this.has_local_changes = true;
+               return this.setDocumentProperty('galleryLink', gallery);
+       };
+
+       /*
+        * Set document's property
+        */
+       WikiDocument.prototype.setDocumentProperty = function(property, value) {
+               if(this[property] !== value) {
+                       this[property] = value;
+                       this.has_local_changes = true;
+               }
        };
 
        /*
                });
        };
 
+       WikiDocument.prototype.refreshCover = function(params) {
+        var self = this;
+               var data = {
+                       xml: self.text // TODO: send just DC
+               };
+        $.ajax({
+            url: reverse("ajax_cover_preview"),
+            type: "POST",
+            data: data,
+            success: function(data) {
+                params.success(data);
+            },
+            error: function(xhr) {
+                // params.failure("Nie udało się odświeżyć okładki - błąd serwera.");
+            }
+        });
+       };
+
+
     WikiDocument.prototype.getLength = function(params) {
         var xml = this.text.replace(/\/(\s+)/g, '<br />$1');
         var parser = new DOMParser();
index 4f64291..f5f4e04 100644 (file)
     </xsl:template>
 
     <xsl:template match="*">
-        <span class="unknown-tag" x-node="{name()}">
+        <span>
+            <xsl:call-template name="standard-attributes">
+                <xsl:with-param name="extra-class">unknown-tag</xsl:with-param>
+            </xsl:call-template>
             <xsl:apply-templates select="child::node()">
                 <xsl:with-param name="mixed" select="true()" />
             </xsl:apply-templates>        
index 49562a8..9c506b9 100644 (file)
@@ -1,6 +1,5 @@
 {% extends "catalogue/base.html" %}
 {% load i18n %}
-{% load url from future  %}
 
 
 {% block content %}
diff --git a/redakcja/templates/admin/index.html b/redakcja/templates/admin/index.html
deleted file mode 100644 (file)
index 45de219..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-{% extends "admin/base_site.html" %}
-{% load i18n %}
-
-{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" />{% endblock %}
-
-{% block coltype %}colMS{% endblock %}
-
-{% block bodyclass %}dashboard{% endblock %}
-
-{% block breadcrumbs %}{% endblock %}
-
-{% block content %}
-<div id="content-main">
-
-{% if app_list %}
-
-    {% include "filebrowser/append.html" %}
-
-    {% for app in app_list %}
-        <div class="module">
-        <table summary="{% blocktrans with app.name as name %}Models available in the {{ name }} application.{% endblocktrans %}">
-        <caption><a href="{{ app.app_url }}" class="section">{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}</a></caption>
-        {% for model in app.models %}
-            <tr>
-            {% if model.perms.change %}
-                <th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
-            {% else %}
-                <th scope="row">{{ model.name }}</th>
-            {% endif %}
-
-            {% if model.perms.add %}
-                <td><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td>
-            {% else %}
-                <td>&nbsp;</td>
-            {% endif %}
-
-            {% if model.perms.change %}
-                <td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td>
-            {% else %}
-                <td>&nbsp;</td>
-            {% endif %}
-            </tr>
-        {% endfor %}
-        </table>
-        </div>
-    {% endfor %}
-{% else %}
-    <p>{% trans "You don't have permission to edit anything." %}</p>
-{% endif %}
-</div>
-{% endblock %}
-
-{% block sidebar %}
-<div id="content-related">
-    <div class="module" id="recent-actions-module">
-        <h2>{% trans 'Recent Actions' %}</h2>
-        <h3>{% trans 'My Actions' %}</h3>
-            {% load log %}
-            {% get_admin_log 10 as admin_log for_user user %}
-            {% if not admin_log %}
-            <p>{% trans 'None available' %}</p>
-            {% else %}
-            <ul class="actionlist">
-            {% for entry in admin_log %}
-            <li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">
-                {% if entry.is_deletion %}
-                    {{ entry.object_repr }}
-                {% else %}
-                    <a href="{{ entry.get_admin_url }}">{{ entry.object_repr }}</a>
-                {% endif %}
-                <br/>
-                {% if entry.content_type %}
-                    <span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span>
-                {% else %}
-                    <span class="mini quiet">{% trans 'Unknown content' %}</span>
-                {% endif %}
-            </li>
-            {% endfor %}
-            </ul>
-            {% endif %}
-    </div>
-</div>
-{% endblock %}
index c82611b..2a8fd3b 100644 (file)
@@ -4,12 +4,12 @@
 <span class="user_name">{{ user.username }}</span> |
 
 {% if user.is_staff %}
-    <a href="{% url admin:index %}">{% trans "Admin" %}</a> |
+    <a href="{% url 'admin:index' %}">{% trans "Admin" %}</a> |
 {% endif %}
 
-<a href='{% url logout %}{% if logout_to %}?next={{ logout_to }}{% endif %}'>{% trans "Log Out" %}</a>
+<a href='{% url "logout" %}{% if logout_to %}?next={{ logout_to }}{% endif %}'>{% trans "Log Out" %}</a>
 {% else %}
-{% url login as login_url %}
+{% url "login" as login_url %}
 {% ifnotequal login_url request.path %}
     <a href='{{ login_url }}'>{% trans "Log In" %}</a>
 {% endifnotequal %}
index 1f0698b..4a46bd3 100644 (file)
@@ -5,7 +5,7 @@
 {% block content %}
 
 <div class="isection">
-<form method="POST" action="{% url login %}">
+<form method="POST" action="{% url 'login' %}">
 {% csrf_token %}
 {{ form.as_p }}
 <p><input type="submit" value="Login" /></p>
index 2343b05..c0629fa 100644 (file)
@@ -1,41 +1,36 @@
 # -*- coding: utf-8 -*-
 
-from django.conf.urls.defaults import *
+from django.conf.urls import include, patterns, url
 from django.contrib import admin
 from django.conf import settings
+from django.conf.urls.static import static
+from django.contrib.staticfiles.urls import staticfiles_urlpatterns
+from django.views.generic import RedirectView
 
 
 admin.autodiscover()
 
 urlpatterns = patterns('',
     # Auth
-    #url(r'^accounts/login/$', 'django.contrib.auth.views.login', name='login'),
-    #url(r'^accounts/logout/$', 'catalogue.views.logout_then_redirect', name='logout'),
-
     url(r'^accounts/login/$', 'django_cas.views.login', name='login'),
     url(r'^accounts/logout/$', 'django_cas.views.logout', name='logout'),
+    url(r'^admin/login/$', 'django_cas.views.login', name='login'),
+    url(r'^admin/logout/$', 'django_cas.views.logout', name='logout'),
 
     # Admin panel
-    (r'^admin/filebrowser/', include('filebrowser.urls')),
     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
     (r'^admin/', include(admin.site.urls)),
 
     (r'^comments/', include('django.contrib.comments.urls')),
 
-    url(r'^$', 'django.views.generic.simple.redirect_to', {'url': '/documents/'}),
+    url(r'^$', RedirectView.as_view(url= '/documents/')),
     url(r'^documents/', include('catalogue.urls')),
     url(r'^apiclient/', include('apiclient.urls')),
     url(r'^editor/', include('wiki.urls')),
     url(r'^images/', include('wiki_img.urls')),
-
-    # Static files (should be served by Apache)
-    url(r'^%s(?P<path>.+)$' % settings.MEDIA_URL[1:], 'django.views.static.serve',
-        {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
-    url(r'^%s(?P<path>.+)$' % settings.ADMIN_MEDIA_PREFIX[1:], 'django.views.static.serve',
-        {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
-    url(r'^%s(?P<path>.+)$' % settings.STATIC_URL[1:], 'django.views.static.serve',
-        {'document_root': settings.STATIC_ROOT, 'show_indexes': True}),
-
-    url(r'^$', 'django.views.generic.simple.redirect_to', {'url': '/documents/'}),
-
+    url(r'^cover/', include('cover.urls')),
 )
+
+if settings.DEBUG:
+    urlpatterns += staticfiles_urlpatterns()
+    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
diff --git a/redakcja/wsgi.py b/redakcja/wsgi.py
new file mode 100755 (executable)
index 0000000..cd69a92
--- /dev/null
@@ -0,0 +1,21 @@
+import os
+import os.path
+import sys
+
+ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+
+# Add apps and lib directories to PYTHONPATH
+sys.path = [
+    ROOT,
+    os.path.join(ROOT, 'apps'),
+    os.path.join(ROOT, 'lib'),
+    os.path.join(ROOT, 'lib/librarian'),
+] + sys.path
+
+
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "redakcja.localsettings")
+
+# This application object is used by the development server
+# as well as any WSGI server configured to use this file.
+from django.core.wsgi import get_wsgi_application
+application = get_wsgi_application()
index 3a0f164..e09fd7b 100644 (file)
@@ -2,3 +2,4 @@ django-nose==0.1.3
 nose
 nosexcover
 mock
+selenium
index 5e94254..e741a1b 100644 (file)
@@ -1,8 +1,10 @@
+-i http://pypi.nowoczesnapolska.org.pl/simple
+
 ## Python libraries
 lxml>=2.2.2
-mercurial>=1.6,<1.7
+Mercurial>=2.6,<2.7
 PyYAML>=3.0
-PIL>=1.1
+Pillow
 oauth2
 httplib2 # oauth2 dependency
 
@@ -10,8 +12,10 @@ httplib2 # oauth2 dependency
 # git+git://github.com/fnp/librarian.git@master#egg=librarian
 
 ## Django
-Django>=1.3,<1.4
-sorl-thumbnail>=3.2
+Django>=1.5,<1.6
+django-pipeline>=1.2,<1.3
+django_cas>=2.1,<2.2
+sorl-thumbnail>=11.09,<12
 django-maintenancemode>=0.9
 django-pagination
 django-gravatar
diff --git a/scripts/fix_pd.py b/scripts/fix_pd.py
new file mode 100755 (executable)
index 0000000..07f58e1
--- /dev/null
@@ -0,0 +1,69 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
+import sys
+sys.path.append('.')
+sys.path.append('./apps')
+sys.path.append('./lib')
+
+from django.core.management import setup_environ
+from redakcja import settings
+
+setup_environ(settings)
+
+from catalogue.models import Book, Chunk
+import re
+
+fixed = {}
+
+datepd = r"(<dc:date.pd[^>]+>)([0-9]+)(</dc:date.pd>)"
+def fix(book, author, dry_run=True):
+    if len(book) == 0:
+        print "%s does not contain chunks" % book.slug
+        return
+    fc = book[0]
+    txt = fc.materialize()
+
+    if dry_run:
+        m = re.search(datepd, txt)
+        if m:
+            print("%s: %s->%d" % (book.slug, m.groups()[1], int(m.groups()[1])+71))
+        else:
+            print("%s: date.pd not found??" % (book.slug,))
+    else:
+        dates = {}
+        def up_date(match):
+            tagopen, date, tagclose = match.groups()
+            olddate=date
+            date = str(int(date)+71)
+            dates['date'] = date
+            dates['olddate'] = olddate
+            dates['overflow'] = False
+            if int(date) > 2012:
+               dates['overflow'] = True
+               return tagopen+date+tagclose
+
+        new_txt = re.sub(datepd, up_date, txt)
+        if dates:
+            print "%s: %s->%s" % (book.slug, dates['olddate'], dates['date'])
+            if dates['overflow']:
+                print "oops, new date would overfow to the future, i'm not changing"
+                return 
+           # fc.commit(new_txt, author=author, description=u"Automatyczne poprawienie daty przejścia do domeny publicznej z %s na %s" % (dates['olddate'], dates['date']))
+        else:
+            print "skipping %s" % book.slug
+import sys
+import getopt
+from django.contrib.auth.models import User
+opts, oth_ = getopt.getopt(sys.argv[1:],[],[ "seriously"])
+dry_run = not (("--seriously",'') in opts)
+me = User.objects.get(username='marcinkoziej')
+if dry_run:
+    print "This is a dry run, to really change dates, run with --seriously"
+for b in Book.objects.all():
+    fix(b, me, dry_run)
+
+    
+    
diff --git a/tests/__init__.py b/tests/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py
new file mode 100644 (file)
index 0000000..5c572ea
--- /dev/null
@@ -0,0 +1,5 @@
+import os\r
+from django.conf import settings\r
+\r
+if not os.path.exists(settings.STATIC_ROOT_SYMLINK):\r
+    os.symlink(settings.STATIC_ROOT, settings.STATIC_ROOT_SYMLINK)
\ No newline at end of file
diff --git a/tests/integration/base.py b/tests/integration/base.py
new file mode 100644 (file)
index 0000000..c2774c9
--- /dev/null
@@ -0,0 +1,125 @@
+import os\r
+import inspect\r
+from urlparse import urlparse\r
+\r
+from django.test import LiveServerTestCase\r
+from django.test.client import Client\r
+from django.conf import settings\r
+from django.contrib.auth.models import User, Permission\r
+from django.utils.translation import ugettext as _\r
+\r
+from selenium import webdriver, selenium\r
+from selenium.webdriver.support.wait import WebDriverWait\r
+\r
+\r
+class SeleniumTestCase(LiveServerTestCase):\r
+\r
+    @classmethod\r
+    def setUpClass(cls):\r
+        LiveServerTestCase.setUpClass()\r
+        cls.browser = getattr(webdriver, os.environ.get('TEST_BROWSER', 'Firefox'))()\r
+        cls.browser.implicitly_wait(5)\r
+        \r
+    @classmethod\r
+    def tearDownClass(cls):\r
+        LiveServerTestCase.tearDownClass()\r
+        cls.browser.quit()\r
+        \r
+    def setUp(self):\r
+        self.browser.delete_all_cookies()\r
+    \r
+    def create_user(self, username = 'testuser',  passwd = 'passwd', do_login = False):\r
+        user = User.objects.create_user(username, '', passwd)\r
+        user._plain_passwd = passwd\r
+        if do_login:\r
+            self.login_user(user)\r
+        return user\r
+    \r
+    def create_super_user(self, *args, **kwargs):\r
+        user = self.create_user(*args, **kwargs)\r
+        user.is_superuser = True\r
+        user.save()\r
+        return user\r
+        \r
+    def login_user(self, user):\r
+        client = Client()\r
+        client.login(username = user.username, password = user._plain_passwd)\r
+\r
+        if not self.browser.current_url.startswith(self.live_server_url):\r
+            self.browser.get(self.live_server_url+'/not_existing_url')\r
+            \r
+        self.browser.find_element_by_tag_name('body') # Make sure the page is actually loaded before setting the cookie\r
+        self.browser.delete_cookie(settings.SESSION_COOKIE_NAME)\r
+        self.browser.add_cookie(dict(name = settings.SESSION_COOKIE_NAME, \r
+                                     value = client.cookies[settings.SESSION_COOKIE_NAME].value,\r
+                                     path = '/')\r
+                               )\r
+        \r
+    def get_main_page(self):\r
+        self.browser.get(self.live_server_url)\r
+        self.browser.find_element_by_tag_name('body')\r
+        return MainPage(self.browser)\r
+\r
+        \r
+class Page(object):\r
+    def __init__(self, browser):\r
+        self.browser = browser\r
+    \r
+    \r
+class MainPage(Page):\r
+\r
+    def __init__(self, browser):\r
+        Page.__init__(self, browser)\r
+        self.tab = None\r
+    \r
+    @property\r
+    def element(self):\r
+        return self.browser.find_element_by_tag_name('body')\r
+    \r
+    def select_tab(self, tab_title):\r
+        for a in self.element.find_element_by_id('tabs-nav-left').find_elements_by_tag_name('a'):\r
+            if a.text == tab_title:\r
+                a.click()\r
+                self.tab = find_tab_class(tab_title)(self.browser)\r
+                return\r
+        raise Exception, 'Tab not found'\r
+        \r
+                \r
+def find_tab_class(tab_title):       \r
+    for obj in globals().values():\r
+        if inspect.isclass(obj) and issubclass(obj, MainPageTabBase) and getattr(obj, 'tab_title', None) == tab_title:\r
+            return obj\r
+    raise NotImplementedError\r
+                \r
+\r
+class MainPageTabBase(Page):\r
+    def __init__(self, browser):\r
+        Page.__init__(self, browser)\r
+    \r
+    @property\r
+    def element(self):\r
+        return self.browser.find_element_by_id('content')\r
+        \r
+\r
+class AddBookPage(MainPageTabBase):\r
+    tab_title = _('Add')\r
+    \r
+    def put_title(self, title):\r
+        self.element.find_element_by_id('id_title').send_keys(title)\r
+        \r
+    def put_text(self, text):\r
+        self.element.find_element_by_id('id_text').send_keys(text)\r
+        \r
+    def submit(self):\r
+        self.browser.find_element_by_css_selector('table.editable button').click()\r
+        return self.browser\r
+        \r
+    \r
+class BooksListPage(MainPageTabBase):\r
+    tab_title = _('All')\r
+    \r
+    @property\r
+    def visible_books_count(self):\r
+        return len(self.element.find_element_by_id('file-list').find_elements_by_tag_name('tr')) - 2\r
+        \r
+        
\ No newline at end of file
diff --git a/tests/integration/smoke_test.py b/tests/integration/smoke_test.py
new file mode 100644 (file)
index 0000000..fb29a73
--- /dev/null
@@ -0,0 +1,18 @@
+from tests.integration.base import SeleniumTestCase, MainPage, _\r
+\r
+class SmokeTest(SeleniumTestCase):\r
+\r
+    def test_add_book(self):\r
+        user = self.create_super_user(do_login = True)\r
+        \r
+        page = self.get_main_page()\r
+        page.select_tab(_('All'))\r
+        assert page.tab.visible_books_count == 0\r
+        \r
+        page.select_tab(_('Add'))\r
+        page.tab.put_title('Test title')\r
+        page.tab.put_text('Test text')\r
+        page.tab.submit()\r
+        page.select_tab(_('All'))\r
+        assert page.tab.visible_books_count == 1\r
+        
\ No newline at end of file