Dodanie aplikacji sorl.thumbnail i filebrowser.
authorzuber <marek@stepniowski.com>
Thu, 5 Nov 2009 22:51:01 +0000 (23:51 +0100)
committerzuber <marek@stepniowski.com>
Thu, 5 Nov 2009 22:51:01 +0000 (23:51 +0100)
1065 files changed:
apps/filebrowser/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/.svn/entries [new file with mode: 0644]
apps/filebrowser/.svn/prop-base/fb_settings.py.svn-base [new file with mode: 0644]
apps/filebrowser/.svn/prop-base/functions.py.svn-base [new file with mode: 0644]
apps/filebrowser/.svn/prop-base/models.py.svn-base [new file with mode: 0644]
apps/filebrowser/.svn/text-base/LICENSE.svn-base [new file with mode: 0644]
apps/filebrowser/.svn/text-base/__init__.py.svn-base [new file with mode: 0644]
apps/filebrowser/.svn/text-base/base.py.svn-base [new file with mode: 0644]
apps/filebrowser/.svn/text-base/decorators.py.svn-base [new file with mode: 0644]
apps/filebrowser/.svn/text-base/fb_settings.py.svn-base [new file with mode: 0644]
apps/filebrowser/.svn/text-base/fields.py.svn-base [new file with mode: 0644]
apps/filebrowser/.svn/text-base/forms.py.svn-base [new file with mode: 0644]
apps/filebrowser/.svn/text-base/functions.py.svn-base [new file with mode: 0644]
apps/filebrowser/.svn/text-base/models.py.svn-base [new file with mode: 0644]
apps/filebrowser/.svn/text-base/urls.py.svn-base [new file with mode: 0644]
apps/filebrowser/.svn/text-base/views.py.svn-base [new file with mode: 0644]
apps/filebrowser/LICENSE [new file with mode: 0644]
apps/filebrowser/__init__.py [new file with mode: 0644]
apps/filebrowser/base.py [new file with mode: 0644]
apps/filebrowser/decorators.py [new file with mode: 0644]
apps/filebrowser/fb_settings.py [new file with mode: 0755]
apps/filebrowser/fields.py [new file with mode: 0644]
apps/filebrowser/forms.py [new file with mode: 0644]
apps/filebrowser/functions.py [new file with mode: 0755]
apps/filebrowser/locale/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/ca/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/ca/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/ca/LC_MESSAGES/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/ca/LC_MESSAGES/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/ca/LC_MESSAGES/.svn/prop-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/ca/LC_MESSAGES/.svn/text-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/ca/LC_MESSAGES/.svn/text-base/django.po.svn-base [new file with mode: 0644]
apps/filebrowser/locale/ca/LC_MESSAGES/django.mo [new file with mode: 0644]
apps/filebrowser/locale/ca/LC_MESSAGES/django.po [new file with mode: 0644]
apps/filebrowser/locale/de/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/de/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/de/LC_MESSAGES/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/de/LC_MESSAGES/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/de/LC_MESSAGES/.svn/prop-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/de/LC_MESSAGES/.svn/text-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/de/LC_MESSAGES/.svn/text-base/django.po.svn-base [new file with mode: 0644]
apps/filebrowser/locale/de/LC_MESSAGES/django.mo [new file with mode: 0644]
apps/filebrowser/locale/de/LC_MESSAGES/django.po [new file with mode: 0644]
apps/filebrowser/locale/es/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/es/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/es/LC_MESSAGES/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/es/LC_MESSAGES/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/es/LC_MESSAGES/.svn/prop-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/es/LC_MESSAGES/.svn/text-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/es/LC_MESSAGES/.svn/text-base/django.po.svn-base [new file with mode: 0644]
apps/filebrowser/locale/es/LC_MESSAGES/django.mo [new file with mode: 0644]
apps/filebrowser/locale/es/LC_MESSAGES/django.po [new file with mode: 0644]
apps/filebrowser/locale/fr/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/fr/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/fr/LC_MESSAGES/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/fr/LC_MESSAGES/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/fr/LC_MESSAGES/.svn/prop-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/fr/LC_MESSAGES/.svn/text-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/fr/LC_MESSAGES/.svn/text-base/django.po.svn-base [new file with mode: 0644]
apps/filebrowser/locale/fr/LC_MESSAGES/django.mo [new file with mode: 0644]
apps/filebrowser/locale/fr/LC_MESSAGES/django.po [new file with mode: 0644]
apps/filebrowser/locale/it/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/it/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/it/LC_MESSAGES/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/it/LC_MESSAGES/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/it/LC_MESSAGES/.svn/prop-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/it/LC_MESSAGES/.svn/text-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/it/LC_MESSAGES/.svn/text-base/django.po.svn-base [new file with mode: 0644]
apps/filebrowser/locale/it/LC_MESSAGES/django.mo [new file with mode: 0644]
apps/filebrowser/locale/it/LC_MESSAGES/django.po [new file with mode: 0644]
apps/filebrowser/locale/nl/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/nl/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/nl/LC_MESSAGES/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/nl/LC_MESSAGES/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/nl/LC_MESSAGES/.svn/prop-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/nl/LC_MESSAGES/.svn/text-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/nl/LC_MESSAGES/.svn/text-base/django.po.svn-base [new file with mode: 0644]
apps/filebrowser/locale/nl/LC_MESSAGES/django.mo [new file with mode: 0644]
apps/filebrowser/locale/nl/LC_MESSAGES/django.po [new file with mode: 0644]
apps/filebrowser/locale/ru/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/ru/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/ru/LC_MESSAGES/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/ru/LC_MESSAGES/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/ru/LC_MESSAGES/.svn/prop-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/ru/LC_MESSAGES/.svn/text-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/ru/LC_MESSAGES/.svn/text-base/django.po.svn-base [new file with mode: 0644]
apps/filebrowser/locale/ru/LC_MESSAGES/django.mo [new file with mode: 0644]
apps/filebrowser/locale/ru/LC_MESSAGES/django.po [new file with mode: 0644]
apps/filebrowser/locale/sr/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/sr/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/sr/LC_MESSAGES/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/sr/LC_MESSAGES/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/sr/LC_MESSAGES/.svn/prop-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/sr/LC_MESSAGES/.svn/text-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/sr/LC_MESSAGES/.svn/text-base/django.po.svn-base [new file with mode: 0644]
apps/filebrowser/locale/sr/LC_MESSAGES/django.mo [new file with mode: 0644]
apps/filebrowser/locale/sr/LC_MESSAGES/django.po [new file with mode: 0644]
apps/filebrowser/locale/sr_Latn/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/sr_Latn/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/prop-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/text-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/text-base/django.po.svn-base [new file with mode: 0644]
apps/filebrowser/locale/sr_Latn/LC_MESSAGES/django.mo [new file with mode: 0644]
apps/filebrowser/locale/sr_Latn/LC_MESSAGES/django.po [new file with mode: 0644]
apps/filebrowser/locale/zh_CN/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/zh_CN/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/prop-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/text-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/text-base/django.po.svn-base [new file with mode: 0644]
apps/filebrowser/locale/zh_CN/LC_MESSAGES/django.mo [new file with mode: 0644]
apps/filebrowser/locale/zh_CN/LC_MESSAGES/django.po [new file with mode: 0644]
apps/filebrowser/locale/zh_TW/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/zh_TW/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/entries [new file with mode: 0644]
apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/prop-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/text-base/django.mo.svn-base [new file with mode: 0644]
apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/text-base/django.po.svn-base [new file with mode: 0644]
apps/filebrowser/locale/zh_TW/LC_MESSAGES/django.mo [new file with mode: 0644]
apps/filebrowser/locale/zh_TW/LC_MESSAGES/django.po [new file with mode: 0644]
apps/filebrowser/media/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/css/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/css/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/css/.svn/prop-base/filebrowser.css.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/css/.svn/text-base/filebrowser.css.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/css/filebrowser.css [new file with mode: 0755]
apps/filebrowser/media/filebrowser/img/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_delete.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_delete_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_imagegenerator.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_imagegenerator_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_makethumb.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_makethumb_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_rename.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_rename_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_select.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_select_disabled.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_select_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_show.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_show_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_showversions.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_showversions_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_imagegenerator.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_imagegenerator_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makedirectory.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makedirectory_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makethumb.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makethumb_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_multipleupload.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_multipleupload_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_code.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_document.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_folder.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_image.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_sound.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_video.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/tableheader_arrow_down.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/tableheader_arrow_up.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/prop-base/tableheader_arrows.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_delete.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_delete_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_rename.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_rename_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_select.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_select_disabled.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_select_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_show.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_show_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_showversions.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_showversions_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload_hover.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_code.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_document.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_folder.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_image.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_sound.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_video.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/tableheader_arrow_down.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/tableheader_arrow_up.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/.svn/text-base/tableheader_arrows.gif.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_delete.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_delete_hover.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb_hover.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_rename.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_rename_hover.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_select.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_select_disabled.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_select_hover.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_show.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_show_hover.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_showversions.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_icon_showversions_hover.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_type_.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_type_code.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_type_document.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_type_folder.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_type_image.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_type_sound.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/filebrowser_type_video.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/tableheader_arrow_down.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/tableheader_arrow_up.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/img/tableheader_arrows.gif [new file with mode: 0644]
apps/filebrowser/media/filebrowser/js/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/js/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/js/.svn/prop-base/FB_FileBrowseField.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/js/.svn/prop-base/FB_TinyMCE.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/js/.svn/text-base/AddFileBrowser.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/js/.svn/text-base/FB_CKEditor.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/js/.svn/text-base/FB_FileBrowseField.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/js/.svn/text-base/FB_TinyMCE.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/js/.svn/text-base/TinyMCEAdmin.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/js/.svn/text-base/jquery-1.3.2.min.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/js/AddFileBrowser.js [new file with mode: 0644]
apps/filebrowser/media/filebrowser/js/FB_CKEditor.js [new file with mode: 0644]
apps/filebrowser/media/filebrowser/js/FB_FileBrowseField.js [new file with mode: 0755]
apps/filebrowser/media/filebrowser/js/FB_TinyMCE.js [new file with mode: 0755]
apps/filebrowser/media/filebrowser/js/TinyMCEAdmin.js [new file with mode: 0644]
apps/filebrowser/media/filebrowser/js/jquery-1.3.2.min.js [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/Uploadify v2.1.0 Manual.pdf.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/cancel.png.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/check.php.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/expressInstall.swf.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/jquery-1.3.2.min.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/jquery.uploadify.v2.1.0.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/jquery.uploadify.v2.1.0.min.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/swfobject.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/uploadify.allglyphs.swf.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/uploadify.css.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/uploadify.fla.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/uploadify.php.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/uploadify.swf.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/Uploadify v2.1.0 Manual.pdf.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/cancel.png.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/check.php.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/expressInstall.swf.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/jquery-1.3.2.min.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/jquery.uploadify.v2.1.0.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/jquery.uploadify.v2.1.0.min.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/swfobject.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.allglyphs.swf.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.css.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.fla.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.php.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.swf.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/Uploadify v2.1.0 Manual.pdf [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/cancel.png [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/check.php [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/.svn/prop-base/FileTarget.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/.svn/text-base/FileTarget.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/FileTarget.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/HMAC.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/MD5.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/MD5Stream.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA1.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA224.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA256.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/WSSEUsernameToken.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/HMAC.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/MD5.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/MD5Stream.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/SHA1.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/SHA224.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/SHA256.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/WSSEUsernameToken.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/HMAC.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/MD5.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/MD5Stream.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA1.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA224.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA256.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/WSSEUsernameToken.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/.svn/prop-base/IllegalStateError.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/.svn/text-base/IllegalStateError.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/IllegalStateError.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Address.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Email.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Phone.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/VCard.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/VCardParser.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Address.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Email.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Phone.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/VCard.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/VCardParser.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Address.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Email.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Phone.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/VCard.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/VCardParser.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/prop-base/BitString.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/prop-base/JPGEncoder.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/prop-base/PNGEncoder.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/text-base/BitString.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/text-base/JPGEncoder.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/text-base/PNGEncoder.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/BitString.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/JPGEncoder.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/PNGEncoder.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/prop-base/DynamicURLLoader.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/prop-base/IURIResolver.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/prop-base/MimeTypeMap.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/prop-base/URI.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/prop-base/URIEncodingBitmap.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/text-base/DynamicURLLoader.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/text-base/IURIResolver.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/text-base/MimeTypeMap.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/text-base/URI.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/text-base/URIEncodingBitmap.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/DynamicURLLoader.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/IURIResolver.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/MimeTypeMap.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/URI.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/URIEncodingBitmap.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/.svn/prop-base/RFC2817Socket.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/.svn/text-base/RFC2817Socket.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/RFC2817Socket.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Database.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Definition.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Dict.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/DictionaryServer.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/MatchStrategy.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Response.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Database.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Definition.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Dict.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/DictionaryServer.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/MatchStrategy.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Response.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Database.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Definition.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Dict.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/DictionaryServer.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/MatchStrategy.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Response.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/ConnectedEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DatabaseEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DefinitionEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DefinitionHeaderEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DictionaryServerEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DisconnectedEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/ErrorEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/MatchEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/MatchStrategiesEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/NoMatchEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/ConnectedEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DatabaseEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DefinitionEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DefinitionHeaderEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DictionaryServerEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DisconnectedEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/ErrorEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/MatchEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/MatchStrategiesEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/NoMatchEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/ConnectedEvent.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DatabaseEvent.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionEvent.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DictionaryServerEvent.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DisconnectedEvent.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/ErrorEvent.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchEvent.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchStrategiesEvent.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/NoMatchEvent.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/prop-base/CompleteResponseEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/prop-base/SocketHelper.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/text-base/CompleteResponseEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/text-base/SocketHelper.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/CompleteResponseEvent.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/SocketHelper.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSON.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONDecoder.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONEncoder.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONParseError.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONToken.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONTokenType.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONTokenizer.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSON.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONDecoder.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONEncoder.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONParseError.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONToken.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONTokenType.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONTokenizer.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSON.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONDecoder.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONEncoder.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONParseError.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONToken.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenType.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenizer.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/ArrayUtil.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/DateUtil.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/DictionaryUtil.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/IntUtil.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/NumberFormatter.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/StringUtil.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/XMLUtil.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/text-base/ArrayUtil.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/text-base/DateUtil.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/text-base/DictionaryUtil.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/text-base/IntUtil.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/text-base/NumberFormatter.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/text-base/StringUtil.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/text-base/XMLUtil.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/ArrayUtil.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/DateUtil.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/DictionaryUtil.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/IntUtil.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/NumberFormatter.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/StringUtil.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/XMLUtil.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/prop-base/ServiceBase.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/prop-base/URLLoaderBase.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/text-base/ServiceBase.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/text-base/URLLoaderBase.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/ServiceBase.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/URLLoaderBase.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/.svn/prop-base/ServiceEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/.svn/text-base/ServiceEvent.as.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/ServiceEvent.as [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/example/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/.svn/prop-base/cancel.png.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/.svn/prop-base/index.php.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/.svn/text-base/cancel.png.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/.svn/text-base/index.php.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/_notes/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/_notes/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/_notes/.svn/prop-base/dwsync.xml.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/_notes/.svn/text-base/dwsync.xml.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/_notes/dwsync.xml [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/example/cancel.png [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/prop-base/default.css.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/prop-base/uploadify.css.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/text-base/default.css.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/text-base/uploadify.css.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/.svn/prop-base/dwsync.xml.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/.svn/text-base/dwsync.xml.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/dwsync.xml [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/example/css/default.css [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/example/css/uploadify.css [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/example/index.php [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/check.php.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/expressInstall.swf.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/jquery-1.3.2.min.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/jquery.uploadify.v2.1.0.min.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/swfobject.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/uploadify.php.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/uploadify.swf.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/check.php.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/expressInstall.swf.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/jquery-1.3.2.min.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/jquery.uploadify.v2.1.0.min.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/swfobject.js.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/uploadify.php.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/uploadify.swf.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/.svn/prop-base/dwsync.xml.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/.svn/text-base/dwsync.xml.svn-base [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/dwsync.xml [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/check.php [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/expressInstall.swf [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/jquery-1.3.2.min.js [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/jquery.uploadify.v2.1.0.min.js [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/swfobject.js [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/uploadify.php [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/example/scripts/uploadify.swf [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/example/uploads/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/example/uploads/.svn/entries [new file with mode: 0644]
apps/filebrowser/media/filebrowser/uploadify/expressInstall.swf [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/jquery-1.3.2.min.js [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/jquery.uploadify.v2.1.0.js [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/jquery.uploadify.v2.1.0.min.js [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/swfobject.js [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/uploadify.allglyphs.swf [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/uploadify.css [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/uploadify.fla [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/uploadify.php [new file with mode: 0755]
apps/filebrowser/media/filebrowser/uploadify/uploadify.swf [new file with mode: 0755]
apps/filebrowser/models.py [new file with mode: 0755]
apps/filebrowser/templates/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/templates/.svn/entries [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/.svn/entries [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/.svn/text-base/append.html.svn-base [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/.svn/text-base/custom_field.html.svn-base [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/.svn/text-base/index.html.svn-base [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/.svn/text-base/makedir.html.svn-base [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/.svn/text-base/rename.html.svn-base [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/.svn/text-base/upload.html.svn-base [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/.svn/text-base/versions.html.svn-base [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/append.html [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/custom_field.html [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/.svn/entries [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/.svn/text-base/_response.html.svn-base [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/.svn/text-base/breadcrumbs.html.svn-base [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/.svn/text-base/filelisting.html.svn-base [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/.svn/text-base/filter.html.svn-base [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/.svn/text-base/paginator.html.svn-base [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/.svn/text-base/tableheader.html.svn-base [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/.svn/text-base/toolbar.html.svn-base [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/_response.html [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/breadcrumbs.html [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/filelisting.html [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/filter.html [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/paginator.html [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/tableheader.html [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/include/toolbar.html [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/index.html [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/makedir.html [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/rename.html [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/upload.html [new file with mode: 0644]
apps/filebrowser/templates/filebrowser/versions.html [new file with mode: 0644]
apps/filebrowser/templatetags/.svn/all-wcprops [new file with mode: 0644]
apps/filebrowser/templatetags/.svn/entries [new file with mode: 0644]
apps/filebrowser/templatetags/.svn/text-base/__init__.py.svn-base [new file with mode: 0644]
apps/filebrowser/templatetags/.svn/text-base/fb_tags.py.svn-base [new file with mode: 0644]
apps/filebrowser/templatetags/.svn/text-base/fb_versions.py.svn-base [new file with mode: 0644]
apps/filebrowser/templatetags/__init__.py [new file with mode: 0644]
apps/filebrowser/templatetags/fb_tags.py [new file with mode: 0644]
apps/filebrowser/templatetags/fb_versions.py [new file with mode: 0644]
apps/filebrowser/urls.py [new file with mode: 0644]
apps/filebrowser/views.py [new file with mode: 0644]
apps/sorl/__init__.py [new file with mode: 0755]
apps/sorl/thumbnail/__init__.py [new file with mode: 0644]
apps/sorl/thumbnail/base.py [new file with mode: 0755]
apps/sorl/thumbnail/defaults.py [new file with mode: 0644]
apps/sorl/thumbnail/fields.py [new file with mode: 0644]
apps/sorl/thumbnail/main.py [new file with mode: 0644]
apps/sorl/thumbnail/management/__init__.py [new file with mode: 0644]
apps/sorl/thumbnail/management/commands/__init__.py [new file with mode: 0644]
apps/sorl/thumbnail/management/commands/thumbnail_cleanup.py [new file with mode: 0644]
apps/sorl/thumbnail/models.py [new file with mode: 0644]
apps/sorl/thumbnail/processors.py [new file with mode: 0644]
apps/sorl/thumbnail/templatetags/__init__.py [new file with mode: 0644]
apps/sorl/thumbnail/templatetags/thumbnail.py [new file with mode: 0755]
apps/sorl/thumbnail/tests/__init__.py [new file with mode: 0644]
apps/sorl/thumbnail/tests/base.py [new file with mode: 0644]
apps/sorl/thumbnail/tests/classes.py [new file with mode: 0644]
apps/sorl/thumbnail/tests/fields.py [new file with mode: 0644]
apps/sorl/thumbnail/tests/templatetags.py [new file with mode: 0644]
apps/sorl/thumbnail/tests/utils.py [new file with mode: 0644]
apps/sorl/thumbnail/utils.py [new file with mode: 0644]
platforma/settings.py
platforma/static/filebrowser/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/css/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/css/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/css/.svn/prop-base/filebrowser.css.svn-base [new file with mode: 0644]
platforma/static/filebrowser/css/.svn/text-base/filebrowser.css.svn-base [new file with mode: 0644]
platforma/static/filebrowser/css/filebrowser.css [new file with mode: 0755]
platforma/static/filebrowser/img/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_delete.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_delete_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_imagegenerator.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_imagegenerator_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_makethumb.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_makethumb_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_rename.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_rename_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_select.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_select_disabled.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_select_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_show.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_show_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_showversions.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_showversions_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_imagegenerator.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_imagegenerator_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makedirectory.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makedirectory_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makethumb.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makethumb_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_multipleupload.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_multipleupload_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_code.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_document.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_folder.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_image.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_sound.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_video.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/tableheader_arrow_down.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/tableheader_arrow_up.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/prop-base/tableheader_arrows.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_delete.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_delete_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_rename.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_rename_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_select.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_select_disabled.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_select_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_show.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_show_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_showversions.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_showversions_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload_hover.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_code.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_document.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_folder.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_image.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_sound.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_video.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/tableheader_arrow_down.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/tableheader_arrow_up.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/.svn/text-base/tableheader_arrows.gif.svn-base [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_icon_delete.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_icon_delete_hover.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_icon_imagegenerator.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_icon_makethumb.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_icon_makethumb_hover.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_icon_rename.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_icon_rename_hover.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_icon_select.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_icon_select_disabled.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_icon_select_hover.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_icon_show.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_icon_show_hover.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_icon_showversions.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_icon_showversions_hover.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_type_.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_type_code.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_type_document.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_type_folder.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_type_image.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_type_sound.gif [new file with mode: 0644]
platforma/static/filebrowser/img/filebrowser_type_video.gif [new file with mode: 0644]
platforma/static/filebrowser/img/tableheader_arrow_down.gif [new file with mode: 0644]
platforma/static/filebrowser/img/tableheader_arrow_up.gif [new file with mode: 0644]
platforma/static/filebrowser/img/tableheader_arrows.gif [new file with mode: 0644]
platforma/static/filebrowser/js/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/js/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/js/.svn/prop-base/FB_FileBrowseField.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/js/.svn/prop-base/FB_TinyMCE.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/js/.svn/text-base/AddFileBrowser.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/js/.svn/text-base/FB_CKEditor.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/js/.svn/text-base/FB_FileBrowseField.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/js/.svn/text-base/FB_TinyMCE.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/js/.svn/text-base/TinyMCEAdmin.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/js/.svn/text-base/jquery-1.3.2.min.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/js/AddFileBrowser.js [new file with mode: 0644]
platforma/static/filebrowser/js/FB_CKEditor.js [new file with mode: 0644]
platforma/static/filebrowser/js/FB_FileBrowseField.js [new file with mode: 0755]
platforma/static/filebrowser/js/FB_TinyMCE.js [new file with mode: 0755]
platforma/static/filebrowser/js/TinyMCEAdmin.js [new file with mode: 0644]
platforma/static/filebrowser/js/jquery-1.3.2.min.js [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/prop-base/Uploadify v2.1.0 Manual.pdf.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/prop-base/cancel.png.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/prop-base/check.php.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/prop-base/expressInstall.swf.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/prop-base/jquery-1.3.2.min.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/prop-base/jquery.uploadify.v2.1.0.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/prop-base/jquery.uploadify.v2.1.0.min.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/prop-base/swfobject.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/prop-base/uploadify.allglyphs.swf.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/prop-base/uploadify.css.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/prop-base/uploadify.fla.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/prop-base/uploadify.php.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/prop-base/uploadify.swf.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/text-base/Uploadify v2.1.0 Manual.pdf.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/text-base/cancel.png.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/text-base/check.php.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/text-base/expressInstall.swf.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/text-base/jquery-1.3.2.min.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/text-base/jquery.uploadify.v2.1.0.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/text-base/jquery.uploadify.v2.1.0.min.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/text-base/swfobject.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.allglyphs.swf.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.css.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.fla.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.php.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.swf.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/Uploadify v2.1.0 Manual.pdf [new file with mode: 0755]
platforma/static/filebrowser/uploadify/cancel.png [new file with mode: 0755]
platforma/static/filebrowser/uploadify/check.php [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/air/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/air/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/air/logging/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/air/logging/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/air/logging/.svn/prop-base/FileTarget.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/air/logging/.svn/text-base/FileTarget.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/air/logging/FileTarget.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/HMAC.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/MD5.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/MD5Stream.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA1.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA224.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA256.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/WSSEUsernameToken.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/HMAC.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/MD5.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/MD5Stream.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/SHA1.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/SHA224.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/SHA256.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/WSSEUsernameToken.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/crypto/HMAC.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/crypto/MD5.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/crypto/MD5Stream.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/crypto/SHA1.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/crypto/SHA224.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/crypto/SHA256.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/crypto/WSSEUsernameToken.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/errors/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/errors/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/errors/.svn/prop-base/IllegalStateError.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/errors/.svn/text-base/IllegalStateError.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/errors/IllegalStateError.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Address.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Email.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Phone.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/VCard.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/VCardParser.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Address.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Email.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Phone.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/VCard.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/VCardParser.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Address.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Email.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Phone.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/VCard.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/VCardParser.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/images/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/images/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/images/.svn/prop-base/BitString.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/images/.svn/prop-base/JPGEncoder.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/images/.svn/prop-base/PNGEncoder.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/images/.svn/text-base/BitString.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/images/.svn/text-base/JPGEncoder.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/images/.svn/text-base/PNGEncoder.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/images/BitString.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/images/JPGEncoder.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/images/PNGEncoder.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/net/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/.svn/prop-base/DynamicURLLoader.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/.svn/prop-base/IURIResolver.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/.svn/prop-base/MimeTypeMap.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/.svn/prop-base/URI.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/.svn/prop-base/URIEncodingBitmap.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/.svn/text-base/DynamicURLLoader.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/.svn/text-base/IURIResolver.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/.svn/text-base/MimeTypeMap.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/.svn/text-base/URI.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/.svn/text-base/URIEncodingBitmap.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/DynamicURLLoader.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/net/IURIResolver.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/net/MimeTypeMap.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/net/URI.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/net/URIEncodingBitmap.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/net/proxies/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/proxies/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/proxies/.svn/prop-base/RFC2817Socket.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/proxies/.svn/text-base/RFC2817Socket.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/net/proxies/RFC2817Socket.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Database.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Definition.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Dict.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/DictionaryServer.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/MatchStrategy.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Response.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Database.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Definition.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Dict.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/DictionaryServer.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/MatchStrategy.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Response.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/Database.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/Definition.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/Dict.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/DictionaryServer.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/MatchStrategy.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/Response.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/ConnectedEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DatabaseEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DefinitionEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DefinitionHeaderEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DictionaryServerEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DisconnectedEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/ErrorEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/MatchEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/MatchStrategiesEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/NoMatchEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/ConnectedEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DatabaseEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DefinitionEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DefinitionHeaderEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DictionaryServerEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DisconnectedEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/ErrorEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/MatchEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/MatchStrategiesEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/NoMatchEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/ConnectedEvent.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DatabaseEvent.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionEvent.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DictionaryServerEvent.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DisconnectedEvent.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/ErrorEvent.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchEvent.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchStrategiesEvent.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/NoMatchEvent.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/prop-base/CompleteResponseEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/prop-base/SocketHelper.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/text-base/CompleteResponseEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/text-base/SocketHelper.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/CompleteResponseEvent.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/SocketHelper.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/serialization/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSON.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONDecoder.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONEncoder.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONParseError.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONToken.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONTokenType.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONTokenizer.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSON.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONDecoder.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONEncoder.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONParseError.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONToken.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONTokenType.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONTokenizer.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSON.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONDecoder.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONEncoder.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONParseError.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONToken.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenType.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenizer.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/ArrayUtil.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/DateUtil.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/DictionaryUtil.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/IntUtil.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/NumberFormatter.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/StringUtil.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/XMLUtil.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/ArrayUtil.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/DateUtil.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/DictionaryUtil.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/IntUtil.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/NumberFormatter.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/StringUtil.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/XMLUtil.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/utils/ArrayUtil.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/utils/DateUtil.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/utils/DictionaryUtil.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/utils/IntUtil.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/utils/NumberFormatter.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/utils/StringUtil.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/utils/XMLUtil.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/prop-base/ServiceBase.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/prop-base/URLLoaderBase.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/text-base/ServiceBase.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/text-base/URLLoaderBase.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/webapis/ServiceBase.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/webapis/URLLoaderBase.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/com/adobe/webapis/events/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/webapis/events/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/webapis/events/.svn/prop-base/ServiceEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/webapis/events/.svn/text-base/ServiceEvent.as.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/com/adobe/webapis/events/ServiceEvent.as [new file with mode: 0755]
platforma/static/filebrowser/uploadify/example/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/.svn/prop-base/cancel.png.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/.svn/prop-base/index.php.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/.svn/text-base/cancel.png.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/.svn/text-base/index.php.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/_notes/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/_notes/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/_notes/.svn/prop-base/dwsync.xml.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/_notes/.svn/text-base/dwsync.xml.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/_notes/dwsync.xml [new file with mode: 0755]
platforma/static/filebrowser/uploadify/example/cancel.png [new file with mode: 0755]
platforma/static/filebrowser/uploadify/example/css/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/css/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/css/.svn/prop-base/default.css.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/css/.svn/prop-base/uploadify.css.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/css/.svn/text-base/default.css.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/css/.svn/text-base/uploadify.css.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/css/_notes/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/css/_notes/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/css/_notes/.svn/prop-base/dwsync.xml.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/css/_notes/.svn/text-base/dwsync.xml.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/css/_notes/dwsync.xml [new file with mode: 0755]
platforma/static/filebrowser/uploadify/example/css/default.css [new file with mode: 0755]
platforma/static/filebrowser/uploadify/example/css/uploadify.css [new file with mode: 0755]
platforma/static/filebrowser/uploadify/example/index.php [new file with mode: 0755]
platforma/static/filebrowser/uploadify/example/scripts/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/check.php.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/expressInstall.swf.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/jquery-1.3.2.min.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/jquery.uploadify.v2.1.0.min.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/swfobject.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/uploadify.php.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/uploadify.swf.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/check.php.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/expressInstall.swf.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/jquery-1.3.2.min.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/jquery.uploadify.v2.1.0.min.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/swfobject.js.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/uploadify.php.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/uploadify.swf.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/_notes/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/_notes/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/_notes/.svn/prop-base/dwsync.xml.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/_notes/.svn/text-base/dwsync.xml.svn-base [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/scripts/_notes/dwsync.xml [new file with mode: 0755]
platforma/static/filebrowser/uploadify/example/scripts/check.php [new file with mode: 0755]
platforma/static/filebrowser/uploadify/example/scripts/expressInstall.swf [new file with mode: 0755]
platforma/static/filebrowser/uploadify/example/scripts/jquery-1.3.2.min.js [new file with mode: 0755]
platforma/static/filebrowser/uploadify/example/scripts/jquery.uploadify.v2.1.0.min.js [new file with mode: 0755]
platforma/static/filebrowser/uploadify/example/scripts/swfobject.js [new file with mode: 0755]
platforma/static/filebrowser/uploadify/example/scripts/uploadify.php [new file with mode: 0755]
platforma/static/filebrowser/uploadify/example/scripts/uploadify.swf [new file with mode: 0755]
platforma/static/filebrowser/uploadify/example/uploads/.svn/all-wcprops [new file with mode: 0644]
platforma/static/filebrowser/uploadify/example/uploads/.svn/entries [new file with mode: 0644]
platforma/static/filebrowser/uploadify/expressInstall.swf [new file with mode: 0755]
platforma/static/filebrowser/uploadify/jquery-1.3.2.min.js [new file with mode: 0755]
platforma/static/filebrowser/uploadify/jquery.uploadify.v2.1.0.js [new file with mode: 0755]
platforma/static/filebrowser/uploadify/jquery.uploadify.v2.1.0.min.js [new file with mode: 0755]
platforma/static/filebrowser/uploadify/swfobject.js [new file with mode: 0755]
platforma/static/filebrowser/uploadify/uploadify.allglyphs.swf [new file with mode: 0755]
platforma/static/filebrowser/uploadify/uploadify.css [new file with mode: 0755]
platforma/static/filebrowser/uploadify/uploadify.fla [new file with mode: 0755]
platforma/static/filebrowser/uploadify/uploadify.php [new file with mode: 0755]
platforma/static/filebrowser/uploadify/uploadify.swf [new file with mode: 0755]
platforma/templates/admin/index.html [new file with mode: 0644]
platforma/urls.py

diff --git a/apps/filebrowser/.svn/all-wcprops b/apps/filebrowser/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..0b4ed07
--- /dev/null
@@ -0,0 +1,71 @@
+K 25
+svn:wc:ra_dav:version-url
+V 52
+/svn/!svn/ver/466/branches/filebrowser_3/filebrowser
+END
+functions.py
+K 25
+svn:wc:ra_dav:version-url
+V 65
+/svn/!svn/ver/465/branches/filebrowser_3/filebrowser/functions.py
+END
+base.py
+K 25
+svn:wc:ra_dav:version-url
+V 60
+/svn/!svn/ver/443/branches/filebrowser_3/filebrowser/base.py
+END
+LICENSE
+K 25
+svn:wc:ra_dav:version-url
+V 60
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/LICENSE
+END
+views.py
+K 25
+svn:wc:ra_dav:version-url
+V 61
+/svn/!svn/ver/461/branches/filebrowser_3/filebrowser/views.py
+END
+__init__.py
+K 25
+svn:wc:ra_dav:version-url
+V 64
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/__init__.py
+END
+models.py
+K 25
+svn:wc:ra_dav:version-url
+V 62
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/models.py
+END
+urls.py
+K 25
+svn:wc:ra_dav:version-url
+V 60
+/svn/!svn/ver/422/branches/filebrowser_3/filebrowser/urls.py
+END
+decorators.py
+K 25
+svn:wc:ra_dav:version-url
+V 66
+/svn/!svn/ver/444/branches/filebrowser_3/filebrowser/decorators.py
+END
+forms.py
+K 25
+svn:wc:ra_dav:version-url
+V 61
+/svn/!svn/ver/429/branches/filebrowser_3/filebrowser/forms.py
+END
+fields.py
+K 25
+svn:wc:ra_dav:version-url
+V 62
+/svn/!svn/ver/439/branches/filebrowser_3/filebrowser/fields.py
+END
+fb_settings.py
+K 25
+svn:wc:ra_dav:version-url
+V 67
+/svn/!svn/ver/462/branches/filebrowser_3/filebrowser/fb_settings.py
+END
diff --git a/apps/filebrowser/.svn/entries b/apps/filebrowser/.svn/entries
new file mode 100644 (file)
index 0000000..e43f70a
--- /dev/null
@@ -0,0 +1,414 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-29T16:15:59.524671Z
+466
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+media
+dir
+\f
+LICENSE
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+532802c1bd753424e5d261b4bffcb0b2
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1492
+\f
+views.py
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+6b44e5ea8d514f8a5b5ff10f3919d5ae
+2009-10-12T15:21:04.608284Z
+461
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+17397
+\f
+__init__.py
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+0
+\f
+templatetags
+dir
+\f
+decorators.py
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+359c79d0b20a4221de1baa7e8a73479a
+2009-10-11T12:04:42.299426Z
+444
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+984
+\f
+fields.py
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+714900e2e7ed24f41ac0c39e6a97e02d
+2009-09-03T11:11:52.997170Z
+439
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+4229
+\f
+fb_settings.py
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+cc0813d16aa849977c769937bfaac3ed
+2009-10-12T17:44:24.405122Z
+462
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5334
+\f
+templates
+dir
+\f
+functions.py
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+0acc2a96db557874ba954ef7c989f211
+2009-10-14T16:20:12.275006Z
+465
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+9302
+\f
+locale
+dir
+\f
+base.py
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+551196b16283ed0f2f9b95084bbcbd6b
+2009-09-17T14:37:47.395733Z
+443
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5363
+\f
+models.py
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+be8ad4246f98b8a44b2eef5150fbfe59
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+51
+\f
+urls.py
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+909a9d7d6b85107630fb30d7938aec9d
+2009-07-31T18:34:22.973253Z
+422
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+679
+\f
+forms.py
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+47abec059435b5d60377ff170f60a48c
+2009-08-01T09:59:09.789309Z
+429
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2748
+\f
diff --git a/apps/filebrowser/.svn/prop-base/fb_settings.py.svn-base b/apps/filebrowser/.svn/prop-base/fb_settings.py.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/.svn/prop-base/functions.py.svn-base b/apps/filebrowser/.svn/prop-base/functions.py.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/.svn/prop-base/models.py.svn-base b/apps/filebrowser/.svn/prop-base/models.py.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/.svn/text-base/LICENSE.svn-base b/apps/filebrowser/.svn/text-base/LICENSE.svn-base
new file mode 100644 (file)
index 0000000..c42f6c2
--- /dev/null
@@ -0,0 +1,24 @@
+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/.svn/text-base/__init__.py.svn-base b/apps/filebrowser/.svn/text-base/__init__.py.svn-base
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/apps/filebrowser/.svn/text-base/base.py.svn-base b/apps/filebrowser/.svn/text-base/base.py.svn-base
new file mode 100644 (file)
index 0000000..e72b9ff
--- /dev/null
@@ -0,0 +1,199 @@
+# coding: utf-8
+
+import os, re, datetime
+from time import gmtime, strftime
+from django.conf import settings
+
+# filebrowser imports
+from filebrowser.fb_settings import *
+from filebrowser.functions import _get_file_type, _url_join, _is_selectable, _get_version_path
+
+# PIL import
+if STRICT_PIL:
+    from PIL import Image
+else:
+    try:
+        from PIL import Image
+    except ImportError:
+        import Image
+    
+
+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))
+        return ""
+    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 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 self.path
+    url_save = property(_url_save)
+    
+    def _url_thumbnail(self):
+        """
+        Thumbnail URL.
+        """
+        if self.filetype == "Image":
+            return u"%s" % _url_join(MEDIA_URL, _get_version_path(self.path, '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 u"%s" % value
+        else:
+            return 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/.svn/text-base/decorators.py.svn-base b/apps/filebrowser/.svn/text-base/decorators.py.svn-base
new file mode 100644 (file)
index 0000000..070fa2d
--- /dev/null
@@ -0,0 +1,29 @@
+# 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/.svn/text-base/fb_settings.py.svn-base b/apps/filebrowser/.svn/text-base/fb_settings.py.svn-base
new file mode 100644 (file)
index 0000000..502f109
--- /dev/null
@@ -0,0 +1,109 @@
+# 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)
+
+# EXTRA TRANSLATION STRINGS
+# The following strings are not availabe within views or templates
+_('Folder')
+_('Image')
+_('Video')
+_('Document')
+_('Sound')
+_('Code')
+
+
diff --git a/apps/filebrowser/.svn/text-base/fields.py.svn-base b/apps/filebrowser/.svn/text-base/fields.py.svn-base
new file mode 100644 (file)
index 0000000..85e981b
--- /dev/null
@@ -0,0 +1,121 @@
+# 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/.svn/text-base/forms.py.svn-base b/apps/filebrowser/.svn/text-base/forms.py.svn-base
new file mode 100644 (file)
index 0000000..eef418c
--- /dev/null
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+import re, os
+
+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/.svn/text-base/functions.py.svn-base b/apps/filebrowser/.svn/text-base/functions.py.svn-base
new file mode 100644 (file)
index 0000000..cef9dcd
--- /dev/null
@@ -0,0 +1,312 @@
+# coding: utf-8
+
+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
+import os, re, decimal
+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.
+    """
+    mediaurl_re = re.compile(r'^(%s)' % (MEDIA_URL))
+    value = mediaurl_re.sub('', 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 + "_" + version_prefix + ext
+        return os.path.join(VERSIONS_BASEDIR, path, version_filename)
+    else:
+        return None
+    
+
+def _sort_by_attr(seq, attr):
+    """
+    Sort the sequence of objects by object's attribute
+    
+    Arguments:
+    seq  - the list or any sequence (including immutable one) of objects to sort.
+    attr - the name of attribute to sort by
+    
+    Returns:
+    the sorted list of objects.
+    """
+    import operator
+    
+    # Use the "Schwartzian transform"
+    # Create the auxiliary list of tuples where every i-th tuple has form
+    # (seq[i].attr, i, seq[i]) and sort it. The second item of tuple is needed not
+    # only to provide stable sorting, but mainly to eliminate comparison of objects
+    # (which can be expensive or prohibited) in case of equal attribute values.
+    intermed = map(None, map(getattr, seq, (attr,)*len(seq)), xrange(len(seq)), seq)
+    intermed.sort()
+    return map(operator.getitem, intermed, (-1,) * len(intermed))
+    
+
+def _url_join(*args):
+    if args[0].startswith("http://"):
+        url = "http://"
+    else:
+        url = "/"
+    for arg in args:
+        arg = str(arg).replace("\\", "/")
+        arg_split = arg.split("/")
+        for elem in arg_split:
+            if elem != "" and elem != "http:":
+                url = url + elem + "/"
+    # remove trailing slash for filenames
+    if os.path.splitext(args[-1])[1]:
+        url = url.rstrip("/")
+    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.
+    """
+    
+    returnvalue = ''
+    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]): returnvalue = 'true'
+    elif filterDate == 'thismonth' and dateTime >= time()-2592000: returnvalue = 'true'
+    elif filterDate == 'thisyear' and int(dateYear) == int(localtime()[0]): returnvalue = 'true'
+    elif filterDate == 'past7days' and dateTime >= time()-604800: returnvalue = 'true'
+    elif filterDate == '': returnvalue = 'true'
+    return returnvalue
+    
+
+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()
+    file_type = ''
+    for k,v in EXTENSIONS.iteritems():
+        for extension in v:
+            if file_extension == extension.lower():
+                file_type = k
+    return file_type
+    
+
+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/.svn/text-base/models.py.svn-base b/apps/filebrowser/.svn/text-base/models.py.svn-base
new file mode 100644 (file)
index 0000000..a11084e
--- /dev/null
@@ -0,0 +1 @@
+# This file is only necessary for the tests to work
\ No newline at end of file
diff --git a/apps/filebrowser/.svn/text-base/urls.py.svn-base b/apps/filebrowser/.svn/text-base/urls.py.svn-base
new file mode 100644 (file)
index 0000000..5cfc259
--- /dev/null
@@ -0,0 +1,16 @@
+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/.svn/text-base/views.py.svn-base b/apps/filebrowser/.svn/text-base/views.py.svn-base
new file mode 100644 (file)
index 0000000..0976f11
--- /dev/null
@@ -0,0 +1,432 @@
+# coding: utf-8
+
+# general imports
+import os, re
+from time import gmtime, strftime
+
+# 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
+
+# filebrowser imports
+from filebrowser.fb_settings import *
+from filebrowser.functions import _url_to_path, _path_to_url, _sort_by_attr, _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. Maybe it does not exist?")
+        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 = []
+    for file in dir_list:
+        
+        # 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(DIRECTORY, path, 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_by_attr(files, request.GET.get('o', 'date'))
+    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))
+
+
+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))
+
+
+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 = 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/filebrowser/LICENSE b/apps/filebrowser/LICENSE
new file mode 100644 (file)
index 0000000..c42f6c2
--- /dev/null
@@ -0,0 +1,24 @@
+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
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/apps/filebrowser/base.py b/apps/filebrowser/base.py
new file mode 100644 (file)
index 0000000..e72b9ff
--- /dev/null
@@ -0,0 +1,199 @@
+# coding: utf-8
+
+import os, re, datetime
+from time import gmtime, strftime
+from django.conf import settings
+
+# filebrowser imports
+from filebrowser.fb_settings import *
+from filebrowser.functions import _get_file_type, _url_join, _is_selectable, _get_version_path
+
+# PIL import
+if STRICT_PIL:
+    from PIL import Image
+else:
+    try:
+        from PIL import Image
+    except ImportError:
+        import Image
+    
+
+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))
+        return ""
+    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 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 self.path
+    url_save = property(_url_save)
+    
+    def _url_thumbnail(self):
+        """
+        Thumbnail URL.
+        """
+        if self.filetype == "Image":
+            return u"%s" % _url_join(MEDIA_URL, _get_version_path(self.path, '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 u"%s" % value
+        else:
+            return 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
new file mode 100644 (file)
index 0000000..070fa2d
--- /dev/null
@@ -0,0 +1,29 @@
+# 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
new file mode 100755 (executable)
index 0000000..502f109
--- /dev/null
@@ -0,0 +1,109 @@
+# 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)
+
+# 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
new file mode 100644 (file)
index 0000000..85e981b
--- /dev/null
@@ -0,0 +1,121 @@
+# 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
new file mode 100644 (file)
index 0000000..eef418c
--- /dev/null
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+import re, os
+
+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
new file mode 100755 (executable)
index 0000000..cef9dcd
--- /dev/null
@@ -0,0 +1,312 @@
+# coding: utf-8
+
+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
+import os, re, decimal
+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.
+    """
+    mediaurl_re = re.compile(r'^(%s)' % (MEDIA_URL))
+    value = mediaurl_re.sub('', 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 + "_" + version_prefix + ext
+        return os.path.join(VERSIONS_BASEDIR, path, version_filename)
+    else:
+        return None
+    
+
+def _sort_by_attr(seq, attr):
+    """
+    Sort the sequence of objects by object's attribute
+    
+    Arguments:
+    seq  - the list or any sequence (including immutable one) of objects to sort.
+    attr - the name of attribute to sort by
+    
+    Returns:
+    the sorted list of objects.
+    """
+    import operator
+    
+    # Use the "Schwartzian transform"
+    # Create the auxiliary list of tuples where every i-th tuple has form
+    # (seq[i].attr, i, seq[i]) and sort it. The second item of tuple is needed not
+    # only to provide stable sorting, but mainly to eliminate comparison of objects
+    # (which can be expensive or prohibited) in case of equal attribute values.
+    intermed = map(None, map(getattr, seq, (attr,)*len(seq)), xrange(len(seq)), seq)
+    intermed.sort()
+    return map(operator.getitem, intermed, (-1,) * len(intermed))
+    
+
+def _url_join(*args):
+    if args[0].startswith("http://"):
+        url = "http://"
+    else:
+        url = "/"
+    for arg in args:
+        arg = str(arg).replace("\\", "/")
+        arg_split = arg.split("/")
+        for elem in arg_split:
+            if elem != "" and elem != "http:":
+                url = url + elem + "/"
+    # remove trailing slash for filenames
+    if os.path.splitext(args[-1])[1]:
+        url = url.rstrip("/")
+    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.
+    """
+    
+    returnvalue = ''
+    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]): returnvalue = 'true'
+    elif filterDate == 'thismonth' and dateTime >= time()-2592000: returnvalue = 'true'
+    elif filterDate == 'thisyear' and int(dateYear) == int(localtime()[0]): returnvalue = 'true'
+    elif filterDate == 'past7days' and dateTime >= time()-604800: returnvalue = 'true'
+    elif filterDate == '': returnvalue = 'true'
+    return returnvalue
+    
+
+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()
+    file_type = ''
+    for k,v in EXTENSIONS.iteritems():
+        for extension in v:
+            if file_extension == extension.lower():
+                file_type = k
+    return file_type
+    
+
+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/.svn/all-wcprops b/apps/filebrowser/locale/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..5b72659
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 59
+/svn/!svn/ver/462/branches/filebrowser_3/filebrowser/locale
+END
diff --git a/apps/filebrowser/locale/.svn/entries b/apps/filebrowser/locale/.svn/entries
new file mode 100644 (file)
index 0000000..ab05108
--- /dev/null
@@ -0,0 +1,61 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T17:44:24.405122Z
+462
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+zh_CN
+dir
+\f
+sr_Latn
+dir
+\f
+ca
+dir
+\f
+sr
+dir
+\f
+ru
+dir
+\f
+es
+dir
+\f
+fr
+dir
+\f
+de
+dir
+\f
+nl
+dir
+\f
+zh_TW
+dir
+\f
+it
+dir
+\f
diff --git a/apps/filebrowser/locale/ca/.svn/all-wcprops b/apps/filebrowser/locale/ca/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..761a7e4
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 62
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/ca
+END
diff --git a/apps/filebrowser/locale/ca/.svn/entries b/apps/filebrowser/locale/ca/.svn/entries
new file mode 100644 (file)
index 0000000..8b3f631
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/ca
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+LC_MESSAGES
+dir
+\f
diff --git a/apps/filebrowser/locale/ca/LC_MESSAGES/.svn/all-wcprops b/apps/filebrowser/locale/ca/LC_MESSAGES/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..e43f627
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 74
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/ca/LC_MESSAGES
+END
+django.po
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/ca/LC_MESSAGES/django.po
+END
+django.mo
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/ca/LC_MESSAGES/django.mo
+END
diff --git a/apps/filebrowser/locale/ca/LC_MESSAGES/.svn/entries b/apps/filebrowser/locale/ca/LC_MESSAGES/.svn/entries
new file mode 100644 (file)
index 0000000..b2b21a1
--- /dev/null
@@ -0,0 +1,96 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/ca/LC_MESSAGES
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+django.po
+file
+
+
+
+
+2009-11-05T20:58:48.000000Z
+5177a8265e2b6d81e88ed3f89978397f
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+8223
+\f
+django.mo
+file
+
+
+
+
+2009-11-05T20:58:48.000000Z
+a590980c42b4d9b72421220166c349da
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5071
+\f
diff --git a/apps/filebrowser/locale/ca/LC_MESSAGES/.svn/prop-base/django.mo.svn-base b/apps/filebrowser/locale/ca/LC_MESSAGES/.svn/prop-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/locale/ca/LC_MESSAGES/.svn/text-base/django.mo.svn-base b/apps/filebrowser/locale/ca/LC_MESSAGES/.svn/text-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..bd8106d
Binary files /dev/null and b/apps/filebrowser/locale/ca/LC_MESSAGES/.svn/text-base/django.mo.svn-base differ
diff --git a/apps/filebrowser/locale/ca/LC_MESSAGES/.svn/text-base/django.po.svn-base b/apps/filebrowser/locale/ca/LC_MESSAGES/.svn/text-base/django.po.svn-base
new file mode 100644 (file)
index 0000000..0dca85e
--- /dev/null
@@ -0,0 +1,328 @@
+# 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/ca/LC_MESSAGES/django.mo b/apps/filebrowser/locale/ca/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..bd8106d
Binary files /dev/null and b/apps/filebrowser/locale/ca/LC_MESSAGES/django.mo differ
diff --git a/apps/filebrowser/locale/ca/LC_MESSAGES/django.po b/apps/filebrowser/locale/ca/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..0dca85e
--- /dev/null
@@ -0,0 +1,328 @@
+# 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/.svn/all-wcprops b/apps/filebrowser/locale/de/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..b313eb3
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 62
+/svn/!svn/ver/462/branches/filebrowser_3/filebrowser/locale/de
+END
diff --git a/apps/filebrowser/locale/de/.svn/entries b/apps/filebrowser/locale/de/.svn/entries
new file mode 100644 (file)
index 0000000..a9f5cc1
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/de
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T17:44:24.405122Z
+462
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+LC_MESSAGES
+dir
+\f
diff --git a/apps/filebrowser/locale/de/LC_MESSAGES/.svn/all-wcprops b/apps/filebrowser/locale/de/LC_MESSAGES/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..3186a89
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 74
+/svn/!svn/ver/462/branches/filebrowser_3/filebrowser/locale/de/LC_MESSAGES
+END
+django.po
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/462/branches/filebrowser_3/filebrowser/locale/de/LC_MESSAGES/django.po
+END
+django.mo
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/de/LC_MESSAGES/django.mo
+END
diff --git a/apps/filebrowser/locale/de/LC_MESSAGES/.svn/entries b/apps/filebrowser/locale/de/LC_MESSAGES/.svn/entries
new file mode 100644 (file)
index 0000000..3839a41
--- /dev/null
@@ -0,0 +1,96 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/de/LC_MESSAGES
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T17:44:24.405122Z
+462
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+django.po
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+008361dcab7ab7869b3edd132067a024
+2009-10-12T17:44:24.405122Z
+462
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7694
+\f
+django.mo
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+8712cac8b64509ad98a1ff9078bb8ccd
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5665
+\f
diff --git a/apps/filebrowser/locale/de/LC_MESSAGES/.svn/prop-base/django.mo.svn-base b/apps/filebrowser/locale/de/LC_MESSAGES/.svn/prop-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/locale/de/LC_MESSAGES/.svn/text-base/django.mo.svn-base b/apps/filebrowser/locale/de/LC_MESSAGES/.svn/text-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..f15bd21
Binary files /dev/null and b/apps/filebrowser/locale/de/LC_MESSAGES/.svn/text-base/django.mo.svn-base differ
diff --git a/apps/filebrowser/locale/de/LC_MESSAGES/.svn/text-base/django.po.svn-base b/apps/filebrowser/locale/de/LC_MESSAGES/.svn/text-base/django.po.svn-base
new file mode 100644 (file)
index 0000000..e5686cc
--- /dev/null
@@ -0,0 +1,361 @@
+# 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/de/LC_MESSAGES/django.mo b/apps/filebrowser/locale/de/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..f15bd21
Binary files /dev/null and b/apps/filebrowser/locale/de/LC_MESSAGES/django.mo differ
diff --git a/apps/filebrowser/locale/de/LC_MESSAGES/django.po b/apps/filebrowser/locale/de/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..e5686cc
--- /dev/null
@@ -0,0 +1,361 @@
+# 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/.svn/all-wcprops b/apps/filebrowser/locale/es/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..9aadfe5
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 62
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/es
+END
diff --git a/apps/filebrowser/locale/es/.svn/entries b/apps/filebrowser/locale/es/.svn/entries
new file mode 100644 (file)
index 0000000..0ae34d2
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/es
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+LC_MESSAGES
+dir
+\f
diff --git a/apps/filebrowser/locale/es/LC_MESSAGES/.svn/all-wcprops b/apps/filebrowser/locale/es/LC_MESSAGES/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..e0575cb
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 74
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/es/LC_MESSAGES
+END
+django.po
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/es/LC_MESSAGES/django.po
+END
+django.mo
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/es/LC_MESSAGES/django.mo
+END
diff --git a/apps/filebrowser/locale/es/LC_MESSAGES/.svn/entries b/apps/filebrowser/locale/es/LC_MESSAGES/.svn/entries
new file mode 100644 (file)
index 0000000..7b30a11
--- /dev/null
@@ -0,0 +1,96 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/es/LC_MESSAGES
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+django.po
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+578b89472b0f5a88fe8fa94994da86b8
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+8245
+\f
+django.mo
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+951603147daea8a036164a5db6fa818d
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5093
+\f
diff --git a/apps/filebrowser/locale/es/LC_MESSAGES/.svn/prop-base/django.mo.svn-base b/apps/filebrowser/locale/es/LC_MESSAGES/.svn/prop-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/locale/es/LC_MESSAGES/.svn/text-base/django.mo.svn-base b/apps/filebrowser/locale/es/LC_MESSAGES/.svn/text-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..bb698f8
Binary files /dev/null and b/apps/filebrowser/locale/es/LC_MESSAGES/.svn/text-base/django.mo.svn-base differ
diff --git a/apps/filebrowser/locale/es/LC_MESSAGES/.svn/text-base/django.po.svn-base b/apps/filebrowser/locale/es/LC_MESSAGES/.svn/text-base/django.po.svn-base
new file mode 100644 (file)
index 0000000..621979a
--- /dev/null
@@ -0,0 +1,328 @@
+# 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/es/LC_MESSAGES/django.mo b/apps/filebrowser/locale/es/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..bb698f8
Binary files /dev/null and b/apps/filebrowser/locale/es/LC_MESSAGES/django.mo differ
diff --git a/apps/filebrowser/locale/es/LC_MESSAGES/django.po b/apps/filebrowser/locale/es/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..621979a
--- /dev/null
@@ -0,0 +1,328 @@
+# 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/.svn/all-wcprops b/apps/filebrowser/locale/fr/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..0cbad90
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 62
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/fr
+END
diff --git a/apps/filebrowser/locale/fr/.svn/entries b/apps/filebrowser/locale/fr/.svn/entries
new file mode 100644 (file)
index 0000000..6c18686
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/fr
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+LC_MESSAGES
+dir
+\f
diff --git a/apps/filebrowser/locale/fr/LC_MESSAGES/.svn/all-wcprops b/apps/filebrowser/locale/fr/LC_MESSAGES/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..bf27e22
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 74
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/fr/LC_MESSAGES
+END
+django.po
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/fr/LC_MESSAGES/django.po
+END
+django.mo
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/fr/LC_MESSAGES/django.mo
+END
diff --git a/apps/filebrowser/locale/fr/LC_MESSAGES/.svn/entries b/apps/filebrowser/locale/fr/LC_MESSAGES/.svn/entries
new file mode 100644 (file)
index 0000000..c7f68b9
--- /dev/null
@@ -0,0 +1,96 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/fr/LC_MESSAGES
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+django.po
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+6e24f48b2d2d67cacd701f432b994f65
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+8351
+\f
+django.mo
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+974d2c2951cc59ba15aecc116dffa5d7
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5358
+\f
diff --git a/apps/filebrowser/locale/fr/LC_MESSAGES/.svn/prop-base/django.mo.svn-base b/apps/filebrowser/locale/fr/LC_MESSAGES/.svn/prop-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/locale/fr/LC_MESSAGES/.svn/text-base/django.mo.svn-base b/apps/filebrowser/locale/fr/LC_MESSAGES/.svn/text-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..26e610d
Binary files /dev/null and b/apps/filebrowser/locale/fr/LC_MESSAGES/.svn/text-base/django.mo.svn-base differ
diff --git a/apps/filebrowser/locale/fr/LC_MESSAGES/.svn/text-base/django.po.svn-base b/apps/filebrowser/locale/fr/LC_MESSAGES/.svn/text-base/django.po.svn-base
new file mode 100644 (file)
index 0000000..5241166
--- /dev/null
@@ -0,0 +1,336 @@
+# 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/fr/LC_MESSAGES/django.mo b/apps/filebrowser/locale/fr/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..26e610d
Binary files /dev/null and b/apps/filebrowser/locale/fr/LC_MESSAGES/django.mo differ
diff --git a/apps/filebrowser/locale/fr/LC_MESSAGES/django.po b/apps/filebrowser/locale/fr/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..5241166
--- /dev/null
@@ -0,0 +1,336 @@
+# 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/.svn/all-wcprops b/apps/filebrowser/locale/it/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..501f80a
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 62
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/it
+END
diff --git a/apps/filebrowser/locale/it/.svn/entries b/apps/filebrowser/locale/it/.svn/entries
new file mode 100644 (file)
index 0000000..b2ac869
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/it
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+LC_MESSAGES
+dir
+\f
diff --git a/apps/filebrowser/locale/it/LC_MESSAGES/.svn/all-wcprops b/apps/filebrowser/locale/it/LC_MESSAGES/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..e5382e8
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 74
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/it/LC_MESSAGES
+END
+django.po
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/it/LC_MESSAGES/django.po
+END
+django.mo
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/it/LC_MESSAGES/django.mo
+END
diff --git a/apps/filebrowser/locale/it/LC_MESSAGES/.svn/entries b/apps/filebrowser/locale/it/LC_MESSAGES/.svn/entries
new file mode 100644 (file)
index 0000000..78d5a81
--- /dev/null
@@ -0,0 +1,96 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/it/LC_MESSAGES
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+django.po
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+1de7beb6d46ed6ca848539fd1d0845c7
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+8586
+\f
+django.mo
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+977100aa26f0b8f39872acfcbfa221e3
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3542
+\f
diff --git a/apps/filebrowser/locale/it/LC_MESSAGES/.svn/prop-base/django.mo.svn-base b/apps/filebrowser/locale/it/LC_MESSAGES/.svn/prop-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/locale/it/LC_MESSAGES/.svn/text-base/django.mo.svn-base b/apps/filebrowser/locale/it/LC_MESSAGES/.svn/text-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..90e8cdc
Binary files /dev/null and b/apps/filebrowser/locale/it/LC_MESSAGES/.svn/text-base/django.mo.svn-base differ
diff --git a/apps/filebrowser/locale/it/LC_MESSAGES/.svn/text-base/django.po.svn-base b/apps/filebrowser/locale/it/LC_MESSAGES/.svn/text-base/django.po.svn-base
new file mode 100644 (file)
index 0000000..6968286
--- /dev/null
@@ -0,0 +1,356 @@
+# 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/it/LC_MESSAGES/django.mo b/apps/filebrowser/locale/it/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..90e8cdc
Binary files /dev/null and b/apps/filebrowser/locale/it/LC_MESSAGES/django.mo differ
diff --git a/apps/filebrowser/locale/it/LC_MESSAGES/django.po b/apps/filebrowser/locale/it/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..6968286
--- /dev/null
@@ -0,0 +1,356 @@
+# 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/.svn/all-wcprops b/apps/filebrowser/locale/nl/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..62ee80a
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 62
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/nl
+END
diff --git a/apps/filebrowser/locale/nl/.svn/entries b/apps/filebrowser/locale/nl/.svn/entries
new file mode 100644 (file)
index 0000000..8216519
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/nl
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+LC_MESSAGES
+dir
+\f
diff --git a/apps/filebrowser/locale/nl/LC_MESSAGES/.svn/all-wcprops b/apps/filebrowser/locale/nl/LC_MESSAGES/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..fdf0ead
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 74
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/nl/LC_MESSAGES
+END
+django.po
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/nl/LC_MESSAGES/django.po
+END
+django.mo
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/nl/LC_MESSAGES/django.mo
+END
diff --git a/apps/filebrowser/locale/nl/LC_MESSAGES/.svn/entries b/apps/filebrowser/locale/nl/LC_MESSAGES/.svn/entries
new file mode 100644 (file)
index 0000000..f0c7a64
--- /dev/null
@@ -0,0 +1,96 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/nl/LC_MESSAGES
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+django.po
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+52c296a507227e52340035589cc4b100
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+8019
+\f
+django.mo
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+fb1459c89de85393460937ff2f02a356
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5152
+\f
diff --git a/apps/filebrowser/locale/nl/LC_MESSAGES/.svn/prop-base/django.mo.svn-base b/apps/filebrowser/locale/nl/LC_MESSAGES/.svn/prop-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/locale/nl/LC_MESSAGES/.svn/text-base/django.mo.svn-base b/apps/filebrowser/locale/nl/LC_MESSAGES/.svn/text-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..8a0bb8f
Binary files /dev/null and b/apps/filebrowser/locale/nl/LC_MESSAGES/.svn/text-base/django.mo.svn-base differ
diff --git a/apps/filebrowser/locale/nl/LC_MESSAGES/.svn/text-base/django.po.svn-base b/apps/filebrowser/locale/nl/LC_MESSAGES/.svn/text-base/django.po.svn-base
new file mode 100644 (file)
index 0000000..3503254
--- /dev/null
@@ -0,0 +1,319 @@
+# 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/nl/LC_MESSAGES/django.mo b/apps/filebrowser/locale/nl/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..8a0bb8f
Binary files /dev/null and b/apps/filebrowser/locale/nl/LC_MESSAGES/django.mo differ
diff --git a/apps/filebrowser/locale/nl/LC_MESSAGES/django.po b/apps/filebrowser/locale/nl/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..3503254
--- /dev/null
@@ -0,0 +1,319 @@
+# 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/.svn/all-wcprops b/apps/filebrowser/locale/ru/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..e21d1ff
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 62
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/ru
+END
diff --git a/apps/filebrowser/locale/ru/.svn/entries b/apps/filebrowser/locale/ru/.svn/entries
new file mode 100644 (file)
index 0000000..ad32cd1
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/ru
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+LC_MESSAGES
+dir
+\f
diff --git a/apps/filebrowser/locale/ru/LC_MESSAGES/.svn/all-wcprops b/apps/filebrowser/locale/ru/LC_MESSAGES/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..0838209
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 74
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/ru/LC_MESSAGES
+END
+django.po
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/ru/LC_MESSAGES/django.po
+END
+django.mo
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/ru/LC_MESSAGES/django.mo
+END
diff --git a/apps/filebrowser/locale/ru/LC_MESSAGES/.svn/entries b/apps/filebrowser/locale/ru/LC_MESSAGES/.svn/entries
new file mode 100644 (file)
index 0000000..9f54aec
--- /dev/null
@@ -0,0 +1,96 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/ru/LC_MESSAGES
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+django.po
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+d0cfe787c9e40fd48fb4dc137ca920b4
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+9016
+\f
+django.mo
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+a80034152531c66371273a4aad453a9c
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6095
+\f
diff --git a/apps/filebrowser/locale/ru/LC_MESSAGES/.svn/prop-base/django.mo.svn-base b/apps/filebrowser/locale/ru/LC_MESSAGES/.svn/prop-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/locale/ru/LC_MESSAGES/.svn/text-base/django.mo.svn-base b/apps/filebrowser/locale/ru/LC_MESSAGES/.svn/text-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..2f0d22d
Binary files /dev/null and b/apps/filebrowser/locale/ru/LC_MESSAGES/.svn/text-base/django.mo.svn-base differ
diff --git a/apps/filebrowser/locale/ru/LC_MESSAGES/.svn/text-base/django.po.svn-base b/apps/filebrowser/locale/ru/LC_MESSAGES/.svn/text-base/django.po.svn-base
new file mode 100644 (file)
index 0000000..6e75506
--- /dev/null
@@ -0,0 +1,317 @@
+# 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/ru/LC_MESSAGES/django.mo b/apps/filebrowser/locale/ru/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..2f0d22d
Binary files /dev/null and b/apps/filebrowser/locale/ru/LC_MESSAGES/django.mo differ
diff --git a/apps/filebrowser/locale/ru/LC_MESSAGES/django.po b/apps/filebrowser/locale/ru/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..6e75506
--- /dev/null
@@ -0,0 +1,317 @@
+# 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/.svn/all-wcprops b/apps/filebrowser/locale/sr/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..acc97e8
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 62
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/sr
+END
diff --git a/apps/filebrowser/locale/sr/.svn/entries b/apps/filebrowser/locale/sr/.svn/entries
new file mode 100644 (file)
index 0000000..7b603b6
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/sr
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+LC_MESSAGES
+dir
+\f
diff --git a/apps/filebrowser/locale/sr/LC_MESSAGES/.svn/all-wcprops b/apps/filebrowser/locale/sr/LC_MESSAGES/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..021c7e9
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 74
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/sr/LC_MESSAGES
+END
+django.po
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/sr/LC_MESSAGES/django.po
+END
+django.mo
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/sr/LC_MESSAGES/django.mo
+END
diff --git a/apps/filebrowser/locale/sr/LC_MESSAGES/.svn/entries b/apps/filebrowser/locale/sr/LC_MESSAGES/.svn/entries
new file mode 100644 (file)
index 0000000..ac937c3
--- /dev/null
@@ -0,0 +1,96 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/sr/LC_MESSAGES
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+django.po
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+3256737d3d82d99d5accd71d52425a3a
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+9526
+\f
+django.mo
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+2c02d4502b1dffd3b593885330766067
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6582
+\f
diff --git a/apps/filebrowser/locale/sr/LC_MESSAGES/.svn/prop-base/django.mo.svn-base b/apps/filebrowser/locale/sr/LC_MESSAGES/.svn/prop-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/locale/sr/LC_MESSAGES/.svn/text-base/django.mo.svn-base b/apps/filebrowser/locale/sr/LC_MESSAGES/.svn/text-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..c5b4dae
Binary files /dev/null and b/apps/filebrowser/locale/sr/LC_MESSAGES/.svn/text-base/django.mo.svn-base differ
diff --git a/apps/filebrowser/locale/sr/LC_MESSAGES/.svn/text-base/django.po.svn-base b/apps/filebrowser/locale/sr/LC_MESSAGES/.svn/text-base/django.po.svn-base
new file mode 100644 (file)
index 0000000..cd27541
--- /dev/null
@@ -0,0 +1,330 @@
+# 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/LC_MESSAGES/django.mo b/apps/filebrowser/locale/sr/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..c5b4dae
Binary files /dev/null and b/apps/filebrowser/locale/sr/LC_MESSAGES/django.mo differ
diff --git a/apps/filebrowser/locale/sr/LC_MESSAGES/django.po b/apps/filebrowser/locale/sr/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..cd27541
--- /dev/null
@@ -0,0 +1,330 @@
+# 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/.svn/all-wcprops b/apps/filebrowser/locale/sr_Latn/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..362364b
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 67
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/sr_Latn
+END
diff --git a/apps/filebrowser/locale/sr_Latn/.svn/entries b/apps/filebrowser/locale/sr_Latn/.svn/entries
new file mode 100644 (file)
index 0000000..6b09459
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/sr_Latn
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+LC_MESSAGES
+dir
+\f
diff --git a/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/all-wcprops b/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..9d5cbe4
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 79
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/sr_Latn/LC_MESSAGES
+END
+django.po
+K 25
+svn:wc:ra_dav:version-url
+V 89
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/sr_Latn/LC_MESSAGES/django.po
+END
+django.mo
+K 25
+svn:wc:ra_dav:version-url
+V 89
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/sr_Latn/LC_MESSAGES/django.mo
+END
diff --git a/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/entries b/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/entries
new file mode 100644 (file)
index 0000000..2ed5a35
--- /dev/null
@@ -0,0 +1,96 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/sr_Latn/LC_MESSAGES
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+django.po
+file
+
+
+
+
+2009-11-05T20:58:48.000000Z
+03ac27ca944986b4e3f80be993f68ad8
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+8227
+\f
+django.mo
+file
+
+
+
+
+2009-11-05T20:58:48.000000Z
+3cc11e68ca0f53b4048230400ad05490
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5283
+\f
diff --git a/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/prop-base/django.mo.svn-base b/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/prop-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/text-base/django.mo.svn-base b/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/text-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..bfcbcf0
Binary files /dev/null and b/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/text-base/django.mo.svn-base differ
diff --git a/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/text-base/django.po.svn-base b/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/.svn/text-base/django.po.svn-base
new file mode 100644 (file)
index 0000000..8c81cad
--- /dev/null
@@ -0,0 +1,330 @@
+# 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/sr_Latn/LC_MESSAGES/django.mo b/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..bfcbcf0
Binary files /dev/null and b/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/django.mo differ
diff --git a/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/django.po b/apps/filebrowser/locale/sr_Latn/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..8c81cad
--- /dev/null
@@ -0,0 +1,330 @@
+# 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/.svn/all-wcprops b/apps/filebrowser/locale/zh_CN/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..09895e6
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 65
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/zh_CN
+END
diff --git a/apps/filebrowser/locale/zh_CN/.svn/entries b/apps/filebrowser/locale/zh_CN/.svn/entries
new file mode 100644 (file)
index 0000000..85e3844
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/zh_CN
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+LC_MESSAGES
+dir
+\f
diff --git a/apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/all-wcprops b/apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..30caeb3
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 77
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/zh_CN/LC_MESSAGES
+END
+django.po
+K 25
+svn:wc:ra_dav:version-url
+V 87
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/zh_CN/LC_MESSAGES/django.po
+END
+django.mo
+K 25
+svn:wc:ra_dav:version-url
+V 87
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/zh_CN/LC_MESSAGES/django.mo
+END
diff --git a/apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/entries b/apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/entries
new file mode 100644 (file)
index 0000000..aa55796
--- /dev/null
@@ -0,0 +1,96 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/zh_CN/LC_MESSAGES
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+django.po
+file
+
+
+
+
+2009-11-05T20:58:48.000000Z
+363ba3d6163a0169fdaaf5109edb3ae1
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+8015
+\f
+django.mo
+file
+
+
+
+
+2009-11-05T20:58:48.000000Z
+8819ea481c2829f0c3c5bc71586f229a
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5067
+\f
diff --git a/apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/prop-base/django.mo.svn-base b/apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/prop-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/text-base/django.mo.svn-base b/apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/text-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..18da911
Binary files /dev/null and b/apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/text-base/django.mo.svn-base differ
diff --git a/apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/text-base/django.po.svn-base b/apps/filebrowser/locale/zh_CN/LC_MESSAGES/.svn/text-base/django.po.svn-base
new file mode 100644 (file)
index 0000000..51821c2
--- /dev/null
@@ -0,0 +1,345 @@
+# 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_CN/LC_MESSAGES/django.mo b/apps/filebrowser/locale/zh_CN/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..18da911
Binary files /dev/null and b/apps/filebrowser/locale/zh_CN/LC_MESSAGES/django.mo differ
diff --git a/apps/filebrowser/locale/zh_CN/LC_MESSAGES/django.po b/apps/filebrowser/locale/zh_CN/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..51821c2
--- /dev/null
@@ -0,0 +1,345 @@
+# 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/.svn/all-wcprops b/apps/filebrowser/locale/zh_TW/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..fc4c26a
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 65
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/zh_TW
+END
diff --git a/apps/filebrowser/locale/zh_TW/.svn/entries b/apps/filebrowser/locale/zh_TW/.svn/entries
new file mode 100644 (file)
index 0000000..a8ed011
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/zh_TW
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+LC_MESSAGES
+dir
+\f
diff --git a/apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/all-wcprops b/apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..13c6670
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 77
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/zh_TW/LC_MESSAGES
+END
+django.po
+K 25
+svn:wc:ra_dav:version-url
+V 87
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/zh_TW/LC_MESSAGES/django.po
+END
+django.mo
+K 25
+svn:wc:ra_dav:version-url
+V 87
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/locale/zh_TW/LC_MESSAGES/django.mo
+END
diff --git a/apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/entries b/apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/entries
new file mode 100644 (file)
index 0000000..91155df
--- /dev/null
@@ -0,0 +1,96 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/locale/zh_TW/LC_MESSAGES
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+django.po
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+9303ff1db63e9d070e8d117fb5625f78
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+8009
+\f
+django.mo
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+acbd592d9227d4f5367efede3fe71038
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+4999
+\f
diff --git a/apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/prop-base/django.mo.svn-base b/apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/prop-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/text-base/django.mo.svn-base b/apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/text-base/django.mo.svn-base
new file mode 100644 (file)
index 0000000..14136c0
Binary files /dev/null and b/apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/text-base/django.mo.svn-base differ
diff --git a/apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/text-base/django.po.svn-base b/apps/filebrowser/locale/zh_TW/LC_MESSAGES/.svn/text-base/django.po.svn-base
new file mode 100644 (file)
index 0000000..c60bc65
--- /dev/null
@@ -0,0 +1,346 @@
+# 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/locale/zh_TW/LC_MESSAGES/django.mo b/apps/filebrowser/locale/zh_TW/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..14136c0
Binary files /dev/null and b/apps/filebrowser/locale/zh_TW/LC_MESSAGES/django.mo differ
diff --git a/apps/filebrowser/locale/zh_TW/LC_MESSAGES/django.po b/apps/filebrowser/locale/zh_TW/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..c60bc65
--- /dev/null
@@ -0,0 +1,346 @@
+# 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/.svn/all-wcprops b/apps/filebrowser/media/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..76f4ac0
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 58
+/svn/!svn/ver/466/branches/filebrowser_3/filebrowser/media
+END
diff --git a/apps/filebrowser/media/.svn/entries b/apps/filebrowser/media/.svn/entries
new file mode 100644 (file)
index 0000000..91a3228
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-29T16:15:59.524671Z
+466
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+filebrowser
+dir
+\f
diff --git a/apps/filebrowser/media/filebrowser/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..3752e31
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 70
+/svn/!svn/ver/466/branches/filebrowser_3/filebrowser/media/filebrowser
+END
diff --git a/apps/filebrowser/media/filebrowser/.svn/entries b/apps/filebrowser/media/filebrowser/.svn/entries
new file mode 100644 (file)
index 0000000..53de698
--- /dev/null
@@ -0,0 +1,40 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-29T16:15:59.524671Z
+466
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+css
+dir
+\f
+img
+dir
+\f
+js
+dir
+\f
+uploadify
+dir
+\f
diff --git a/apps/filebrowser/media/filebrowser/css/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/css/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..8cfbfa0
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 74
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/css
+END
+filebrowser.css
+K 25
+svn:wc:ra_dav:version-url
+V 90
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/css/filebrowser.css
+END
diff --git a/apps/filebrowser/media/filebrowser/css/.svn/entries b/apps/filebrowser/media/filebrowser/css/.svn/entries
new file mode 100644 (file)
index 0000000..e429ef4
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/css
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+filebrowser.css
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+724fd235089ee5ad15499fcbe5ddfc88
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1637
+\f
diff --git a/apps/filebrowser/media/filebrowser/css/.svn/prop-base/filebrowser.css.svn-base b/apps/filebrowser/media/filebrowser/css/.svn/prop-base/filebrowser.css.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/css/.svn/text-base/filebrowser.css.svn-base b/apps/filebrowser/media/filebrowser/css/.svn/text-base/filebrowser.css.svn-base
new file mode 100644 (file)
index 0000000..c68126e
--- /dev/null
@@ -0,0 +1,29 @@
+.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/css/filebrowser.css b/apps/filebrowser/media/filebrowser/css/filebrowser.css
new file mode 100755 (executable)
index 0000000..c68126e
--- /dev/null
@@ -0,0 +1,29 @@
+.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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/img/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..7726832
--- /dev/null
@@ -0,0 +1,203 @@
+K 25
+svn:wc:ra_dav:version-url
+V 74
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img
+END
+filebrowser_object-tools_icon_makethumb.gif
+K 25
+svn:wc:ra_dav:version-url
+V 118
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif
+END
+filebrowser_icon_delete.gif
+K 25
+svn:wc:ra_dav:version-url
+V 102
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_delete.gif
+END
+filebrowser_type_code.gif
+K 25
+svn:wc:ra_dav:version-url
+V 100
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_type_code.gif
+END
+filebrowser_icon_select_disabled.gif
+K 25
+svn:wc:ra_dav:version-url
+V 111
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_select_disabled.gif
+END
+filebrowser_type_.gif
+K 25
+svn:wc:ra_dav:version-url
+V 96
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_type_.gif
+END
+filebrowser_icon_rename_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 108
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_rename_hover.gif
+END
+filebrowser_type_image.gif
+K 25
+svn:wc:ra_dav:version-url
+V 101
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_type_image.gif
+END
+filebrowser_icon_showversions_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 114
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_showversions_hover.gif
+END
+filebrowser_icon_makethumb.gif
+K 25
+svn:wc:ra_dav:version-url
+V 105
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb.gif
+END
+filebrowser_icon_select.gif
+K 25
+svn:wc:ra_dav:version-url
+V 102
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_select.gif
+END
+filebrowser_object-tools_icon_imagegenerator_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 129
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif
+END
+filebrowser_icon_show.gif
+K 25
+svn:wc:ra_dav:version-url
+V 100
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_show.gif
+END
+filebrowser_type_sound.gif
+K 25
+svn:wc:ra_dav:version-url
+V 101
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_type_sound.gif
+END
+filebrowser_object-tools_icon_makedirectory.gif
+K 25
+svn:wc:ra_dav:version-url
+V 122
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif
+END
+filebrowser_object-tools_icon_multipleupload_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 129
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif
+END
+filebrowser_icon_imagegenerator_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 116
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif
+END
+filebrowser_type_video.gif
+K 25
+svn:wc:ra_dav:version-url
+V 101
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_type_video.gif
+END
+tableheader_arrow_up.gif
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/tableheader_arrow_up.gif
+END
+filebrowser_type_folder.gif
+K 25
+svn:wc:ra_dav:version-url
+V 102
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_type_folder.gif
+END
+filebrowser_object-tools_icon_makethumb_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 124
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif
+END
+filebrowser_icon_delete_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 108
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_delete_hover.gif
+END
+filebrowser_type_document.gif
+K 25
+svn:wc:ra_dav:version-url
+V 104
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_type_document.gif
+END
+filebrowser_icon_rename.gif
+K 25
+svn:wc:ra_dav:version-url
+V 102
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_rename.gif
+END
+filebrowser_icon_showversions.gif
+K 25
+svn:wc:ra_dav:version-url
+V 108
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_showversions.gif
+END
+filebrowser_object-tools_icon_imagegenerator.gif
+K 25
+svn:wc:ra_dav:version-url
+V 123
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif
+END
+filebrowser_icon_makethumb_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 111
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb_hover.gif
+END
+tableheader_arrows.gif
+K 25
+svn:wc:ra_dav:version-url
+V 97
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/tableheader_arrows.gif
+END
+filebrowser_icon_select_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 108
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_select_hover.gif
+END
+filebrowser_icon_show_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 106
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_show_hover.gif
+END
+filebrowser_object-tools_icon_multipleupload.gif
+K 25
+svn:wc:ra_dav:version-url
+V 123
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif
+END
+tableheader_arrow_down.gif
+K 25
+svn:wc:ra_dav:version-url
+V 101
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/tableheader_arrow_down.gif
+END
+filebrowser_object-tools_icon_makedirectory_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 128
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif
+END
+filebrowser_icon_imagegenerator.gif
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator.gif
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/entries b/apps/filebrowser/media/filebrowser/img/.svn/entries
new file mode 100644 (file)
index 0000000..69fc4e7
--- /dev/null
@@ -0,0 +1,1150 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/img
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+filebrowser_object-tools_icon_makethumb.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+ac0b0f779a11e12c6fb9be3fd9dae3a9
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+403
+\f
+filebrowser_icon_delete.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+157eed9c0a8ce56cc2b75cb12065f1cb
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+151
+\f
+filebrowser_type_code.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+325e306d3e02c8acda7af6adfa7fe004
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+160
+\f
+filebrowser_icon_select_disabled.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+a0c268883018edf7fb7a89c8bd0818e3
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3186
+\f
+filebrowser_type_.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+b5fac564ecb2166984dd3a2bbeed30f2
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+113
+\f
+filebrowser_icon_rename_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+497f6c51d823c274a60fe2f0e62e5f0c
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+222
+\f
+filebrowser_type_image.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+f7ee32d90df4f4a881332f8792bff56c
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+127
+\f
+filebrowser_icon_showversions_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+738f5047e56dfc42c27a2035264d9a5a
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+174
+\f
+filebrowser_icon_makethumb.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+ab37558a12a7ac398d70967cea5c2490
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+378
+\f
+filebrowser_icon_select.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+d5f9eece128537b385fbce97dbe845a1
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+377
+\f
+filebrowser_object-tools_icon_imagegenerator_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+f7283a0d70fde92d648968b4d717b332
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+433
+\f
+filebrowser_icon_show.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+796cca444bccb1aa3a1177af34df2b55
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+427
+\f
+filebrowser_type_sound.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+4151664f192446c247002b107e7ef44b
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+223
+\f
+filebrowser_object-tools_icon_makedirectory.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+a0a9265b740291191ef495408d8462ee
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+390
+\f
+filebrowser_object-tools_icon_multipleupload_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+9c8b269a5d21539c833af80f93f98857
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+263
+\f
+filebrowser_icon_imagegenerator_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+f7283a0d70fde92d648968b4d717b332
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+433
+\f
+filebrowser_type_video.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+a4182f6abe9db217cfe9285bc4d658d8
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+147
+\f
+tableheader_arrow_up.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+54e3bf1ab4191c053d1f986da869b891
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+292
+\f
+filebrowser_type_folder.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+06bb3d324d86924674bd696673cf12b5
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+228
+\f
+filebrowser_object-tools_icon_makethumb_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+ae1a740563fab6107c761690ba1ea4b0
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+284
+\f
+filebrowser_icon_delete_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+3bc37e729ede0d78618286dcaaec4ecb
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+151
+\f
+filebrowser_type_document.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+69c60b7de4e9e07a111275424f8aea38
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+118
+\f
+filebrowser_icon_rename.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+74d609b1407d2ec6a06797be1fa252b4
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+222
+\f
+filebrowser_icon_showversions.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+5e1a776e0b8cf3a7f28f7a7fe10c04f3
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+174
+\f
+filebrowser_object-tools_icon_imagegenerator.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+67c3f4a7d6cecec501fdf0561c07a300
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+433
+\f
+filebrowser_icon_makethumb_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+b53f0c3ec7e9ba09faaf184ae9b9e08e
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+378
+\f
+tableheader_arrows.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+9938865535b6e2225419b4c97fe3e5ab
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+296
+\f
+filebrowser_icon_select_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+3b1c5ee35a836335a146e58ef96f5e6d
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+264
+\f
+filebrowser_icon_show_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+d86a374f1f8fc4dc541d060151e3a3cc
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+426
+\f
+filebrowser_object-tools_icon_multipleupload.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+592061db6b21baef0214d5ca0db50318
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+387
+\f
+tableheader_arrow_down.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+b3e7bfc27c65b00e59b6c732fdeccc16
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+292
+\f
+filebrowser_object-tools_icon_makedirectory_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+0969316f65cbce421d15ae05ed2b6806
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+378
+\f
+filebrowser_icon_imagegenerator.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+67c3f4a7d6cecec501fdf0561c07a300
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+433
+\f
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_delete.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_delete.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_delete_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_delete_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_imagegenerator.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_imagegenerator.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_imagegenerator_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_imagegenerator_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_makethumb.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_makethumb.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_makethumb_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_makethumb_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_rename.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_rename.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_rename_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_rename_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_select.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_select.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_select_disabled.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_select_disabled.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_select_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_select_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_show.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_show.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_show_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_show_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_showversions.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_showversions.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_showversions_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_icon_showversions_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_imagegenerator.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_imagegenerator.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_imagegenerator_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_imagegenerator_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makedirectory.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makedirectory.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makedirectory_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makedirectory_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makethumb.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makethumb.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makethumb_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makethumb_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_multipleupload.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_multipleupload.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_multipleupload_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_multipleupload_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_code.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_code.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_document.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_document.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_folder.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_folder.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_image.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_image.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_sound.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_sound.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_video.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/filebrowser_type_video.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/tableheader_arrow_down.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/tableheader_arrow_down.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/tableheader_arrow_up.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/tableheader_arrow_up.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/prop-base/tableheader_arrows.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/prop-base/tableheader_arrows.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_delete.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_delete.gif.svn-base
new file mode 100644 (file)
index 0000000..221a6e1
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_delete.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_delete_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_delete_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..2a2142c
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_delete_hover.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator.gif.svn-base
new file mode 100644 (file)
index 0000000..9b19a42
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..aaa256f
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator_hover.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb.gif.svn-base
new file mode 100644 (file)
index 0000000..837f6cc
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..d1d4d4a
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb_hover.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_rename.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_rename.gif.svn-base
new file mode 100644 (file)
index 0000000..bc45fe4
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_rename.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_rename_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_rename_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..be8ea08
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_rename_hover.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_select.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_select.gif.svn-base
new file mode 100644 (file)
index 0000000..a838427
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_select.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_select_disabled.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_select_disabled.gif.svn-base
new file mode 100644 (file)
index 0000000..60ad2d5
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_select_disabled.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_select_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_select_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..319558e
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_select_hover.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_show.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_show.gif.svn-base
new file mode 100644 (file)
index 0000000..dded982
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_show.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_show_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_show_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..fbd1f33
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_show_hover.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_showversions.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_showversions.gif.svn-base
new file mode 100644 (file)
index 0000000..71525d7
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_showversions.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_showversions_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_showversions_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..1fbe2e4
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_icon_showversions_hover.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator.gif.svn-base
new file mode 100644 (file)
index 0000000..9b19a42
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..aaa256f
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator_hover.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory.gif.svn-base
new file mode 100644 (file)
index 0000000..bcd98d9
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..f9938c7
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory_hover.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb.gif.svn-base
new file mode 100644 (file)
index 0000000..a6863cb
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..b9aba7c
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb_hover.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload.gif.svn-base
new file mode 100644 (file)
index 0000000..6de016b
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload_hover.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..eaaf254
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload_hover.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_.gif.svn-base
new file mode 100644 (file)
index 0000000..6a908e2
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_code.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_code.gif.svn-base
new file mode 100644 (file)
index 0000000..9650839
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_code.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_document.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_document.gif.svn-base
new file mode 100644 (file)
index 0000000..65ebd99
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_document.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_folder.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_folder.gif.svn-base
new file mode 100644 (file)
index 0000000..115e3fb
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_folder.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_image.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_image.gif.svn-base
new file mode 100644 (file)
index 0000000..000b31c
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_image.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_sound.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_sound.gif.svn-base
new file mode 100644 (file)
index 0000000..8a8970a
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_sound.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_video.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_video.gif.svn-base
new file mode 100644 (file)
index 0000000..f456d59
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/filebrowser_type_video.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/tableheader_arrow_down.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/tableheader_arrow_down.gif.svn-base
new file mode 100644 (file)
index 0000000..5ae95a6
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/tableheader_arrow_down.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/tableheader_arrow_up.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/tableheader_arrow_up.gif.svn-base
new file mode 100644 (file)
index 0000000..85f1e12
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/tableheader_arrow_up.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/.svn/text-base/tableheader_arrows.gif.svn-base b/apps/filebrowser/media/filebrowser/img/.svn/text-base/tableheader_arrows.gif.svn-base
new file mode 100644 (file)
index 0000000..39b8780
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/.svn/text-base/tableheader_arrows.gif.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_delete.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_delete.gif
new file mode 100644 (file)
index 0000000..221a6e1
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_delete.gif 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
new file mode 100644 (file)
index 0000000..2a2142c
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_delete_hover.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator.gif
new file mode 100644 (file)
index 0000000..9b19a42
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator.gif 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
new file mode 100644 (file)
index 0000000..aaa256f
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb.gif
new file mode 100644 (file)
index 0000000..837f6cc
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb.gif 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
new file mode 100644 (file)
index 0000000..d1d4d4a
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb_hover.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_rename.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_rename.gif
new file mode 100644 (file)
index 0000000..bc45fe4
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_rename.gif 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
new file mode 100644 (file)
index 0000000..be8ea08
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_rename_hover.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_select.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_select.gif
new file mode 100644 (file)
index 0000000..a838427
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_select.gif 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
new file mode 100644 (file)
index 0000000..60ad2d5
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_select_disabled.gif 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
new file mode 100644 (file)
index 0000000..319558e
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_select_hover.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_show.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_show.gif
new file mode 100644 (file)
index 0000000..dded982
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_show.gif 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
new file mode 100644 (file)
index 0000000..fbd1f33
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_show_hover.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_icon_showversions.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_showversions.gif
new file mode 100644 (file)
index 0000000..71525d7
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_showversions.gif 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
new file mode 100644 (file)
index 0000000..1fbe2e4
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_icon_showversions_hover.gif 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
new file mode 100644 (file)
index 0000000..9b19a42
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif 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
new file mode 100644 (file)
index 0000000..aaa256f
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif 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
new file mode 100644 (file)
index 0000000..bcd98d9
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif 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
new file mode 100644 (file)
index 0000000..f9938c7
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif 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
new file mode 100644 (file)
index 0000000..a6863cb
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif 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
new file mode 100644 (file)
index 0000000..b9aba7c
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif 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
new file mode 100644 (file)
index 0000000..6de016b
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif 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
new file mode 100644 (file)
index 0000000..eaaf254
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_type_.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_type_.gif
new file mode 100644 (file)
index 0000000..6a908e2
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_type_.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_type_code.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_type_code.gif
new file mode 100644 (file)
index 0000000..9650839
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_type_code.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_type_document.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_type_document.gif
new file mode 100644 (file)
index 0000000..65ebd99
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_type_document.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_type_folder.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_type_folder.gif
new file mode 100644 (file)
index 0000000..115e3fb
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_type_folder.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_type_image.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_type_image.gif
new file mode 100644 (file)
index 0000000..000b31c
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_type_image.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_type_sound.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_type_sound.gif
new file mode 100644 (file)
index 0000000..8a8970a
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_type_sound.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/filebrowser_type_video.gif b/apps/filebrowser/media/filebrowser/img/filebrowser_type_video.gif
new file mode 100644 (file)
index 0000000..f456d59
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/filebrowser_type_video.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/tableheader_arrow_down.gif b/apps/filebrowser/media/filebrowser/img/tableheader_arrow_down.gif
new file mode 100644 (file)
index 0000000..5ae95a6
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/tableheader_arrow_down.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/tableheader_arrow_up.gif b/apps/filebrowser/media/filebrowser/img/tableheader_arrow_up.gif
new file mode 100644 (file)
index 0000000..85f1e12
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/tableheader_arrow_up.gif differ
diff --git a/apps/filebrowser/media/filebrowser/img/tableheader_arrows.gif b/apps/filebrowser/media/filebrowser/img/tableheader_arrows.gif
new file mode 100644 (file)
index 0000000..39b8780
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/img/tableheader_arrows.gif differ
diff --git a/apps/filebrowser/media/filebrowser/js/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/js/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..201d687
--- /dev/null
@@ -0,0 +1,41 @@
+K 25
+svn:wc:ra_dav:version-url
+V 73
+/svn/!svn/ver/466/branches/filebrowser_3/filebrowser/media/filebrowser/js
+END
+FB_CKEditor.js
+K 25
+svn:wc:ra_dav:version-url
+V 88
+/svn/!svn/ver/452/branches/filebrowser_3/filebrowser/media/filebrowser/js/FB_CKEditor.js
+END
+FB_FileBrowseField.js
+K 25
+svn:wc:ra_dav:version-url
+V 95
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/js/FB_FileBrowseField.js
+END
+AddFileBrowser.js
+K 25
+svn:wc:ra_dav:version-url
+V 91
+/svn/!svn/ver/466/branches/filebrowser_3/filebrowser/media/filebrowser/js/AddFileBrowser.js
+END
+FB_TinyMCE.js
+K 25
+svn:wc:ra_dav:version-url
+V 87
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/js/FB_TinyMCE.js
+END
+jquery-1.3.2.min.js
+K 25
+svn:wc:ra_dav:version-url
+V 93
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/js/jquery-1.3.2.min.js
+END
+TinyMCEAdmin.js
+K 25
+svn:wc:ra_dav:version-url
+V 89
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/js/TinyMCEAdmin.js
+END
diff --git a/apps/filebrowser/media/filebrowser/js/.svn/entries b/apps/filebrowser/media/filebrowser/js/.svn/entries
new file mode 100644 (file)
index 0000000..9e9096e
--- /dev/null
@@ -0,0 +1,232 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/js
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-29T16:15:59.524671Z
+466
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+FB_CKEditor.js
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+fa50cfae580047a009a2b86506210d9f
+2009-10-11T14:09:32.302815Z
+452
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+652
+\f
+FB_FileBrowseField.js
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+6b093d924826e1d737086801bda89074
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1234
+\f
+AddFileBrowser.js
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+89c9b75dae80816eafa85a1397583b23
+2009-10-29T16:15:59.524671Z
+466
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1094
+\f
+FB_TinyMCE.js
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+645e7326e1e8be17ce619cdf61731cea
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+942
+\f
+jquery-1.3.2.min.js
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+bb381e2d19d8eace86b34d20759491a5
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+57254
+\f
+TinyMCEAdmin.js
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+fb5327084cd3bde1cdf2421ffd619259
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2487
+\f
diff --git a/apps/filebrowser/media/filebrowser/js/.svn/prop-base/FB_FileBrowseField.js.svn-base b/apps/filebrowser/media/filebrowser/js/.svn/prop-base/FB_FileBrowseField.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/js/.svn/prop-base/FB_TinyMCE.js.svn-base b/apps/filebrowser/media/filebrowser/js/.svn/prop-base/FB_TinyMCE.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/js/.svn/text-base/AddFileBrowser.js.svn-base b/apps/filebrowser/media/filebrowser/js/.svn/text-base/AddFileBrowser.js.svn-base
new file mode 100644 (file)
index 0000000..3a99442
--- /dev/null
@@ -0,0 +1,30 @@
+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/.svn/text-base/FB_CKEditor.js.svn-base b/apps/filebrowser/media/filebrowser/js/.svn/text-base/FB_CKEditor.js.svn-base
new file mode 100644 (file)
index 0000000..74d8d64
--- /dev/null
@@ -0,0 +1,24 @@
+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/.svn/text-base/FB_FileBrowseField.js.svn-base b/apps/filebrowser/media/filebrowser/js/.svn/text-base/FB_FileBrowseField.js.svn-base
new file mode 100644 (file)
index 0000000..b0696ce
--- /dev/null
@@ -0,0 +1,32 @@
+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/.svn/text-base/FB_TinyMCE.js.svn-base b/apps/filebrowser/media/filebrowser/js/.svn/text-base/FB_TinyMCE.js.svn-base
new file mode 100644 (file)
index 0000000..86d6939
--- /dev/null
@@ -0,0 +1,28 @@
+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/.svn/text-base/TinyMCEAdmin.js.svn-base b/apps/filebrowser/media/filebrowser/js/.svn/text-base/TinyMCEAdmin.js.svn-base
new file mode 100644 (file)
index 0000000..760a666
--- /dev/null
@@ -0,0 +1,75 @@
+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/.svn/text-base/jquery-1.3.2.min.js.svn-base b/apps/filebrowser/media/filebrowser/js/.svn/text-base/jquery-1.3.2.min.js.svn-base
new file mode 100644 (file)
index 0000000..b1ae21d
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * 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/js/AddFileBrowser.js b/apps/filebrowser/media/filebrowser/js/AddFileBrowser.js
new file mode 100644 (file)
index 0000000..3a99442
--- /dev/null
@@ -0,0 +1,30 @@
+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
new file mode 100644 (file)
index 0000000..74d8d64
--- /dev/null
@@ -0,0 +1,24 @@
+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
new file mode 100755 (executable)
index 0000000..b0696ce
--- /dev/null
@@ -0,0 +1,32 @@
+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
new file mode 100755 (executable)
index 0000000..86d6939
--- /dev/null
@@ -0,0 +1,28 @@
+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
new file mode 100644 (file)
index 0000000..760a666
--- /dev/null
@@ -0,0 +1,75 @@
+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
new file mode 100644 (file)
index 0000000..b1ae21d
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * 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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..b206329
--- /dev/null
@@ -0,0 +1,83 @@
+K 25
+svn:wc:ra_dav:version-url
+V 80
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify
+END
+swfobject.js
+K 25
+svn:wc:ra_dav:version-url
+V 93
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/swfobject.js
+END
+uploadify.php
+K 25
+svn:wc:ra_dav:version-url
+V 94
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/uploadify.php
+END
+uploadify.css
+K 25
+svn:wc:ra_dav:version-url
+V 94
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/uploadify.css
+END
+check.php
+K 25
+svn:wc:ra_dav:version-url
+V 90
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/check.php
+END
+Uploadify v2.1.0 Manual.pdf
+K 25
+svn:wc:ra_dav:version-url
+V 112
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/Uploadify%20v2.1.0%20Manual.pdf
+END
+jquery.uploadify.v2.1.0.js
+K 25
+svn:wc:ra_dav:version-url
+V 107
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/jquery.uploadify.v2.1.0.js
+END
+uploadify.allglyphs.swf
+K 25
+svn:wc:ra_dav:version-url
+V 104
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/uploadify.allglyphs.swf
+END
+cancel.png
+K 25
+svn:wc:ra_dav:version-url
+V 91
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/cancel.png
+END
+uploadify.swf
+K 25
+svn:wc:ra_dav:version-url
+V 94
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/uploadify.swf
+END
+jquery.uploadify.v2.1.0.min.js
+K 25
+svn:wc:ra_dav:version-url
+V 111
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/jquery.uploadify.v2.1.0.min.js
+END
+jquery-1.3.2.min.js
+K 25
+svn:wc:ra_dav:version-url
+V 100
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/jquery-1.3.2.min.js
+END
+uploadify.fla
+K 25
+svn:wc:ra_dav:version-url
+V 94
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/uploadify.fla
+END
+expressInstall.swf
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/expressInstall.swf
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/.svn/entries
new file mode 100644 (file)
index 0000000..d3e3ff3
--- /dev/null
@@ -0,0 +1,476 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+uploadify.php
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+18002e871847e9e3ae656a35d5e24cbe
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1932
+\f
+uploadify.css
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+edec394bac0dc3cf3a17da3837abd642
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1792
+\f
+uploadify.allglyphs.swf
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+5c0e296be9e1f5ece5240f1fb61ad208
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+239838
+\f
+jquery.uploadify.v2.1.0.min.js
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+4f1ceab5d5c04168fbef69362742bc6c
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7563
+\f
+uploadify.swf
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+adf7808c4a093b49f90b33627544957a
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+23118
+\f
+example
+dir
+\f
+uploadify.fla
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+2d9a2c1e29520c5a5a20dcf8637144d4
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+125952
+\f
+swfobject.js
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+892a543f3abb54e8ec1ada55be3b0649
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+10220
+\f
+check.php
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+c409eb2cfd793515f98f0781fea3ef15
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1404
+\f
+Uploadify v2.1.0 Manual.pdf
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+1cd94307fbe2fb1d21e9be690760cde4
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+556466
+\f
+cancel.png
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+9ce92e32e120ce9162498c92e4348ec0
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+603
+\f
+jquery.uploadify.v2.1.0.js
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+d5d8d06af69c558768c9832144de77f2
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+12930
+\f
+jquery-1.3.2.min.js
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+bb381e2d19d8eace86b34d20759491a5
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+57254
+\f
+expressInstall.swf
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+7b65fbfaec8b2955090389af60646e8b
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+727
+\f
+com
+dir
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/Uploadify v2.1.0 Manual.pdf.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/Uploadify v2.1.0 Manual.pdf.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/cancel.png.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/cancel.png.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/check.php.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/check.php.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/expressInstall.swf.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/expressInstall.swf.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/jquery-1.3.2.min.js.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/jquery-1.3.2.min.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/jquery.uploadify.v2.1.0.js.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/jquery.uploadify.v2.1.0.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/jquery.uploadify.v2.1.0.min.js.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/jquery.uploadify.v2.1.0.min.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/swfobject.js.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/swfobject.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/uploadify.allglyphs.swf.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/uploadify.allglyphs.swf.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/uploadify.css.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/uploadify.css.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/uploadify.fla.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/uploadify.fla.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/uploadify.php.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/uploadify.php.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/uploadify.swf.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/prop-base/uploadify.swf.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/Uploadify v2.1.0 Manual.pdf.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/Uploadify v2.1.0 Manual.pdf.svn-base
new file mode 100644 (file)
index 0000000..c8b2565
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/Uploadify v2.1.0 Manual.pdf.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/cancel.png.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/cancel.png.svn-base
new file mode 100644 (file)
index 0000000..1c062ae
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/cancel.png.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/check.php.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/check.php.svn-base
new file mode 100644 (file)
index 0000000..d7dc571
--- /dev/null
@@ -0,0 +1,35 @@
+<?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/.svn/text-base/expressInstall.swf.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/expressInstall.swf.svn-base
new file mode 100644 (file)
index 0000000..0fbf8fc
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/expressInstall.swf.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/jquery-1.3.2.min.js.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/jquery-1.3.2.min.js.svn-base
new file mode 100644 (file)
index 0000000..b1ae21d
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * 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/.svn/text-base/jquery.uploadify.v2.1.0.js.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/jquery.uploadify.v2.1.0.js.svn-base
new file mode 100644 (file)
index 0000000..9a78cd3
--- /dev/null
@@ -0,0 +1,258 @@
+/*\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
+\r
+if(jQuery)(\r
+       function(jQuery){\r
+               jQuery.extend(jQuery.fn,{\r
+                       uploadify:function(options) {\r
+                               jQuery(this).each(function(){\r
+                                       settings = jQuery.extend({\r
+                                       id             : jQuery(this).attr('id'), // The ID of the object being Uploadified\r
+                                       uploader       : 'uploadify.swf', // The path to the uploadify swf file\r
+                                       script         : 'uploadify.php', // The path to the uploadify backend upload script\r
+                                       expressInstall : null, // The path to the express install swf file\r
+                                       folder         : '', // The path to the upload folder\r
+                                       height         : 30, // The height of the flash button\r
+                                       width          : 110, // The width of the flash button\r
+                                       cancelImg      : 'cancel.png', // The path to the cancel image for the default file queue item container\r
+                                       wmode          : 'opaque', // The wmode of the flash file\r
+                                       scriptAccess   : 'sameDomain', // Set to "always" to allow script access across domains\r
+                                       fileDataName   : 'Filedata', // The name of the file collection object in the backend upload script\r
+                                       method         : 'POST', // The method for sending variables to the backend upload script\r
+                                       queueSizeLimit : 999, // The maximum size of the file queue\r
+                                       simUploadLimit : 1, // The number of simultaneous uploads allowed\r
+                                       queueID        : false, // The optional ID of the queue container\r
+                                       displayData    : 'percentage', // Set to "speed" to show the upload speed in the default queue item\r
+                                       onInit         : function() {}, // Function to run when uploadify is initialized\r
+                                       onSelect       : function() {}, // Function to run when a file is selected\r
+                                       onQueueFull    : function() {}, // Function to run when the queue reaches capacity\r
+                                       onCheck        : function() {}, // Function to run when script checks for duplicate files on the server\r
+                                       onCancel       : function() {}, // Function to run when an item is cleared from the queue\r
+                                       onError        : function() {}, // Function to run when an upload item returns an error\r
+                                       onProgress     : function() {}, // Function to run each time the upload progress is updated\r
+                                       onComplete     : function() {}, // Function to run when an upload is completed\r
+                                       onAllComplete  : function() {}  // Functino to run when all uploads are completed\r
+                               }, options);\r
+                               var pagePath = location.pathname;\r
+                               pagePath = pagePath.split('/');\r
+                               pagePath.pop();\r
+                               pagePath = pagePath.join('/') + '/';\r
+                               var data = {};\r
+                               data.uploadifyID = settings.id;\r
+                               data.pagepath = pagePath;\r
+                               if (settings.buttonImg) data.buttonImg = escape(settings.buttonImg);\r
+                               if (settings.buttonText) data.buttonText = escape(settings.buttonText);\r
+                               if (settings.rollover) data.rollover = true;\r
+                               data.script = settings.script;\r
+                               data.folder = escape(settings.folder);\r
+                               if (settings.scriptData) {\r
+                                       var scriptDataString = '';\r
+                                       for (var name in settings.scriptData) {\r
+                                               scriptDataString += '&' + name + '=' + settings.scriptData[name];\r
+                                       }\r
+                                       data.scriptData = escape(scriptDataString.substr(1));\r
+                               }\r
+                               data.width          = settings.width;\r
+                               data.height         = settings.height;\r
+                               data.wmode          = settings.wmode;\r
+                               data.method         = settings.method;\r
+                               data.queueSizeLimit = settings.queueSizeLimit;\r
+                               data.simUploadLimit = settings.simUploadLimit;\r
+                               if (settings.hideButton)   data.hideButton   = true;\r
+                               if (settings.fileDesc)     data.fileDesc     = settings.fileDesc;\r
+                               if (settings.fileExt)      data.fileExt      = settings.fileExt;\r
+                               if (settings.multi)        data.multi        = true;\r
+                               if (settings.auto)         data.auto         = true;\r
+                               if (settings.sizeLimit)    data.sizeLimit    = settings.sizeLimit;\r
+                               if (settings.checkScript)  data.checkScript  = settings.checkScript;\r
+                               if (settings.fileDataName) data.fileDataName = settings.fileDataName;\r
+                               if (settings.queueID)      data.queueID      = settings.queueID;\r
+                               if (settings.onInit() !== false) {\r
+                                       jQuery(this).css('display','none');\r
+                                       jQuery(this).after('<div id="' + jQuery(this).attr('id') + 'Uploader"></div>');\r
+                                       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});\r
+                                       if (settings.queueID == false) {\r
+                                               jQuery("#" + jQuery(this).attr('id') + "Uploader").after('<div id="' + jQuery(this).attr('id') + 'Queue" class="uploadifyQueue"></div>');\r
+                                       }\r
+                               }\r
+                               if (typeof(settings.onOpen) == 'function') {\r
+                                       jQuery(this).bind("uploadifyOpen", settings.onOpen);\r
+                               }\r
+                               jQuery(this).bind("uploadifySelect", {'action': settings.onSelect, 'queueID': settings.queueID}, function(event, ID, fileObj) {\r
+                                       if (event.data.action(event, ID, fileObj) !== false) {\r
+                                               var byteSize = Math.round(fileObj.size / 1024 * 100) * .01;\r
+                                               var suffix = 'KB';\r
+                                               if (byteSize > 1000) {\r
+                                                       byteSize = Math.round(byteSize *.001 * 100) * .01;\r
+                                                       suffix = 'MB';\r
+                                               }\r
+                                               var sizeParts = byteSize.toString().split('.');\r
+                                               if (sizeParts.length > 1) {\r
+                                                       byteSize = sizeParts[0] + '.' + sizeParts[1].substr(0,2);\r
+                                               } else {\r
+                                                       byteSize = sizeParts[0];\r
+                                               }\r
+                                               if (fileObj.name.length > 20) {\r
+                                                       fileName = fileObj.name.substr(0,20) + '...';\r
+                                               } else {\r
+                                                       fileName = fileObj.name;\r
+                                               }\r
+                                               queue = '#' + jQuery(this).attr('id') + 'Queue';\r
+                                               if (event.data.queueID) {\r
+                                                       queue = '#' + event.data.queueID;\r
+                                               }\r
+                                               jQuery(queue).append('<div id="' + jQuery(this).attr('id') + ID + '" class="uploadifyQueueItem">\\r
+                                                               <div class="cancel">\\r
+                                                                       <a href="javascript:jQuery(\'#' + jQuery(this).attr('id') + '\').uploadifyCancel(\'' + ID + '\')"><img src="' + settings.cancelImg + '" border="0" /></a>\\r
+                                                               </div>\\r
+                                                               <span class="fileName">' + fileName + ' (' + byteSize + suffix + ')</span><span class="percentage"></span>\\r
+                                                               <div class="uploadifyProgress">\\r
+                                                                       <div id="' + jQuery(this).attr('id') + ID + 'ProgressBar" class="uploadifyProgressBar"><!--Progress Bar--></div>\\r
+                                                               </div>\\r
+                                                       </div>');\r
+                                       }\r
+                               });\r
+                               if (typeof(settings.onSelectOnce) == 'function') {\r
+                                       jQuery(this).bind("uploadifySelectOnce", settings.onSelectOnce);\r
+                               }\r
+                               jQuery(this).bind("uploadifyQueueFull", {'action': settings.onQueueFull}, function(event, queueSizeLimit) {\r
+                                       if (event.data.action(event, queueSizeLimit) !== false) {\r
+                                               alert('The queue is full.  The max size is ' + queueSizeLimit + '.');\r
+                                       }\r
+                               });\r
+                               jQuery(this).bind("uploadifyCheckExist", {'action': settings.onCheck}, function(event, checkScript, fileQueueObj, folder, single) {\r
+                                       var postData = new Object();\r
+                                       postData = fileQueueObj;\r
+                                       postData.folder = pagePath + folder;\r
+                                       if (single) {\r
+                                               for (var ID in fileQueueObj) {\r
+                                                       var singleFileID = ID;\r
+                                               }\r
+                                       }\r
+                                       jQuery.post(checkScript, postData, function(data) {\r
+                                               for(var key in data) {\r
+                                                       if (event.data.action(event, checkScript, fileQueueObj, folder, single) !== false) {\r
+                                                               var replaceFile = confirm("Do you want to replace the file " + data[key] + "?");\r
+                                                               if (!replaceFile) {\r
+                                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').cancelFileUpload(key, true,true);\r
+                                                               }\r
+                                                       }\r
+                                               }\r
+                                               if (single) {\r
+                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').startFileUpload(singleFileID, true);\r
+                                               } else {\r
+                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').startFileUpload(null, true);\r
+                                               }\r
+                                       }, "json");\r
+                               });\r
+                               jQuery(this).bind("uploadifyCancel", {'action': settings.onCancel}, function(event, ID, fileObj, data, clearFast) {\r
+                                       if (event.data.action(event, ID, fileObj, data, clearFast) !== false) {\r
+                                               var fadeSpeed = (clearFast == true) ? 0 : 250;\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID).fadeOut(fadeSpeed, function() { jQuery(this).remove() });\r
+                                       }\r
+                               });\r
+                               if (typeof(settings.onClearQueue) == 'function') {\r
+                                       jQuery(this).bind("uploadifyClearQueue", settings.onClearQueue);\r
+                               }\r
+                               var errorArray = [];\r
+                               jQuery(this).bind("uploadifyError", {'action': settings.onError}, function(event, ID, fileObj, errorObj) {\r
+                                       if (event.data.action(event, ID, fileObj, errorObj) !== false) {\r
+                                               var fileArray = new Array(ID, fileObj, errorObj);\r
+                                               errorArray.push(fileArray);\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(" - " + errorObj.type + " Error");\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID).addClass('uploadifyError');\r
+                                       }\r
+                               });\r
+                               jQuery(this).bind("uploadifyProgress", {'action': settings.onProgress, 'toDisplay': settings.displayData}, function(event, ID, fileObj, data) {\r
+                                       if (event.data.action(event, ID, fileObj, data) !== false) {\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + "ProgressBar").css('width', data.percentage + '%');\r
+                                               if (event.data.toDisplay == 'percentage') displayData = ' - ' + data.percentage + '%';\r
+                                               if (event.data.toDisplay == 'speed') displayData = ' - ' + data.speed + 'KB/s';\r
+                                               if (event.data.toDisplay == null) displayData = ' ';\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(displayData);\r
+                                       }\r
+                               });\r
+                               jQuery(this).bind("uploadifyComplete", {'action': settings.onComplete}, function(event, ID, fileObj, response, data) {\r
+                                       if (event.data.action(event, ID, fileObj, unescape(response), data) !== false) {\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(' - Completed');\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID).fadeOut(250, function() { jQuery(this).remove()});\r
+                                       }\r
+                               });\r
+                               if (typeof(settings.onAllComplete) == 'function') {\r
+                                       jQuery(this).bind("uploadifyAllComplete", {'action': settings.onAllComplete}, function(event, uploadObj) {\r
+                                               if (event.data.action(event, uploadObj) !== false) {\r
+                                                       errorArray = [];\r
+                                               }\r
+                                       });\r
+                               }\r
+                       });\r
+               },\r
+               uploadifySettings:function(settingName, settingValue, resetObject) {\r
+                       var returnValue = false;\r
+                       jQuery(this).each(function() {\r
+                               if (settingName == 'scriptData' && settingValue != null) {\r
+                                       if (resetObject) {\r
+                                               var scriptData = settingValue;\r
+                                       } else {\r
+                                               var scriptData = jQuery.extend(settings.scriptData, settingValue);\r
+                                       }\r
+                                       var scriptDataString = '';\r
+                                       for (var name in scriptData) {\r
+                                               scriptDataString += '&' + name + '=' + escape(scriptData[name]);\r
+                                       }\r
+                                       settingValue = scriptDataString.substr(1);\r
+                               }\r
+                               returnValue = document.getElementById(jQuery(this).attr('id') + 'Uploader').updateSettings(settingName, settingValue);\r
+                       });\r
+                       if (settingValue == null) {\r
+                               if (settingName == 'scriptData') {\r
+                                       var returnSplit = unescape(returnValue).split('&');\r
+                                       var returnObj   = new Object();\r
+                                       for (var i = 0; i < returnSplit.length; i++) {\r
+                                               var iSplit = returnSplit[i].split('=');\r
+                                               returnObj[iSplit[0]] = iSplit[1];\r
+                                       }\r
+                                       returnValue = returnObj;\r
+                               }\r
+                               return returnValue;\r
+                       }\r
+               },\r
+               uploadifyUpload:function(ID) {\r
+                       jQuery(this).each(function() {\r
+                               document.getElementById(jQuery(this).attr('id') + 'Uploader').startFileUpload(ID, false);\r
+                       });\r
+               },\r
+               uploadifyCancel:function(ID) {\r
+                       jQuery(this).each(function() {\r
+                               document.getElementById(jQuery(this).attr('id') + 'Uploader').cancelFileUpload(ID, true, false);\r
+                       });\r
+               },\r
+               uploadifyClearQueue:function() {\r
+                       jQuery(this).each(function() {\r
+                               document.getElementById(jQuery(this).attr('id') + 'Uploader').clearFileUploadQueue(false);\r
+                       });\r
+               }\r
+       })\r
+})(jQuery);
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/jquery.uploadify.v2.1.0.min.js.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/jquery.uploadify.v2.1.0.min.js.svn-base
new file mode 100644 (file)
index 0000000..04592ff
--- /dev/null
@@ -0,0 +1,26 @@
+/*\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
+\r
+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/.svn/text-base/swfobject.js.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/swfobject.js.svn-base
new file mode 100644 (file)
index 0000000..8eafe9d
--- /dev/null
@@ -0,0 +1,4 @@
+/*     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/.svn/text-base/uploadify.allglyphs.swf.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.allglyphs.swf.svn-base
new file mode 100644 (file)
index 0000000..4bad011
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.allglyphs.swf.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.css.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.css.svn-base
new file mode 100644 (file)
index 0000000..0cf8c0e
--- /dev/null
@@ -0,0 +1,53 @@
+/*\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
+.uploadifyQueueItem {\r
+       font: 11px Verdana, Geneva, sans-serif;\r
+       border: 2px solid #E5E5E5;\r
+       background-color: #F5F5F5;\r
+       margin-top: 5px;\r
+       padding: 10px;\r
+       width: 350px;\r
+}\r
+.uploadifyError {\r
+       border: 2px solid #FBCBBC !important;\r
+       background-color: #FDE5DD !important;\r
+}\r
+.uploadifyQueueItem .cancel {\r
+       float: right;\r
+}\r
+.uploadifyProgress {\r
+       background-color: #FFFFFF;\r
+       border-top: 1px solid #808080;\r
+       border-left: 1px solid #808080;\r
+       border-right: 1px solid #C5C5C5;\r
+       border-bottom: 1px solid #C5C5C5;\r
+       margin-top: 10px;\r
+       width: 100%;\r
+}\r
+.uploadifyProgressBar {\r
+       background-color: #0099FF;\r
+       width: 1px;\r
+       height: 3px;\r
+}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.fla.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.fla.svn-base
new file mode 100644 (file)
index 0000000..c07bbaf
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.fla.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.php.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.php.svn-base
new file mode 100644 (file)
index 0000000..8bf14a6
--- /dev/null
@@ -0,0 +1,46 @@
+<?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/.svn/text-base/uploadify.swf.svn-base b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.swf.svn-base
new file mode 100644 (file)
index 0000000..0385d9e
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/.svn/text-base/uploadify.swf.svn-base differ
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
new file mode 100755 (executable)
index 0000000..c8b2565
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/Uploadify v2.1.0 Manual.pdf differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/cancel.png b/apps/filebrowser/media/filebrowser/uploadify/cancel.png
new file mode 100755 (executable)
index 0000000..1c062ae
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/cancel.png differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/check.php b/apps/filebrowser/media/filebrowser/uploadify/check.php
new file mode 100755 (executable)
index 0000000..d7dc571
--- /dev/null
@@ -0,0 +1,35 @@
+<?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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..7081c4b
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/.svn/entries
new file mode 100644 (file)
index 0000000..4aa2487
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+adobe
+dir
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..afa85c8
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 90
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/.svn/entries
new file mode 100644 (file)
index 0000000..b0ada25
--- /dev/null
@@ -0,0 +1,58 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+crypto
+dir
+\f
+utils
+dir
+\f
+protocols
+dir
+\f
+images
+dir
+\f
+net
+dir
+\f
+webapis
+dir
+\f
+air
+dir
+\f
+fileformats
+dir
+\f
+errors
+dir
+\f
+serialization
+dir
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..0c9a5a9
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 94
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/air
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/.svn/entries
new file mode 100644 (file)
index 0000000..da3b205
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/air
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+logging
+dir
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..5e0f7b2
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 102
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging
+END
+FileTarget.as
+K 25
+svn:wc:ra_dav:version-url
+V 116
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/FileTarget.as
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/.svn/entries
new file mode 100644 (file)
index 0000000..32beda4
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+FileTarget.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+ec3643b4ddb32b2d2ebc1f7d55c91ced
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3008
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/.svn/prop-base/FileTarget.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/.svn/prop-base/FileTarget.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/.svn/text-base/FileTarget.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/.svn/text-base/FileTarget.as.svn-base
new file mode 100644 (file)
index 0000000..0dda3eb
--- /dev/null
@@ -0,0 +1,98 @@
+/*
+  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/air/logging/FileTarget.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/FileTarget.as
new file mode 100755 (executable)
index 0000000..0dda3eb
--- /dev/null
@@ -0,0 +1,98 @@
+/*
+  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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..10194f1
--- /dev/null
@@ -0,0 +1,47 @@
+K 25
+svn:wc:ra_dav:version-url
+V 97
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto
+END
+MD5Stream.as
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/MD5Stream.as
+END
+WSSEUsernameToken.as
+K 25
+svn:wc:ra_dav:version-url
+V 118
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/WSSEUsernameToken.as
+END
+SHA224.as
+K 25
+svn:wc:ra_dav:version-url
+V 107
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA224.as
+END
+MD5.as
+K 25
+svn:wc:ra_dav:version-url
+V 104
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/MD5.as
+END
+HMAC.as
+K 25
+svn:wc:ra_dav:version-url
+V 105
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/HMAC.as
+END
+SHA256.as
+K 25
+svn:wc:ra_dav:version-url
+V 107
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA256.as
+END
+SHA1.as
+K 25
+svn:wc:ra_dav:version-url
+V 105
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA1.as
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/entries
new file mode 100644 (file)
index 0000000..8a6f868
--- /dev/null
@@ -0,0 +1,266 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+MD5Stream.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+f4931ddcde14c576028fcf23bd5d6ec1
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+17039
+\f
+WSSEUsernameToken.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+ad5a856f37719af41922bb0c121e9a1b
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+4037
+\f
+SHA224.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+ffd1adfd41a1f3c0a3a809ce304a4f5f
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+8877
+\f
+MD5.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+1332bdd143ffc7dfdbbaebf62f9aefb4
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+10340
+\f
+HMAC.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+b9f33bcb735cb785b9e775137d2deb02
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+4215
+\f
+SHA256.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+253e9c4af7c9758652afac59287f3bc5
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+9013
+\f
+SHA1.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+4d7fc01a79e33b1cba4eb2db458066fa
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+8332
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/HMAC.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/HMAC.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/MD5.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/MD5.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/MD5Stream.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/MD5Stream.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA1.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA1.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA224.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA224.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA256.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA256.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/WSSEUsernameToken.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/WSSEUsernameToken.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/HMAC.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/HMAC.as.svn-base
new file mode 100644 (file)
index 0000000..72f9bff
--- /dev/null
@@ -0,0 +1,127 @@
+/*\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/.svn/text-base/MD5.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/MD5.as.svn-base
new file mode 100644 (file)
index 0000000..da533cc
--- /dev/null
@@ -0,0 +1,281 @@
+/*
+  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/.svn/text-base/MD5Stream.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/MD5Stream.as.svn-base
new file mode 100644 (file)
index 0000000..6e5eed0
--- /dev/null
@@ -0,0 +1,402 @@
+/*\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/.svn/text-base/SHA1.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/SHA1.as.svn-base
new file mode 100644 (file)
index 0000000..952f3c7
--- /dev/null
@@ -0,0 +1,271 @@
+/*\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/.svn/text-base/SHA224.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/SHA224.as.svn-base
new file mode 100644 (file)
index 0000000..ee15453
--- /dev/null
@@ -0,0 +1,257 @@
+/*
+  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/.svn/text-base/SHA256.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/SHA256.as.svn-base
new file mode 100644 (file)
index 0000000..09a2ba2
--- /dev/null
@@ -0,0 +1,261 @@
+/*
+  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/.svn/text-base/WSSEUsernameToken.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/WSSEUsernameToken.as.svn-base
new file mode 100644 (file)
index 0000000..92bbba6
--- /dev/null
@@ -0,0 +1,114 @@
+/*\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/crypto/HMAC.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/HMAC.as
new file mode 100755 (executable)
index 0000000..72f9bff
--- /dev/null
@@ -0,0 +1,127 @@
+/*\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
new file mode 100755 (executable)
index 0000000..da533cc
--- /dev/null
@@ -0,0 +1,281 @@
+/*
+  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
new file mode 100755 (executable)
index 0000000..6e5eed0
--- /dev/null
@@ -0,0 +1,402 @@
+/*\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
new file mode 100755 (executable)
index 0000000..952f3c7
--- /dev/null
@@ -0,0 +1,271 @@
+/*\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
new file mode 100755 (executable)
index 0000000..ee15453
--- /dev/null
@@ -0,0 +1,257 @@
+/*
+  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
new file mode 100755 (executable)
index 0000000..09a2ba2
--- /dev/null
@@ -0,0 +1,261 @@
+/*
+  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
new file mode 100755 (executable)
index 0000000..92bbba6
--- /dev/null
@@ -0,0 +1,114 @@
+/*\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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..8eb9a52
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 97
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/errors
+END
+IllegalStateError.as
+K 25
+svn:wc:ra_dav:version-url
+V 118
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/errors/IllegalStateError.as
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/.svn/entries
new file mode 100644 (file)
index 0000000..d92535a
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/errors
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+IllegalStateError.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+3511c005da6d65bc1f802efef7e268fe
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2323
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/.svn/prop-base/IllegalStateError.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/.svn/prop-base/IllegalStateError.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/.svn/text-base/IllegalStateError.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/.svn/text-base/IllegalStateError.as.svn-base
new file mode 100644 (file)
index 0000000..fa16191
--- /dev/null
@@ -0,0 +1,63 @@
+/*\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/errors/IllegalStateError.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/errors/IllegalStateError.as
new file mode 100755 (executable)
index 0000000..fa16191
--- /dev/null
@@ -0,0 +1,63 @@
+/*\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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..379e34c
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 102
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/.svn/entries
new file mode 100644 (file)
index 0000000..10b8a6d
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+vcard
+dir
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..0b629b2
--- /dev/null
@@ -0,0 +1,35 @@
+K 25
+svn:wc:ra_dav:version-url
+V 108
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard
+END
+VCard.as
+K 25
+svn:wc:ra_dav:version-url
+V 117
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/VCard.as
+END
+Address.as
+K 25
+svn:wc:ra_dav:version-url
+V 119
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Address.as
+END
+Email.as
+K 25
+svn:wc:ra_dav:version-url
+V 117
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Email.as
+END
+Phone.as
+K 25
+svn:wc:ra_dav:version-url
+V 117
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Phone.as
+END
+VCardParser.as
+K 25
+svn:wc:ra_dav:version-url
+V 123
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/VCardParser.as
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/entries
new file mode 100644 (file)
index 0000000..5cd58b8
--- /dev/null
@@ -0,0 +1,198 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+VCard.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+48787531679efd0ed5818975a0fceb44
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2004
+\f
+Address.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+442aedd116b6921583386b83831a4efb
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1893
+\f
+Email.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+ce884e74d76af5dbc99fd6d41508cfe8
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1693
+\f
+Phone.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+56e43b5be95f7e2b78472da6a114cfea
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1692
+\f
+VCardParser.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+2b2edb82fffacefdc1b930ae0d1d8448
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7342
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Address.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Address.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Email.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Email.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Phone.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Phone.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/VCard.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/VCard.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/VCardParser.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/VCardParser.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Address.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Address.as.svn-base
new file mode 100644 (file)
index 0000000..a368ffb
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+  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/.svn/text-base/Email.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Email.as.svn-base
new file mode 100644 (file)
index 0000000..071c39e
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+  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/.svn/text-base/Phone.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Phone.as.svn-base
new file mode 100644 (file)
index 0000000..27f98e4
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+  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/.svn/text-base/VCard.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/VCard.as.svn-base
new file mode 100644 (file)
index 0000000..d6bc283
--- /dev/null
@@ -0,0 +1,54 @@
+/*
+  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/.svn/text-base/VCardParser.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/VCardParser.as.svn-base
new file mode 100644 (file)
index 0000000..45c954a
--- /dev/null
@@ -0,0 +1,246 @@
+/*
+  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/fileformats/vcard/Address.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Address.as
new file mode 100755 (executable)
index 0000000..a368ffb
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+  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
new file mode 100755 (executable)
index 0000000..071c39e
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+  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
new file mode 100755 (executable)
index 0000000..27f98e4
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+  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
new file mode 100755 (executable)
index 0000000..d6bc283
--- /dev/null
@@ -0,0 +1,54 @@
+/*
+  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
new file mode 100755 (executable)
index 0000000..45c954a
--- /dev/null
@@ -0,0 +1,246 @@
+/*
+  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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..776ac14
--- /dev/null
@@ -0,0 +1,23 @@
+K 25
+svn:wc:ra_dav:version-url
+V 97
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/images
+END
+JPGEncoder.as
+K 25
+svn:wc:ra_dav:version-url
+V 111
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/images/JPGEncoder.as
+END
+PNGEncoder.as
+K 25
+svn:wc:ra_dav:version-url
+V 111
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/images/PNGEncoder.as
+END
+BitString.as
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/images/BitString.as
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/entries
new file mode 100644 (file)
index 0000000..79e6ec9
--- /dev/null
@@ -0,0 +1,130 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/images
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+JPGEncoder.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+4efd4e3ae263119a0f2773d3bc4a219b
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+19125
+\f
+PNGEncoder.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+3091aba441141b410f95311d0c056fbb
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5180
+\f
+BitString.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+0c434962bc86c7d528daffe4f2d67077
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1721
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/prop-base/BitString.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/prop-base/BitString.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/prop-base/JPGEncoder.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/prop-base/JPGEncoder.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/prop-base/PNGEncoder.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/prop-base/PNGEncoder.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/text-base/BitString.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/text-base/BitString.as.svn-base
new file mode 100644 (file)
index 0000000..b5c2b84
--- /dev/null
@@ -0,0 +1,39 @@
+/*\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/.svn/text-base/JPGEncoder.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/text-base/JPGEncoder.as.svn-base
new file mode 100644 (file)
index 0000000..100d7e9
--- /dev/null
@@ -0,0 +1,648 @@
+/*\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/.svn/text-base/PNGEncoder.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/.svn/text-base/PNGEncoder.as.svn-base
new file mode 100644 (file)
index 0000000..83c95f6
--- /dev/null
@@ -0,0 +1,141 @@
+/*\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/images/BitString.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/images/BitString.as
new file mode 100755 (executable)
index 0000000..b5c2b84
--- /dev/null
@@ -0,0 +1,39 @@
+/*\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
new file mode 100755 (executable)
index 0000000..100d7e9
--- /dev/null
@@ -0,0 +1,648 @@
+/*\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
new file mode 100755 (executable)
index 0000000..83c95f6
--- /dev/null
@@ -0,0 +1,141 @@
+/*\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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..16ba9d9
--- /dev/null
@@ -0,0 +1,35 @@
+K 25
+svn:wc:ra_dav:version-url
+V 94
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net
+END
+DynamicURLLoader.as
+K 25
+svn:wc:ra_dav:version-url
+V 114
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/DynamicURLLoader.as
+END
+URI.as
+K 25
+svn:wc:ra_dav:version-url
+V 101
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/URI.as
+END
+URIEncodingBitmap.as
+K 25
+svn:wc:ra_dav:version-url
+V 115
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/URIEncodingBitmap.as
+END
+MimeTypeMap.as
+K 25
+svn:wc:ra_dav:version-url
+V 109
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/MimeTypeMap.as
+END
+IURIResolver.as
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/IURIResolver.as
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/entries
new file mode 100644 (file)
index 0000000..b95a22a
--- /dev/null
@@ -0,0 +1,201 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+DynamicURLLoader.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+48ab59e38522d8db744a8f9d0828d8cd
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2199
+\f
+URI.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+66c9d8345cedb13ebbd8c53610355dc7
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+76126
+\f
+URIEncodingBitmap.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+f447c72f5d7bc827317f9d81acaa9d4d
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+4372
+\f
+proxies
+dir
+\f
+MimeTypeMap.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+61a17a293b6d72e763a4af64206d4b3f
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6577
+\f
+IURIResolver.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+58c14ad7e1d0eaa8a152b886108951f4
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2976
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/prop-base/DynamicURLLoader.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/prop-base/DynamicURLLoader.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/prop-base/IURIResolver.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/prop-base/IURIResolver.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/prop-base/MimeTypeMap.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/prop-base/MimeTypeMap.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/prop-base/URI.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/prop-base/URI.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/prop-base/URIEncodingBitmap.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/prop-base/URIEncodingBitmap.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/text-base/DynamicURLLoader.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/text-base/DynamicURLLoader.as.svn-base
new file mode 100644 (file)
index 0000000..2a9eea1
--- /dev/null
@@ -0,0 +1,55 @@
+/*\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/.svn/text-base/IURIResolver.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/text-base/IURIResolver.as.svn-base
new file mode 100644 (file)
index 0000000..3610cc2
--- /dev/null
@@ -0,0 +1,76 @@
+/*\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/.svn/text-base/MimeTypeMap.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/text-base/MimeTypeMap.as.svn-base
new file mode 100644 (file)
index 0000000..32e40a4
--- /dev/null
@@ -0,0 +1,196 @@
+/*
+  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/.svn/text-base/URI.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/text-base/URI.as.svn-base
new file mode 100644 (file)
index 0000000..d43ce9f
--- /dev/null
@@ -0,0 +1,2466 @@
+/*\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/.svn/text-base/URIEncodingBitmap.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/.svn/text-base/URIEncodingBitmap.as.svn-base
new file mode 100644 (file)
index 0000000..d786b33
--- /dev/null
@@ -0,0 +1,139 @@
+/*\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/DynamicURLLoader.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/DynamicURLLoader.as
new file mode 100755 (executable)
index 0000000..2a9eea1
--- /dev/null
@@ -0,0 +1,55 @@
+/*\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
new file mode 100755 (executable)
index 0000000..3610cc2
--- /dev/null
@@ -0,0 +1,76 @@
+/*\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
new file mode 100755 (executable)
index 0000000..32e40a4
--- /dev/null
@@ -0,0 +1,196 @@
+/*
+  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
new file mode 100755 (executable)
index 0000000..d43ce9f
--- /dev/null
@@ -0,0 +1,2466 @@
+/*\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
new file mode 100755 (executable)
index 0000000..d786b33
--- /dev/null
@@ -0,0 +1,139 @@
+/*\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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..cd052d6
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 102
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies
+END
+RFC2817Socket.as
+K 25
+svn:wc:ra_dav:version-url
+V 119
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/RFC2817Socket.as
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/.svn/entries
new file mode 100644 (file)
index 0000000..dadd65b
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+RFC2817Socket.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+7d508d055049655cb3fdc51438d86446
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7254
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/.svn/prop-base/RFC2817Socket.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/.svn/prop-base/RFC2817Socket.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/.svn/text-base/RFC2817Socket.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/.svn/text-base/RFC2817Socket.as.svn-base
new file mode 100644 (file)
index 0000000..e73e9e7
--- /dev/null
@@ -0,0 +1,198 @@
+/*\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/net/proxies/RFC2817Socket.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/RFC2817Socket.as
new file mode 100755 (executable)
index 0000000..e73e9e7
--- /dev/null
@@ -0,0 +1,198 @@
+/*\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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..36f22c4
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 100
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/.svn/entries
new file mode 100644 (file)
index 0000000..03bf9f5
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+dict
+dir
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..431af8d
--- /dev/null
@@ -0,0 +1,41 @@
+K 25
+svn:wc:ra_dav:version-url
+V 105
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict
+END
+Response.as
+K 25
+svn:wc:ra_dav:version-url
+V 117
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Response.as
+END
+MatchStrategy.as
+K 25
+svn:wc:ra_dav:version-url
+V 122
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/MatchStrategy.as
+END
+Dict.as
+K 25
+svn:wc:ra_dav:version-url
+V 113
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Dict.as
+END
+Database.as
+K 25
+svn:wc:ra_dav:version-url
+V 117
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Database.as
+END
+Definition.as
+K 25
+svn:wc:ra_dav:version-url
+V 119
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Definition.as
+END
+DictionaryServer.as
+K 25
+svn:wc:ra_dav:version-url
+V 125
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/DictionaryServer.as
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/entries
new file mode 100644 (file)
index 0000000..af259d3
--- /dev/null
@@ -0,0 +1,238 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+Response.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+a5d1e834cbefb8516b362e37f2655e8b
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+652
+\f
+MatchStrategy.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+dd7cd19dda9a6aead5f12d6bb5645222
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+626
+\f
+events
+dir
+\f
+Dict.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+5f679d4ee1110eb32d04fadf86fcd963
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+10093
+\f
+Database.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+b7a9f77b04cf8a84a7ec08b4c9c95f18
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+616
+\f
+Definition.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+f23348cf2dbd6f9f1c08784aada623c0
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+696
+\f
+util
+dir
+\f
+DictionaryServer.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+9bc9e6c8b4559b9d47d1106f0f9aff3e
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+509
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Database.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Database.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Definition.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Definition.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Dict.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Dict.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/DictionaryServer.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/DictionaryServer.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/MatchStrategy.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/MatchStrategy.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Response.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Response.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Database.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Database.as.svn-base
new file mode 100644 (file)
index 0000000..0ddeef5
--- /dev/null
@@ -0,0 +1,34 @@
+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/.svn/text-base/Definition.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Definition.as.svn-base
new file mode 100644 (file)
index 0000000..934a330
--- /dev/null
@@ -0,0 +1,39 @@
+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/.svn/text-base/Dict.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Dict.as.svn-base
new file mode 100644 (file)
index 0000000..07d2530
--- /dev/null
@@ -0,0 +1,328 @@
+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/.svn/text-base/DictionaryServer.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/DictionaryServer.as.svn-base
new file mode 100644 (file)
index 0000000..422b603
--- /dev/null
@@ -0,0 +1,28 @@
+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/.svn/text-base/MatchStrategy.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/MatchStrategy.as.svn-base
new file mode 100644 (file)
index 0000000..1e17da3
--- /dev/null
@@ -0,0 +1,34 @@
+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/.svn/text-base/Response.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Response.as.svn-base
new file mode 100644 (file)
index 0000000..619a8e9
--- /dev/null
@@ -0,0 +1,39 @@
+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/Database.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Database.as
new file mode 100755 (executable)
index 0000000..0ddeef5
--- /dev/null
@@ -0,0 +1,34 @@
+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
new file mode 100755 (executable)
index 0000000..934a330
--- /dev/null
@@ -0,0 +1,39 @@
+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
new file mode 100755 (executable)
index 0000000..07d2530
--- /dev/null
@@ -0,0 +1,328 @@
+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
new file mode 100755 (executable)
index 0000000..422b603
--- /dev/null
@@ -0,0 +1,28 @@
+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
new file mode 100755 (executable)
index 0000000..1e17da3
--- /dev/null
@@ -0,0 +1,34 @@
+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
new file mode 100755 (executable)
index 0000000..619a8e9
--- /dev/null
@@ -0,0 +1,39 @@
+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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..4a4fbde
--- /dev/null
@@ -0,0 +1,65 @@
+K 25
+svn:wc:ra_dav:version-url
+V 112
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events
+END
+MatchEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 126
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchEvent.as
+END
+DictionaryServerEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 137
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DictionaryServerEvent.as
+END
+DefinitionHeaderEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 137
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as
+END
+DisconnectedEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 133
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DisconnectedEvent.as
+END
+ConnectedEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 130
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/ConnectedEvent.as
+END
+DatabaseEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 129
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DatabaseEvent.as
+END
+MatchStrategiesEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 136
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchStrategiesEvent.as
+END
+DefinitionEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 131
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionEvent.as
+END
+NoMatchEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 128
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/NoMatchEvent.as
+END
+ErrorEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 126
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/ErrorEvent.as
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/entries
new file mode 100644 (file)
index 0000000..042f523
--- /dev/null
@@ -0,0 +1,368 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+MatchEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+f6f1543eb03ede469b43cff0980a2a33
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+440
+\f
+DictionaryServerEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+51547bc5ab6e6687f61cb4dcf91ee625
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+464
+\f
+DefinitionHeaderEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+496e4c0a8e2aee76ecd57914291e44e3
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+527
+\f
+DisconnectedEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+429c99d96a6b1795994b6ac0ee5f8fc4
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+254
+\f
+ConnectedEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+d39fba30d2f540dedc60575141f1588d
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+245
+\f
+DatabaseEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+cc66ad6f3dba70980dbde9f4925e33aa
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+464
+\f
+MatchStrategiesEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+44bebe3f7ab66cc2200329f5bf726684
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+492
+\f
+DefinitionEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+6b1d74340d3c1754005f01059ec9a0ca
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+537
+\f
+NoMatchEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+3df0110ea24f1bab4627a504a94fe56c
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+239
+\f
+ErrorEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+0f5a3603d3031c7f441251cb17cd9ce4
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+616
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/ConnectedEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/ConnectedEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DatabaseEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DatabaseEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DefinitionEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DefinitionEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DefinitionHeaderEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DefinitionHeaderEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DictionaryServerEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DictionaryServerEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DisconnectedEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DisconnectedEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/ErrorEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/ErrorEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/MatchEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/MatchEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/MatchStrategiesEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/MatchStrategiesEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/NoMatchEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/NoMatchEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/ConnectedEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/ConnectedEvent.as.svn-base
new file mode 100644 (file)
index 0000000..c4a4145
--- /dev/null
@@ -0,0 +1,14 @@
+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/.svn/text-base/DatabaseEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DatabaseEvent.as.svn-base
new file mode 100644 (file)
index 0000000..fdd2cc1
--- /dev/null
@@ -0,0 +1,26 @@
+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/.svn/text-base/DefinitionEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DefinitionEvent.as.svn-base
new file mode 100644 (file)
index 0000000..8107173
--- /dev/null
@@ -0,0 +1,27 @@
+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/.svn/text-base/DefinitionHeaderEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DefinitionHeaderEvent.as.svn-base
new file mode 100644 (file)
index 0000000..e77c402
--- /dev/null
@@ -0,0 +1,26 @@
+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/.svn/text-base/DictionaryServerEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DictionaryServerEvent.as.svn-base
new file mode 100644 (file)
index 0000000..9b406e9
--- /dev/null
@@ -0,0 +1,26 @@
+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/.svn/text-base/DisconnectedEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DisconnectedEvent.as.svn-base
new file mode 100644 (file)
index 0000000..485b3ed
--- /dev/null
@@ -0,0 +1,14 @@
+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/.svn/text-base/ErrorEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/ErrorEvent.as.svn-base
new file mode 100644 (file)
index 0000000..9e5fc7a
--- /dev/null
@@ -0,0 +1,37 @@
+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/.svn/text-base/MatchEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/MatchEvent.as.svn-base
new file mode 100644 (file)
index 0000000..65b8688
--- /dev/null
@@ -0,0 +1,26 @@
+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/.svn/text-base/MatchStrategiesEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/MatchStrategiesEvent.as.svn-base
new file mode 100644 (file)
index 0000000..75b76f8
--- /dev/null
@@ -0,0 +1,26 @@
+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/.svn/text-base/NoMatchEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/NoMatchEvent.as.svn-base
new file mode 100644 (file)
index 0000000..894d1ae
--- /dev/null
@@ -0,0 +1,14 @@
+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/events/ConnectedEvent.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/ConnectedEvent.as
new file mode 100755 (executable)
index 0000000..c4a4145
--- /dev/null
@@ -0,0 +1,14 @@
+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
new file mode 100755 (executable)
index 0000000..fdd2cc1
--- /dev/null
@@ -0,0 +1,26 @@
+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
new file mode 100755 (executable)
index 0000000..8107173
--- /dev/null
@@ -0,0 +1,27 @@
+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
new file mode 100755 (executable)
index 0000000..e77c402
--- /dev/null
@@ -0,0 +1,26 @@
+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
new file mode 100755 (executable)
index 0000000..9b406e9
--- /dev/null
@@ -0,0 +1,26 @@
+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
new file mode 100755 (executable)
index 0000000..485b3ed
--- /dev/null
@@ -0,0 +1,14 @@
+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
new file mode 100755 (executable)
index 0000000..9e5fc7a
--- /dev/null
@@ -0,0 +1,37 @@
+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
new file mode 100755 (executable)
index 0000000..65b8688
--- /dev/null
@@ -0,0 +1,26 @@
+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
new file mode 100755 (executable)
index 0000000..75b76f8
--- /dev/null
@@ -0,0 +1,26 @@
+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
new file mode 100755 (executable)
index 0000000..894d1ae
--- /dev/null
@@ -0,0 +1,14 @@
+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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..2b9217f
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util
+END
+SocketHelper.as
+K 25
+svn:wc:ra_dav:version-url
+V 126
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/SocketHelper.as
+END
+CompleteResponseEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 135
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/CompleteResponseEvent.as
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/entries
new file mode 100644 (file)
index 0000000..cc76f0b
--- /dev/null
@@ -0,0 +1,96 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+SocketHelper.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+040301b1a229316028eececfbb6f9664
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1417
+\f
+CompleteResponseEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+7929dd2f7c63a5e12ed603dcc0f5bd88
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+446
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/prop-base/CompleteResponseEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/prop-base/CompleteResponseEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/prop-base/SocketHelper.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/prop-base/SocketHelper.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/text-base/CompleteResponseEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/text-base/CompleteResponseEvent.as.svn-base
new file mode 100644 (file)
index 0000000..fc552f1
--- /dev/null
@@ -0,0 +1,25 @@
+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/.svn/text-base/SocketHelper.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/text-base/SocketHelper.as.svn-base
new file mode 100644 (file)
index 0000000..feb494b
--- /dev/null
@@ -0,0 +1,49 @@
+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/protocols/dict/util/CompleteResponseEvent.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/CompleteResponseEvent.as
new file mode 100755 (executable)
index 0000000..fc552f1
--- /dev/null
@@ -0,0 +1,25 @@
+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
new file mode 100755 (executable)
index 0000000..feb494b
--- /dev/null
@@ -0,0 +1,49 @@
+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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..3b0cf33
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 104
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/.svn/entries
new file mode 100644 (file)
index 0000000..7421601
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+json
+dir
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..b6e7593
--- /dev/null
@@ -0,0 +1,47 @@
+K 25
+svn:wc:ra_dav:version-url
+V 109
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json
+END
+JSONParseError.as
+K 25
+svn:wc:ra_dav:version-url
+V 127
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONParseError.as
+END
+JSONDecoder.as
+K 25
+svn:wc:ra_dav:version-url
+V 124
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONDecoder.as
+END
+JSONTokenizer.as
+K 25
+svn:wc:ra_dav:version-url
+V 126
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenizer.as
+END
+JSONEncoder.as
+K 25
+svn:wc:ra_dav:version-url
+V 124
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONEncoder.as
+END
+JSON.as
+K 25
+svn:wc:ra_dav:version-url
+V 117
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSON.as
+END
+JSONToken.as
+K 25
+svn:wc:ra_dav:version-url
+V 122
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONToken.as
+END
+JSONTokenType.as
+K 25
+svn:wc:ra_dav:version-url
+V 126
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenType.as
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/entries
new file mode 100644 (file)
index 0000000..a78b6df
--- /dev/null
@@ -0,0 +1,266 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+JSONParseError.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+349b4a6caceeb46730e01e909cc08413
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2883
+\f
+JSONDecoder.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+4adb46e2f6f82c7ad2ddb2102c947397
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6784
+\f
+JSONTokenizer.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+c150c00d14494dd405cc1ace240312f0
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+15517
+\f
+JSONEncoder.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+f2802c0025547d37081a1eb92b604375
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+9173
+\f
+JSON.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+2d5d3261b2d396127a861d771b506feb
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2844
+\f
+JSONToken.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+1306bd9a6d3ccb468510b068fd7bddbf
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3197
+\f
+JSONTokenType.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+26dd8b36a591c987d053b4845719af7b
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2340
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSON.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSON.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONDecoder.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONDecoder.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONEncoder.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONEncoder.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONParseError.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONParseError.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONToken.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONToken.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONTokenType.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONTokenType.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONTokenizer.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONTokenizer.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSON.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSON.as.svn-base
new file mode 100644 (file)
index 0000000..bfee6d9
--- /dev/null
@@ -0,0 +1,85 @@
+/*\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/.svn/text-base/JSONDecoder.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONDecoder.as.svn-base
new file mode 100644 (file)
index 0000000..82ade19
--- /dev/null
@@ -0,0 +1,221 @@
+/*\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/.svn/text-base/JSONEncoder.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONEncoder.as.svn-base
new file mode 100644 (file)
index 0000000..44469d0
--- /dev/null
@@ -0,0 +1,299 @@
+/*\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/.svn/text-base/JSONParseError.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONParseError.as.svn-base
new file mode 100644 (file)
index 0000000..5aec1e3
--- /dev/null
@@ -0,0 +1,87 @@
+/*\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/.svn/text-base/JSONToken.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONToken.as.svn-base
new file mode 100644 (file)
index 0000000..258d63c
--- /dev/null
@@ -0,0 +1,104 @@
+/*\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/.svn/text-base/JSONTokenType.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONTokenType.as.svn-base
new file mode 100644 (file)
index 0000000..fceb3f0
--- /dev/null
@@ -0,0 +1,67 @@
+/*\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/.svn/text-base/JSONTokenizer.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONTokenizer.as.svn-base
new file mode 100644 (file)
index 0000000..dc36bfc
--- /dev/null
@@ -0,0 +1,583 @@
+/*\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/serialization/json/JSON.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSON.as
new file mode 100755 (executable)
index 0000000..bfee6d9
--- /dev/null
@@ -0,0 +1,85 @@
+/*\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
new file mode 100755 (executable)
index 0000000..82ade19
--- /dev/null
@@ -0,0 +1,221 @@
+/*\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
new file mode 100755 (executable)
index 0000000..44469d0
--- /dev/null
@@ -0,0 +1,299 @@
+/*\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
new file mode 100755 (executable)
index 0000000..5aec1e3
--- /dev/null
@@ -0,0 +1,87 @@
+/*\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
new file mode 100755 (executable)
index 0000000..258d63c
--- /dev/null
@@ -0,0 +1,104 @@
+/*\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
new file mode 100755 (executable)
index 0000000..fceb3f0
--- /dev/null
@@ -0,0 +1,67 @@
+/*\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
new file mode 100755 (executable)
index 0000000..dc36bfc
--- /dev/null
@@ -0,0 +1,583 @@
+/*\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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..b8dfb0c
--- /dev/null
@@ -0,0 +1,47 @@
+K 25
+svn:wc:ra_dav:version-url
+V 96
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils
+END
+XMLUtil.as
+K 25
+svn:wc:ra_dav:version-url
+V 107
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils/XMLUtil.as
+END
+DictionaryUtil.as
+K 25
+svn:wc:ra_dav:version-url
+V 114
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils/DictionaryUtil.as
+END
+StringUtil.as
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils/StringUtil.as
+END
+IntUtil.as
+K 25
+svn:wc:ra_dav:version-url
+V 107
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils/IntUtil.as
+END
+DateUtil.as
+K 25
+svn:wc:ra_dav:version-url
+V 108
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils/DateUtil.as
+END
+NumberFormatter.as
+K 25
+svn:wc:ra_dav:version-url
+V 115
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils/NumberFormatter.as
+END
+ArrayUtil.as
+K 25
+svn:wc:ra_dav:version-url
+V 109
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils/ArrayUtil.as
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/entries
new file mode 100644 (file)
index 0000000..7517726
--- /dev/null
@@ -0,0 +1,266 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+XMLUtil.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+e7d431a8faace3c7cc260350badb6551
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+4849
+\f
+DictionaryUtil.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+5396745afdc7b6f2ceeb6848fb285bf2
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2633
+\f
+StringUtil.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+68e78183b17db17eb4af4d839dbb78e1
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7381
+\f
+IntUtil.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+8ff3c295004e20d71fbdf1e3cb3c18f9
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3409
+\f
+DateUtil.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+0e7a4c4e21c625082da01a156d07bfaf
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+17621
+\f
+NumberFormatter.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+51b00659d4dfdb94dc7f8346b703c670
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2429
+\f
+ArrayUtil.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+99a9bf2faccdde75cb022edeb29117f2
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5406
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/ArrayUtil.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/ArrayUtil.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/DateUtil.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/DateUtil.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/DictionaryUtil.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/DictionaryUtil.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/IntUtil.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/IntUtil.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/NumberFormatter.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/NumberFormatter.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/StringUtil.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/StringUtil.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/XMLUtil.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/XMLUtil.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/text-base/ArrayUtil.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/text-base/ArrayUtil.as.svn-base
new file mode 100644 (file)
index 0000000..e656120
--- /dev/null
@@ -0,0 +1,187 @@
+/*\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/.svn/text-base/DateUtil.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/text-base/DateUtil.as.svn-base
new file mode 100644 (file)
index 0000000..a49fe43
--- /dev/null
@@ -0,0 +1,699 @@
+/*
+  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/.svn/text-base/DictionaryUtil.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/text-base/DictionaryUtil.as.svn-base
new file mode 100644 (file)
index 0000000..9552ef4
--- /dev/null
@@ -0,0 +1,87 @@
+/*
+  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/.svn/text-base/IntUtil.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/text-base/IntUtil.as.svn-base
new file mode 100644 (file)
index 0000000..8c812fe
--- /dev/null
@@ -0,0 +1,99 @@
+/*\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/.svn/text-base/NumberFormatter.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/text-base/NumberFormatter.as.svn-base
new file mode 100644 (file)
index 0000000..6fe12e1
--- /dev/null
@@ -0,0 +1,74 @@
+/*\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/.svn/text-base/StringUtil.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/text-base/StringUtil.as.svn-base
new file mode 100644 (file)
index 0000000..6aa1979
--- /dev/null
@@ -0,0 +1,270 @@
+/*
+  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/.svn/text-base/XMLUtil.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/.svn/text-base/XMLUtil.as.svn-base
new file mode 100644 (file)
index 0000000..24fce00
--- /dev/null
@@ -0,0 +1,168 @@
+/*\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/utils/ArrayUtil.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/utils/ArrayUtil.as
new file mode 100755 (executable)
index 0000000..e656120
--- /dev/null
@@ -0,0 +1,187 @@
+/*\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
new file mode 100755 (executable)
index 0000000..a49fe43
--- /dev/null
@@ -0,0 +1,699 @@
+/*
+  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
new file mode 100755 (executable)
index 0000000..9552ef4
--- /dev/null
@@ -0,0 +1,87 @@
+/*
+  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
new file mode 100755 (executable)
index 0000000..8c812fe
--- /dev/null
@@ -0,0 +1,99 @@
+/*\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
new file mode 100755 (executable)
index 0000000..6fe12e1
--- /dev/null
@@ -0,0 +1,74 @@
+/*\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
new file mode 100755 (executable)
index 0000000..6aa1979
--- /dev/null
@@ -0,0 +1,270 @@
+/*
+  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
new file mode 100755 (executable)
index 0000000..24fce00
--- /dev/null
@@ -0,0 +1,168 @@
+/*\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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..d4fc510
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 98
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/webapis
+END
+URLLoaderBase.as
+K 25
+svn:wc:ra_dav:version-url
+V 115
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/URLLoaderBase.as
+END
+ServiceBase.as
+K 25
+svn:wc:ra_dav:version-url
+V 113
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/ServiceBase.as
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/entries
new file mode 100644 (file)
index 0000000..891c9dd
--- /dev/null
@@ -0,0 +1,99 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/webapis
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+events
+dir
+\f
+URLLoaderBase.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+ade390b4d7b27cd070bed1d19493cfc5
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3614
+\f
+ServiceBase.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+65f58905504330880a8419d0932f2e18
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1841
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/prop-base/ServiceBase.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/prop-base/ServiceBase.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/prop-base/URLLoaderBase.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/prop-base/URLLoaderBase.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/text-base/ServiceBase.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/text-base/ServiceBase.as.svn-base
new file mode 100644 (file)
index 0000000..7080287
--- /dev/null
@@ -0,0 +1,48 @@
+/*\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/.svn/text-base/URLLoaderBase.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/.svn/text-base/URLLoaderBase.as.svn-base
new file mode 100644 (file)
index 0000000..fc0085c
--- /dev/null
@@ -0,0 +1,108 @@
+/*\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/ServiceBase.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/ServiceBase.as
new file mode 100755 (executable)
index 0000000..7080287
--- /dev/null
@@ -0,0 +1,48 @@
+/*\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
new file mode 100755 (executable)
index 0000000..fc0085c
--- /dev/null
@@ -0,0 +1,108 @@
+/*\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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..7d8fcf2
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 105
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events
+END
+ServiceEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 121
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/ServiceEvent.as
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/.svn/entries
new file mode 100644 (file)
index 0000000..ab0107b
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+ServiceEvent.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+3fda6d0eb0260905ef7d5a0d58e25b29
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2445
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/.svn/prop-base/ServiceEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/.svn/prop-base/ServiceEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/.svn/text-base/ServiceEvent.as.svn-base b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/.svn/text-base/ServiceEvent.as.svn-base
new file mode 100644 (file)
index 0000000..d1aaf3d
--- /dev/null
@@ -0,0 +1,75 @@
+/*\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/com/adobe/webapis/events/ServiceEvent.as b/apps/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/ServiceEvent.as
new file mode 100755 (executable)
index 0000000..d1aaf3d
--- /dev/null
@@ -0,0 +1,75 @@
+/*\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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/example/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..3cb16ea
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 88
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example
+END
+cancel.png
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/cancel.png
+END
+index.php
+K 25
+svn:wc:ra_dav:version-url
+V 98
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/index.php
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/example/.svn/entries
new file mode 100644 (file)
index 0000000..a1846de
--- /dev/null
@@ -0,0 +1,108 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+_notes
+dir
+\f
+scripts
+dir
+\f
+uploads
+dir
+\f
+css
+dir
+\f
+cancel.png
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+9ce92e32e120ce9162498c92e4348ec0
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+603
+\f
+index.php
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+8f02dacc9cb41b62b53f1bc403047686
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1284
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/.svn/prop-base/cancel.png.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/.svn/prop-base/cancel.png.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/.svn/prop-base/index.php.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/.svn/prop-base/index.php.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/.svn/text-base/cancel.png.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/.svn/text-base/cancel.png.svn-base
new file mode 100644 (file)
index 0000000..1c062ae
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/example/.svn/text-base/cancel.png.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/.svn/text-base/index.php.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/.svn/text-base/index.php.svn-base
new file mode 100644 (file)
index 0000000..769d11c
--- /dev/null
@@ -0,0 +1,31 @@
+<!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/_notes/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/example/_notes/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..c0552a6
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 95
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/_notes
+END
+dwsync.xml
+K 25
+svn:wc:ra_dav:version-url
+V 106
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/_notes/dwsync.xml
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/_notes/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/example/_notes/.svn/entries
new file mode 100644 (file)
index 0000000..dd272fc
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/_notes
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+dwsync.xml
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+1d0d08a0a610122fd7ca380a077cd91c
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+317
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/_notes/.svn/prop-base/dwsync.xml.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/_notes/.svn/prop-base/dwsync.xml.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/_notes/.svn/text-base/dwsync.xml.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/_notes/.svn/text-base/dwsync.xml.svn-base
new file mode 100644 (file)
index 0000000..36ecaa5
--- /dev/null
@@ -0,0 +1,5 @@
+<?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/_notes/dwsync.xml b/apps/filebrowser/media/filebrowser/uploadify/example/_notes/dwsync.xml
new file mode 100755 (executable)
index 0000000..36ecaa5
--- /dev/null
@@ -0,0 +1,5 @@
+<?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
new file mode 100755 (executable)
index 0000000..1c062ae
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/example/cancel.png differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..8e3e032
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 92
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/css
+END
+uploadify.css
+K 25
+svn:wc:ra_dav:version-url
+V 106
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/css/uploadify.css
+END
+default.css
+K 25
+svn:wc:ra_dav:version-url
+V 104
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/css/default.css
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/entries
new file mode 100644 (file)
index 0000000..2bba155
--- /dev/null
@@ -0,0 +1,99 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/css
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+uploadify.css
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+edec394bac0dc3cf3a17da3837abd642
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1792
+\f
+_notes
+dir
+\f
+default.css
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+0ad07a2134f8f26293cd2b5420b2d6f7
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+177
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/prop-base/default.css.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/prop-base/default.css.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/prop-base/uploadify.css.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/prop-base/uploadify.css.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/text-base/default.css.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/text-base/default.css.svn-base
new file mode 100644 (file)
index 0000000..ec5902d
--- /dev/null
@@ -0,0 +1,10 @@
+body {\r
+       font: 12px/16px Arial, Helvetica, sans-serif;\r
+}\r
+#fileQueue {\r
+       width: 400px;\r
+       height: 300px;\r
+       overflow: auto;\r
+       border: 1px solid #E5E5E5;\r
+       margin-bottom: 10px;\r
+}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/text-base/uploadify.css.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/css/.svn/text-base/uploadify.css.svn-base
new file mode 100644 (file)
index 0000000..0cf8c0e
--- /dev/null
@@ -0,0 +1,53 @@
+/*\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
+.uploadifyQueueItem {\r
+       font: 11px Verdana, Geneva, sans-serif;\r
+       border: 2px solid #E5E5E5;\r
+       background-color: #F5F5F5;\r
+       margin-top: 5px;\r
+       padding: 10px;\r
+       width: 350px;\r
+}\r
+.uploadifyError {\r
+       border: 2px solid #FBCBBC !important;\r
+       background-color: #FDE5DD !important;\r
+}\r
+.uploadifyQueueItem .cancel {\r
+       float: right;\r
+}\r
+.uploadifyProgress {\r
+       background-color: #FFFFFF;\r
+       border-top: 1px solid #808080;\r
+       border-left: 1px solid #808080;\r
+       border-right: 1px solid #C5C5C5;\r
+       border-bottom: 1px solid #C5C5C5;\r
+       margin-top: 10px;\r
+       width: 100%;\r
+}\r
+.uploadifyProgressBar {\r
+       background-color: #0099FF;\r
+       width: 1px;\r
+       height: 3px;\r
+}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..98471dc
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/css/_notes
+END
+dwsync.xml
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/css/_notes/dwsync.xml
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/.svn/entries
new file mode 100644 (file)
index 0000000..e3cddb4
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/css/_notes
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+dwsync.xml
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+5290468e614f6b7a8ec013b682853d43
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+322
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/.svn/prop-base/dwsync.xml.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/.svn/prop-base/dwsync.xml.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/.svn/text-base/dwsync.xml.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/.svn/text-base/dwsync.xml.svn-base
new file mode 100644 (file)
index 0000000..049ffa5
--- /dev/null
@@ -0,0 +1,5 @@
+<?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/_notes/dwsync.xml b/apps/filebrowser/media/filebrowser/uploadify/example/css/_notes/dwsync.xml
new file mode 100755 (executable)
index 0000000..049ffa5
--- /dev/null
@@ -0,0 +1,5 @@
+<?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
new file mode 100755 (executable)
index 0000000..ec5902d
--- /dev/null
@@ -0,0 +1,10 @@
+body {\r
+       font: 12px/16px Arial, Helvetica, sans-serif;\r
+}\r
+#fileQueue {\r
+       width: 400px;\r
+       height: 300px;\r
+       overflow: auto;\r
+       border: 1px solid #E5E5E5;\r
+       margin-bottom: 10px;\r
+}
\ 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
new file mode 100755 (executable)
index 0000000..0cf8c0e
--- /dev/null
@@ -0,0 +1,53 @@
+/*\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
+.uploadifyQueueItem {\r
+       font: 11px Verdana, Geneva, sans-serif;\r
+       border: 2px solid #E5E5E5;\r
+       background-color: #F5F5F5;\r
+       margin-top: 5px;\r
+       padding: 10px;\r
+       width: 350px;\r
+}\r
+.uploadifyError {\r
+       border: 2px solid #FBCBBC !important;\r
+       background-color: #FDE5DD !important;\r
+}\r
+.uploadifyQueueItem .cancel {\r
+       float: right;\r
+}\r
+.uploadifyProgress {\r
+       background-color: #FFFFFF;\r
+       border-top: 1px solid #808080;\r
+       border-left: 1px solid #808080;\r
+       border-right: 1px solid #C5C5C5;\r
+       border-bottom: 1px solid #C5C5C5;\r
+       margin-top: 10px;\r
+       width: 100%;\r
+}\r
+.uploadifyProgressBar {\r
+       background-color: #0099FF;\r
+       width: 1px;\r
+       height: 3px;\r
+}
\ 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
new file mode 100755 (executable)
index 0000000..769d11c
--- /dev/null
@@ -0,0 +1,31 @@
+<!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/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..ebb7812
--- /dev/null
@@ -0,0 +1,47 @@
+K 25
+svn:wc:ra_dav:version-url
+V 96
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts
+END
+swfobject.js
+K 25
+svn:wc:ra_dav:version-url
+V 109
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/swfobject.js
+END
+uploadify.php
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/uploadify.php
+END
+check.php
+K 25
+svn:wc:ra_dav:version-url
+V 106
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/check.php
+END
+uploadify.swf
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/uploadify.swf
+END
+jquery.uploadify.v2.1.0.min.js
+K 25
+svn:wc:ra_dav:version-url
+V 127
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/jquery.uploadify.v2.1.0.min.js
+END
+jquery-1.3.2.min.js
+K 25
+svn:wc:ra_dav:version-url
+V 116
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/jquery-1.3.2.min.js
+END
+expressInstall.swf
+K 25
+svn:wc:ra_dav:version-url
+V 115
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/expressInstall.swf
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/entries
new file mode 100644 (file)
index 0000000..df5485f
--- /dev/null
@@ -0,0 +1,269 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+swfobject.js
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+892a543f3abb54e8ec1ada55be3b0649
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+10220
+\f
+uploadify.php
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+18002e871847e9e3ae656a35d5e24cbe
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1932
+\f
+check.php
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+c409eb2cfd793515f98f0781fea3ef15
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1404
+\f
+_notes
+dir
+\f
+uploadify.swf
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+ed069be276d587e0b24cedc3d3a48738
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+23119
+\f
+jquery.uploadify.v2.1.0.min.js
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+4f1ceab5d5c04168fbef69362742bc6c
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7563
+\f
+jquery-1.3.2.min.js
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+bb381e2d19d8eace86b34d20759491a5
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+57254
+\f
+expressInstall.swf
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+7b65fbfaec8b2955090389af60646e8b
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+727
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/check.php.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/check.php.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/expressInstall.swf.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/expressInstall.swf.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/jquery-1.3.2.min.js.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/jquery-1.3.2.min.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/jquery.uploadify.v2.1.0.min.js.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/jquery.uploadify.v2.1.0.min.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/swfobject.js.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/swfobject.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/uploadify.php.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/uploadify.php.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/uploadify.swf.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/prop-base/uploadify.swf.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/check.php.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/check.php.svn-base
new file mode 100644 (file)
index 0000000..d7dc571
--- /dev/null
@@ -0,0 +1,35 @@
+<?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/.svn/text-base/expressInstall.swf.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/expressInstall.swf.svn-base
new file mode 100644 (file)
index 0000000..0fbf8fc
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/expressInstall.swf.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/jquery-1.3.2.min.js.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/jquery-1.3.2.min.js.svn-base
new file mode 100644 (file)
index 0000000..b1ae21d
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * 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/.svn/text-base/jquery.uploadify.v2.1.0.min.js.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/jquery.uploadify.v2.1.0.min.js.svn-base
new file mode 100644 (file)
index 0000000..04592ff
--- /dev/null
@@ -0,0 +1,26 @@
+/*\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
+\r
+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/.svn/text-base/swfobject.js.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/swfobject.js.svn-base
new file mode 100644 (file)
index 0000000..8eafe9d
--- /dev/null
@@ -0,0 +1,4 @@
+/*     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/.svn/text-base/uploadify.php.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/uploadify.php.svn-base
new file mode 100644 (file)
index 0000000..8bf14a6
--- /dev/null
@@ -0,0 +1,46 @@
+<?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/.svn/text-base/uploadify.swf.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/uploadify.swf.svn-base
new file mode 100644 (file)
index 0000000..4d27952
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/.svn/text-base/uploadify.swf.svn-base differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..d8daf49
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 103
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/_notes
+END
+dwsync.xml
+K 25
+svn:wc:ra_dav:version-url
+V 114
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/dwsync.xml
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/.svn/entries
new file mode 100644 (file)
index 0000000..89f38db
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/_notes
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+dwsync.xml
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+a095283fba302c68c7f695198d29f450
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1007
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/.svn/prop-base/dwsync.xml.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/.svn/prop-base/dwsync.xml.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/.svn/text-base/dwsync.xml.svn-base b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/.svn/text-base/dwsync.xml.svn-base
new file mode 100644 (file)
index 0000000..13ca043
--- /dev/null
@@ -0,0 +1,10 @@
+<?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/_notes/dwsync.xml b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/dwsync.xml
new file mode 100755 (executable)
index 0000000..13ca043
--- /dev/null
@@ -0,0 +1,10 @@
+<?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
new file mode 100755 (executable)
index 0000000..d7dc571
--- /dev/null
@@ -0,0 +1,35 @@
+<?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
new file mode 100755 (executable)
index 0000000..0fbf8fc
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/expressInstall.swf 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
new file mode 100755 (executable)
index 0000000..b1ae21d
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * 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
new file mode 100755 (executable)
index 0000000..04592ff
--- /dev/null
@@ -0,0 +1,26 @@
+/*\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
+\r
+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
new file mode 100755 (executable)
index 0000000..8eafe9d
--- /dev/null
@@ -0,0 +1,4 @@
+/*     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
new file mode 100755 (executable)
index 0000000..8bf14a6
--- /dev/null
@@ -0,0 +1,46 @@
+<?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
new file mode 100755 (executable)
index 0000000..4d27952
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/example/scripts/uploadify.swf differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/uploads/.svn/all-wcprops b/apps/filebrowser/media/filebrowser/uploadify/example/uploads/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..95ccd61
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 96
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/uploads
+END
diff --git a/apps/filebrowser/media/filebrowser/uploadify/example/uploads/.svn/entries b/apps/filebrowser/media/filebrowser/uploadify/example/uploads/.svn/entries
new file mode 100644 (file)
index 0000000..74afe08
--- /dev/null
@@ -0,0 +1,28 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/uploads
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
diff --git a/apps/filebrowser/media/filebrowser/uploadify/expressInstall.swf b/apps/filebrowser/media/filebrowser/uploadify/expressInstall.swf
new file mode 100755 (executable)
index 0000000..0fbf8fc
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/expressInstall.swf 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
new file mode 100755 (executable)
index 0000000..b1ae21d
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * 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
new file mode 100755 (executable)
index 0000000..9a78cd3
--- /dev/null
@@ -0,0 +1,258 @@
+/*\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
+\r
+if(jQuery)(\r
+       function(jQuery){\r
+               jQuery.extend(jQuery.fn,{\r
+                       uploadify:function(options) {\r
+                               jQuery(this).each(function(){\r
+                                       settings = jQuery.extend({\r
+                                       id             : jQuery(this).attr('id'), // The ID of the object being Uploadified\r
+                                       uploader       : 'uploadify.swf', // The path to the uploadify swf file\r
+                                       script         : 'uploadify.php', // The path to the uploadify backend upload script\r
+                                       expressInstall : null, // The path to the express install swf file\r
+                                       folder         : '', // The path to the upload folder\r
+                                       height         : 30, // The height of the flash button\r
+                                       width          : 110, // The width of the flash button\r
+                                       cancelImg      : 'cancel.png', // The path to the cancel image for the default file queue item container\r
+                                       wmode          : 'opaque', // The wmode of the flash file\r
+                                       scriptAccess   : 'sameDomain', // Set to "always" to allow script access across domains\r
+                                       fileDataName   : 'Filedata', // The name of the file collection object in the backend upload script\r
+                                       method         : 'POST', // The method for sending variables to the backend upload script\r
+                                       queueSizeLimit : 999, // The maximum size of the file queue\r
+                                       simUploadLimit : 1, // The number of simultaneous uploads allowed\r
+                                       queueID        : false, // The optional ID of the queue container\r
+                                       displayData    : 'percentage', // Set to "speed" to show the upload speed in the default queue item\r
+                                       onInit         : function() {}, // Function to run when uploadify is initialized\r
+                                       onSelect       : function() {}, // Function to run when a file is selected\r
+                                       onQueueFull    : function() {}, // Function to run when the queue reaches capacity\r
+                                       onCheck        : function() {}, // Function to run when script checks for duplicate files on the server\r
+                                       onCancel       : function() {}, // Function to run when an item is cleared from the queue\r
+                                       onError        : function() {}, // Function to run when an upload item returns an error\r
+                                       onProgress     : function() {}, // Function to run each time the upload progress is updated\r
+                                       onComplete     : function() {}, // Function to run when an upload is completed\r
+                                       onAllComplete  : function() {}  // Functino to run when all uploads are completed\r
+                               }, options);\r
+                               var pagePath = location.pathname;\r
+                               pagePath = pagePath.split('/');\r
+                               pagePath.pop();\r
+                               pagePath = pagePath.join('/') + '/';\r
+                               var data = {};\r
+                               data.uploadifyID = settings.id;\r
+                               data.pagepath = pagePath;\r
+                               if (settings.buttonImg) data.buttonImg = escape(settings.buttonImg);\r
+                               if (settings.buttonText) data.buttonText = escape(settings.buttonText);\r
+                               if (settings.rollover) data.rollover = true;\r
+                               data.script = settings.script;\r
+                               data.folder = escape(settings.folder);\r
+                               if (settings.scriptData) {\r
+                                       var scriptDataString = '';\r
+                                       for (var name in settings.scriptData) {\r
+                                               scriptDataString += '&' + name + '=' + settings.scriptData[name];\r
+                                       }\r
+                                       data.scriptData = escape(scriptDataString.substr(1));\r
+                               }\r
+                               data.width          = settings.width;\r
+                               data.height         = settings.height;\r
+                               data.wmode          = settings.wmode;\r
+                               data.method         = settings.method;\r
+                               data.queueSizeLimit = settings.queueSizeLimit;\r
+                               data.simUploadLimit = settings.simUploadLimit;\r
+                               if (settings.hideButton)   data.hideButton   = true;\r
+                               if (settings.fileDesc)     data.fileDesc     = settings.fileDesc;\r
+                               if (settings.fileExt)      data.fileExt      = settings.fileExt;\r
+                               if (settings.multi)        data.multi        = true;\r
+                               if (settings.auto)         data.auto         = true;\r
+                               if (settings.sizeLimit)    data.sizeLimit    = settings.sizeLimit;\r
+                               if (settings.checkScript)  data.checkScript  = settings.checkScript;\r
+                               if (settings.fileDataName) data.fileDataName = settings.fileDataName;\r
+                               if (settings.queueID)      data.queueID      = settings.queueID;\r
+                               if (settings.onInit() !== false) {\r
+                                       jQuery(this).css('display','none');\r
+                                       jQuery(this).after('<div id="' + jQuery(this).attr('id') + 'Uploader"></div>');\r
+                                       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});\r
+                                       if (settings.queueID == false) {\r
+                                               jQuery("#" + jQuery(this).attr('id') + "Uploader").after('<div id="' + jQuery(this).attr('id') + 'Queue" class="uploadifyQueue"></div>');\r
+                                       }\r
+                               }\r
+                               if (typeof(settings.onOpen) == 'function') {\r
+                                       jQuery(this).bind("uploadifyOpen", settings.onOpen);\r
+                               }\r
+                               jQuery(this).bind("uploadifySelect", {'action': settings.onSelect, 'queueID': settings.queueID}, function(event, ID, fileObj) {\r
+                                       if (event.data.action(event, ID, fileObj) !== false) {\r
+                                               var byteSize = Math.round(fileObj.size / 1024 * 100) * .01;\r
+                                               var suffix = 'KB';\r
+                                               if (byteSize > 1000) {\r
+                                                       byteSize = Math.round(byteSize *.001 * 100) * .01;\r
+                                                       suffix = 'MB';\r
+                                               }\r
+                                               var sizeParts = byteSize.toString().split('.');\r
+                                               if (sizeParts.length > 1) {\r
+                                                       byteSize = sizeParts[0] + '.' + sizeParts[1].substr(0,2);\r
+                                               } else {\r
+                                                       byteSize = sizeParts[0];\r
+                                               }\r
+                                               if (fileObj.name.length > 20) {\r
+                                                       fileName = fileObj.name.substr(0,20) + '...';\r
+                                               } else {\r
+                                                       fileName = fileObj.name;\r
+                                               }\r
+                                               queue = '#' + jQuery(this).attr('id') + 'Queue';\r
+                                               if (event.data.queueID) {\r
+                                                       queue = '#' + event.data.queueID;\r
+                                               }\r
+                                               jQuery(queue).append('<div id="' + jQuery(this).attr('id') + ID + '" class="uploadifyQueueItem">\\r
+                                                               <div class="cancel">\\r
+                                                                       <a href="javascript:jQuery(\'#' + jQuery(this).attr('id') + '\').uploadifyCancel(\'' + ID + '\')"><img src="' + settings.cancelImg + '" border="0" /></a>\\r
+                                                               </div>\\r
+                                                               <span class="fileName">' + fileName + ' (' + byteSize + suffix + ')</span><span class="percentage"></span>\\r
+                                                               <div class="uploadifyProgress">\\r
+                                                                       <div id="' + jQuery(this).attr('id') + ID + 'ProgressBar" class="uploadifyProgressBar"><!--Progress Bar--></div>\\r
+                                                               </div>\\r
+                                                       </div>');\r
+                                       }\r
+                               });\r
+                               if (typeof(settings.onSelectOnce) == 'function') {\r
+                                       jQuery(this).bind("uploadifySelectOnce", settings.onSelectOnce);\r
+                               }\r
+                               jQuery(this).bind("uploadifyQueueFull", {'action': settings.onQueueFull}, function(event, queueSizeLimit) {\r
+                                       if (event.data.action(event, queueSizeLimit) !== false) {\r
+                                               alert('The queue is full.  The max size is ' + queueSizeLimit + '.');\r
+                                       }\r
+                               });\r
+                               jQuery(this).bind("uploadifyCheckExist", {'action': settings.onCheck}, function(event, checkScript, fileQueueObj, folder, single) {\r
+                                       var postData = new Object();\r
+                                       postData = fileQueueObj;\r
+                                       postData.folder = pagePath + folder;\r
+                                       if (single) {\r
+                                               for (var ID in fileQueueObj) {\r
+                                                       var singleFileID = ID;\r
+                                               }\r
+                                       }\r
+                                       jQuery.post(checkScript, postData, function(data) {\r
+                                               for(var key in data) {\r
+                                                       if (event.data.action(event, checkScript, fileQueueObj, folder, single) !== false) {\r
+                                                               var replaceFile = confirm("Do you want to replace the file " + data[key] + "?");\r
+                                                               if (!replaceFile) {\r
+                                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').cancelFileUpload(key, true,true);\r
+                                                               }\r
+                                                       }\r
+                                               }\r
+                                               if (single) {\r
+                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').startFileUpload(singleFileID, true);\r
+                                               } else {\r
+                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').startFileUpload(null, true);\r
+                                               }\r
+                                       }, "json");\r
+                               });\r
+                               jQuery(this).bind("uploadifyCancel", {'action': settings.onCancel}, function(event, ID, fileObj, data, clearFast) {\r
+                                       if (event.data.action(event, ID, fileObj, data, clearFast) !== false) {\r
+                                               var fadeSpeed = (clearFast == true) ? 0 : 250;\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID).fadeOut(fadeSpeed, function() { jQuery(this).remove() });\r
+                                       }\r
+                               });\r
+                               if (typeof(settings.onClearQueue) == 'function') {\r
+                                       jQuery(this).bind("uploadifyClearQueue", settings.onClearQueue);\r
+                               }\r
+                               var errorArray = [];\r
+                               jQuery(this).bind("uploadifyError", {'action': settings.onError}, function(event, ID, fileObj, errorObj) {\r
+                                       if (event.data.action(event, ID, fileObj, errorObj) !== false) {\r
+                                               var fileArray = new Array(ID, fileObj, errorObj);\r
+                                               errorArray.push(fileArray);\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(" - " + errorObj.type + " Error");\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID).addClass('uploadifyError');\r
+                                       }\r
+                               });\r
+                               jQuery(this).bind("uploadifyProgress", {'action': settings.onProgress, 'toDisplay': settings.displayData}, function(event, ID, fileObj, data) {\r
+                                       if (event.data.action(event, ID, fileObj, data) !== false) {\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + "ProgressBar").css('width', data.percentage + '%');\r
+                                               if (event.data.toDisplay == 'percentage') displayData = ' - ' + data.percentage + '%';\r
+                                               if (event.data.toDisplay == 'speed') displayData = ' - ' + data.speed + 'KB/s';\r
+                                               if (event.data.toDisplay == null) displayData = ' ';\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(displayData);\r
+                                       }\r
+                               });\r
+                               jQuery(this).bind("uploadifyComplete", {'action': settings.onComplete}, function(event, ID, fileObj, response, data) {\r
+                                       if (event.data.action(event, ID, fileObj, unescape(response), data) !== false) {\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(' - Completed');\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID).fadeOut(250, function() { jQuery(this).remove()});\r
+                                       }\r
+                               });\r
+                               if (typeof(settings.onAllComplete) == 'function') {\r
+                                       jQuery(this).bind("uploadifyAllComplete", {'action': settings.onAllComplete}, function(event, uploadObj) {\r
+                                               if (event.data.action(event, uploadObj) !== false) {\r
+                                                       errorArray = [];\r
+                                               }\r
+                                       });\r
+                               }\r
+                       });\r
+               },\r
+               uploadifySettings:function(settingName, settingValue, resetObject) {\r
+                       var returnValue = false;\r
+                       jQuery(this).each(function() {\r
+                               if (settingName == 'scriptData' && settingValue != null) {\r
+                                       if (resetObject) {\r
+                                               var scriptData = settingValue;\r
+                                       } else {\r
+                                               var scriptData = jQuery.extend(settings.scriptData, settingValue);\r
+                                       }\r
+                                       var scriptDataString = '';\r
+                                       for (var name in scriptData) {\r
+                                               scriptDataString += '&' + name + '=' + escape(scriptData[name]);\r
+                                       }\r
+                                       settingValue = scriptDataString.substr(1);\r
+                               }\r
+                               returnValue = document.getElementById(jQuery(this).attr('id') + 'Uploader').updateSettings(settingName, settingValue);\r
+                       });\r
+                       if (settingValue == null) {\r
+                               if (settingName == 'scriptData') {\r
+                                       var returnSplit = unescape(returnValue).split('&');\r
+                                       var returnObj   = new Object();\r
+                                       for (var i = 0; i < returnSplit.length; i++) {\r
+                                               var iSplit = returnSplit[i].split('=');\r
+                                               returnObj[iSplit[0]] = iSplit[1];\r
+                                       }\r
+                                       returnValue = returnObj;\r
+                               }\r
+                               return returnValue;\r
+                       }\r
+               },\r
+               uploadifyUpload:function(ID) {\r
+                       jQuery(this).each(function() {\r
+                               document.getElementById(jQuery(this).attr('id') + 'Uploader').startFileUpload(ID, false);\r
+                       });\r
+               },\r
+               uploadifyCancel:function(ID) {\r
+                       jQuery(this).each(function() {\r
+                               document.getElementById(jQuery(this).attr('id') + 'Uploader').cancelFileUpload(ID, true, false);\r
+                       });\r
+               },\r
+               uploadifyClearQueue:function() {\r
+                       jQuery(this).each(function() {\r
+                               document.getElementById(jQuery(this).attr('id') + 'Uploader').clearFileUploadQueue(false);\r
+                       });\r
+               }\r
+       })\r
+})(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
new file mode 100755 (executable)
index 0000000..04592ff
--- /dev/null
@@ -0,0 +1,26 @@
+/*\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
+\r
+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
new file mode 100755 (executable)
index 0000000..8eafe9d
--- /dev/null
@@ -0,0 +1,4 @@
+/*     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
new file mode 100755 (executable)
index 0000000..4bad011
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/uploadify.allglyphs.swf differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/uploadify.css b/apps/filebrowser/media/filebrowser/uploadify/uploadify.css
new file mode 100755 (executable)
index 0000000..0cf8c0e
--- /dev/null
@@ -0,0 +1,53 @@
+/*\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
+.uploadifyQueueItem {\r
+       font: 11px Verdana, Geneva, sans-serif;\r
+       border: 2px solid #E5E5E5;\r
+       background-color: #F5F5F5;\r
+       margin-top: 5px;\r
+       padding: 10px;\r
+       width: 350px;\r
+}\r
+.uploadifyError {\r
+       border: 2px solid #FBCBBC !important;\r
+       background-color: #FDE5DD !important;\r
+}\r
+.uploadifyQueueItem .cancel {\r
+       float: right;\r
+}\r
+.uploadifyProgress {\r
+       background-color: #FFFFFF;\r
+       border-top: 1px solid #808080;\r
+       border-left: 1px solid #808080;\r
+       border-right: 1px solid #C5C5C5;\r
+       border-bottom: 1px solid #C5C5C5;\r
+       margin-top: 10px;\r
+       width: 100%;\r
+}\r
+.uploadifyProgressBar {\r
+       background-color: #0099FF;\r
+       width: 1px;\r
+       height: 3px;\r
+}
\ No newline at end of file
diff --git a/apps/filebrowser/media/filebrowser/uploadify/uploadify.fla b/apps/filebrowser/media/filebrowser/uploadify/uploadify.fla
new file mode 100755 (executable)
index 0000000..c07bbaf
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/uploadify.fla differ
diff --git a/apps/filebrowser/media/filebrowser/uploadify/uploadify.php b/apps/filebrowser/media/filebrowser/uploadify/uploadify.php
new file mode 100755 (executable)
index 0000000..8bf14a6
--- /dev/null
@@ -0,0 +1,46 @@
+<?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
new file mode 100755 (executable)
index 0000000..0385d9e
Binary files /dev/null and b/apps/filebrowser/media/filebrowser/uploadify/uploadify.swf differ
diff --git a/apps/filebrowser/models.py b/apps/filebrowser/models.py
new file mode 100755 (executable)
index 0000000..a11084e
--- /dev/null
@@ -0,0 +1 @@
+# This file is only necessary for the tests to work
\ No newline at end of file
diff --git a/apps/filebrowser/templates/.svn/all-wcprops b/apps/filebrowser/templates/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..7fc59db
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 62
+/svn/!svn/ver/463/branches/filebrowser_3/filebrowser/templates
+END
diff --git a/apps/filebrowser/templates/.svn/entries b/apps/filebrowser/templates/.svn/entries
new file mode 100644 (file)
index 0000000..142d87b
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/templates
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T17:53:18.744015Z
+463
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+filebrowser
+dir
+\f
diff --git a/apps/filebrowser/templates/filebrowser/.svn/all-wcprops b/apps/filebrowser/templates/filebrowser/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..9c5ee5a
--- /dev/null
@@ -0,0 +1,47 @@
+K 25
+svn:wc:ra_dav:version-url
+V 74
+/svn/!svn/ver/463/branches/filebrowser_3/filebrowser/templates/filebrowser
+END
+makedir.html
+K 25
+svn:wc:ra_dav:version-url
+V 87
+/svn/!svn/ver/429/branches/filebrowser_3/filebrowser/templates/filebrowser/makedir.html
+END
+custom_field.html
+K 25
+svn:wc:ra_dav:version-url
+V 92
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/templates/filebrowser/custom_field.html
+END
+upload.html
+K 25
+svn:wc:ra_dav:version-url
+V 86
+/svn/!svn/ver/460/branches/filebrowser_3/filebrowser/templates/filebrowser/upload.html
+END
+rename.html
+K 25
+svn:wc:ra_dav:version-url
+V 86
+/svn/!svn/ver/429/branches/filebrowser_3/filebrowser/templates/filebrowser/rename.html
+END
+index.html
+K 25
+svn:wc:ra_dav:version-url
+V 85
+/svn/!svn/ver/426/branches/filebrowser_3/filebrowser/templates/filebrowser/index.html
+END
+append.html
+K 25
+svn:wc:ra_dav:version-url
+V 86
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/templates/filebrowser/append.html
+END
+versions.html
+K 25
+svn:wc:ra_dav:version-url
+V 88
+/svn/!svn/ver/426/branches/filebrowser_3/filebrowser/templates/filebrowser/versions.html
+END
diff --git a/apps/filebrowser/templates/filebrowser/.svn/entries b/apps/filebrowser/templates/filebrowser/.svn/entries
new file mode 100644 (file)
index 0000000..954a9c9
--- /dev/null
@@ -0,0 +1,269 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/templates/filebrowser
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T17:53:18.744015Z
+463
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+makedir.html
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+c036950c229d7f26ebdc53ce05dc55c4
+2009-08-01T09:59:09.789309Z
+429
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2315
+\f
+custom_field.html
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+e00005343847bfa30f7cb1454c068a14
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1372
+\f
+include
+dir
+\f
+upload.html
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+a0b75a68b6e40cc3adbc676b2e7127de
+2009-10-12T13:24:43.615535Z
+460
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5145
+\f
+rename.html
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+1a0948c41abb7e1e28a0108e7ec775f9
+2009-08-01T09:59:09.789309Z
+429
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2380
+\f
+index.html
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+fa7726594d2ad3abb71fbbc2a416717a
+2009-08-01T08:00:03.823843Z
+426
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2715
+\f
+append.html
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+4694ffafd3bdebffaafea14a5119c4c5
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+303
+\f
+versions.html
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+7373331acdecf1263354d49f19af3a4d
+2009-08-01T08:00:03.823843Z
+426
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7021
+\f
diff --git a/apps/filebrowser/templates/filebrowser/.svn/text-base/append.html.svn-base b/apps/filebrowser/templates/filebrowser/.svn/text-base/append.html.svn-base
new file mode 100644 (file)
index 0000000..6d1123f
--- /dev/null
@@ -0,0 +1,12 @@
+{% 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/.svn/text-base/custom_field.html.svn-base b/apps/filebrowser/templates/filebrowser/.svn/text-base/custom_field.html.svn-base
new file mode 100644 (file)
index 0000000..ba85198
--- /dev/null
@@ -0,0 +1,27 @@
+{% 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/.svn/text-base/index.html.svn-base b/apps/filebrowser/templates/filebrowser/.svn/text-base/index.html.svn-base
new file mode 100644 (file)
index 0000000..24100fb
--- /dev/null
@@ -0,0 +1,70 @@
+{% 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/.svn/text-base/makedir.html.svn-base b/apps/filebrowser/templates/filebrowser/.svn/text-base/makedir.html.svn-base
new file mode 100644 (file)
index 0000000..7fe19ab
--- /dev/null
@@ -0,0 +1,62 @@
+{% 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">
+    <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 %}
\ No newline at end of file
diff --git a/apps/filebrowser/templates/filebrowser/.svn/text-base/rename.html.svn-base b/apps/filebrowser/templates/filebrowser/.svn/text-base/rename.html.svn-base
new file mode 100644 (file)
index 0000000..31ddc0a
--- /dev/null
@@ -0,0 +1,63 @@
+{% 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">
+    <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 %}
\ No newline at end of file
diff --git a/apps/filebrowser/templates/filebrowser/.svn/text-base/upload.html.svn-base b/apps/filebrowser/templates/filebrowser/.svn/text-base/upload.html.svn-base
new file mode 100644 (file)
index 0000000..2736a3c
--- /dev/null
@@ -0,0 +1,116 @@
+{% 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/.svn/text-base/versions.html.svn-base b/apps/filebrowser/templates/filebrowser/.svn/text-base/versions.html.svn-base
new file mode 100644 (file)
index 0000000..b038c04
--- /dev/null
@@ -0,0 +1,138 @@
+{% 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/templates/filebrowser/append.html b/apps/filebrowser/templates/filebrowser/append.html
new file mode 100644 (file)
index 0000000..6d1123f
--- /dev/null
@@ -0,0 +1,12 @@
+{% 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
new file mode 100644 (file)
index 0000000..ba85198
--- /dev/null
@@ -0,0 +1,27 @@
+{% 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/.svn/all-wcprops b/apps/filebrowser/templates/filebrowser/include/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..b41d11b
--- /dev/null
@@ -0,0 +1,47 @@
+K 25
+svn:wc:ra_dav:version-url
+V 82
+/svn/!svn/ver/463/branches/filebrowser_3/filebrowser/templates/filebrowser/include
+END
+_response.html
+K 25
+svn:wc:ra_dav:version-url
+V 97
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/templates/filebrowser/include/_response.html
+END
+tableheader.html
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/svn/!svn/ver/424/branches/filebrowser_3/filebrowser/templates/filebrowser/include/tableheader.html
+END
+toolbar.html
+K 25
+svn:wc:ra_dav:version-url
+V 95
+/svn/!svn/ver/460/branches/filebrowser_3/filebrowser/templates/filebrowser/include/toolbar.html
+END
+paginator.html
+K 25
+svn:wc:ra_dav:version-url
+V 97
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/templates/filebrowser/include/paginator.html
+END
+filter.html
+K 25
+svn:wc:ra_dav:version-url
+V 94
+/svn/!svn/ver/460/branches/filebrowser_3/filebrowser/templates/filebrowser/include/filter.html
+END
+filelisting.html
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/svn/!svn/ver/424/branches/filebrowser_3/filebrowser/templates/filebrowser/include/filelisting.html
+END
+breadcrumbs.html
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/templates/filebrowser/include/breadcrumbs.html
+END
diff --git a/apps/filebrowser/templates/filebrowser/include/.svn/entries b/apps/filebrowser/templates/filebrowser/include/.svn/entries
new file mode 100644 (file)
index 0000000..4f9953c
--- /dev/null
@@ -0,0 +1,266 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/templates/filebrowser/include
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T17:53:18.744015Z
+463
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+_response.html
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+633d152ae6feed3333d7f03f4790e032
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+14
+\f
+tableheader.html
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+07195822d8df07bf95705e748af5709e
+2009-08-01T07:36:17.001098Z
+424
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2517
+\f
+toolbar.html
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+e5d1711ea275ccd3c53b489883e4fbfb
+2009-10-12T13:24:43.615535Z
+460
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1918
+\f
+paginator.html
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+c7677ea7d8fbc59cc97545d0ef898b67
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+661
+\f
+filter.html
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+3b46164b2f96d36bf5a00e6e09bac934
+2009-10-12T13:24:43.615535Z
+460
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1871
+\f
+filelisting.html
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+6705461d786e90893ef54f3b5b4b6ae7
+2009-08-01T07:36:17.001098Z
+424
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5651
+\f
+breadcrumbs.html
+file
+
+
+
+
+2009-11-05T20:58:53.000000Z
+f110fc06a5d51f3d8c50ba3e0936bb90
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+601
+\f
diff --git a/apps/filebrowser/templates/filebrowser/include/.svn/text-base/_response.html.svn-base b/apps/filebrowser/templates/filebrowser/include/.svn/text-base/_response.html.svn-base
new file mode 100644 (file)
index 0000000..e7dff2c
--- /dev/null
@@ -0,0 +1 @@
+{{ response }}
\ No newline at end of file
diff --git a/apps/filebrowser/templates/filebrowser/include/.svn/text-base/breadcrumbs.html.svn-base b/apps/filebrowser/templates/filebrowser/include/.svn/text-base/breadcrumbs.html.svn-base
new file mode 100644 (file)
index 0000000..5b9d181
--- /dev/null
@@ -0,0 +1,18 @@
+{% 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/.svn/text-base/filelisting.html.svn-base b/apps/filebrowser/templates/filebrowser/include/.svn/text-base/filelisting.html.svn-base
new file mode 100644 (file)
index 0000000..6b3b762
--- /dev/null
@@ -0,0 +1,121 @@
+{% 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/.svn/text-base/filter.html.svn-base b/apps/filebrowser/templates/filebrowser/include/.svn/text-base/filter.html.svn-base
new file mode 100644 (file)
index 0000000..28713d0
--- /dev/null
@@ -0,0 +1,35 @@
+{% 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/.svn/text-base/paginator.html.svn-base b/apps/filebrowser/templates/filebrowser/include/.svn/text-base/paginator.html.svn-base
new file mode 100644 (file)
index 0000000..73e5006
--- /dev/null
@@ -0,0 +1,17 @@
+{% 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/.svn/text-base/tableheader.html.svn-base b/apps/filebrowser/templates/filebrowser/include/.svn/text-base/tableheader.html.svn-base
new file mode 100644 (file)
index 0000000..1e6e816
--- /dev/null
@@ -0,0 +1,38 @@
+{% 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/.svn/text-base/toolbar.html.svn-base b/apps/filebrowser/templates/filebrowser/include/.svn/text-base/toolbar.html.svn-base
new file mode 100644 (file)
index 0000000..a21d36c
--- /dev/null
@@ -0,0 +1,25 @@
+{% 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/include/_response.html b/apps/filebrowser/templates/filebrowser/include/_response.html
new file mode 100644 (file)
index 0000000..e7dff2c
--- /dev/null
@@ -0,0 +1 @@
+{{ 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
new file mode 100644 (file)
index 0000000..5b9d181
--- /dev/null
@@ -0,0 +1,18 @@
+{% 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
new file mode 100644 (file)
index 0000000..6b3b762
--- /dev/null
@@ -0,0 +1,121 @@
+{% 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
new file mode 100644 (file)
index 0000000..28713d0
--- /dev/null
@@ -0,0 +1,35 @@
+{% 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
new file mode 100644 (file)
index 0000000..73e5006
--- /dev/null
@@ -0,0 +1,17 @@
+{% 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
new file mode 100644 (file)
index 0000000..1e6e816
--- /dev/null
@@ -0,0 +1,38 @@
+{% 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
new file mode 100644 (file)
index 0000000..a21d36c
--- /dev/null
@@ -0,0 +1,25 @@
+{% 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
new file mode 100644 (file)
index 0000000..24100fb
--- /dev/null
@@ -0,0 +1,70 @@
+{% 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
new file mode 100644 (file)
index 0000000..7fe19ab
--- /dev/null
@@ -0,0 +1,62 @@
+{% 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">
+    <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 %}
\ No newline at end of file
diff --git a/apps/filebrowser/templates/filebrowser/rename.html b/apps/filebrowser/templates/filebrowser/rename.html
new file mode 100644 (file)
index 0000000..31ddc0a
--- /dev/null
@@ -0,0 +1,63 @@
+{% 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">
+    <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 %}
\ No newline at end of file
diff --git a/apps/filebrowser/templates/filebrowser/upload.html b/apps/filebrowser/templates/filebrowser/upload.html
new file mode 100644 (file)
index 0000000..2736a3c
--- /dev/null
@@ -0,0 +1,116 @@
+{% 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
new file mode 100644 (file)
index 0000000..b038c04
--- /dev/null
@@ -0,0 +1,138 @@
+{% 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/.svn/all-wcprops b/apps/filebrowser/templatetags/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..4cb9a9a
--- /dev/null
@@ -0,0 +1,23 @@
+K 25
+svn:wc:ra_dav:version-url
+V 65
+/svn/!svn/ver/432/branches/filebrowser_3/filebrowser/templatetags
+END
+fb_versions.py
+K 25
+svn:wc:ra_dav:version-url
+V 80
+/svn/!svn/ver/432/branches/filebrowser_3/filebrowser/templatetags/fb_versions.py
+END
+__init__.py
+K 25
+svn:wc:ra_dav:version-url
+V 77
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/templatetags/__init__.py
+END
+fb_tags.py
+K 25
+svn:wc:ra_dav:version-url
+V 76
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/templatetags/fb_tags.py
+END
diff --git a/apps/filebrowser/templatetags/.svn/entries b/apps/filebrowser/templatetags/.svn/entries
new file mode 100644 (file)
index 0000000..e6bdf1f
--- /dev/null
@@ -0,0 +1,130 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/templatetags
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-08-06T07:04:57.356188Z
+432
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+fb_versions.py
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+51b29544dc45eb9c944a841253d1fd5b
+2009-08-06T07:04:57.356188Z
+432
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7013
+\f
+__init__.py
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+d41d8cd98f00b204e9800998ecf8427e
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+0
+\f
+fb_tags.py
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+b892a5d2e0ad7082f30e5bd4f9b42f4d
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3880
+\f
diff --git a/apps/filebrowser/templatetags/.svn/text-base/__init__.py.svn-base b/apps/filebrowser/templatetags/.svn/text-base/__init__.py.svn-base
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/apps/filebrowser/templatetags/.svn/text-base/fb_tags.py.svn-base b/apps/filebrowser/templatetags/.svn/text-base/fb_tags.py.svn-base
new file mode 100644 (file)
index 0000000..f1e968d
--- /dev/null
@@ -0,0 +1,133 @@
+# 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': 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)
+        if ',' not in string:
+            # ensure at least one ','
+            string += ','
+        for arg in string.split(','):
+            arg = arg.strip()
+            if arg == '': continue
+            kw, val = arg.split('=', 1)
+            kwargs[kw] = val
+    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/.svn/text-base/fb_versions.py.svn-base b/apps/filebrowser/templatetags/.svn/text-base/fb_versions.py.svn-base
new file mode 100644 (file)
index 0000000..887fd9e
--- /dev/null
@@ -0,0 +1,171 @@
+# coding: utf-8
+
+import os, re
+from time import gmtime
+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
+
+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:
+            return ""
+    
+
+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/templatetags/__init__.py b/apps/filebrowser/templatetags/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/apps/filebrowser/templatetags/fb_tags.py b/apps/filebrowser/templatetags/fb_tags.py
new file mode 100644 (file)
index 0000000..f1e968d
--- /dev/null
@@ -0,0 +1,133 @@
+# 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': 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)
+        if ',' not in string:
+            # ensure at least one ','
+            string += ','
+        for arg in string.split(','):
+            arg = arg.strip()
+            if arg == '': continue
+            kw, val = arg.split('=', 1)
+            kwargs[kw] = val
+    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
new file mode 100644 (file)
index 0000000..887fd9e
--- /dev/null
@@ -0,0 +1,171 @@
+# coding: utf-8
+
+import os, re
+from time import gmtime
+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
+
+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:
+            return ""
+    
+
+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
new file mode 100644 (file)
index 0000000..5cfc259
--- /dev/null
@@ -0,0 +1,16 @@
+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
new file mode 100644 (file)
index 0000000..0976f11
--- /dev/null
@@ -0,0 +1,432 @@
+# coding: utf-8
+
+# general imports
+import os, re
+from time import gmtime, strftime
+
+# 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
+
+# filebrowser imports
+from filebrowser.fb_settings import *
+from filebrowser.functions import _url_to_path, _path_to_url, _sort_by_attr, _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. Maybe it does not exist?")
+        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 = []
+    for file in dir_list:
+        
+        # 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(DIRECTORY, path, 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_by_attr(files, request.GET.get('o', 'date'))
+    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))
+
+
+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))
+
+
+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 = 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/sorl/__init__.py b/apps/sorl/__init__.py
new file mode 100755 (executable)
index 0000000..e69de29
diff --git a/apps/sorl/thumbnail/__init__.py b/apps/sorl/thumbnail/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/apps/sorl/thumbnail/base.py b/apps/sorl/thumbnail/base.py
new file mode 100755 (executable)
index 0000000..24f4d97
--- /dev/null
@@ -0,0 +1,285 @@
+import os
+from os.path import isfile, isdir, getmtime, dirname, splitext, getsize
+from tempfile import mkstemp
+from shutil import copyfile
+
+from PIL import Image
+
+from sorl.thumbnail import defaults
+from sorl.thumbnail.processors import get_valid_options, dynamic_import
+
+
+class ThumbnailException(Exception):
+    # Stop Django templates from choking if something goes wrong.
+    silent_variable_failure = True
+
+
+class Thumbnail(object):
+    imagemagick_file_types = defaults.IMAGEMAGICK_FILE_TYPES
+
+    def __init__(self, source, requested_size, opts=None, quality=85,
+                 dest=None, convert_path=defaults.CONVERT,
+                 wvps_path=defaults.WVPS, processors=None):
+        # Paths to external commands
+        self.convert_path = convert_path
+        self.wvps_path = wvps_path
+        # Absolute paths to files
+        self.source = source
+        self.dest = dest
+
+        # Thumbnail settings
+        try:
+            x, y = [int(v) for v in requested_size]
+        except (TypeError, ValueError):
+            raise TypeError('Thumbnail received invalid value for size '
+                            'argument: %s' % repr(requested_size))
+        else:
+            self.requested_size = (x, y)
+        try:
+            self.quality = int(quality)
+            if not 0 < quality <= 100:
+                raise ValueError
+        except (TypeError, ValueError):
+            raise TypeError('Thumbnail received invalid value for quality '
+                            'argument: %r' % quality)
+
+        # Processors
+        if processors is None:
+            processors = dynamic_import(defaults.PROCESSORS)
+        self.processors = processors
+
+        # Handle old list format for opts.
+        opts = opts or {}
+        if isinstance(opts, (list, tuple)):
+            opts = dict([(opt, None) for opt in opts])
+
+        # Set Thumbnail opt(ion)s
+        VALID_OPTIONS = get_valid_options(processors)
+        for opt in opts:
+            if not opt in VALID_OPTIONS:
+                raise TypeError('Thumbnail received an invalid option: %s'
+                                % opt)
+        self.opts = opts
+
+        if self.dest is not None:
+            self.generate()
+
+    def generate(self):
+        """
+        Generates the thumbnail if it doesn't exist or if the file date of the
+        source file is newer than that of the thumbnail.
+        """
+        # Ensure dest(ination) attribute is set
+        if not self.dest:
+            raise ThumbnailException("No destination filename set.")
+
+        if not isinstance(self.dest, basestring):
+            # We'll assume dest is a file-like instance if it exists but isn't
+            # a string.
+            self._do_generate()
+        elif not isfile(self.dest) or (self.source_exists and
+            getmtime(self.source) > getmtime(self.dest)):
+
+            # Ensure the directory exists
+            directory = dirname(self.dest)
+            if directory and not isdir(directory):
+                os.makedirs(directory)
+
+            self._do_generate()
+
+    def _check_source_exists(self):
+        """
+        Ensure the source file exists. If source is not a string then it is
+        assumed to be a file-like instance which "exists".
+        """
+        if not hasattr(self, '_source_exists'):
+            self._source_exists = (self.source and
+                                   (not isinstance(self.source, basestring) or
+                                    isfile(self.source)))
+        return self._source_exists
+    source_exists = property(_check_source_exists)
+
+    def _get_source_filetype(self):
+        """
+        Set the source filetype. First it tries to use magic and
+        if import error it will just use the extension
+        """
+        if not hasattr(self, '_source_filetype'):
+            if not isinstance(self.source, basestring):
+                # Assuming a file-like object - we won't know it's type.
+                return None
+            try:
+                import magic
+            except ImportError:
+                self._source_filetype = splitext(self.source)[1].lower().\
+                   replace('.', '').replace('jpeg', 'jpg')
+            else:
+                m = magic.open(magic.MAGIC_NONE)
+                m.load()
+                ftype = m.file(self.source)
+                if ftype.find('Microsoft Office Document') != -1:
+                    self._source_filetype = 'doc'
+                elif ftype.find('PDF document') != -1:
+                    self._source_filetype = 'pdf'
+                elif ftype.find('JPEG') != -1:
+                    self._source_filetype = 'jpg'
+                else:
+                    self._source_filetype = ftype
+        return self._source_filetype
+    source_filetype = property(_get_source_filetype)
+
+    # data property is the image data of the (generated) thumbnail
+    def _get_data(self):
+        if not hasattr(self, '_data'):
+            try:
+                self._data = Image.open(self.dest)
+            except IOError, detail:
+                raise ThumbnailException(detail)
+        return self._data
+
+    def _set_data(self, im):
+        self._data = im
+    data = property(_get_data, _set_data)
+
+    # source_data property is the image data from the source file
+    def _get_source_data(self):
+        if not hasattr(self, '_source_data'):
+            if not self.source_exists:
+                raise ThumbnailException("Source file: '%s' does not exist." %
+                                         self.source)
+            if self.source_filetype == 'doc':
+                self._convert_wvps(self.source)
+            elif self.source_filetype in self.imagemagick_file_types:
+                self._convert_imagemagick(self.source)
+            else:
+                self.source_data = self.source
+        return self._source_data
+
+    def _set_source_data(self, image):
+        if isinstance(image, Image.Image):
+            self._source_data = image
+        else:
+            try:
+                self._source_data = Image.open(image)
+            except IOError, detail:
+                raise ThumbnailException("%s: %s" % (detail, image))
+            except MemoryError:
+                raise ThumbnailException("Memory Error: %s" % image)
+    source_data = property(_get_source_data, _set_source_data)
+
+    def _convert_wvps(self, filename):
+        try:
+            import subprocess
+        except ImportError:
+            raise ThumbnailException('wvps requires the Python 2.4 subprocess '
+                                     'package.')
+        tmp = mkstemp('.ps')[1]
+        try:
+            p = subprocess.Popen((self.wvps_path, filename, tmp),
+                                 stdout=subprocess.PIPE)
+            p.wait()
+        except OSError, detail:
+            os.remove(tmp)
+            raise ThumbnailException('wvPS error: %s' % detail)
+        self._convert_imagemagick(tmp)
+        os.remove(tmp)
+
+    def _convert_imagemagick(self, filename):
+        try:
+            import subprocess
+        except ImportError:
+            raise ThumbnailException('imagemagick requires the Python 2.4 '
+                                     'subprocess package.')
+        tmp = mkstemp('.png')[1]
+        if 'crop' in self.opts or 'autocrop' in self.opts:
+            x, y = [d * 3 for d in self.requested_size]
+        else:
+            x, y = self.requested_size
+        try:
+            p = subprocess.Popen((self.convert_path, '-size', '%sx%s' % (x, y),
+                '-antialias', '-colorspace', 'rgb', '-format', 'PNG24',
+                '%s[0]' % filename, tmp), stdout=subprocess.PIPE)
+            p.wait()
+        except OSError, detail:
+            os.remove(tmp)
+            raise ThumbnailException('ImageMagick error: %s' % detail)
+        self.source_data = tmp
+        os.remove(tmp)
+
+    def _do_generate(self):
+        """
+        Generates the thumbnail image.
+
+        This a semi-private method so it isn't directly available to template
+        authors if this object is passed to the template context.
+        """
+        im = self.source_data
+
+        for processor in self.processors:
+            im = processor(im, self.requested_size, self.opts)
+
+        self.data = im
+
+        filelike = not isinstance(self.dest, basestring)
+        if not filelike:
+            dest_extension = os.path.splitext(self.dest)[1][1:]
+            format = None
+        else:
+            dest_extension = None
+            format = 'JPEG'
+        if (self.source_filetype and self.source_filetype == dest_extension and
+                self.source_data == self.data):
+            copyfile(self.source, self.dest)
+        else:
+            try:
+                im.save(self.dest, format=format, quality=self.quality,
+                        optimize=1)
+            except IOError:
+                # Try again, without optimization (PIL can't optimize an image
+                # larger than ImageFile.MAXBLOCK, which is 64k by default)
+                try:
+                    im.save(self.dest, format=format, quality=self.quality)
+                except IOError, detail:
+                    raise ThumbnailException(detail)
+
+        if filelike:
+            self.dest.seek(0)
+
+    # Some helpful methods
+
+    def _dimension(self, axis):
+        if self.dest is None:
+            return None
+        return self.data.size[axis]
+
+    def width(self):
+        return self._dimension(0)
+
+    def height(self):
+        return self._dimension(1)
+
+    def _get_filesize(self):
+        if self.dest is None:
+            return None
+        if not hasattr(self, '_filesize'):
+            self._filesize = getsize(self.dest)
+        return self._filesize
+    filesize = property(_get_filesize)
+
+    def _source_dimension(self, axis):
+        if self.source_filetype in ['pdf', 'doc']:
+            return None
+        else:
+            return self.source_data.size[axis]
+
+    def source_width(self):
+        return self._source_dimension(0)
+
+    def source_height(self):
+        return self._source_dimension(1)
+
+    def _get_source_filesize(self):
+        if not hasattr(self, '_source_filesize'):
+            self._source_filesize = getsize(self.source)
+        return self._source_filesize
+    source_filesize = property(_get_source_filesize)
diff --git a/apps/sorl/thumbnail/defaults.py b/apps/sorl/thumbnail/defaults.py
new file mode 100644 (file)
index 0000000..b4ae142
--- /dev/null
@@ -0,0 +1,15 @@
+DEBUG = False
+BASEDIR = ''
+SUBDIR = ''
+PREFIX = ''
+QUALITY = 85
+CONVERT = '/usr/bin/convert'
+WVPS = '/usr/bin/wvPS'
+EXTENSION = 'jpg'
+PROCESSORS = (
+    'sorl.thumbnail.processors.colorspace',
+    'sorl.thumbnail.processors.autocrop',
+    'sorl.thumbnail.processors.scale_and_crop',
+    'sorl.thumbnail.processors.filters',
+)
+IMAGEMAGICK_FILE_TYPES = ('eps', 'pdf', 'psd')
diff --git a/apps/sorl/thumbnail/fields.py b/apps/sorl/thumbnail/fields.py
new file mode 100644 (file)
index 0000000..1b52743
--- /dev/null
@@ -0,0 +1,228 @@
+from UserDict import DictMixin
+try:
+    from cStringIO import StringIO
+except ImportError:
+    from StringIO import StringIO
+
+from django.db.models.fields.files import ImageField, ImageFieldFile
+from django.core.files.base import ContentFile
+from django.utils.safestring import mark_safe
+from django.utils.html import escape
+
+from sorl.thumbnail.base import Thumbnail
+from sorl.thumbnail.main import DjangoThumbnail, build_thumbnail_name
+from sorl.thumbnail.utils import delete_thumbnails
+
+
+REQUIRED_ARGS = ('size',)
+ALL_ARGS = {
+    'size': 'requested_size',
+    'options': 'opts',
+    'quality': 'quality',
+    'basedir': 'basedir',
+    'subdir': 'subdir',
+    'prefix': 'prefix',
+    'extension': 'extension',
+}
+BASE_ARGS = {
+    'size': 'requested_size',
+    'options': 'opts',
+    'quality': 'quality',
+}
+TAG_HTML = '<img src="%(src)s" width="%(width)s" height="%(height)s" alt="" />'
+
+
+class ThumbsDict(object, DictMixin):
+    def __init__(self, descriptor):
+        super(ThumbsDict, self).__init__()
+        self.descriptor = descriptor
+
+    def keys(self):
+        return self.descriptor.field.extra_thumbnails.keys()
+
+
+class LazyThumbs(ThumbsDict):
+    def __init__(self, *args, **kwargs):
+        super(LazyThumbs, self).__init__(*args, **kwargs)
+        self.cached = {}
+
+    def __getitem__(self, key):
+        thumb = self.cached.get(key)
+        if not thumb:
+            args = self.descriptor.field.extra_thumbnails[key]
+            thumb = self.descriptor._build_thumbnail(args)
+            self.cached[key] = thumb
+        return thumb
+
+    def keys(self):
+        return self.descriptor.field.extra_thumbnails.keys()
+
+
+class ThumbTags(ThumbsDict):
+    def __getitem__(self, key):
+        thumb = self.descriptor.extra_thumbnails[key]
+        return self.descriptor._build_thumbnail_tag(thumb)
+
+
+class BaseThumbnailFieldFile(ImageFieldFile):
+    def _build_thumbnail(self, args):
+        # Build the DjangoThumbnail kwargs.
+        kwargs = {}
+        for k, v in args.items():
+            kwargs[ALL_ARGS[k]] = v
+        # Build the destination filename and return the thumbnail.
+        name_kwargs = {}
+        for key in ['size', 'options', 'quality', 'basedir', 'subdir',
+                    'prefix', 'extension']:
+            name_kwargs[key] = args.get(key)
+        source = getattr(self.instance, self.field.name)
+        dest = build_thumbnail_name(source.name, **name_kwargs)
+        return DjangoThumbnail(source, relative_dest=dest, **kwargs)
+
+    def _build_thumbnail_tag(self, thumb):
+        opts = dict(src=escape(thumb), width=thumb.width(),
+                    height=thumb.height())
+        return mark_safe(self.field.thumbnail_tag % opts)
+
+    def _get_extra_thumbnails(self):
+        if self.field.extra_thumbnails is None:
+            return None
+        if not hasattr(self, '_extra_thumbnails'):
+            self._extra_thumbnails = LazyThumbs(self)
+        return self._extra_thumbnails
+    extra_thumbnails = property(_get_extra_thumbnails)
+
+    def _get_extra_thumbnails_tag(self):
+        if self.field.extra_thumbnails is None:
+            return None
+        return ThumbTags(self)
+    extra_thumbnails_tag = property(_get_extra_thumbnails_tag)
+
+    def save(self, *args, **kwargs):
+        # Optionally generate the thumbnails after the image is saved.
+        super(BaseThumbnailFieldFile, self).save(*args, **kwargs)
+        if self.field.generate_on_save:
+            self.generate_thumbnails()
+
+    def delete(self, *args, **kwargs):
+        # Delete any thumbnails too (and not just ones defined here in case
+        # the {% thumbnail %} tag was used or the thumbnail sizes changed).
+        relative_source_path = getattr(self.instance, self.field.name).name
+        delete_thumbnails(relative_source_path)
+        super(BaseThumbnailFieldFile, self).delete(*args, **kwargs)
+
+    def generate_thumbnails(self):
+        # Getting the thumbs generates them.
+        if self.extra_thumbnails:
+            self.extra_thumbnails.values()
+
+
+class ImageWithThumbnailsFieldFile(BaseThumbnailFieldFile):
+    def _get_thumbnail(self):
+        return self._build_thumbnail(self.field.thumbnail)
+    thumbnail = property(_get_thumbnail)
+
+    def _get_thumbnail_tag(self):
+        return self._build_thumbnail_tag(self.thumbnail)
+    thumbnail_tag = property(_get_thumbnail_tag)
+
+    def generate_thumbnails(self, *args, **kwargs):
+        self.thumbnail.generate()
+        Super = super(ImageWithThumbnailsFieldFile, self)
+        return Super.generate_thumbnails(*args, **kwargs)
+
+
+class ThumbnailFieldFile(BaseThumbnailFieldFile):
+    def save(self, name, content, *args, **kwargs):
+        new_content = StringIO()
+        # Build the Thumbnail kwargs.
+        thumbnail_kwargs = {}
+        for k, argk in BASE_ARGS.items():
+            if not k in self.field.thumbnail:
+                continue
+            thumbnail_kwargs[argk] = self.field.thumbnail[k]
+        Thumbnail(source=content, dest=new_content, **thumbnail_kwargs)
+        new_content = ContentFile(new_content.read())
+        super(ThumbnailFieldFile, self).save(name, new_content, *args,
+                                             **kwargs)
+
+    def _get_thumbnail_tag(self):
+        opts = dict(src=escape(self.url), width=self.width,
+                    height=self.height)
+        return mark_safe(self.field.thumbnail_tag % opts)
+    thumbnail_tag = property(_get_thumbnail_tag)
+
+
+class BaseThumbnailField(ImageField):
+    def __init__(self, *args, **kwargs):
+        # The new arguments for this field aren't explicitly defined so that
+        # users can still use normal ImageField positional arguments.
+        self.extra_thumbnails = kwargs.pop('extra_thumbnails', None)
+        self.thumbnail_tag = kwargs.pop('thumbnail_tag', TAG_HTML)
+        self.generate_on_save = kwargs.pop('generate_on_save', False)
+
+        super(BaseThumbnailField, self).__init__(*args, **kwargs)
+        _verify_thumbnail_attrs(self.thumbnail)
+        if self.extra_thumbnails:
+            for extra, attrs in self.extra_thumbnails.items():
+                name = "%r of 'extra_thumbnails'"
+                _verify_thumbnail_attrs(attrs, name)
+
+    def south_field_triple(self):
+        """
+        Return a suitable description of this field for South.
+        """
+        # We'll just introspect ourselves, since we inherit.
+        from south.modelsinspector import introspector
+        field_class = "django.db.models.fields.files.ImageField"
+        args, kwargs = introspector(self)
+        # That's our definition!
+        return (field_class, args, kwargs)
+
+
+class ImageWithThumbnailsField(BaseThumbnailField):
+    """
+    photo = ImageWithThumbnailsField(
+        upload_to='uploads',
+        thumbnail={'size': (80, 80), 'options': ('crop', 'upscale'),
+                   'extension': 'png'},
+        extra_thumbnails={
+            'admin': {'size': (70, 50), 'options': ('sharpen',)},
+        }
+    )
+    """
+    attr_class = ImageWithThumbnailsFieldFile
+
+    def __init__(self, *args, **kwargs):
+        self.thumbnail = kwargs.pop('thumbnail', None)
+        super(ImageWithThumbnailsField, self).__init__(*args, **kwargs)
+
+
+class ThumbnailField(BaseThumbnailField):
+    """
+    avatar = ThumbnailField(
+        upload_to='uploads',
+        size=(200, 200),
+        options=('crop',),
+        extra_thumbnails={
+            'admin': {'size': (70, 50), 'options': (crop, 'sharpen')},
+        }
+    )
+    """
+    attr_class = ThumbnailFieldFile
+
+    def __init__(self, *args, **kwargs):
+        self.thumbnail = {}
+        for attr in ALL_ARGS:
+            if attr in kwargs:
+                self.thumbnail[attr] = kwargs.pop(attr)
+        super(ThumbnailField, self).__init__(*args, **kwargs)
+
+
+def _verify_thumbnail_attrs(attrs, name="'thumbnail'"):
+    for arg in REQUIRED_ARGS:
+        if arg not in attrs:
+            raise TypeError('Required attr %r missing in %s arg' % (arg, name))
+    for attr in attrs:
+        if attr not in ALL_ARGS:
+            raise TypeError('Invalid attr %r found in %s arg' % (arg, name))
diff --git a/apps/sorl/thumbnail/main.py b/apps/sorl/thumbnail/main.py
new file mode 100644 (file)
index 0000000..a59b64f
--- /dev/null
@@ -0,0 +1,115 @@
+import os
+
+from django.conf import settings
+from django.utils.encoding import iri_to_uri, force_unicode
+
+from sorl.thumbnail.base import Thumbnail
+from sorl.thumbnail.processors import dynamic_import
+from sorl.thumbnail import defaults
+
+
+def get_thumbnail_setting(setting, override=None):
+    """
+    Get a thumbnail setting from Django settings module, falling back to the
+    default.
+
+    If override is not None, it will be used instead of the setting.
+    """
+    if override is not None:
+        return override
+    if hasattr(settings, 'THUMBNAIL_%s' % setting):
+        return getattr(settings, 'THUMBNAIL_%s' % setting)
+    else:
+        return getattr(defaults, setting)
+
+
+def build_thumbnail_name(source_name, size, options=None,
+                         quality=None, basedir=None, subdir=None, prefix=None,
+                         extension=None):
+    quality = get_thumbnail_setting('QUALITY', quality)
+    basedir = get_thumbnail_setting('BASEDIR', basedir)
+    subdir = get_thumbnail_setting('SUBDIR', subdir)
+    prefix = get_thumbnail_setting('PREFIX', prefix)
+    extension = get_thumbnail_setting('EXTENSION', extension)
+    path, filename = os.path.split(source_name)
+    basename, ext = os.path.splitext(filename)
+    name = '%s%s' % (basename, ext.replace(os.extsep, '_'))
+    size = '%sx%s' % tuple(size)
+
+    # Handle old list format for opts.
+    options = options or {}
+    if isinstance(options, (list, tuple)):
+        options = dict([(opt, None) for opt in options])
+
+    opts = options.items()
+    opts.sort()   # options are sorted so the filename is consistent
+    opts = ['%s_' % (v is not None and '%s-%s' % (k, v) or k)
+            for k, v in opts]
+    opts = ''.join(opts)
+    extension = extension and '.%s' % extension
+    thumbnail_filename = '%s%s_%s_%sq%s%s' % (prefix, name, size, opts,
+                                              quality, extension)
+    return os.path.join(basedir, path, subdir, thumbnail_filename)
+
+
+class DjangoThumbnail(Thumbnail):
+    imagemagick_file_types = get_thumbnail_setting('IMAGEMAGICK_FILE_TYPES')
+
+    def __init__(self, relative_source, requested_size, opts=None,
+                 quality=None, basedir=None, subdir=None, prefix=None,
+                 relative_dest=None, processors=None, extension=None):
+        relative_source = force_unicode(relative_source)
+        # Set the absolute filename for the source file
+        source = self._absolute_path(relative_source)
+
+        quality = get_thumbnail_setting('QUALITY', quality)
+        convert_path = get_thumbnail_setting('CONVERT')
+        wvps_path = get_thumbnail_setting('WVPS')
+        if processors is None:
+            processors = dynamic_import(get_thumbnail_setting('PROCESSORS'))
+
+        # Call super().__init__ now to set the opts attribute. generate() won't
+        # get called because we are not setting the dest attribute yet.
+        super(DjangoThumbnail, self).__init__(source, requested_size,
+            opts=opts, quality=quality, convert_path=convert_path,
+            wvps_path=wvps_path, processors=processors)
+
+        # Get the relative filename for the thumbnail image, then set the
+        # destination filename
+        if relative_dest is None:
+            relative_dest = \
+               self._get_relative_thumbnail(relative_source, basedir=basedir,
+                                            subdir=subdir, prefix=prefix,
+                                            extension=extension)
+        filelike = not isinstance(relative_dest, basestring)
+        if filelike:
+            self.dest = relative_dest
+        else:
+            self.dest = self._absolute_path(relative_dest)
+
+        # Call generate now that the dest attribute has been set
+        self.generate()
+
+        # Set the relative & absolute url to the thumbnail
+        if not filelike:
+            self.relative_url = \
+                iri_to_uri('/'.join(relative_dest.split(os.sep)))
+            self.absolute_url = '%s%s' % (settings.MEDIA_URL,
+                                          self.relative_url)
+
+    def _get_relative_thumbnail(self, relative_source,
+                                basedir=None, subdir=None, prefix=None,
+                                extension=None):
+        """
+        Returns the thumbnail filename including relative path.
+        """
+        return build_thumbnail_name(relative_source, self.requested_size,
+                                    self.opts, self.quality, basedir, subdir,
+                                    prefix, extension)
+
+    def _absolute_path(self, filename):
+        absolute_filename = os.path.join(settings.MEDIA_ROOT, filename)
+        return absolute_filename.encode(settings.FILE_CHARSET)
+
+    def __unicode__(self):
+        return self.absolute_url
diff --git a/apps/sorl/thumbnail/management/__init__.py b/apps/sorl/thumbnail/management/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/apps/sorl/thumbnail/management/commands/__init__.py b/apps/sorl/thumbnail/management/commands/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/apps/sorl/thumbnail/management/commands/thumbnail_cleanup.py b/apps/sorl/thumbnail/management/commands/thumbnail_cleanup.py
new file mode 100644 (file)
index 0000000..690c42c
--- /dev/null
@@ -0,0 +1,75 @@
+import os
+import re
+from django.db import models
+from django.conf import settings
+from django.core.management.base import NoArgsCommand
+from sorl.thumbnail.main import get_thumbnail_setting
+
+
+try:
+    set
+except NameError:
+    from sets import Set as set     # For Python 2.3
+
+thumb_re = re.compile(r'^%s(.*)_\d{1,}x\d{1,}_[-\w]*q([1-9]\d?|100)\.jpg' %
+                      get_thumbnail_setting('PREFIX'))
+
+
+def get_thumbnail_path(path):
+    basedir = get_thumbnail_setting('BASEDIR')
+    subdir = get_thumbnail_setting('SUBDIR')
+    return os.path.join(basedir, path, subdir)
+
+
+def clean_up():
+    paths = set()
+    for app in models.get_apps():
+        model_list = models.get_models(app)
+        for model in model_list:
+            for field in model._meta.fields:
+                if isinstance(field, models.ImageField):
+                    #TODO: take care of date formatted and callable upload_to.
+                    if (not callable(field.upload_to) and
+                            field.upload_to.find("%") == -1):
+                        paths = paths.union((field.upload_to,))
+    paths = list(paths)
+    for path in paths:
+        thumbnail_path = get_thumbnail_path(path)
+        try:
+            file_list = os.listdir(os.path.join(settings.MEDIA_ROOT,
+                                                thumbnail_path))
+        except OSError:
+            continue # Dir doesn't exists, no thumbnails here.
+        for fn in file_list:
+            m = thumb_re.match(fn)
+            if m:
+                # Due to that the naming of thumbnails replaces the dot before
+                # extension with an underscore we have 2 possibilities for the
+                # original filename. If either present we do not delete
+                # suspected thumbnail.
+                # org_fn is the expected original filename w/o extension
+                # org_fn_alt is the expected original filename with extension
+                org_fn = m.group(1)
+                org_fn_exists = os.path.isfile(
+                            os.path.join(settings.MEDIA_ROOT, path, org_fn))
+
+                usc_pos = org_fn.rfind("_")
+                if usc_pos != -1:
+                    org_fn_alt = "%s.%s" % (org_fn[0:usc_pos],
+                                            org_fn[usc_pos+1:])
+                    org_fn_alt_exists = os.path.isfile(
+                        os.path.join(settings.MEDIA_ROOT, path, org_fn_alt))
+                else:
+                    org_fn_alt_exists = False
+                if not org_fn_exists and not org_fn_alt_exists:
+                    del_me = os.path.join(settings.MEDIA_ROOT,
+                                          thumbnail_path, fn)
+                    os.remove(del_me)
+
+
+class Command(NoArgsCommand):
+    help = "Deletes thumbnails that no longer have an original file."
+    requires_model_validation = False
+
+    def handle_noargs(self, **options):
+        clean_up()
diff --git a/apps/sorl/thumbnail/models.py b/apps/sorl/thumbnail/models.py
new file mode 100644 (file)
index 0000000..ec325fd
--- /dev/null
@@ -0,0 +1 @@
+# Needs a models.py file so that tests are picked up.
diff --git a/apps/sorl/thumbnail/processors.py b/apps/sorl/thumbnail/processors.py
new file mode 100644 (file)
index 0000000..a6c1741
--- /dev/null
@@ -0,0 +1,130 @@
+from PIL import Image, ImageFilter, ImageChops
+from sorl.thumbnail import utils
+import re
+
+
+def dynamic_import(names):
+    imported = []
+    for name in names:
+        # Use rfind rather than rsplit for Python 2.3 compatibility.
+        lastdot = name.rfind('.')
+        modname, attrname = name[:lastdot], name[lastdot + 1:]
+        mod = __import__(modname, {}, {}, [''])
+        imported.append(getattr(mod, attrname))
+    return imported
+
+
+def get_valid_options(processors):
+    """
+    Returns a list containing unique valid options from a list of processors
+    in correct order.
+    """
+    valid_options = []
+    for processor in processors:
+        if hasattr(processor, 'valid_options'):
+            valid_options.extend([opt for opt in processor.valid_options
+                                  if opt not in valid_options])
+    return valid_options
+
+
+def colorspace(im, requested_size, opts):
+    if 'bw' in opts and im.mode != "L":
+        im = im.convert("L")
+    elif im.mode not in ("L", "RGB", "RGBA"):
+        im = im.convert("RGB")
+    return im
+colorspace.valid_options = ('bw',)
+
+
+def autocrop(im, requested_size, opts):
+    if 'autocrop' in opts:
+        bw = im.convert("1")
+        bw = bw.filter(ImageFilter.MedianFilter)
+        # white bg
+        bg = Image.new("1", im.size, 255)
+        diff = ImageChops.difference(bw, bg)
+        bbox = diff.getbbox()
+        if bbox:
+            im = im.crop(bbox)
+    return im
+autocrop.valid_options = ('autocrop',)
+
+
+def scale_and_crop(im, requested_size, opts):
+    x, y = [float(v) for v in im.size]
+    xr, yr = [float(v) for v in requested_size]
+
+    if 'crop' in opts or 'max' 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)
+
+    crop = opts.get('crop') or 'crop' in opts
+    if crop:
+        # Difference (for x and y) between new image size and requested size.
+        x, y = [float(v) for v in im.size]
+        dx, dy = (x - min(x, xr)), (y - min(y, yr))
+        if dx or dy:
+            # Center cropping (default).
+            ex, ey = dx / 2, dy / 2
+            box = [ex, ey, x - ex, y - ey]
+            # See if an edge cropping argument was provided.
+            edge_crop = (isinstance(crop, basestring) and
+                           re.match(r'(?:(-?)(\d+))?,(?:(-?)(\d+))?$', crop))
+            if edge_crop and filter(None, edge_crop.groups()):
+                x_right, x_crop, y_bottom, y_crop = edge_crop.groups()
+                if x_crop:
+                    offset = min(x * int(x_crop) / 100, dx)
+                    if x_right:
+                        box[0] = dx - offset
+                        box[2] = x - offset
+                    else:
+                        box[0] = offset
+                        box[2] = x - (dx - offset)
+                if y_crop:
+                    offset = min(y * int(y_crop) / 100, dy)
+                    if y_bottom:
+                        box[1] = dy - offset
+                        box[3] = y - offset
+                    else:
+                        box[1] = offset
+                        box[3] = y - (dy - offset)
+            # See if the image should be "smart cropped".
+            elif crop == 'smart':
+                left = top = 0
+                right, bottom = x, y
+                while dx:
+                    slice = min(dx, 10)
+                    l_sl = im.crop((0, 0, slice, y))
+                    r_sl = im.crop((x - slice, 0, x, y))
+                    if utils.image_entropy(l_sl) >= utils.image_entropy(r_sl):
+                        right -= slice
+                    else:
+                        left += slice
+                    dx -= slice
+                while dy:
+                    slice = min(dy, 10)
+                    t_sl = im.crop((0, 0, x, slice))
+                    b_sl = im.crop((0, y - slice, x, y))
+                    if utils.image_entropy(t_sl) >= utils.image_entropy(b_sl):
+                        bottom -= slice
+                    else:
+                        top += slice
+                    dy -= slice
+                box = (left, top, right, bottom)
+            # Finally, crop the image!
+            im = im.crop([int(v) for v in box])
+    return im
+scale_and_crop.valid_options = ('crop', 'upscale', 'max')
+
+
+def filters(im, requested_size, opts):
+    if 'detail' in opts:
+        im = im.filter(ImageFilter.DETAIL)
+    if 'sharpen' in opts:
+        im = im.filter(ImageFilter.SHARPEN)
+    return im
+filters.valid_options = ('detail', 'sharpen')
diff --git a/apps/sorl/thumbnail/templatetags/__init__.py b/apps/sorl/thumbnail/templatetags/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/apps/sorl/thumbnail/templatetags/thumbnail.py b/apps/sorl/thumbnail/templatetags/thumbnail.py
new file mode 100755 (executable)
index 0000000..e7c2177
--- /dev/null
@@ -0,0 +1,251 @@
+import re
+import math
+from django.template import Library, Node, VariableDoesNotExist, \
+    TemplateSyntaxError
+from sorl.thumbnail.main import DjangoThumbnail, get_thumbnail_setting
+from sorl.thumbnail.processors import dynamic_import, get_valid_options
+from sorl.thumbnail.utils import split_args
+
+register = Library()
+
+size_pat = re.compile(r'(\d+)x(\d+)$')
+
+filesize_formats = ['k', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y']
+filesize_long_formats = {
+    'k': 'kilo', 'M': 'mega', 'G': 'giga', 'T': 'tera', 'P': 'peta',
+    'E': 'exa', 'Z': 'zetta', 'Y': 'yotta',
+}
+
+try:
+    PROCESSORS = dynamic_import(get_thumbnail_setting('PROCESSORS'))
+    VALID_OPTIONS = get_valid_options(PROCESSORS)
+except:
+    if get_thumbnail_setting('DEBUG'):
+        raise
+    else:
+        PROCESSORS = []
+        VALID_OPTIONS = []
+TAG_SETTINGS = ['quality']
+
+
+class ThumbnailNode(Node):
+    def __init__(self, source_var, size_var, opts=None,
+                 context_name=None, **kwargs):
+        self.source_var = source_var
+        self.size_var = size_var
+        self.opts = opts
+        self.context_name = context_name
+        self.kwargs = kwargs
+
+    def render(self, context):
+        # Note that this isn't a global constant because we need to change the
+        # value for tests.
+        DEBUG = get_thumbnail_setting('DEBUG')
+        try:
+            # A file object will be allowed in DjangoThumbnail class
+            relative_source = self.source_var.resolve(context)
+        except VariableDoesNotExist:
+            if DEBUG:
+                raise VariableDoesNotExist("Variable '%s' does not exist." %
+                        self.source_var)
+            else:
+                relative_source = None
+        try:
+            requested_size = self.size_var.resolve(context)
+        except VariableDoesNotExist:
+            if DEBUG:
+                raise TemplateSyntaxError("Size argument '%s' is not a"
+                        " valid size nor a valid variable." % self.size_var)
+            else:
+                requested_size = None
+        # Size variable can be either a tuple/list of two integers or a valid
+        # string, only the string is checked.
+        else:
+            if isinstance(requested_size, basestring):
+                m = size_pat.match(requested_size)
+                if m:
+                    requested_size = (int(m.group(1)), int(m.group(2)))
+                elif DEBUG:
+                    raise TemplateSyntaxError("Variable '%s' was resolved but "
+                            "'%s' is not a valid size." %
+                            (self.size_var, requested_size))
+                else:
+                    requested_size = None
+        if relative_source is None or requested_size is None:
+            thumbnail = ''
+        else:
+            try:
+                kwargs = {}
+                for key, value in self.kwargs.items():
+                    kwargs[key] = value.resolve(context)
+                opts = dict([(k, v and v.resolve(context))
+                             for k, v in self.opts.items()])
+                thumbnail = DjangoThumbnail(relative_source, requested_size,
+                                opts=opts, processors=PROCESSORS, **kwargs)
+            except:
+                if DEBUG:
+                    raise
+                else:
+                    thumbnail = ''
+        # Return the thumbnail class, or put it on the context
+        if self.context_name is None:
+            return thumbnail
+        # We need to get here so we don't have old values in the context
+        # variable.
+        context[self.context_name] = thumbnail
+        return ''
+
+
+def thumbnail(parser, token):
+    """
+    Creates a thumbnail of for an ImageField.
+
+    To just output the absolute url to the thumbnail::
+
+        {% thumbnail image 80x80 %}
+
+    After the image path and dimensions, you can put any options::
+
+        {% thumbnail image 80x80 quality=95 crop %}
+
+    To put the DjangoThumbnail class on the context instead of just rendering
+    the absolute url, finish the tag with ``as [context_var_name]``::
+
+        {% thumbnail image 80x80 as thumb %}
+        {{ thumb.width }} x {{ thumb.height }}
+    """
+    args = token.split_contents()
+    tag = args[0]
+    # Check to see if we're setting to a context variable.
+    if len(args) > 4 and args[-2] == 'as':
+        context_name = args[-1]
+        args = args[:-2]
+    else:
+        context_name = None
+
+    if len(args) < 3:
+        raise TemplateSyntaxError("Invalid syntax. Expected "
+            "'{%% %s source size [option1 option2 ...] %%}' or "
+            "'{%% %s source size [option1 option2 ...] as variable %%}'" %
+            (tag, tag))
+
+    # Get the source image path and requested size.
+    source_var = parser.compile_filter(args[1])
+    # If the size argument was a correct static format, wrap it in quotes so
+    # that it is compiled correctly.
+    m = size_pat.match(args[2])
+    if m:
+        args[2] = '"%s"' % args[2]
+    size_var = parser.compile_filter(args[2])
+
+    # Get the options.
+    args_list = split_args(args[3:]).items()
+
+    # Check the options.
+    opts = {}
+    kwargs = {} # key,values here override settings and defaults
+
+    for arg, value in args_list:
+        value = value and parser.compile_filter(value)
+        if arg in TAG_SETTINGS and value is not None:
+            kwargs[str(arg)] = value
+            continue
+        if arg in VALID_OPTIONS:
+            opts[arg] = value
+        else:
+            raise TemplateSyntaxError("'%s' tag received a bad argument: "
+                                      "'%s'" % (tag, arg))
+    return ThumbnailNode(source_var, size_var, opts=opts,
+                         context_name=context_name, **kwargs)
+
+
+def filesize(bytes, format='auto1024'):
+    """
+    Returns the number of bytes in either the nearest unit or a specific unit
+    (depending on the chosen format method).
+
+    Acceptable formats are:
+
+    auto1024, auto1000
+      convert to the nearest unit, appending the abbreviated unit name to the
+      string (e.g. '2 KiB' or '2 kB').
+      auto1024 is the default format.
+    auto1024long, auto1000long
+      convert to the nearest multiple of 1024 or 1000, appending the correctly
+      pluralized unit name to the string (e.g. '2 kibibytes' or '2 kilobytes').
+    kB, MB, GB, TB, PB, EB, ZB or YB
+      convert to the exact unit (using multiples of 1000).
+    KiB, MiB, GiB, TiB, PiB, EiB, ZiB or YiB
+      convert to the exact unit (using multiples of 1024).
+
+    The auto1024 and auto1000 formats return a string, appending the correct
+    unit to the value. All other formats return the floating point value.
+
+    If an invalid format is specified, the bytes are returned unchanged.
+    """
+    format_len = len(format)
+    # Check for valid format
+    if format_len in (2, 3):
+        if format_len == 3 and format[0] == 'K':
+            format = 'k%s' % format[1:]
+        if not format[-1] == 'B' or format[0] not in filesize_formats:
+            return bytes
+        if format_len == 3 and format[1] != 'i':
+            return bytes
+    elif format not in ('auto1024', 'auto1000',
+                        'auto1024long', 'auto1000long'):
+        return bytes
+    # Check for valid bytes
+    try:
+        bytes = long(bytes)
+    except (ValueError, TypeError):
+        return bytes
+
+    # Auto multiple of 1000 or 1024
+    if format.startswith('auto'):
+        if format[4:8] == '1000':
+            base = 1000
+        else:
+            base = 1024
+        logarithm = bytes and math.log(bytes, base) or 0
+        index = min(int(logarithm) - 1, len(filesize_formats) - 1)
+        if index >= 0:
+            if base == 1000:
+                bytes = bytes and bytes / math.pow(1000, index + 1)
+            else:
+                bytes = bytes >> (10 * (index))
+                bytes = bytes and bytes / 1024.0
+            unit = filesize_formats[index]
+        else:
+            # Change the base to 1000 so the unit will just output 'B' not 'iB'
+            base = 1000
+            unit = ''
+        if bytes >= 10 or ('%.1f' % bytes).endswith('.0'):
+            bytes = '%.0f' % bytes
+        else:
+            bytes = '%.1f' % bytes
+        if format.endswith('long'):
+            unit = filesize_long_formats.get(unit, '')
+            if base == 1024 and unit:
+                unit = '%sbi' % unit[:2]
+            unit = '%sbyte%s' % (unit, bytes != '1' and 's' or '')
+        else:
+            unit = '%s%s' % (base == 1024 and unit.upper() or unit,
+                             base == 1024 and 'iB' or 'B')
+
+        return '%s %s' % (bytes, unit)
+
+    if bytes == 0:
+        return bytes
+    base = filesize_formats.index(format[0]) + 1
+    # Exact multiple of 1000
+    if format_len == 2:
+        return bytes / (1000.0 ** base)
+    # Exact multiple of 1024
+    elif format_len == 3:
+        bytes = bytes >> (10 * (base - 1))
+        return bytes / 1024.0
+
+
+register.tag(thumbnail)
+register.filter(filesize)
diff --git a/apps/sorl/thumbnail/tests/__init__.py b/apps/sorl/thumbnail/tests/__init__.py
new file mode 100644 (file)
index 0000000..98f1cbd
--- /dev/null
@@ -0,0 +1,16 @@
+# For these tests to run successfully, two conditions must be met:
+# 1. MEDIA_URL and MEDIA_ROOT must be set in settings
+# 2. The user running the tests must have read/write access to MEDIA_ROOT
+
+# Unit tests:
+from sorl.thumbnail.tests.classes import ThumbnailTest, DjangoThumbnailTest
+from sorl.thumbnail.tests.templatetags import ThumbnailTagTest
+from sorl.thumbnail.tests.fields import FieldTest, \
+    ImageWithThumbnailsFieldTest, ThumbnailFieldTest
+# Doc tests:
+from sorl.thumbnail.tests.utils import utils_tests
+from sorl.thumbnail.tests.templatetags import filesize_tests
+__test__ = {
+    'utils_tests': utils_tests,
+    'filesize_tests': filesize_tests,
+}
diff --git a/apps/sorl/thumbnail/tests/base.py b/apps/sorl/thumbnail/tests/base.py
new file mode 100644 (file)
index 0000000..44a2fa2
--- /dev/null
@@ -0,0 +1,105 @@
+import unittest
+import os
+from PIL import Image
+from django.conf import settings
+from sorl.thumbnail.base import Thumbnail
+
+try:
+    set
+except NameError:
+    from sets import Set as set     # For Python 2.3
+
+
+def get_default_settings():
+    from sorl.thumbnail import defaults
+    def_settings = {}
+    for key in dir(defaults):
+        if key == key.upper() and key not in ['WVPS', 'CONVERT']:
+            def_settings[key] = getattr(defaults, key)
+    return def_settings
+
+
+DEFAULT_THUMBNAIL_SETTINGS = get_default_settings()
+RELATIVE_PIC_NAME = "sorl-thumbnail-test_source.jpg"
+PIC_NAME = os.path.join(settings.MEDIA_ROOT, RELATIVE_PIC_NAME)
+THUMB_NAME = os.path.join(settings.MEDIA_ROOT, "sorl-thumbnail-test_%02d.jpg")
+PIC_SIZE = (800, 600)
+
+
+class ChangeSettings:
+    def __init__(self):
+        self.default_settings = DEFAULT_THUMBNAIL_SETTINGS.copy()
+
+    def change(self, override=None):
+        if override is not None:
+            self.default_settings.update(override)
+        for setting, default in self.default_settings.items():
+            settings_s = 'THUMBNAIL_%s' % setting
+            self_s = 'original_%s' % setting
+            if hasattr(settings, settings_s) and not hasattr(self, self_s):
+                setattr(self, self_s, getattr(settings, settings_s))
+            if hasattr(settings, settings_s) or \
+               default != DEFAULT_THUMBNAIL_SETTINGS[setting]:
+                setattr(settings, settings_s, default)
+
+    def revert(self):
+        for setting in self.default_settings:
+            settings_s = 'THUMBNAIL_%s' % setting
+            self_s = 'original_%s' % setting
+            if hasattr(self, self_s):
+                setattr(settings, settings_s, getattr(self, self_s))
+                delattr(self, self_s)
+
+
+class BaseTest(unittest.TestCase):
+    def setUp(self):
+        self.images_to_delete = set()
+        # Create the test image
+        Image.new('RGB', PIC_SIZE).save(PIC_NAME, 'JPEG')
+        self.images_to_delete.add(PIC_NAME)
+        # Change settings so we know they will be constant
+        self.change_settings = ChangeSettings()
+        self.change_settings.change()
+
+    def verify_thumbnail(self, expected_size, thumbnail=None,
+                         expected_filename=None, expected_mode=None):
+        assert thumbnail is not None or expected_filename is not None, \
+            'verify_thumbnail should be passed at least a thumbnail or an' \
+            'expected filename.'
+
+        if thumbnail is not None:
+            # Verify that the templatetag method returned a Thumbnail instance
+            self.assertTrue(isinstance(thumbnail, Thumbnail))
+            thumb_name = thumbnail.dest
+        else:
+            thumb_name = expected_filename
+
+        if isinstance(thumb_name, basestring):
+            # Verify that the thumbnail file exists
+            self.assert_(os.path.isfile(thumb_name),
+                         'Thumbnail file not found')
+
+            # Remember to delete the file
+            self.images_to_delete.add(thumb_name)
+
+            # If we got an expected_filename, check that it is right
+            if expected_filename is not None and thumbnail is not None:
+                self.assertEqual(thumbnail.dest, expected_filename)
+
+        image = Image.open(thumb_name)
+
+        # Verify the thumbnail has the expected dimensions
+        self.assertEqual(image.size, expected_size)
+
+        if expected_mode is not None:
+            self.assertEqual(image.mode, expected_mode)
+
+    def tearDown(self):
+        # Remove all the files that have been created
+        for image in self.images_to_delete:
+            try:
+                os.remove(image)
+            except:
+                pass
+        # Change settings back to original
+        self.change_settings.revert()
diff --git a/apps/sorl/thumbnail/tests/classes.py b/apps/sorl/thumbnail/tests/classes.py
new file mode 100644 (file)
index 0000000..d15dd19
--- /dev/null
@@ -0,0 +1,175 @@
+# -*- coding: utf-8 -*-
+import os
+import time
+from StringIO import StringIO
+
+from PIL import Image
+from django.conf import settings
+
+from sorl.thumbnail.base import Thumbnail
+from sorl.thumbnail.main import DjangoThumbnail, get_thumbnail_setting
+from sorl.thumbnail.processors import dynamic_import, get_valid_options
+from sorl.thumbnail.tests.base import BaseTest, RELATIVE_PIC_NAME, PIC_NAME,\
+    THUMB_NAME, PIC_SIZE
+
+
+class ThumbnailTest(BaseTest):
+    def testThumbnails(self):
+        # Thumbnail
+        thumb = Thumbnail(source=PIC_NAME, dest=THUMB_NAME % 1,
+                          requested_size=(240, 240))
+        self.verify_thumbnail((240, 180), thumb)
+
+        # Cropped thumbnail
+        thumb = Thumbnail(source=PIC_NAME, dest=THUMB_NAME % 2,
+                          requested_size=(240, 240), opts=['crop'])
+        self.verify_thumbnail((240, 240), thumb)
+
+        # Thumbnail with altered JPEG quality
+        thumb = Thumbnail(source=PIC_NAME, dest=THUMB_NAME % 3,
+                          requested_size=(240, 240), quality=95)
+        self.verify_thumbnail((240, 180), thumb)
+
+    def testRegeneration(self):
+        # Create thumbnail
+        thumb_name = THUMB_NAME % 4
+        thumb_size = (240, 240)
+        Thumbnail(source=PIC_NAME, dest=thumb_name, requested_size=thumb_size)
+        self.images_to_delete.add(thumb_name)
+        thumb_mtime = os.path.getmtime(thumb_name)
+        time.sleep(1)
+
+        # Create another instance, shouldn't generate a new thumb
+        Thumbnail(source=PIC_NAME, dest=thumb_name, requested_size=thumb_size)
+        self.assertEqual(os.path.getmtime(thumb_name), thumb_mtime)
+
+        # Recreate the source image, then see if a new thumb is generated
+        Image.new('RGB', PIC_SIZE).save(PIC_NAME, 'JPEG')
+        Thumbnail(source=PIC_NAME, dest=thumb_name, requested_size=thumb_size)
+        self.assertNotEqual(os.path.getmtime(thumb_name), thumb_mtime)
+
+    def testFilelikeDest(self):
+        # Thumbnail
+        filelike_dest = StringIO()
+        thumb = Thumbnail(source=PIC_NAME, dest=filelike_dest,
+                          requested_size=(240, 240))
+        self.verify_thumbnail((240, 180), thumb)
+
+    def testRGBA(self):
+        # RGBA image
+        rgba_pic_name = os.path.join(settings.MEDIA_ROOT,
+                                     'sorl-thumbnail-test_rgba_source.png')
+        Image.new('RGBA', PIC_SIZE).save(rgba_pic_name)
+        self.images_to_delete.add(rgba_pic_name)
+        # Create thumb and verify it's still RGBA
+        rgba_thumb_name = os.path.join(settings.MEDIA_ROOT,
+                                       'sorl-thumbnail-test_rgba_dest.png')
+        thumb = Thumbnail(source=rgba_pic_name, dest=rgba_thumb_name,
+                          requested_size=(240, 240))
+        self.verify_thumbnail((240, 180), thumb, expected_mode='RGBA')
+
+
+class DjangoThumbnailTest(BaseTest):
+    def setUp(self):
+        super(DjangoThumbnailTest, self).setUp()
+        # Add another source image in a sub-directory for testing subdir and
+        # basedir.
+        self.sub_dir = os.path.join(settings.MEDIA_ROOT, 'test_thumbnail')
+        try:
+            os.mkdir(self.sub_dir)
+        except OSError:
+            pass
+        self.pic_subdir = os.path.join(self.sub_dir, RELATIVE_PIC_NAME)
+        Image.new('RGB', PIC_SIZE).save(self.pic_subdir, 'JPEG')
+        self.images_to_delete.add(self.pic_subdir)
+
+    def testFilenameGeneration(self):
+        basename = RELATIVE_PIC_NAME.replace('.', '_')
+        # Basic filename
+        thumb = DjangoThumbnail(relative_source=RELATIVE_PIC_NAME,
+                                requested_size=(240, 120))
+        expected = os.path.join(settings.MEDIA_ROOT, basename)
+        expected += '_240x120_q85.jpg'
+        self.verify_thumbnail((160, 120), thumb, expected_filename=expected)
+
+        # Changed quality and cropped
+        thumb = DjangoThumbnail(relative_source=RELATIVE_PIC_NAME,
+                                requested_size=(240, 120), opts=['crop'],
+                                quality=95)
+        expected = os.path.join(settings.MEDIA_ROOT, basename)
+        expected += '_240x120_crop_q95.jpg'
+        self.verify_thumbnail((240, 120), thumb, expected_filename=expected)
+
+        # All options on
+        processors = dynamic_import(get_thumbnail_setting('PROCESSORS'))
+        valid_options = get_valid_options(processors)
+
+        thumb = DjangoThumbnail(relative_source=RELATIVE_PIC_NAME,
+                                requested_size=(240, 120), opts=valid_options)
+        expected = (os.path.join(settings.MEDIA_ROOT, basename) + '_240x120_'
+                    'autocrop_bw_crop_detail_max_sharpen_upscale_q85.jpg')
+        self.verify_thumbnail((240, 120), thumb, expected_filename=expected)
+
+        # Different basedir
+        basedir = 'sorl-thumbnail-test-basedir'
+        self.change_settings.change({'BASEDIR': basedir})
+        thumb = DjangoThumbnail(relative_source=self.pic_subdir,
+                                requested_size=(240, 120))
+        expected = os.path.join(basedir, self.sub_dir, basename)
+        expected += '_240x120_q85.jpg'
+        self.verify_thumbnail((160, 120), thumb, expected_filename=expected)
+        # Different subdir
+        self.change_settings.change({'BASEDIR': '', 'SUBDIR': 'subdir'})
+        thumb = DjangoThumbnail(relative_source=self.pic_subdir,
+                                requested_size=(240, 120))
+        expected = os.path.join(settings.MEDIA_ROOT,
+                                os.path.basename(self.sub_dir), 'subdir',
+                                basename)
+        expected += '_240x120_q85.jpg'
+        self.verify_thumbnail((160, 120), thumb, expected_filename=expected)
+        # Different prefix
+        self.change_settings.change({'SUBDIR': '', 'PREFIX': 'prefix-'})
+        thumb = DjangoThumbnail(relative_source=self.pic_subdir,
+                                requested_size=(240, 120))
+        expected = os.path.join(self.sub_dir, 'prefix-' + basename)
+        expected += '_240x120_q85.jpg'
+        self.verify_thumbnail((160, 120), thumb, expected_filename=expected)
+
+    def testAlternateExtension(self):
+        basename = RELATIVE_PIC_NAME.replace('.', '_')
+        # Control JPG
+        thumb = DjangoThumbnail(relative_source=RELATIVE_PIC_NAME,
+                                requested_size=(240, 120))
+        expected = os.path.join(settings.MEDIA_ROOT, basename)
+        expected += '_240x120_q85.jpg'
+        expected_jpg = expected
+        self.verify_thumbnail((160, 120), thumb, expected_filename=expected)
+        # Test PNG
+        thumb = DjangoThumbnail(relative_source=RELATIVE_PIC_NAME,
+                                requested_size=(240, 120), extension='png')
+        expected = os.path.join(settings.MEDIA_ROOT, basename)
+        expected += '_240x120_q85.png'
+        self.verify_thumbnail((160, 120), thumb, expected_filename=expected)
+        # Compare the file size to make sure it's not just saving as a JPG with
+        # a different extension.
+        self.assertNotEqual(os.path.getsize(expected_jpg),
+                            os.path.getsize(expected))
+
+    def testUnicodeName(self):
+        unicode_name = 'sorl-thumbnail-ążśź_source.jpg'
+        unicode_path = os.path.join(settings.MEDIA_ROOT, unicode_name)
+        Image.new('RGB', PIC_SIZE).save(unicode_path)
+        self.images_to_delete.add(unicode_path)
+        thumb = DjangoThumbnail(relative_source=unicode_name,
+                                requested_size=(240, 120))
+        base_name = unicode_name.replace('.', '_')
+        expected = os.path.join(settings.MEDIA_ROOT,
+                                base_name + '_240x120_q85.jpg')
+        self.verify_thumbnail((160, 120), thumb, expected_filename=expected)
+
+    def tearDown(self):
+        super(DjangoThumbnailTest, self).tearDown()
+        subdir = os.path.join(self.sub_dir, 'subdir')
+        if os.path.exists(subdir):
+            os.rmdir(subdir)
+        os.rmdir(self.sub_dir)
diff --git a/apps/sorl/thumbnail/tests/fields.py b/apps/sorl/thumbnail/tests/fields.py
new file mode 100644 (file)
index 0000000..425f555
--- /dev/null
@@ -0,0 +1,131 @@
+import os.path
+
+from django.db import models
+from django.conf import settings
+from django.core.files.base import ContentFile
+
+from sorl.thumbnail.fields import ImageWithThumbnailsField, ThumbnailField
+from sorl.thumbnail.tests.base import BaseTest, RELATIVE_PIC_NAME, PIC_NAME
+
+thumbnail = {
+    'size': (50, 50),
+}
+extra_thumbnails = {
+    'admin': {
+        'size': (30, 30),
+        'options': ('crop',),
+    }
+}
+extension_thumbnail = thumbnail.copy()
+extension_thumbnail['extension'] = 'png'
+
+
+# Temporary models for field_tests
+class TestThumbnailFieldModel(models.Model):
+    avatar = ThumbnailField(upload_to='test', size=(300, 300))
+    photo = ImageWithThumbnailsField(upload_to='test', thumbnail=thumbnail,
+                                     extra_thumbnails=extra_thumbnails)
+
+
+class TestThumbnailFieldExtensionModel(models.Model):
+    photo = ImageWithThumbnailsField(upload_to='test',
+                                     thumbnail=extension_thumbnail,
+                                     extra_thumbnails=extra_thumbnails)
+
+
+class TestThumbnailFieldGenerateModel(models.Model):
+    photo = ImageWithThumbnailsField(upload_to='test', thumbnail=thumbnail,
+                                     extra_thumbnails=extra_thumbnails,
+                                     generate_on_save=True)
+
+
+class FieldTest(BaseTest):
+    """
+    Test the base field functionality. These use an ImageWithThumbnailsField
+    but all the functionality tested is from BaseThumbnailField.
+    """
+    def test_extra_thumbnails(self):
+        model = TestThumbnailFieldModel(photo=RELATIVE_PIC_NAME)
+        self.assertTrue('admin' in model.photo.extra_thumbnails)
+        thumb = model.photo.extra_thumbnails['admin']
+        tag = model.photo.extra_thumbnails_tag['admin']
+        expected_filename = os.path.join(settings.MEDIA_ROOT,
+            'sorl-thumbnail-test_source_jpg_30x30_crop_q85.jpg')
+        self.verify_thumbnail((30, 30), thumb, expected_filename)
+        expected_tag = '<img src="%s" width="30" height="30" alt="" />' % \
+            '/'.join((settings.MEDIA_URL.rstrip('/'),
+                      'sorl-thumbnail-test_source_jpg_30x30_crop_q85.jpg'))
+        self.assertEqual(tag, expected_tag)
+
+    def test_extension(self):
+        model = TestThumbnailFieldExtensionModel(photo=RELATIVE_PIC_NAME)
+        thumb = model.photo.thumbnail
+        tag = model.photo.thumbnail_tag
+        expected_filename = os.path.join(settings.MEDIA_ROOT,
+            'sorl-thumbnail-test_source_jpg_50x50_q85.png')
+        self.verify_thumbnail((50, 37), thumb, expected_filename)
+        expected_tag = '<img src="%s" width="50" height="37" alt="" />' % \
+            '/'.join((settings.MEDIA_URL.rstrip('/'),
+                      'sorl-thumbnail-test_source_jpg_50x50_q85.png'))
+        self.assertEqual(tag, expected_tag)
+
+    def test_delete_thumbnails(self):
+        model = TestThumbnailFieldModel(photo=RELATIVE_PIC_NAME)
+        thumb_file = model.photo.thumbnail.dest
+        open(thumb_file, 'wb').close()
+        self.assert_(os.path.exists(thumb_file))
+        model.photo.delete(save=False)
+        self.assertFalse(os.path.exists(thumb_file))
+
+    def test_generate_on_save(self):
+        main_thumb = os.path.join(settings.MEDIA_ROOT, 'test',
+                        'sorl-thumbnail-test_source_jpg_50x50_q85.jpg')
+        admin_thumb = os.path.join(settings.MEDIA_ROOT, 'test',
+                        'sorl-thumbnail-test_source_jpg_30x30_crop_q85.jpg')
+        self.images_to_delete.add(main_thumb)
+        self.images_to_delete.add(admin_thumb)
+        # Default setting is to only generate when the thumbnail is used.
+        model = TestThumbnailFieldModel()
+        source = ContentFile(open(PIC_NAME).read())
+        model.photo.save(RELATIVE_PIC_NAME, source, save=False)
+        self.images_to_delete.add(model.photo.path)
+        self.assertFalse(os.path.exists(main_thumb))
+        self.assertFalse(os.path.exists(admin_thumb))
+        os.remove(model.photo.path)
+        # But it's easy to set it up the other way...
+        model = TestThumbnailFieldGenerateModel()
+        source = ContentFile(open(PIC_NAME).read())
+        model.photo.save(RELATIVE_PIC_NAME, source, save=False)
+        self.assert_(os.path.exists(main_thumb))
+        self.assert_(os.path.exists(admin_thumb))
+
+
+class ImageWithThumbnailsFieldTest(BaseTest):
+    def test_thumbnail(self):
+        model = TestThumbnailFieldModel(photo=RELATIVE_PIC_NAME)
+        thumb = model.photo.thumbnail
+        tag = model.photo.thumbnail_tag
+        base_name = RELATIVE_PIC_NAME.replace('.', '_')
+        expected_filename = os.path.join(settings.MEDIA_ROOT,
+                                         '%s_50x50_q85.jpg' % base_name)
+        self.verify_thumbnail((50, 37), thumb, expected_filename)
+        expected_tag = ('<img src="%s" width="50" height="37" alt="" />' %
+                        '/'.join([settings.MEDIA_URL.rstrip('/'),
+                                  '%s_50x50_q85.jpg' % base_name]))
+        self.assertEqual(tag, expected_tag)
+
+
+class ThumbnailFieldTest(BaseTest):
+    def test_thumbnail(self):
+        model = TestThumbnailFieldModel()
+        source = ContentFile(open(PIC_NAME).read())
+        dest_name = 'sorl-thumbnail-test_dest.jpg'
+        model.avatar.save(dest_name, source, save=False)
+        expected_filename = os.path.join(model.avatar.path)
+        self.verify_thumbnail((300, 225), expected_filename=expected_filename)
+
+        tag = model.avatar.thumbnail_tag
+        expected_tag = ('<img src="%s" width="300" height="225" alt="" />' %
+                        '/'.join([settings.MEDIA_URL.rstrip('/'), 'test',
+                                  dest_name]))
+        self.assertEqual(tag, expected_tag)
diff --git a/apps/sorl/thumbnail/tests/templatetags.py b/apps/sorl/thumbnail/tests/templatetags.py
new file mode 100644 (file)
index 0000000..5d1a1cb
--- /dev/null
@@ -0,0 +1,312 @@
+import os
+from django.conf import settings
+from django.template import Template, Context, TemplateSyntaxError
+from sorl.thumbnail.tests.classes import BaseTest, RELATIVE_PIC_NAME
+
+
+class ThumbnailTagTest(BaseTest):
+    def render_template(self, source):
+        context = Context({
+            'source': RELATIVE_PIC_NAME,
+            'invalid_source': 'not%s' % RELATIVE_PIC_NAME,
+            'size': (90, 100),
+            'invalid_size': (90, 'fish'),
+            'strsize': '80x90',
+            'invalid_strsize': ('1notasize2'),
+            'invalid_q': 'notanumber'})
+        source = '{% load thumbnail %}' + source
+        return Template(source).render(context)
+
+    def testTagInvalid(self):
+        # No args, or wrong number of args
+        src = '{% thumbnail %}'
+        self.assertRaises(TemplateSyntaxError, self.render_template, src)
+        src = '{% thumbnail source %}'
+        self.assertRaises(TemplateSyntaxError, self.render_template, src)
+        src = '{% thumbnail source 80x80 as variable crop %}'
+        self.assertRaises(TemplateSyntaxError, self.render_template, src)
+
+        # Invalid option
+        src = '{% thumbnail source 240x200 invalid %}'
+        self.assertRaises(TemplateSyntaxError, self.render_template, src)
+
+        # Old comma separated options format can only have an = for quality
+        src = '{% thumbnail source 80x80 crop=1,quality=1 %}'
+        self.assertRaises(TemplateSyntaxError, self.render_template, src)
+
+        # Invalid quality
+        src_invalid = '{% thumbnail source 240x200 quality=invalid_q %}'
+        src_missing = '{% thumbnail source 240x200 quality=missing_q %}'
+        # ...with THUMBNAIL_DEBUG = False
+        self.assertEqual(self.render_template(src_invalid), '')
+        self.assertEqual(self.render_template(src_missing), '')
+        # ...and with THUMBNAIL_DEBUG = True
+        self.change_settings.change({'DEBUG': True})
+        self.assertRaises(TemplateSyntaxError, self.render_template,
+                          src_invalid)
+        self.assertRaises(TemplateSyntaxError, self.render_template,
+                          src_missing)
+
+        # Invalid source
+        src = '{% thumbnail invalid_source 80x80 %}'
+        src_on_context = '{% thumbnail invalid_source 80x80 as thumb %}'
+        # ...with THUMBNAIL_DEBUG = False
+        self.change_settings.change({'DEBUG': False})
+        self.assertEqual(self.render_template(src), '')
+        # ...and with THUMBNAIL_DEBUG = True
+        self.change_settings.change({'DEBUG': True})
+        self.assertRaises(TemplateSyntaxError, self.render_template, src)
+        self.assertRaises(TemplateSyntaxError, self.render_template,
+                          src_on_context)
+
+        # Non-existant source
+        src = '{% thumbnail non_existant_source 80x80 %}'
+        src_on_context = '{% thumbnail non_existant_source 80x80 as thumb %}'
+        # ...with THUMBNAIL_DEBUG = False
+        self.change_settings.change({'DEBUG': False})
+        self.assertEqual(self.render_template(src), '')
+        # ...and with THUMBNAIL_DEBUG = True
+        self.change_settings.change({'DEBUG': True})
+        self.assertRaises(TemplateSyntaxError, self.render_template, src)
+
+        # Invalid size as a tuple:
+        src = '{% thumbnail source invalid_size %}'
+        # ...with THUMBNAIL_DEBUG = False
+        self.change_settings.change({'DEBUG': False})
+        self.assertEqual(self.render_template(src), '')
+        # ...and THUMBNAIL_DEBUG = True
+        self.change_settings.change({'DEBUG': True})
+        self.assertRaises(TemplateSyntaxError, self.render_template, src)
+        # Invalid size as a string:
+        src = '{% thumbnail source invalid_strsize %}'
+        # ...with THUMBNAIL_DEBUG = False
+        self.change_settings.change({'DEBUG': False})
+        self.assertEqual(self.render_template(src), '')
+        # ...and THUMBNAIL_DEBUG = True
+        self.change_settings.change({'DEBUG': True})
+        self.assertRaises(TemplateSyntaxError, self.render_template, src)
+
+        # Non-existant size
+        src = '{% thumbnail source non_existant_size %}'
+        # ...with THUMBNAIL_DEBUG = False
+        self.change_settings.change({'DEBUG': False})
+        self.assertEqual(self.render_template(src), '')
+        # ...and THUMBNAIL_DEBUG = True
+        self.change_settings.change({'DEBUG': True})
+        self.assertRaises(TemplateSyntaxError, self.render_template, src)
+
+    def testTag(self):
+        expected_base = RELATIVE_PIC_NAME.replace('.', '_')
+        # Set DEBUG = True to make it easier to trace any failures
+        self.change_settings.change({'DEBUG': True})
+
+        # Basic
+        output = self.render_template('src="'
+            '{% thumbnail source 240x240 %}"')
+        expected = '%s_240x240_q85.jpg' % expected_base
+        expected_fn = os.path.join(settings.MEDIA_ROOT, expected)
+        self.verify_thumbnail((240, 180), expected_filename=expected_fn)
+        expected_url = ''.join((settings.MEDIA_URL, expected))
+        self.assertEqual(output, 'src="%s"' % expected_url)
+
+        # Size from context variable
+        # as a tuple:
+        output = self.render_template('src="'
+            '{% thumbnail source size %}"')
+        expected = '%s_90x100_q85.jpg' % expected_base
+        expected_fn = os.path.join(settings.MEDIA_ROOT, expected)
+        self.verify_thumbnail((90, 67), expected_filename=expected_fn)
+        expected_url = ''.join((settings.MEDIA_URL, expected))
+        self.assertEqual(output, 'src="%s"' % expected_url)
+        # as a string:
+        output = self.render_template('src="'
+            '{% thumbnail source strsize %}"')
+        expected = '%s_80x90_q85.jpg' % expected_base
+        expected_fn = os.path.join(settings.MEDIA_ROOT, expected)
+        self.verify_thumbnail((80, 60), expected_filename=expected_fn)
+        expected_url = ''.join((settings.MEDIA_URL, expected))
+        self.assertEqual(output, 'src="%s"' % expected_url)
+
+        # On context
+        output = self.render_template('height:'
+            '{% thumbnail source 240x240 as thumb %}{{ thumb.height }}')
+        self.assertEqual(output, 'height:180')
+
+        # With options and quality
+        output = self.render_template('src="'
+            '{% thumbnail source 240x240 sharpen crop quality=95 %}"')
+        # Note that the opts are sorted to ensure a consistent filename.
+        expected = '%s_240x240_crop_sharpen_q95.jpg' % expected_base
+        expected_fn = os.path.join(settings.MEDIA_ROOT, expected)
+        self.verify_thumbnail((240, 240), expected_filename=expected_fn)
+        expected_url = ''.join((settings.MEDIA_URL, expected))
+        self.assertEqual(output, 'src="%s"' % expected_url)
+
+        # With option and quality on context (also using its unicode method to
+        # display the url)
+        output = self.render_template(
+            '{% thumbnail source 240x240 sharpen crop quality=95 as thumb %}'
+            'width:{{ thumb.width }}, url:{{ thumb }}')
+        self.assertEqual(output, 'width:240, url:%s' % expected_url)
+
+        # Old comma separated format for options is still supported.
+        output = self.render_template(
+            '{% thumbnail source 240x240 sharpen,crop,quality=95 as thumb %}'
+            'width:{{ thumb.width }}, url:{{ thumb }}')
+        self.assertEqual(output, 'width:240, url:%s' % expected_url)
+
+filesize_tests = r"""
+>>> from sorl.thumbnail.templatetags.thumbnail import filesize
+
+>>> filesize('abc')
+'abc'
+>>> filesize(100, 'invalid')
+100
+
+>>> bytes = 20
+>>> filesize(bytes)
+'20 B'
+>>> filesize(bytes, 'auto1000')
+'20 B'
+
+>>> bytes = 1001
+>>> filesize(bytes)
+'1001 B'
+>>> filesize(bytes, 'auto1000')
+'1 kB'
+
+>>> bytes = 10100
+>>> filesize(bytes)
+'9.9 KiB'
+
+# Note that the decimal place is only used if < 10
+>>> filesize(bytes, 'auto1000')
+'10 kB'
+
+>>> bytes = 190000000
+>>> filesize(bytes)
+'181 MiB'
+>>> filesize(bytes, 'auto1000')
+'190 MB'
+
+# 'auto*long' methods use pluralisation:
+>>> filesize(1, 'auto1024long')
+'1 byte'
+>>> filesize(1, 'auto1000long')
+'1 byte'
+>>> filesize(2, 'auto1024long')
+'2 bytes'
+>>> filesize(0, 'auto1000long')
+'0 bytes'
+
+# Test all 'auto*long' output:
+>>> for i in range(1,10):
+...     print '%s, %s' % (filesize(1024**i, 'auto1024long'),
+...                       filesize(1000**i, 'auto1000long'))
+1 kibibyte, 1 kilobyte
+1 mebibyte, 1 megabyte
+1 gibibyte, 1 gigabyte
+1 tebibyte, 1 terabyte
+1 pebibyte, 1 petabyte
+1 exbibyte, 1 exabyte
+1 zebibyte, 1 zettabyte
+1 yobibyte, 1 yottabyte
+1024 yobibytes, 1000 yottabytes
+
+# Test all fixed outputs (eg 'kB' or 'MiB')
+>>> from sorl.thumbnail.templatetags.thumbnail import filesize_formats,\
+...    filesize_long_formats
+>>> for f in filesize_formats:
+...     print '%s (%siB, %sB):' % (filesize_long_formats[f], f.upper(), f)
+...     for i in range(0, 10):
+...         print ' %s, %s' % (filesize(1024**i, '%siB' % f.upper()),
+...                            filesize(1000**i, '%sB' % f))
+kilo (KiB, kB):
+ 0.0009765625, 0.001
+ 1.0, 1.0
+ 1024.0, 1000.0
+ 1048576.0, 1000000.0
+ 1073741824.0, 1000000000.0
+ 1.09951162778e+12, 1e+12
+ 1.12589990684e+15, 1e+15
+ 1.15292150461e+18, 1e+18
+ 1.18059162072e+21, 1e+21
+ 1.20892581961e+24, 1e+24
+mega (MiB, MB):
+ 0.0, 1e-06
+ 0.0009765625, 0.001
+ 1.0, 1.0
+ 1024.0, 1000.0
+ 1048576.0, 1000000.0
+ 1073741824.0, 1000000000.0
+ 1.09951162778e+12, 1e+12
+ 1.12589990684e+15, 1e+15
+ 1.15292150461e+18, 1e+18
+ 1.18059162072e+21, 1e+21
+giga (GiB, GB):
+ 0.0, 1e-09
+ 0.0, 1e-06
+ 0.0009765625, 0.001
+ 1.0, 1.0
+ 1024.0, 1000.0
+ 1048576.0, 1000000.0
+ 1073741824.0, 1000000000.0
+ 1.09951162778e+12, 1e+12
+ 1.12589990684e+15, 1e+15
+ 1.15292150461e+18, 1e+18
+tera (TiB, TB):
+ 0.0, 1e-12
+ 0.0, 1e-09
+ 0.0, 1e-06
+ 0.0009765625, 0.001
+ 1.0, 1.0
+ 1024.0, 1000.0
+ 1048576.0, 1000000.0
+ 1073741824.0, 1000000000.0
+ 1.09951162778e+12, 1e+12
+ 1.12589990684e+15, 1e+15
+peta (PiB, PB):
+ 0.0, 1e-15
+ 0.0, 1e-12
+ 0.0, 1e-09
+ 0.0, 1e-06
+ 0.0009765625, 0.001
+ 1.0, 1.0
+ 1024.0, 1000.0
+ 1048576.0, 1000000.0
+ 1073741824.0, 1000000000.0
+ 1.09951162778e+12, 1e+12
+exa (EiB, EB):
+ 0.0, 1e-18
+ 0.0, 1e-15
+ 0.0, 1e-12
+ 0.0, 1e-09
+ 0.0, 1e-06
+ 0.0009765625, 0.001
+ 1.0, 1.0
+ 1024.0, 1000.0
+ 1048576.0, 1000000.0
+ 1073741824.0, 1000000000.0
+zetta (ZiB, ZB):
+ 0.0, 1e-21
+ 0.0, 1e-18
+ 0.0, 1e-15
+ 0.0, 1e-12
+ 0.0, 1e-09
+ 0.0, 1e-06
+ 0.0009765625, 0.001
+ 1.0, 1.0
+ 1024.0, 1000.0
+ 1048576.0, 1000000.0
+yotta (YiB, YB):
+ 0.0, 1e-24
+ 0.0, 1e-21
+ 0.0, 1e-18
+ 0.0, 1e-15
+ 0.0, 1e-12
+ 0.0, 1e-09
+ 0.0, 1e-06
+ 0.0009765625, 0.001
+ 1.0, 1.0
+ 1024.0, 1000.0
+"""
diff --git a/apps/sorl/thumbnail/tests/utils.py b/apps/sorl/thumbnail/tests/utils.py
new file mode 100644 (file)
index 0000000..3a20cbb
--- /dev/null
@@ -0,0 +1,149 @@
+from django.conf import settings
+from sorl.thumbnail.utils import *
+
+try:
+    set
+except NameError:
+    from sets import Set as set     # For Python 2.3
+
+MEDIA_ROOT_LENGTH = len(os.path.normpath(settings.MEDIA_ROOT))
+
+utils_tests = r"""
+>>> from sorl.thumbnail.tests.utils import *
+>>> from sorl.thumbnail.tests.base import ChangeSettings
+>>> from django.conf import settings
+
+>>> change_settings = ChangeSettings()
+>>> change_settings.change()
+
+>>> media_root = settings.MEDIA_ROOT.rstrip('/')
+
+#==============================================================================
+# Set up test images
+#==============================================================================
+
+>>> make_image('test-thumbnail-utils/subdir/test_jpg_110x110_q85.jpg')
+>>> make_image('test-thumbnail-utils/test_jpg_80x80_q85.jpg')
+>>> make_image('test-thumbnail-utils/test_jpg_80x80_q95.jpg')
+>>> make_image('test-thumbnail-utils/another_test_jpg_80x80_q85.jpg')
+>>> make_image('test-thumbnail-utils/test_with_opts_jpg_80x80_crop_bw_q85.jpg')
+>>> make_image('test-thumbnail-basedir/test-thumbnail-utils/test_jpg_100x100_'
+...            'q85.jpg')
+>>> make_image('test-thumbnail-utils/prefix-test_jpg_120x120_q85.jpg')
+
+#==============================================================================
+# all_thumbnails()
+#==============================================================================
+
+# Find all thumbs
+>>> thumb_dir = os.path.join(settings.MEDIA_ROOT, 'test-thumbnail-utils')
+>>> thumbs = all_thumbnails(thumb_dir)
+>>> k = thumbs.keys()
+>>> k.sort()
+>>> [consistent_slash(path) for path in k]
+['another_test.jpg', 'prefix-test.jpg', 'subdir/test.jpg', 'test.jpg',
+ 'test_with_opts.jpg']
+
+# Find all thumbs, no recurse
+>>> thumbs = all_thumbnails(thumb_dir, recursive=False)
+>>> k = thumbs.keys()
+>>> k.sort()
+>>> k
+['another_test.jpg', 'prefix-test.jpg', 'test.jpg', 'test_with_opts.jpg']
+
+#==============================================================================
+# thumbnails_for_file()
+#==============================================================================
+
+>>> output = []
+>>> for thumb in thumbs['test.jpg']:
+...     thumb['rel_fn'] = strip_media_root(thumb['filename'])
+...     output.append('%(x)sx%(y)s %(quality)s %(rel_fn)s' % thumb)
+>>> output.sort()
+>>> output
+['80x80 85 test-thumbnail-utils/test_jpg_80x80_q85.jpg',
+ '80x80 95 test-thumbnail-utils/test_jpg_80x80_q95.jpg']
+
+# Thumbnails for file
+>>> output = []
+>>> for thumb in thumbnails_for_file('test-thumbnail-utils/test.jpg'):
+...    output.append(strip_media_root(thumb['filename']))
+>>> output.sort()
+>>> output
+['test-thumbnail-utils/test_jpg_80x80_q85.jpg',
+ 'test-thumbnail-utils/test_jpg_80x80_q95.jpg']
+
+# Thumbnails for file - shouldn't choke on non-existant file
+>>> thumbnails_for_file('test-thumbnail-utils/non-existant.jpg')
+[]
+
+# Thumbnails for file, with basedir setting
+>>> change_settings.change({'BASEDIR': 'test-thumbnail-basedir'})
+>>> for thumb in thumbnails_for_file('test-thumbnail-utils/test.jpg'):
+...    print strip_media_root(thumb['filename'])
+test-thumbnail-basedir/test-thumbnail-utils/test_jpg_100x100_q85.jpg
+
+# Thumbnails for file, with subdir setting
+>>> change_settings.change({'SUBDIR': 'subdir', 'BASEDIR': ''})
+>>> for thumb in thumbnails_for_file('test-thumbnail-utils/test.jpg'):
+...    print strip_media_root(thumb['filename'])
+test-thumbnail-utils/subdir/test_jpg_110x110_q85.jpg
+
+# Thumbnails for file, with prefix setting
+>>> change_settings.change({'PREFIX': 'prefix-', 'SUBDIR': ''})
+>>> for thumb in thumbnails_for_file('test-thumbnail-utils/test.jpg'):
+...    print strip_media_root(thumb['filename'])
+test-thumbnail-utils/prefix-test_jpg_120x120_q85.jpg
+
+#==============================================================================
+# Clean up images / directories
+#==============================================================================
+
+>>> clean_up()
+"""
+
+images_to_delete = set()
+dirs_to_delete = []
+
+
+def make_image(relative_image):
+    absolute_image = os.path.join(settings.MEDIA_ROOT, relative_image)
+    make_dirs(os.path.dirname(relative_image))
+    open(absolute_image, 'w').close()
+    images_to_delete.add(absolute_image)
+
+
+def make_dirs(relative_path):
+    if not relative_path:
+        return
+    absolute_path = os.path.join(settings.MEDIA_ROOT, relative_path)
+    if os.path.isdir(absolute_path):
+        return
+    if absolute_path not in dirs_to_delete:
+        dirs_to_delete.append(absolute_path)
+    make_dirs(os.path.dirname(relative_path))
+    os.mkdir(absolute_path)
+
+
+def clean_up():
+    for image in images_to_delete:
+        os.remove(image)
+    for path in dirs_to_delete:
+        os.rmdir(path)
+
+
+def strip_media_root(path):
+    path = os.path.normpath(path)
+    # chop off the MEDIA_ROOT and strip any leading os.sep
+    path = path[MEDIA_ROOT_LENGTH:].lstrip(os.sep)
+    return consistent_slash(path)
+
+
+def consistent_slash(path):
+    """
+    Ensure we're always testing against the '/' os separator (otherwise tests
+    fail against Windows).
+    """
+    if os.sep != '/':
+        path = path.replace(os.sep, '/')
+    return path
diff --git a/apps/sorl/thumbnail/utils.py b/apps/sorl/thumbnail/utils.py
new file mode 100644 (file)
index 0000000..18b18b0
--- /dev/null
@@ -0,0 +1,170 @@
+import math
+import os
+import re
+
+
+re_thumbnail_file = re.compile(r'(?P<source_filename>.+)_(?P<x>\d+)x(?P<y>\d+)'
+                               r'(?:_(?P<options>\w+))?_q(?P<quality>\d+)'
+                               r'(?:.[^.]+)?$')
+re_new_args = re.compile('(?<!quality)=')
+
+
+def all_thumbnails(path, recursive=True, prefix=None, subdir=None):
+    """
+    Return a dictionary referencing all files which match the thumbnail format.
+
+    Each key is a source image filename, relative to path.
+    Each value is a list of dictionaries as explained in `thumbnails_for_file`.
+    """
+    # Fall back to using thumbnail settings. These are local imports so that
+    # there is no requirement of Django to use the utils module.
+    if prefix is None:
+        from sorl.thumbnail.main import get_thumbnail_setting
+        prefix = get_thumbnail_setting('PREFIX')
+    if subdir is None:
+        from sorl.thumbnail.main import get_thumbnail_setting
+        subdir = get_thumbnail_setting('SUBDIR')
+    thumbnail_files = {}
+    if not path.endswith('/'):
+        path = '%s/' % path
+    len_path = len(path)
+    if recursive:
+        all = os.walk(path)
+    else:
+        files = []
+        for file in os.listdir(path):
+            if os.path.isfile(os.path.join(path, file)):
+                files.append(file)
+        all = [(path, [], files)]
+    for dir_, subdirs, files in all:
+        rel_dir = dir_[len_path:]
+        for file in files:
+            thumb = re_thumbnail_file.match(file)
+            if not thumb:
+                continue
+            d = thumb.groupdict()
+            source_filename = d.pop('source_filename')
+            if prefix:
+                source_path, source_filename = os.path.split(source_filename)
+                if not source_filename.startswith(prefix):
+                    continue
+                source_filename = os.path.join(source_path,
+                    source_filename[len(prefix):])
+            d['options'] = d['options'] and d['options'].split('_') or []
+            if subdir and rel_dir.endswith(subdir):
+                rel_dir = rel_dir[:-len(subdir)]
+            # Corner-case bug: if the filename didn't have an extension but did
+            # have an underscore, the last underscore will get converted to a
+            # '.'.
+            m = re.match(r'(.*)_(.*)', source_filename)
+            if m:
+                source_filename = '%s.%s' % m.groups()
+            filename = os.path.join(rel_dir, source_filename)
+            thumbnail_file = thumbnail_files.setdefault(filename, [])
+            d['filename'] = os.path.join(dir_, file)
+            thumbnail_file.append(d)
+    return thumbnail_files
+
+
+def thumbnails_for_file(relative_source_path, root=None, basedir=None,
+                        subdir=None, prefix=None):
+    """
+    Return a list of dictionaries, one for each thumbnail belonging to the
+    source image.
+
+    The following list explains each key of the dictionary:
+
+      `filename`  -- absolute thumbnail path
+      `x` and `y` -- the size of the thumbnail
+      `options`   -- list of options for this thumbnail
+      `quality`   -- quality setting for this thumbnail
+    """
+    # Fall back to using thumbnail settings. These are local imports so that
+    # there is no requirement of Django to use the utils module.
+    if root is None:
+        from django.conf import settings
+        root = settings.MEDIA_ROOT
+    if prefix is None:
+        from sorl.thumbnail.main import get_thumbnail_setting
+        prefix = get_thumbnail_setting('PREFIX')
+    if subdir is None:
+        from sorl.thumbnail.main import get_thumbnail_setting
+        subdir = get_thumbnail_setting('SUBDIR')
+    if basedir is None:
+        from sorl.thumbnail.main import get_thumbnail_setting
+        basedir = get_thumbnail_setting('BASEDIR')
+    source_dir, filename = os.path.split(relative_source_path)
+    thumbs_path = os.path.join(root, basedir, source_dir, subdir)
+    if not os.path.isdir(thumbs_path):
+        return []
+    files = all_thumbnails(thumbs_path, recursive=False, prefix=prefix,
+                           subdir='')
+    return files.get(filename, [])
+
+
+def delete_thumbnails(relative_source_path, root=None, basedir=None,
+                      subdir=None, prefix=None):
+    """
+    Delete all thumbnails for a source image.
+    """
+    thumbs = thumbnails_for_file(relative_source_path, root, basedir, subdir,
+                                 prefix)
+    return _delete_using_thumbs_list(thumbs)
+
+
+def _delete_using_thumbs_list(thumbs):
+    deleted = 0
+    for thumb_dict in thumbs:
+        filename = thumb_dict['filename']
+        try:
+            os.remove(filename)
+        except:
+            pass
+        else:
+            deleted += 1
+    return deleted
+
+
+def delete_all_thumbnails(path, recursive=True):
+    """
+    Delete all files within a path which match the thumbnails pattern.
+
+    By default, matching files from all sub-directories are also removed. To
+    only remove from the path directory, set recursive=False.
+    """
+    total = 0
+    for thumbs in all_thumbnails(path, recursive=recursive).values():
+        total += _delete_using_thumbs_list(thumbs)
+    return total
+
+
+def split_args(args):
+    """
+    Split a list of argument strings into a dictionary where each key is an
+    argument name.
+
+    An argument looks like ``crop``, ``crop="some option"`` or ``crop=my_var``.
+    Arguments which provide no value get a value of ``None``.
+    """
+    if not args:
+        return {}
+    # Handle the old comma separated argument format.
+    if len(args) == 1 and not re_new_args.search(args[0]):
+        args = args[0].split(',')
+    # Separate out the key and value for each argument.
+    args_dict = {}
+    for arg in args:
+        split_arg = arg.split('=', 1)
+        value = len(split_arg) > 1 and split_arg[1] or None
+        args_dict[split_arg[0]] = value
+    return args_dict
+
+
+def image_entropy(im):
+    """
+    Calculate the entropy of an image. Used for "smart cropping".
+    """
+    hist = im.histogram()
+    hist_size = float(sum(hist))
+    hist = [h / hist_size for h in hist]
+    return -sum([p * math.log(p, 2) for p in hist if p != 0])
index 87868ce..1e0d212 100644 (file)
@@ -118,12 +118,17 @@ INSTALLED_APPS = (
     'django.contrib.admindocs',
 
     'piston',
     'django.contrib.admindocs',
 
     'piston',
+    'sorl.thumbnail',
+    'filebrowser',
     'explorer',
     'toolbar',
     'api',
 )
 
 
     'explorer',
     'toolbar',
     'api',
 )
 
 
+FILEBROWSER_URL_FILEBROWSER_MEDIA = STATIC_URL + 'filebrowser/'
+
+
 # REPOSITORY_PATH = '/Users/zuber/Projekty/platforma/files/books'
 IMAGE_DIR = 'images'
 EDITOR_COOKIE_NAME = 'options'
 # REPOSITORY_PATH = '/Users/zuber/Projekty/platforma/files/books'
 IMAGE_DIR = 'images'
 EDITOR_COOKIE_NAME = 'options'
diff --git a/platforma/static/filebrowser/.svn/all-wcprops b/platforma/static/filebrowser/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..3752e31
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 70
+/svn/!svn/ver/466/branches/filebrowser_3/filebrowser/media/filebrowser
+END
diff --git a/platforma/static/filebrowser/.svn/entries b/platforma/static/filebrowser/.svn/entries
new file mode 100644 (file)
index 0000000..53de698
--- /dev/null
@@ -0,0 +1,40 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-29T16:15:59.524671Z
+466
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+css
+dir
+\f
+img
+dir
+\f
+js
+dir
+\f
+uploadify
+dir
+\f
diff --git a/platforma/static/filebrowser/css/.svn/all-wcprops b/platforma/static/filebrowser/css/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..8cfbfa0
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 74
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/css
+END
+filebrowser.css
+K 25
+svn:wc:ra_dav:version-url
+V 90
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/css/filebrowser.css
+END
diff --git a/platforma/static/filebrowser/css/.svn/entries b/platforma/static/filebrowser/css/.svn/entries
new file mode 100644 (file)
index 0000000..e429ef4
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/css
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+filebrowser.css
+file
+
+
+
+
+2009-11-05T20:58:49.000000Z
+724fd235089ee5ad15499fcbe5ddfc88
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1637
+\f
diff --git a/platforma/static/filebrowser/css/.svn/prop-base/filebrowser.css.svn-base b/platforma/static/filebrowser/css/.svn/prop-base/filebrowser.css.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/css/.svn/text-base/filebrowser.css.svn-base b/platforma/static/filebrowser/css/.svn/text-base/filebrowser.css.svn-base
new file mode 100644 (file)
index 0000000..c68126e
--- /dev/null
@@ -0,0 +1,29 @@
+.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/platforma/static/filebrowser/css/filebrowser.css b/platforma/static/filebrowser/css/filebrowser.css
new file mode 100755 (executable)
index 0000000..c68126e
--- /dev/null
@@ -0,0 +1,29 @@
+.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/platforma/static/filebrowser/img/.svn/all-wcprops b/platforma/static/filebrowser/img/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..7726832
--- /dev/null
@@ -0,0 +1,203 @@
+K 25
+svn:wc:ra_dav:version-url
+V 74
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img
+END
+filebrowser_object-tools_icon_makethumb.gif
+K 25
+svn:wc:ra_dav:version-url
+V 118
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif
+END
+filebrowser_icon_delete.gif
+K 25
+svn:wc:ra_dav:version-url
+V 102
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_delete.gif
+END
+filebrowser_type_code.gif
+K 25
+svn:wc:ra_dav:version-url
+V 100
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_type_code.gif
+END
+filebrowser_icon_select_disabled.gif
+K 25
+svn:wc:ra_dav:version-url
+V 111
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_select_disabled.gif
+END
+filebrowser_type_.gif
+K 25
+svn:wc:ra_dav:version-url
+V 96
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_type_.gif
+END
+filebrowser_icon_rename_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 108
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_rename_hover.gif
+END
+filebrowser_type_image.gif
+K 25
+svn:wc:ra_dav:version-url
+V 101
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_type_image.gif
+END
+filebrowser_icon_showversions_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 114
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_showversions_hover.gif
+END
+filebrowser_icon_makethumb.gif
+K 25
+svn:wc:ra_dav:version-url
+V 105
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb.gif
+END
+filebrowser_icon_select.gif
+K 25
+svn:wc:ra_dav:version-url
+V 102
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_select.gif
+END
+filebrowser_object-tools_icon_imagegenerator_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 129
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif
+END
+filebrowser_icon_show.gif
+K 25
+svn:wc:ra_dav:version-url
+V 100
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_show.gif
+END
+filebrowser_type_sound.gif
+K 25
+svn:wc:ra_dav:version-url
+V 101
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_type_sound.gif
+END
+filebrowser_object-tools_icon_makedirectory.gif
+K 25
+svn:wc:ra_dav:version-url
+V 122
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif
+END
+filebrowser_object-tools_icon_multipleupload_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 129
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif
+END
+filebrowser_icon_imagegenerator_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 116
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif
+END
+filebrowser_type_video.gif
+K 25
+svn:wc:ra_dav:version-url
+V 101
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_type_video.gif
+END
+tableheader_arrow_up.gif
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/tableheader_arrow_up.gif
+END
+filebrowser_type_folder.gif
+K 25
+svn:wc:ra_dav:version-url
+V 102
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_type_folder.gif
+END
+filebrowser_object-tools_icon_makethumb_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 124
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif
+END
+filebrowser_icon_delete_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 108
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_delete_hover.gif
+END
+filebrowser_type_document.gif
+K 25
+svn:wc:ra_dav:version-url
+V 104
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_type_document.gif
+END
+filebrowser_icon_rename.gif
+K 25
+svn:wc:ra_dav:version-url
+V 102
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_rename.gif
+END
+filebrowser_icon_showversions.gif
+K 25
+svn:wc:ra_dav:version-url
+V 108
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_showversions.gif
+END
+filebrowser_object-tools_icon_imagegenerator.gif
+K 25
+svn:wc:ra_dav:version-url
+V 123
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif
+END
+filebrowser_icon_makethumb_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 111
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_makethumb_hover.gif
+END
+tableheader_arrows.gif
+K 25
+svn:wc:ra_dav:version-url
+V 97
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/tableheader_arrows.gif
+END
+filebrowser_icon_select_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 108
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_select_hover.gif
+END
+filebrowser_icon_show_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 106
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_show_hover.gif
+END
+filebrowser_object-tools_icon_multipleupload.gif
+K 25
+svn:wc:ra_dav:version-url
+V 123
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif
+END
+tableheader_arrow_down.gif
+K 25
+svn:wc:ra_dav:version-url
+V 101
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/tableheader_arrow_down.gif
+END
+filebrowser_object-tools_icon_makedirectory_hover.gif
+K 25
+svn:wc:ra_dav:version-url
+V 128
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif
+END
+filebrowser_icon_imagegenerator.gif
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/img/filebrowser_icon_imagegenerator.gif
+END
diff --git a/platforma/static/filebrowser/img/.svn/entries b/platforma/static/filebrowser/img/.svn/entries
new file mode 100644 (file)
index 0000000..69fc4e7
--- /dev/null
@@ -0,0 +1,1150 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/img
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+filebrowser_object-tools_icon_makethumb.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+ac0b0f779a11e12c6fb9be3fd9dae3a9
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+403
+\f
+filebrowser_icon_delete.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+157eed9c0a8ce56cc2b75cb12065f1cb
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+151
+\f
+filebrowser_type_code.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+325e306d3e02c8acda7af6adfa7fe004
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+160
+\f
+filebrowser_icon_select_disabled.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+a0c268883018edf7fb7a89c8bd0818e3
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3186
+\f
+filebrowser_type_.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+b5fac564ecb2166984dd3a2bbeed30f2
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+113
+\f
+filebrowser_icon_rename_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+497f6c51d823c274a60fe2f0e62e5f0c
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+222
+\f
+filebrowser_type_image.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+f7ee32d90df4f4a881332f8792bff56c
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+127
+\f
+filebrowser_icon_showversions_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+738f5047e56dfc42c27a2035264d9a5a
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+174
+\f
+filebrowser_icon_makethumb.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+ab37558a12a7ac398d70967cea5c2490
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+378
+\f
+filebrowser_icon_select.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+d5f9eece128537b385fbce97dbe845a1
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+377
+\f
+filebrowser_object-tools_icon_imagegenerator_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+f7283a0d70fde92d648968b4d717b332
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+433
+\f
+filebrowser_icon_show.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+796cca444bccb1aa3a1177af34df2b55
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+427
+\f
+filebrowser_type_sound.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+4151664f192446c247002b107e7ef44b
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+223
+\f
+filebrowser_object-tools_icon_makedirectory.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+a0a9265b740291191ef495408d8462ee
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+390
+\f
+filebrowser_object-tools_icon_multipleupload_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+9c8b269a5d21539c833af80f93f98857
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+263
+\f
+filebrowser_icon_imagegenerator_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+f7283a0d70fde92d648968b4d717b332
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+433
+\f
+filebrowser_type_video.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+a4182f6abe9db217cfe9285bc4d658d8
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+147
+\f
+tableheader_arrow_up.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+54e3bf1ab4191c053d1f986da869b891
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+292
+\f
+filebrowser_type_folder.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+06bb3d324d86924674bd696673cf12b5
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+228
+\f
+filebrowser_object-tools_icon_makethumb_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+ae1a740563fab6107c761690ba1ea4b0
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+284
+\f
+filebrowser_icon_delete_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+3bc37e729ede0d78618286dcaaec4ecb
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+151
+\f
+filebrowser_type_document.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+69c60b7de4e9e07a111275424f8aea38
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+118
+\f
+filebrowser_icon_rename.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+74d609b1407d2ec6a06797be1fa252b4
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+222
+\f
+filebrowser_icon_showversions.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+5e1a776e0b8cf3a7f28f7a7fe10c04f3
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+174
+\f
+filebrowser_object-tools_icon_imagegenerator.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+67c3f4a7d6cecec501fdf0561c07a300
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+433
+\f
+filebrowser_icon_makethumb_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+b53f0c3ec7e9ba09faaf184ae9b9e08e
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+378
+\f
+tableheader_arrows.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+9938865535b6e2225419b4c97fe3e5ab
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+296
+\f
+filebrowser_icon_select_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+3b1c5ee35a836335a146e58ef96f5e6d
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+264
+\f
+filebrowser_icon_show_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+d86a374f1f8fc4dc541d060151e3a3cc
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+426
+\f
+filebrowser_object-tools_icon_multipleupload.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+592061db6b21baef0214d5ca0db50318
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+387
+\f
+tableheader_arrow_down.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+b3e7bfc27c65b00e59b6c732fdeccc16
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+292
+\f
+filebrowser_object-tools_icon_makedirectory_hover.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+0969316f65cbce421d15ae05ed2b6806
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+378
+\f
+filebrowser_icon_imagegenerator.gif
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+67c3f4a7d6cecec501fdf0561c07a300
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+433
+\f
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_delete.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_delete.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_delete_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_delete_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_imagegenerator.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_imagegenerator.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_imagegenerator_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_imagegenerator_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_makethumb.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_makethumb.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_makethumb_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_makethumb_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_rename.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_rename.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_rename_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_rename_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_select.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_select.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_select_disabled.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_select_disabled.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_select_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_select_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_show.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_show.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_show_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_show_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_showversions.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_showversions.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_showversions_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_icon_showversions_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_imagegenerator.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_imagegenerator.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_imagegenerator_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_imagegenerator_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makedirectory.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makedirectory.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makedirectory_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makedirectory_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makethumb.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makethumb.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makethumb_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_makethumb_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_multipleupload.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_multipleupload.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_multipleupload_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_object-tools_icon_multipleupload_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_code.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_code.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_document.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_document.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_folder.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_folder.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_image.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_image.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_sound.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_sound.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_video.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/filebrowser_type_video.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/tableheader_arrow_down.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/tableheader_arrow_down.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/tableheader_arrow_up.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/tableheader_arrow_up.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/prop-base/tableheader_arrows.gif.svn-base b/platforma/static/filebrowser/img/.svn/prop-base/tableheader_arrows.gif.svn-base
new file mode 100644 (file)
index 0000000..5e9587e
--- /dev/null
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_delete.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_delete.gif.svn-base
new file mode 100644 (file)
index 0000000..221a6e1
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_delete.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_delete_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_delete_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..2a2142c
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_delete_hover.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator.gif.svn-base
new file mode 100644 (file)
index 0000000..9b19a42
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..aaa256f
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_imagegenerator_hover.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb.gif.svn-base
new file mode 100644 (file)
index 0000000..837f6cc
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..d1d4d4a
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_makethumb_hover.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_rename.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_rename.gif.svn-base
new file mode 100644 (file)
index 0000000..bc45fe4
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_rename.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_rename_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_rename_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..be8ea08
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_rename_hover.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_select.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_select.gif.svn-base
new file mode 100644 (file)
index 0000000..a838427
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_select.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_select_disabled.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_select_disabled.gif.svn-base
new file mode 100644 (file)
index 0000000..60ad2d5
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_select_disabled.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_select_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_select_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..319558e
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_select_hover.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_show.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_show.gif.svn-base
new file mode 100644 (file)
index 0000000..dded982
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_show.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_show_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_show_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..fbd1f33
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_show_hover.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_showversions.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_showversions.gif.svn-base
new file mode 100644 (file)
index 0000000..71525d7
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_showversions.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_showversions_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_showversions_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..1fbe2e4
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_icon_showversions_hover.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator.gif.svn-base
new file mode 100644 (file)
index 0000000..9b19a42
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..aaa256f
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_imagegenerator_hover.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory.gif.svn-base
new file mode 100644 (file)
index 0000000..bcd98d9
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..f9938c7
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makedirectory_hover.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb.gif.svn-base
new file mode 100644 (file)
index 0000000..a6863cb
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..b9aba7c
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_makethumb_hover.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload.gif.svn-base
new file mode 100644 (file)
index 0000000..6de016b
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload_hover.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload_hover.gif.svn-base
new file mode 100644 (file)
index 0000000..eaaf254
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_object-tools_icon_multipleupload_hover.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_.gif.svn-base
new file mode 100644 (file)
index 0000000..6a908e2
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_code.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_code.gif.svn-base
new file mode 100644 (file)
index 0000000..9650839
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_code.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_document.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_document.gif.svn-base
new file mode 100644 (file)
index 0000000..65ebd99
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_document.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_folder.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_folder.gif.svn-base
new file mode 100644 (file)
index 0000000..115e3fb
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_folder.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_image.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_image.gif.svn-base
new file mode 100644 (file)
index 0000000..000b31c
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_image.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_sound.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_sound.gif.svn-base
new file mode 100644 (file)
index 0000000..8a8970a
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_sound.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_video.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_video.gif.svn-base
new file mode 100644 (file)
index 0000000..f456d59
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/filebrowser_type_video.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/tableheader_arrow_down.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/tableheader_arrow_down.gif.svn-base
new file mode 100644 (file)
index 0000000..5ae95a6
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/tableheader_arrow_down.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/tableheader_arrow_up.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/tableheader_arrow_up.gif.svn-base
new file mode 100644 (file)
index 0000000..85f1e12
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/tableheader_arrow_up.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/.svn/text-base/tableheader_arrows.gif.svn-base b/platforma/static/filebrowser/img/.svn/text-base/tableheader_arrows.gif.svn-base
new file mode 100644 (file)
index 0000000..39b8780
Binary files /dev/null and b/platforma/static/filebrowser/img/.svn/text-base/tableheader_arrows.gif.svn-base differ
diff --git a/platforma/static/filebrowser/img/filebrowser_icon_delete.gif b/platforma/static/filebrowser/img/filebrowser_icon_delete.gif
new file mode 100644 (file)
index 0000000..221a6e1
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_icon_delete.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_icon_delete_hover.gif b/platforma/static/filebrowser/img/filebrowser_icon_delete_hover.gif
new file mode 100644 (file)
index 0000000..2a2142c
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_icon_delete_hover.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_icon_imagegenerator.gif b/platforma/static/filebrowser/img/filebrowser_icon_imagegenerator.gif
new file mode 100644 (file)
index 0000000..9b19a42
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_icon_imagegenerator.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif b/platforma/static/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif
new file mode 100644 (file)
index 0000000..aaa256f
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_icon_imagegenerator_hover.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_icon_makethumb.gif b/platforma/static/filebrowser/img/filebrowser_icon_makethumb.gif
new file mode 100644 (file)
index 0000000..837f6cc
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_icon_makethumb.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_icon_makethumb_hover.gif b/platforma/static/filebrowser/img/filebrowser_icon_makethumb_hover.gif
new file mode 100644 (file)
index 0000000..d1d4d4a
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_icon_makethumb_hover.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_icon_rename.gif b/platforma/static/filebrowser/img/filebrowser_icon_rename.gif
new file mode 100644 (file)
index 0000000..bc45fe4
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_icon_rename.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_icon_rename_hover.gif b/platforma/static/filebrowser/img/filebrowser_icon_rename_hover.gif
new file mode 100644 (file)
index 0000000..be8ea08
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_icon_rename_hover.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_icon_select.gif b/platforma/static/filebrowser/img/filebrowser_icon_select.gif
new file mode 100644 (file)
index 0000000..a838427
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_icon_select.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_icon_select_disabled.gif b/platforma/static/filebrowser/img/filebrowser_icon_select_disabled.gif
new file mode 100644 (file)
index 0000000..60ad2d5
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_icon_select_disabled.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_icon_select_hover.gif b/platforma/static/filebrowser/img/filebrowser_icon_select_hover.gif
new file mode 100644 (file)
index 0000000..319558e
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_icon_select_hover.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_icon_show.gif b/platforma/static/filebrowser/img/filebrowser_icon_show.gif
new file mode 100644 (file)
index 0000000..dded982
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_icon_show.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_icon_show_hover.gif b/platforma/static/filebrowser/img/filebrowser_icon_show_hover.gif
new file mode 100644 (file)
index 0000000..fbd1f33
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_icon_show_hover.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_icon_showversions.gif b/platforma/static/filebrowser/img/filebrowser_icon_showversions.gif
new file mode 100644 (file)
index 0000000..71525d7
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_icon_showversions.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_icon_showversions_hover.gif b/platforma/static/filebrowser/img/filebrowser_icon_showversions_hover.gif
new file mode 100644 (file)
index 0000000..1fbe2e4
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_icon_showversions_hover.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif
new file mode 100644 (file)
index 0000000..9b19a42
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif
new file mode 100644 (file)
index 0000000..aaa256f
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_imagegenerator_hover.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif
new file mode 100644 (file)
index 0000000..bcd98d9
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif
new file mode 100644 (file)
index 0000000..f9938c7
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_makedirectory_hover.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif
new file mode 100644 (file)
index 0000000..a6863cb
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_makethumb.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif
new file mode 100644 (file)
index 0000000..b9aba7c
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_makethumb_hover.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif
new file mode 100644 (file)
index 0000000..6de016b
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif
new file mode 100644 (file)
index 0000000..eaaf254
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_object-tools_icon_multipleupload_hover.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_type_.gif b/platforma/static/filebrowser/img/filebrowser_type_.gif
new file mode 100644 (file)
index 0000000..6a908e2
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_type_.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_type_code.gif b/platforma/static/filebrowser/img/filebrowser_type_code.gif
new file mode 100644 (file)
index 0000000..9650839
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_type_code.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_type_document.gif b/platforma/static/filebrowser/img/filebrowser_type_document.gif
new file mode 100644 (file)
index 0000000..65ebd99
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_type_document.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_type_folder.gif b/platforma/static/filebrowser/img/filebrowser_type_folder.gif
new file mode 100644 (file)
index 0000000..115e3fb
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_type_folder.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_type_image.gif b/platforma/static/filebrowser/img/filebrowser_type_image.gif
new file mode 100644 (file)
index 0000000..000b31c
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_type_image.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_type_sound.gif b/platforma/static/filebrowser/img/filebrowser_type_sound.gif
new file mode 100644 (file)
index 0000000..8a8970a
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_type_sound.gif differ
diff --git a/platforma/static/filebrowser/img/filebrowser_type_video.gif b/platforma/static/filebrowser/img/filebrowser_type_video.gif
new file mode 100644 (file)
index 0000000..f456d59
Binary files /dev/null and b/platforma/static/filebrowser/img/filebrowser_type_video.gif differ
diff --git a/platforma/static/filebrowser/img/tableheader_arrow_down.gif b/platforma/static/filebrowser/img/tableheader_arrow_down.gif
new file mode 100644 (file)
index 0000000..5ae95a6
Binary files /dev/null and b/platforma/static/filebrowser/img/tableheader_arrow_down.gif differ
diff --git a/platforma/static/filebrowser/img/tableheader_arrow_up.gif b/platforma/static/filebrowser/img/tableheader_arrow_up.gif
new file mode 100644 (file)
index 0000000..85f1e12
Binary files /dev/null and b/platforma/static/filebrowser/img/tableheader_arrow_up.gif differ
diff --git a/platforma/static/filebrowser/img/tableheader_arrows.gif b/platforma/static/filebrowser/img/tableheader_arrows.gif
new file mode 100644 (file)
index 0000000..39b8780
Binary files /dev/null and b/platforma/static/filebrowser/img/tableheader_arrows.gif differ
diff --git a/platforma/static/filebrowser/js/.svn/all-wcprops b/platforma/static/filebrowser/js/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..201d687
--- /dev/null
@@ -0,0 +1,41 @@
+K 25
+svn:wc:ra_dav:version-url
+V 73
+/svn/!svn/ver/466/branches/filebrowser_3/filebrowser/media/filebrowser/js
+END
+FB_CKEditor.js
+K 25
+svn:wc:ra_dav:version-url
+V 88
+/svn/!svn/ver/452/branches/filebrowser_3/filebrowser/media/filebrowser/js/FB_CKEditor.js
+END
+FB_FileBrowseField.js
+K 25
+svn:wc:ra_dav:version-url
+V 95
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/js/FB_FileBrowseField.js
+END
+AddFileBrowser.js
+K 25
+svn:wc:ra_dav:version-url
+V 91
+/svn/!svn/ver/466/branches/filebrowser_3/filebrowser/media/filebrowser/js/AddFileBrowser.js
+END
+FB_TinyMCE.js
+K 25
+svn:wc:ra_dav:version-url
+V 87
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/js/FB_TinyMCE.js
+END
+jquery-1.3.2.min.js
+K 25
+svn:wc:ra_dav:version-url
+V 93
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/js/jquery-1.3.2.min.js
+END
+TinyMCEAdmin.js
+K 25
+svn:wc:ra_dav:version-url
+V 89
+/svn/!svn/ver/403/branches/filebrowser_3/filebrowser/media/filebrowser/js/TinyMCEAdmin.js
+END
diff --git a/platforma/static/filebrowser/js/.svn/entries b/platforma/static/filebrowser/js/.svn/entries
new file mode 100644 (file)
index 0000000..9e9096e
--- /dev/null
@@ -0,0 +1,232 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/js
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-29T16:15:59.524671Z
+466
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+FB_CKEditor.js
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+fa50cfae580047a009a2b86506210d9f
+2009-10-11T14:09:32.302815Z
+452
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+652
+\f
+FB_FileBrowseField.js
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+6b093d924826e1d737086801bda89074
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1234
+\f
+AddFileBrowser.js
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+89c9b75dae80816eafa85a1397583b23
+2009-10-29T16:15:59.524671Z
+466
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1094
+\f
+FB_TinyMCE.js
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+645e7326e1e8be17ce619cdf61731cea
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+942
+\f
+jquery-1.3.2.min.js
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+bb381e2d19d8eace86b34d20759491a5
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+57254
+\f
+TinyMCEAdmin.js
+file
+
+
+
+
+2009-11-05T20:58:50.000000Z
+fb5327084cd3bde1cdf2421ffd619259
+2009-07-18T08:34:28.114642Z
+403
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2487
+\f
diff --git a/platforma/static/filebrowser/js/.svn/prop-base/FB_FileBrowseField.js.svn-base b/platforma/static/filebrowser/js/.svn/prop-base/FB_FileBrowseField.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/js/.svn/prop-base/FB_TinyMCE.js.svn-base b/platforma/static/filebrowser/js/.svn/prop-base/FB_TinyMCE.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/js/.svn/text-base/AddFileBrowser.js.svn-base b/platforma/static/filebrowser/js/.svn/text-base/AddFileBrowser.js.svn-base
new file mode 100644 (file)
index 0000000..3a99442
--- /dev/null
@@ -0,0 +1,30 @@
+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/platforma/static/filebrowser/js/.svn/text-base/FB_CKEditor.js.svn-base b/platforma/static/filebrowser/js/.svn/text-base/FB_CKEditor.js.svn-base
new file mode 100644 (file)
index 0000000..74d8d64
--- /dev/null
@@ -0,0 +1,24 @@
+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/platforma/static/filebrowser/js/.svn/text-base/FB_FileBrowseField.js.svn-base b/platforma/static/filebrowser/js/.svn/text-base/FB_FileBrowseField.js.svn-base
new file mode 100644 (file)
index 0000000..b0696ce
--- /dev/null
@@ -0,0 +1,32 @@
+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/platforma/static/filebrowser/js/.svn/text-base/FB_TinyMCE.js.svn-base b/platforma/static/filebrowser/js/.svn/text-base/FB_TinyMCE.js.svn-base
new file mode 100644 (file)
index 0000000..86d6939
--- /dev/null
@@ -0,0 +1,28 @@
+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/platforma/static/filebrowser/js/.svn/text-base/TinyMCEAdmin.js.svn-base b/platforma/static/filebrowser/js/.svn/text-base/TinyMCEAdmin.js.svn-base
new file mode 100644 (file)
index 0000000..760a666
--- /dev/null
@@ -0,0 +1,75 @@
+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/platforma/static/filebrowser/js/.svn/text-base/jquery-1.3.2.min.js.svn-base b/platforma/static/filebrowser/js/.svn/text-base/jquery-1.3.2.min.js.svn-base
new file mode 100644 (file)
index 0000000..b1ae21d
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * 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/platforma/static/filebrowser/js/AddFileBrowser.js b/platforma/static/filebrowser/js/AddFileBrowser.js
new file mode 100644 (file)
index 0000000..3a99442
--- /dev/null
@@ -0,0 +1,30 @@
+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/platforma/static/filebrowser/js/FB_CKEditor.js b/platforma/static/filebrowser/js/FB_CKEditor.js
new file mode 100644 (file)
index 0000000..74d8d64
--- /dev/null
@@ -0,0 +1,24 @@
+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/platforma/static/filebrowser/js/FB_FileBrowseField.js b/platforma/static/filebrowser/js/FB_FileBrowseField.js
new file mode 100755 (executable)
index 0000000..b0696ce
--- /dev/null
@@ -0,0 +1,32 @@
+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/platforma/static/filebrowser/js/FB_TinyMCE.js b/platforma/static/filebrowser/js/FB_TinyMCE.js
new file mode 100755 (executable)
index 0000000..86d6939
--- /dev/null
@@ -0,0 +1,28 @@
+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/platforma/static/filebrowser/js/TinyMCEAdmin.js b/platforma/static/filebrowser/js/TinyMCEAdmin.js
new file mode 100644 (file)
index 0000000..760a666
--- /dev/null
@@ -0,0 +1,75 @@
+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/platforma/static/filebrowser/js/jquery-1.3.2.min.js b/platforma/static/filebrowser/js/jquery-1.3.2.min.js
new file mode 100644 (file)
index 0000000..b1ae21d
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * 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/platforma/static/filebrowser/uploadify/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..b206329
--- /dev/null
@@ -0,0 +1,83 @@
+K 25
+svn:wc:ra_dav:version-url
+V 80
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify
+END
+swfobject.js
+K 25
+svn:wc:ra_dav:version-url
+V 93
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/swfobject.js
+END
+uploadify.php
+K 25
+svn:wc:ra_dav:version-url
+V 94
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/uploadify.php
+END
+uploadify.css
+K 25
+svn:wc:ra_dav:version-url
+V 94
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/uploadify.css
+END
+check.php
+K 25
+svn:wc:ra_dav:version-url
+V 90
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/check.php
+END
+Uploadify v2.1.0 Manual.pdf
+K 25
+svn:wc:ra_dav:version-url
+V 112
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/Uploadify%20v2.1.0%20Manual.pdf
+END
+jquery.uploadify.v2.1.0.js
+K 25
+svn:wc:ra_dav:version-url
+V 107
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/jquery.uploadify.v2.1.0.js
+END
+uploadify.allglyphs.swf
+K 25
+svn:wc:ra_dav:version-url
+V 104
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/uploadify.allglyphs.swf
+END
+cancel.png
+K 25
+svn:wc:ra_dav:version-url
+V 91
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/cancel.png
+END
+uploadify.swf
+K 25
+svn:wc:ra_dav:version-url
+V 94
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/uploadify.swf
+END
+jquery.uploadify.v2.1.0.min.js
+K 25
+svn:wc:ra_dav:version-url
+V 111
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/jquery.uploadify.v2.1.0.min.js
+END
+jquery-1.3.2.min.js
+K 25
+svn:wc:ra_dav:version-url
+V 100
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/jquery-1.3.2.min.js
+END
+uploadify.fla
+K 25
+svn:wc:ra_dav:version-url
+V 94
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/uploadify.fla
+END
+expressInstall.swf
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/expressInstall.swf
+END
diff --git a/platforma/static/filebrowser/uploadify/.svn/entries b/platforma/static/filebrowser/uploadify/.svn/entries
new file mode 100644 (file)
index 0000000..d3e3ff3
--- /dev/null
@@ -0,0 +1,476 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+uploadify.php
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+18002e871847e9e3ae656a35d5e24cbe
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1932
+\f
+uploadify.css
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+edec394bac0dc3cf3a17da3837abd642
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1792
+\f
+uploadify.allglyphs.swf
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+5c0e296be9e1f5ece5240f1fb61ad208
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+239838
+\f
+jquery.uploadify.v2.1.0.min.js
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+4f1ceab5d5c04168fbef69362742bc6c
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7563
+\f
+uploadify.swf
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+adf7808c4a093b49f90b33627544957a
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+23118
+\f
+example
+dir
+\f
+uploadify.fla
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+2d9a2c1e29520c5a5a20dcf8637144d4
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+125952
+\f
+swfobject.js
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+892a543f3abb54e8ec1ada55be3b0649
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+10220
+\f
+check.php
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+c409eb2cfd793515f98f0781fea3ef15
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1404
+\f
+Uploadify v2.1.0 Manual.pdf
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+1cd94307fbe2fb1d21e9be690760cde4
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+556466
+\f
+cancel.png
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+9ce92e32e120ce9162498c92e4348ec0
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+603
+\f
+jquery.uploadify.v2.1.0.js
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+d5d8d06af69c558768c9832144de77f2
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+12930
+\f
+jquery-1.3.2.min.js
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+bb381e2d19d8eace86b34d20759491a5
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+57254
+\f
+expressInstall.swf
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+7b65fbfaec8b2955090389af60646e8b
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+727
+\f
+com
+dir
+\f
diff --git a/platforma/static/filebrowser/uploadify/.svn/prop-base/Uploadify v2.1.0 Manual.pdf.svn-base b/platforma/static/filebrowser/uploadify/.svn/prop-base/Uploadify v2.1.0 Manual.pdf.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/uploadify/.svn/prop-base/cancel.png.svn-base b/platforma/static/filebrowser/uploadify/.svn/prop-base/cancel.png.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/uploadify/.svn/prop-base/check.php.svn-base b/platforma/static/filebrowser/uploadify/.svn/prop-base/check.php.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/.svn/prop-base/expressInstall.swf.svn-base b/platforma/static/filebrowser/uploadify/.svn/prop-base/expressInstall.swf.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/uploadify/.svn/prop-base/jquery-1.3.2.min.js.svn-base b/platforma/static/filebrowser/uploadify/.svn/prop-base/jquery-1.3.2.min.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/.svn/prop-base/jquery.uploadify.v2.1.0.js.svn-base b/platforma/static/filebrowser/uploadify/.svn/prop-base/jquery.uploadify.v2.1.0.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/.svn/prop-base/jquery.uploadify.v2.1.0.min.js.svn-base b/platforma/static/filebrowser/uploadify/.svn/prop-base/jquery.uploadify.v2.1.0.min.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/.svn/prop-base/swfobject.js.svn-base b/platforma/static/filebrowser/uploadify/.svn/prop-base/swfobject.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/.svn/prop-base/uploadify.allglyphs.swf.svn-base b/platforma/static/filebrowser/uploadify/.svn/prop-base/uploadify.allglyphs.swf.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/uploadify/.svn/prop-base/uploadify.css.svn-base b/platforma/static/filebrowser/uploadify/.svn/prop-base/uploadify.css.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/.svn/prop-base/uploadify.fla.svn-base b/platforma/static/filebrowser/uploadify/.svn/prop-base/uploadify.fla.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/uploadify/.svn/prop-base/uploadify.php.svn-base b/platforma/static/filebrowser/uploadify/.svn/prop-base/uploadify.php.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/.svn/prop-base/uploadify.swf.svn-base b/platforma/static/filebrowser/uploadify/.svn/prop-base/uploadify.swf.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/uploadify/.svn/text-base/Uploadify v2.1.0 Manual.pdf.svn-base b/platforma/static/filebrowser/uploadify/.svn/text-base/Uploadify v2.1.0 Manual.pdf.svn-base
new file mode 100644 (file)
index 0000000..c8b2565
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/.svn/text-base/Uploadify v2.1.0 Manual.pdf.svn-base differ
diff --git a/platforma/static/filebrowser/uploadify/.svn/text-base/cancel.png.svn-base b/platforma/static/filebrowser/uploadify/.svn/text-base/cancel.png.svn-base
new file mode 100644 (file)
index 0000000..1c062ae
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/.svn/text-base/cancel.png.svn-base differ
diff --git a/platforma/static/filebrowser/uploadify/.svn/text-base/check.php.svn-base b/platforma/static/filebrowser/uploadify/.svn/text-base/check.php.svn-base
new file mode 100644 (file)
index 0000000..d7dc571
--- /dev/null
@@ -0,0 +1,35 @@
+<?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/platforma/static/filebrowser/uploadify/.svn/text-base/expressInstall.swf.svn-base b/platforma/static/filebrowser/uploadify/.svn/text-base/expressInstall.swf.svn-base
new file mode 100644 (file)
index 0000000..0fbf8fc
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/.svn/text-base/expressInstall.swf.svn-base differ
diff --git a/platforma/static/filebrowser/uploadify/.svn/text-base/jquery-1.3.2.min.js.svn-base b/platforma/static/filebrowser/uploadify/.svn/text-base/jquery-1.3.2.min.js.svn-base
new file mode 100644 (file)
index 0000000..b1ae21d
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * 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/platforma/static/filebrowser/uploadify/.svn/text-base/jquery.uploadify.v2.1.0.js.svn-base b/platforma/static/filebrowser/uploadify/.svn/text-base/jquery.uploadify.v2.1.0.js.svn-base
new file mode 100644 (file)
index 0000000..9a78cd3
--- /dev/null
@@ -0,0 +1,258 @@
+/*\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
+\r
+if(jQuery)(\r
+       function(jQuery){\r
+               jQuery.extend(jQuery.fn,{\r
+                       uploadify:function(options) {\r
+                               jQuery(this).each(function(){\r
+                                       settings = jQuery.extend({\r
+                                       id             : jQuery(this).attr('id'), // The ID of the object being Uploadified\r
+                                       uploader       : 'uploadify.swf', // The path to the uploadify swf file\r
+                                       script         : 'uploadify.php', // The path to the uploadify backend upload script\r
+                                       expressInstall : null, // The path to the express install swf file\r
+                                       folder         : '', // The path to the upload folder\r
+                                       height         : 30, // The height of the flash button\r
+                                       width          : 110, // The width of the flash button\r
+                                       cancelImg      : 'cancel.png', // The path to the cancel image for the default file queue item container\r
+                                       wmode          : 'opaque', // The wmode of the flash file\r
+                                       scriptAccess   : 'sameDomain', // Set to "always" to allow script access across domains\r
+                                       fileDataName   : 'Filedata', // The name of the file collection object in the backend upload script\r
+                                       method         : 'POST', // The method for sending variables to the backend upload script\r
+                                       queueSizeLimit : 999, // The maximum size of the file queue\r
+                                       simUploadLimit : 1, // The number of simultaneous uploads allowed\r
+                                       queueID        : false, // The optional ID of the queue container\r
+                                       displayData    : 'percentage', // Set to "speed" to show the upload speed in the default queue item\r
+                                       onInit         : function() {}, // Function to run when uploadify is initialized\r
+                                       onSelect       : function() {}, // Function to run when a file is selected\r
+                                       onQueueFull    : function() {}, // Function to run when the queue reaches capacity\r
+                                       onCheck        : function() {}, // Function to run when script checks for duplicate files on the server\r
+                                       onCancel       : function() {}, // Function to run when an item is cleared from the queue\r
+                                       onError        : function() {}, // Function to run when an upload item returns an error\r
+                                       onProgress     : function() {}, // Function to run each time the upload progress is updated\r
+                                       onComplete     : function() {}, // Function to run when an upload is completed\r
+                                       onAllComplete  : function() {}  // Functino to run when all uploads are completed\r
+                               }, options);\r
+                               var pagePath = location.pathname;\r
+                               pagePath = pagePath.split('/');\r
+                               pagePath.pop();\r
+                               pagePath = pagePath.join('/') + '/';\r
+                               var data = {};\r
+                               data.uploadifyID = settings.id;\r
+                               data.pagepath = pagePath;\r
+                               if (settings.buttonImg) data.buttonImg = escape(settings.buttonImg);\r
+                               if (settings.buttonText) data.buttonText = escape(settings.buttonText);\r
+                               if (settings.rollover) data.rollover = true;\r
+                               data.script = settings.script;\r
+                               data.folder = escape(settings.folder);\r
+                               if (settings.scriptData) {\r
+                                       var scriptDataString = '';\r
+                                       for (var name in settings.scriptData) {\r
+                                               scriptDataString += '&' + name + '=' + settings.scriptData[name];\r
+                                       }\r
+                                       data.scriptData = escape(scriptDataString.substr(1));\r
+                               }\r
+                               data.width          = settings.width;\r
+                               data.height         = settings.height;\r
+                               data.wmode          = settings.wmode;\r
+                               data.method         = settings.method;\r
+                               data.queueSizeLimit = settings.queueSizeLimit;\r
+                               data.simUploadLimit = settings.simUploadLimit;\r
+                               if (settings.hideButton)   data.hideButton   = true;\r
+                               if (settings.fileDesc)     data.fileDesc     = settings.fileDesc;\r
+                               if (settings.fileExt)      data.fileExt      = settings.fileExt;\r
+                               if (settings.multi)        data.multi        = true;\r
+                               if (settings.auto)         data.auto         = true;\r
+                               if (settings.sizeLimit)    data.sizeLimit    = settings.sizeLimit;\r
+                               if (settings.checkScript)  data.checkScript  = settings.checkScript;\r
+                               if (settings.fileDataName) data.fileDataName = settings.fileDataName;\r
+                               if (settings.queueID)      data.queueID      = settings.queueID;\r
+                               if (settings.onInit() !== false) {\r
+                                       jQuery(this).css('display','none');\r
+                                       jQuery(this).after('<div id="' + jQuery(this).attr('id') + 'Uploader"></div>');\r
+                                       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});\r
+                                       if (settings.queueID == false) {\r
+                                               jQuery("#" + jQuery(this).attr('id') + "Uploader").after('<div id="' + jQuery(this).attr('id') + 'Queue" class="uploadifyQueue"></div>');\r
+                                       }\r
+                               }\r
+                               if (typeof(settings.onOpen) == 'function') {\r
+                                       jQuery(this).bind("uploadifyOpen", settings.onOpen);\r
+                               }\r
+                               jQuery(this).bind("uploadifySelect", {'action': settings.onSelect, 'queueID': settings.queueID}, function(event, ID, fileObj) {\r
+                                       if (event.data.action(event, ID, fileObj) !== false) {\r
+                                               var byteSize = Math.round(fileObj.size / 1024 * 100) * .01;\r
+                                               var suffix = 'KB';\r
+                                               if (byteSize > 1000) {\r
+                                                       byteSize = Math.round(byteSize *.001 * 100) * .01;\r
+                                                       suffix = 'MB';\r
+                                               }\r
+                                               var sizeParts = byteSize.toString().split('.');\r
+                                               if (sizeParts.length > 1) {\r
+                                                       byteSize = sizeParts[0] + '.' + sizeParts[1].substr(0,2);\r
+                                               } else {\r
+                                                       byteSize = sizeParts[0];\r
+                                               }\r
+                                               if (fileObj.name.length > 20) {\r
+                                                       fileName = fileObj.name.substr(0,20) + '...';\r
+                                               } else {\r
+                                                       fileName = fileObj.name;\r
+                                               }\r
+                                               queue = '#' + jQuery(this).attr('id') + 'Queue';\r
+                                               if (event.data.queueID) {\r
+                                                       queue = '#' + event.data.queueID;\r
+                                               }\r
+                                               jQuery(queue).append('<div id="' + jQuery(this).attr('id') + ID + '" class="uploadifyQueueItem">\\r
+                                                               <div class="cancel">\\r
+                                                                       <a href="javascript:jQuery(\'#' + jQuery(this).attr('id') + '\').uploadifyCancel(\'' + ID + '\')"><img src="' + settings.cancelImg + '" border="0" /></a>\\r
+                                                               </div>\\r
+                                                               <span class="fileName">' + fileName + ' (' + byteSize + suffix + ')</span><span class="percentage"></span>\\r
+                                                               <div class="uploadifyProgress">\\r
+                                                                       <div id="' + jQuery(this).attr('id') + ID + 'ProgressBar" class="uploadifyProgressBar"><!--Progress Bar--></div>\\r
+                                                               </div>\\r
+                                                       </div>');\r
+                                       }\r
+                               });\r
+                               if (typeof(settings.onSelectOnce) == 'function') {\r
+                                       jQuery(this).bind("uploadifySelectOnce", settings.onSelectOnce);\r
+                               }\r
+                               jQuery(this).bind("uploadifyQueueFull", {'action': settings.onQueueFull}, function(event, queueSizeLimit) {\r
+                                       if (event.data.action(event, queueSizeLimit) !== false) {\r
+                                               alert('The queue is full.  The max size is ' + queueSizeLimit + '.');\r
+                                       }\r
+                               });\r
+                               jQuery(this).bind("uploadifyCheckExist", {'action': settings.onCheck}, function(event, checkScript, fileQueueObj, folder, single) {\r
+                                       var postData = new Object();\r
+                                       postData = fileQueueObj;\r
+                                       postData.folder = pagePath + folder;\r
+                                       if (single) {\r
+                                               for (var ID in fileQueueObj) {\r
+                                                       var singleFileID = ID;\r
+                                               }\r
+                                       }\r
+                                       jQuery.post(checkScript, postData, function(data) {\r
+                                               for(var key in data) {\r
+                                                       if (event.data.action(event, checkScript, fileQueueObj, folder, single) !== false) {\r
+                                                               var replaceFile = confirm("Do you want to replace the file " + data[key] + "?");\r
+                                                               if (!replaceFile) {\r
+                                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').cancelFileUpload(key, true,true);\r
+                                                               }\r
+                                                       }\r
+                                               }\r
+                                               if (single) {\r
+                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').startFileUpload(singleFileID, true);\r
+                                               } else {\r
+                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').startFileUpload(null, true);\r
+                                               }\r
+                                       }, "json");\r
+                               });\r
+                               jQuery(this).bind("uploadifyCancel", {'action': settings.onCancel}, function(event, ID, fileObj, data, clearFast) {\r
+                                       if (event.data.action(event, ID, fileObj, data, clearFast) !== false) {\r
+                                               var fadeSpeed = (clearFast == true) ? 0 : 250;\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID).fadeOut(fadeSpeed, function() { jQuery(this).remove() });\r
+                                       }\r
+                               });\r
+                               if (typeof(settings.onClearQueue) == 'function') {\r
+                                       jQuery(this).bind("uploadifyClearQueue", settings.onClearQueue);\r
+                               }\r
+                               var errorArray = [];\r
+                               jQuery(this).bind("uploadifyError", {'action': settings.onError}, function(event, ID, fileObj, errorObj) {\r
+                                       if (event.data.action(event, ID, fileObj, errorObj) !== false) {\r
+                                               var fileArray = new Array(ID, fileObj, errorObj);\r
+                                               errorArray.push(fileArray);\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(" - " + errorObj.type + " Error");\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID).addClass('uploadifyError');\r
+                                       }\r
+                               });\r
+                               jQuery(this).bind("uploadifyProgress", {'action': settings.onProgress, 'toDisplay': settings.displayData}, function(event, ID, fileObj, data) {\r
+                                       if (event.data.action(event, ID, fileObj, data) !== false) {\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + "ProgressBar").css('width', data.percentage + '%');\r
+                                               if (event.data.toDisplay == 'percentage') displayData = ' - ' + data.percentage + '%';\r
+                                               if (event.data.toDisplay == 'speed') displayData = ' - ' + data.speed + 'KB/s';\r
+                                               if (event.data.toDisplay == null) displayData = ' ';\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(displayData);\r
+                                       }\r
+                               });\r
+                               jQuery(this).bind("uploadifyComplete", {'action': settings.onComplete}, function(event, ID, fileObj, response, data) {\r
+                                       if (event.data.action(event, ID, fileObj, unescape(response), data) !== false) {\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(' - Completed');\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID).fadeOut(250, function() { jQuery(this).remove()});\r
+                                       }\r
+                               });\r
+                               if (typeof(settings.onAllComplete) == 'function') {\r
+                                       jQuery(this).bind("uploadifyAllComplete", {'action': settings.onAllComplete}, function(event, uploadObj) {\r
+                                               if (event.data.action(event, uploadObj) !== false) {\r
+                                                       errorArray = [];\r
+                                               }\r
+                                       });\r
+                               }\r
+                       });\r
+               },\r
+               uploadifySettings:function(settingName, settingValue, resetObject) {\r
+                       var returnValue = false;\r
+                       jQuery(this).each(function() {\r
+                               if (settingName == 'scriptData' && settingValue != null) {\r
+                                       if (resetObject) {\r
+                                               var scriptData = settingValue;\r
+                                       } else {\r
+                                               var scriptData = jQuery.extend(settings.scriptData, settingValue);\r
+                                       }\r
+                                       var scriptDataString = '';\r
+                                       for (var name in scriptData) {\r
+                                               scriptDataString += '&' + name + '=' + escape(scriptData[name]);\r
+                                       }\r
+                                       settingValue = scriptDataString.substr(1);\r
+                               }\r
+                               returnValue = document.getElementById(jQuery(this).attr('id') + 'Uploader').updateSettings(settingName, settingValue);\r
+                       });\r
+                       if (settingValue == null) {\r
+                               if (settingName == 'scriptData') {\r
+                                       var returnSplit = unescape(returnValue).split('&');\r
+                                       var returnObj   = new Object();\r
+                                       for (var i = 0; i < returnSplit.length; i++) {\r
+                                               var iSplit = returnSplit[i].split('=');\r
+                                               returnObj[iSplit[0]] = iSplit[1];\r
+                                       }\r
+                                       returnValue = returnObj;\r
+                               }\r
+                               return returnValue;\r
+                       }\r
+               },\r
+               uploadifyUpload:function(ID) {\r
+                       jQuery(this).each(function() {\r
+                               document.getElementById(jQuery(this).attr('id') + 'Uploader').startFileUpload(ID, false);\r
+                       });\r
+               },\r
+               uploadifyCancel:function(ID) {\r
+                       jQuery(this).each(function() {\r
+                               document.getElementById(jQuery(this).attr('id') + 'Uploader').cancelFileUpload(ID, true, false);\r
+                       });\r
+               },\r
+               uploadifyClearQueue:function() {\r
+                       jQuery(this).each(function() {\r
+                               document.getElementById(jQuery(this).attr('id') + 'Uploader').clearFileUploadQueue(false);\r
+                       });\r
+               }\r
+       })\r
+})(jQuery);
\ No newline at end of file
diff --git a/platforma/static/filebrowser/uploadify/.svn/text-base/jquery.uploadify.v2.1.0.min.js.svn-base b/platforma/static/filebrowser/uploadify/.svn/text-base/jquery.uploadify.v2.1.0.min.js.svn-base
new file mode 100644 (file)
index 0000000..04592ff
--- /dev/null
@@ -0,0 +1,26 @@
+/*\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
+\r
+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/platforma/static/filebrowser/uploadify/.svn/text-base/swfobject.js.svn-base b/platforma/static/filebrowser/uploadify/.svn/text-base/swfobject.js.svn-base
new file mode 100644 (file)
index 0000000..8eafe9d
--- /dev/null
@@ -0,0 +1,4 @@
+/*     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/platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.allglyphs.swf.svn-base b/platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.allglyphs.swf.svn-base
new file mode 100644 (file)
index 0000000..4bad011
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.allglyphs.swf.svn-base differ
diff --git a/platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.css.svn-base b/platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.css.svn-base
new file mode 100644 (file)
index 0000000..0cf8c0e
--- /dev/null
@@ -0,0 +1,53 @@
+/*\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
+.uploadifyQueueItem {\r
+       font: 11px Verdana, Geneva, sans-serif;\r
+       border: 2px solid #E5E5E5;\r
+       background-color: #F5F5F5;\r
+       margin-top: 5px;\r
+       padding: 10px;\r
+       width: 350px;\r
+}\r
+.uploadifyError {\r
+       border: 2px solid #FBCBBC !important;\r
+       background-color: #FDE5DD !important;\r
+}\r
+.uploadifyQueueItem .cancel {\r
+       float: right;\r
+}\r
+.uploadifyProgress {\r
+       background-color: #FFFFFF;\r
+       border-top: 1px solid #808080;\r
+       border-left: 1px solid #808080;\r
+       border-right: 1px solid #C5C5C5;\r
+       border-bottom: 1px solid #C5C5C5;\r
+       margin-top: 10px;\r
+       width: 100%;\r
+}\r
+.uploadifyProgressBar {\r
+       background-color: #0099FF;\r
+       width: 1px;\r
+       height: 3px;\r
+}
\ No newline at end of file
diff --git a/platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.fla.svn-base b/platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.fla.svn-base
new file mode 100644 (file)
index 0000000..c07bbaf
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.fla.svn-base differ
diff --git a/platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.php.svn-base b/platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.php.svn-base
new file mode 100644 (file)
index 0000000..8bf14a6
--- /dev/null
@@ -0,0 +1,46 @@
+<?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/platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.swf.svn-base b/platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.swf.svn-base
new file mode 100644 (file)
index 0000000..0385d9e
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/.svn/text-base/uploadify.swf.svn-base differ
diff --git a/platforma/static/filebrowser/uploadify/Uploadify v2.1.0 Manual.pdf b/platforma/static/filebrowser/uploadify/Uploadify v2.1.0 Manual.pdf
new file mode 100755 (executable)
index 0000000..c8b2565
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/Uploadify v2.1.0 Manual.pdf differ
diff --git a/platforma/static/filebrowser/uploadify/cancel.png b/platforma/static/filebrowser/uploadify/cancel.png
new file mode 100755 (executable)
index 0000000..1c062ae
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/cancel.png differ
diff --git a/platforma/static/filebrowser/uploadify/check.php b/platforma/static/filebrowser/uploadify/check.php
new file mode 100755 (executable)
index 0000000..d7dc571
--- /dev/null
@@ -0,0 +1,35 @@
+<?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/platforma/static/filebrowser/uploadify/com/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..7081c4b
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 84
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com
+END
diff --git a/platforma/static/filebrowser/uploadify/com/.svn/entries b/platforma/static/filebrowser/uploadify/com/.svn/entries
new file mode 100644 (file)
index 0000000..4aa2487
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+adobe
+dir
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..afa85c8
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 90
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/.svn/entries
new file mode 100644 (file)
index 0000000..b0ada25
--- /dev/null
@@ -0,0 +1,58 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+crypto
+dir
+\f
+utils
+dir
+\f
+protocols
+dir
+\f
+images
+dir
+\f
+net
+dir
+\f
+webapis
+dir
+\f
+air
+dir
+\f
+fileformats
+dir
+\f
+errors
+dir
+\f
+serialization
+dir
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/air/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/air/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..0c9a5a9
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 94
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/air
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/air/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/air/.svn/entries
new file mode 100644 (file)
index 0000000..da3b205
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/air
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+logging
+dir
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/air/logging/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/air/logging/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..5e0f7b2
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 102
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging
+END
+FileTarget.as
+K 25
+svn:wc:ra_dav:version-url
+V 116
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging/FileTarget.as
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/air/logging/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/air/logging/.svn/entries
new file mode 100644 (file)
index 0000000..32beda4
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/air/logging
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+FileTarget.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+ec3643b4ddb32b2d2ebc1f7d55c91ced
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3008
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/air/logging/.svn/prop-base/FileTarget.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/air/logging/.svn/prop-base/FileTarget.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/air/logging/.svn/text-base/FileTarget.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/air/logging/.svn/text-base/FileTarget.as.svn-base
new file mode 100644 (file)
index 0000000..0dda3eb
--- /dev/null
@@ -0,0 +1,98 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/air/logging/FileTarget.as b/platforma/static/filebrowser/uploadify/com/adobe/air/logging/FileTarget.as
new file mode 100755 (executable)
index 0000000..0dda3eb
--- /dev/null
@@ -0,0 +1,98 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..10194f1
--- /dev/null
@@ -0,0 +1,47 @@
+K 25
+svn:wc:ra_dav:version-url
+V 97
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto
+END
+MD5Stream.as
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/MD5Stream.as
+END
+WSSEUsernameToken.as
+K 25
+svn:wc:ra_dav:version-url
+V 118
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/WSSEUsernameToken.as
+END
+SHA224.as
+K 25
+svn:wc:ra_dav:version-url
+V 107
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA224.as
+END
+MD5.as
+K 25
+svn:wc:ra_dav:version-url
+V 104
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/MD5.as
+END
+HMAC.as
+K 25
+svn:wc:ra_dav:version-url
+V 105
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/HMAC.as
+END
+SHA256.as
+K 25
+svn:wc:ra_dav:version-url
+V 107
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA256.as
+END
+SHA1.as
+K 25
+svn:wc:ra_dav:version-url
+V 105
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto/SHA1.as
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/entries
new file mode 100644 (file)
index 0000000..8a6f868
--- /dev/null
@@ -0,0 +1,266 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/crypto
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+MD5Stream.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+f4931ddcde14c576028fcf23bd5d6ec1
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+17039
+\f
+WSSEUsernameToken.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+ad5a856f37719af41922bb0c121e9a1b
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+4037
+\f
+SHA224.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+ffd1adfd41a1f3c0a3a809ce304a4f5f
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+8877
+\f
+MD5.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+1332bdd143ffc7dfdbbaebf62f9aefb4
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+10340
+\f
+HMAC.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+b9f33bcb735cb785b9e775137d2deb02
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+4215
+\f
+SHA256.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+253e9c4af7c9758652afac59287f3bc5
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+9013
+\f
+SHA1.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+4d7fc01a79e33b1cba4eb2db458066fa
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+8332
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/HMAC.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/HMAC.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/MD5.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/MD5.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/MD5Stream.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/MD5Stream.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA1.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA1.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA224.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA224.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA256.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/SHA256.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/WSSEUsernameToken.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/prop-base/WSSEUsernameToken.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/HMAC.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/HMAC.as.svn-base
new file mode 100644 (file)
index 0000000..72f9bff
--- /dev/null
@@ -0,0 +1,127 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/MD5.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/MD5.as.svn-base
new file mode 100644 (file)
index 0000000..da533cc
--- /dev/null
@@ -0,0 +1,281 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/MD5Stream.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/MD5Stream.as.svn-base
new file mode 100644 (file)
index 0000000..6e5eed0
--- /dev/null
@@ -0,0 +1,402 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/SHA1.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/SHA1.as.svn-base
new file mode 100644 (file)
index 0000000..952f3c7
--- /dev/null
@@ -0,0 +1,271 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/SHA224.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/SHA224.as.svn-base
new file mode 100644 (file)
index 0000000..ee15453
--- /dev/null
@@ -0,0 +1,257 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/SHA256.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/SHA256.as.svn-base
new file mode 100644 (file)
index 0000000..09a2ba2
--- /dev/null
@@ -0,0 +1,261 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/WSSEUsernameToken.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/crypto/.svn/text-base/WSSEUsernameToken.as.svn-base
new file mode 100644 (file)
index 0000000..92bbba6
--- /dev/null
@@ -0,0 +1,114 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/crypto/HMAC.as b/platforma/static/filebrowser/uploadify/com/adobe/crypto/HMAC.as
new file mode 100755 (executable)
index 0000000..72f9bff
--- /dev/null
@@ -0,0 +1,127 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/crypto/MD5.as b/platforma/static/filebrowser/uploadify/com/adobe/crypto/MD5.as
new file mode 100755 (executable)
index 0000000..da533cc
--- /dev/null
@@ -0,0 +1,281 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/crypto/MD5Stream.as b/platforma/static/filebrowser/uploadify/com/adobe/crypto/MD5Stream.as
new file mode 100755 (executable)
index 0000000..6e5eed0
--- /dev/null
@@ -0,0 +1,402 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/crypto/SHA1.as b/platforma/static/filebrowser/uploadify/com/adobe/crypto/SHA1.as
new file mode 100755 (executable)
index 0000000..952f3c7
--- /dev/null
@@ -0,0 +1,271 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/crypto/SHA224.as b/platforma/static/filebrowser/uploadify/com/adobe/crypto/SHA224.as
new file mode 100755 (executable)
index 0000000..ee15453
--- /dev/null
@@ -0,0 +1,257 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/crypto/SHA256.as b/platforma/static/filebrowser/uploadify/com/adobe/crypto/SHA256.as
new file mode 100755 (executable)
index 0000000..09a2ba2
--- /dev/null
@@ -0,0 +1,261 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/crypto/WSSEUsernameToken.as b/platforma/static/filebrowser/uploadify/com/adobe/crypto/WSSEUsernameToken.as
new file mode 100755 (executable)
index 0000000..92bbba6
--- /dev/null
@@ -0,0 +1,114 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/errors/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/errors/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..8eb9a52
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 97
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/errors
+END
+IllegalStateError.as
+K 25
+svn:wc:ra_dav:version-url
+V 118
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/errors/IllegalStateError.as
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/errors/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/errors/.svn/entries
new file mode 100644 (file)
index 0000000..d92535a
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/errors
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+IllegalStateError.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+3511c005da6d65bc1f802efef7e268fe
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2323
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/errors/.svn/prop-base/IllegalStateError.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/errors/.svn/prop-base/IllegalStateError.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/errors/.svn/text-base/IllegalStateError.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/errors/.svn/text-base/IllegalStateError.as.svn-base
new file mode 100644 (file)
index 0000000..fa16191
--- /dev/null
@@ -0,0 +1,63 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/errors/IllegalStateError.as b/platforma/static/filebrowser/uploadify/com/adobe/errors/IllegalStateError.as
new file mode 100755 (executable)
index 0000000..fa16191
--- /dev/null
@@ -0,0 +1,63 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/fileformats/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..379e34c
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 102
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/fileformats/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/.svn/entries
new file mode 100644 (file)
index 0000000..10b8a6d
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+vcard
+dir
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..0b629b2
--- /dev/null
@@ -0,0 +1,35 @@
+K 25
+svn:wc:ra_dav:version-url
+V 108
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard
+END
+VCard.as
+K 25
+svn:wc:ra_dav:version-url
+V 117
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/VCard.as
+END
+Address.as
+K 25
+svn:wc:ra_dav:version-url
+V 119
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Address.as
+END
+Email.as
+K 25
+svn:wc:ra_dav:version-url
+V 117
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Email.as
+END
+Phone.as
+K 25
+svn:wc:ra_dav:version-url
+V 117
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/Phone.as
+END
+VCardParser.as
+K 25
+svn:wc:ra_dav:version-url
+V 123
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard/VCardParser.as
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/entries
new file mode 100644 (file)
index 0000000..5cd58b8
--- /dev/null
@@ -0,0 +1,198 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/fileformats/vcard
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+VCard.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+48787531679efd0ed5818975a0fceb44
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2004
+\f
+Address.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+442aedd116b6921583386b83831a4efb
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1893
+\f
+Email.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+ce884e74d76af5dbc99fd6d41508cfe8
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1693
+\f
+Phone.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+56e43b5be95f7e2b78472da6a114cfea
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1692
+\f
+VCardParser.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+2b2edb82fffacefdc1b930ae0d1d8448
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7342
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Address.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Address.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Email.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Email.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Phone.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/Phone.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/VCard.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/VCard.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/VCardParser.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/prop-base/VCardParser.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Address.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Address.as.svn-base
new file mode 100644 (file)
index 0000000..a368ffb
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Email.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Email.as.svn-base
new file mode 100644 (file)
index 0000000..071c39e
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Phone.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/Phone.as.svn-base
new file mode 100644 (file)
index 0000000..27f98e4
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/VCard.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/VCard.as.svn-base
new file mode 100644 (file)
index 0000000..d6bc283
--- /dev/null
@@ -0,0 +1,54 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/VCardParser.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/.svn/text-base/VCardParser.as.svn-base
new file mode 100644 (file)
index 0000000..45c954a
--- /dev/null
@@ -0,0 +1,246 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Address.as b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Address.as
new file mode 100755 (executable)
index 0000000..a368ffb
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Email.as b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Email.as
new file mode 100755 (executable)
index 0000000..071c39e
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Phone.as b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/Phone.as
new file mode 100755 (executable)
index 0000000..27f98e4
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/VCard.as b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/VCard.as
new file mode 100755 (executable)
index 0000000..d6bc283
--- /dev/null
@@ -0,0 +1,54 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/VCardParser.as b/platforma/static/filebrowser/uploadify/com/adobe/fileformats/vcard/VCardParser.as
new file mode 100755 (executable)
index 0000000..45c954a
--- /dev/null
@@ -0,0 +1,246 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..776ac14
--- /dev/null
@@ -0,0 +1,23 @@
+K 25
+svn:wc:ra_dav:version-url
+V 97
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/images
+END
+JPGEncoder.as
+K 25
+svn:wc:ra_dav:version-url
+V 111
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/images/JPGEncoder.as
+END
+PNGEncoder.as
+K 25
+svn:wc:ra_dav:version-url
+V 111
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/images/PNGEncoder.as
+END
+BitString.as
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/images/BitString.as
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/entries
new file mode 100644 (file)
index 0000000..79e6ec9
--- /dev/null
@@ -0,0 +1,130 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/images
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+JPGEncoder.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+4efd4e3ae263119a0f2773d3bc4a219b
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+19125
+\f
+PNGEncoder.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+3091aba441141b410f95311d0c056fbb
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5180
+\f
+BitString.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+0c434962bc86c7d528daffe4f2d67077
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1721
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/prop-base/BitString.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/prop-base/BitString.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/prop-base/JPGEncoder.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/prop-base/JPGEncoder.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/prop-base/PNGEncoder.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/prop-base/PNGEncoder.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/text-base/BitString.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/text-base/BitString.as.svn-base
new file mode 100644 (file)
index 0000000..b5c2b84
--- /dev/null
@@ -0,0 +1,39 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/text-base/JPGEncoder.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/text-base/JPGEncoder.as.svn-base
new file mode 100644 (file)
index 0000000..100d7e9
--- /dev/null
@@ -0,0 +1,648 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/text-base/PNGEncoder.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/images/.svn/text-base/PNGEncoder.as.svn-base
new file mode 100644 (file)
index 0000000..83c95f6
--- /dev/null
@@ -0,0 +1,141 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/images/BitString.as b/platforma/static/filebrowser/uploadify/com/adobe/images/BitString.as
new file mode 100755 (executable)
index 0000000..b5c2b84
--- /dev/null
@@ -0,0 +1,39 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/images/JPGEncoder.as b/platforma/static/filebrowser/uploadify/com/adobe/images/JPGEncoder.as
new file mode 100755 (executable)
index 0000000..100d7e9
--- /dev/null
@@ -0,0 +1,648 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/images/PNGEncoder.as b/platforma/static/filebrowser/uploadify/com/adobe/images/PNGEncoder.as
new file mode 100755 (executable)
index 0000000..83c95f6
--- /dev/null
@@ -0,0 +1,141 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..16ba9d9
--- /dev/null
@@ -0,0 +1,35 @@
+K 25
+svn:wc:ra_dav:version-url
+V 94
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net
+END
+DynamicURLLoader.as
+K 25
+svn:wc:ra_dav:version-url
+V 114
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/DynamicURLLoader.as
+END
+URI.as
+K 25
+svn:wc:ra_dav:version-url
+V 101
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/URI.as
+END
+URIEncodingBitmap.as
+K 25
+svn:wc:ra_dav:version-url
+V 115
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/URIEncodingBitmap.as
+END
+MimeTypeMap.as
+K 25
+svn:wc:ra_dav:version-url
+V 109
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/MimeTypeMap.as
+END
+IURIResolver.as
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/IURIResolver.as
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/entries
new file mode 100644 (file)
index 0000000..b95a22a
--- /dev/null
@@ -0,0 +1,201 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+DynamicURLLoader.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+48ab59e38522d8db744a8f9d0828d8cd
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2199
+\f
+URI.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+66c9d8345cedb13ebbd8c53610355dc7
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+76126
+\f
+URIEncodingBitmap.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+f447c72f5d7bc827317f9d81acaa9d4d
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+4372
+\f
+proxies
+dir
+\f
+MimeTypeMap.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+61a17a293b6d72e763a4af64206d4b3f
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6577
+\f
+IURIResolver.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+58c14ad7e1d0eaa8a152b886108951f4
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2976
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/prop-base/DynamicURLLoader.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/prop-base/DynamicURLLoader.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/prop-base/IURIResolver.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/prop-base/IURIResolver.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/prop-base/MimeTypeMap.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/prop-base/MimeTypeMap.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/prop-base/URI.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/prop-base/URI.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/prop-base/URIEncodingBitmap.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/prop-base/URIEncodingBitmap.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/text-base/DynamicURLLoader.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/text-base/DynamicURLLoader.as.svn-base
new file mode 100644 (file)
index 0000000..2a9eea1
--- /dev/null
@@ -0,0 +1,55 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/text-base/IURIResolver.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/text-base/IURIResolver.as.svn-base
new file mode 100644 (file)
index 0000000..3610cc2
--- /dev/null
@@ -0,0 +1,76 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/text-base/MimeTypeMap.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/text-base/MimeTypeMap.as.svn-base
new file mode 100644 (file)
index 0000000..32e40a4
--- /dev/null
@@ -0,0 +1,196 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/text-base/URI.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/text-base/URI.as.svn-base
new file mode 100644 (file)
index 0000000..d43ce9f
--- /dev/null
@@ -0,0 +1,2466 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/text-base/URIEncodingBitmap.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/net/.svn/text-base/URIEncodingBitmap.as.svn-base
new file mode 100644 (file)
index 0000000..d786b33
--- /dev/null
@@ -0,0 +1,139 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/net/DynamicURLLoader.as b/platforma/static/filebrowser/uploadify/com/adobe/net/DynamicURLLoader.as
new file mode 100755 (executable)
index 0000000..2a9eea1
--- /dev/null
@@ -0,0 +1,55 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/net/IURIResolver.as b/platforma/static/filebrowser/uploadify/com/adobe/net/IURIResolver.as
new file mode 100755 (executable)
index 0000000..3610cc2
--- /dev/null
@@ -0,0 +1,76 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/net/MimeTypeMap.as b/platforma/static/filebrowser/uploadify/com/adobe/net/MimeTypeMap.as
new file mode 100755 (executable)
index 0000000..32e40a4
--- /dev/null
@@ -0,0 +1,196 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/net/URI.as b/platforma/static/filebrowser/uploadify/com/adobe/net/URI.as
new file mode 100755 (executable)
index 0000000..d43ce9f
--- /dev/null
@@ -0,0 +1,2466 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/net/URIEncodingBitmap.as b/platforma/static/filebrowser/uploadify/com/adobe/net/URIEncodingBitmap.as
new file mode 100755 (executable)
index 0000000..d786b33
--- /dev/null
@@ -0,0 +1,139 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/net/proxies/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/net/proxies/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..cd052d6
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 102
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies
+END
+RFC2817Socket.as
+K 25
+svn:wc:ra_dav:version-url
+V 119
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies/RFC2817Socket.as
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/net/proxies/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/net/proxies/.svn/entries
new file mode 100644 (file)
index 0000000..dadd65b
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/net/proxies
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+RFC2817Socket.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+7d508d055049655cb3fdc51438d86446
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7254
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/net/proxies/.svn/prop-base/RFC2817Socket.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/net/proxies/.svn/prop-base/RFC2817Socket.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/net/proxies/.svn/text-base/RFC2817Socket.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/net/proxies/.svn/text-base/RFC2817Socket.as.svn-base
new file mode 100644 (file)
index 0000000..e73e9e7
--- /dev/null
@@ -0,0 +1,198 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/net/proxies/RFC2817Socket.as b/platforma/static/filebrowser/uploadify/com/adobe/net/proxies/RFC2817Socket.as
new file mode 100755 (executable)
index 0000000..e73e9e7
--- /dev/null
@@ -0,0 +1,198 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/protocols/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/protocols/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..36f22c4
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 100
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/protocols/.svn/entries
new file mode 100644 (file)
index 0000000..03bf9f5
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+dict
+dir
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..431af8d
--- /dev/null
@@ -0,0 +1,41 @@
+K 25
+svn:wc:ra_dav:version-url
+V 105
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict
+END
+Response.as
+K 25
+svn:wc:ra_dav:version-url
+V 117
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Response.as
+END
+MatchStrategy.as
+K 25
+svn:wc:ra_dav:version-url
+V 122
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/MatchStrategy.as
+END
+Dict.as
+K 25
+svn:wc:ra_dav:version-url
+V 113
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Dict.as
+END
+Database.as
+K 25
+svn:wc:ra_dav:version-url
+V 117
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Database.as
+END
+Definition.as
+K 25
+svn:wc:ra_dav:version-url
+V 119
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/Definition.as
+END
+DictionaryServer.as
+K 25
+svn:wc:ra_dav:version-url
+V 125
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/DictionaryServer.as
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/entries
new file mode 100644 (file)
index 0000000..af259d3
--- /dev/null
@@ -0,0 +1,238 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+Response.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+a5d1e834cbefb8516b362e37f2655e8b
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+652
+\f
+MatchStrategy.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+dd7cd19dda9a6aead5f12d6bb5645222
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+626
+\f
+events
+dir
+\f
+Dict.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+5f679d4ee1110eb32d04fadf86fcd963
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+10093
+\f
+Database.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+b7a9f77b04cf8a84a7ec08b4c9c95f18
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+616
+\f
+Definition.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+f23348cf2dbd6f9f1c08784aada623c0
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+696
+\f
+util
+dir
+\f
+DictionaryServer.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+9bc9e6c8b4559b9d47d1106f0f9aff3e
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+509
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Database.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Database.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Definition.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Definition.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Dict.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Dict.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/DictionaryServer.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/DictionaryServer.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/MatchStrategy.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/MatchStrategy.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Response.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/prop-base/Response.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Database.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Database.as.svn-base
new file mode 100644 (file)
index 0000000..0ddeef5
--- /dev/null
@@ -0,0 +1,34 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Definition.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Definition.as.svn-base
new file mode 100644 (file)
index 0000000..934a330
--- /dev/null
@@ -0,0 +1,39 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Dict.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Dict.as.svn-base
new file mode 100644 (file)
index 0000000..07d2530
--- /dev/null
@@ -0,0 +1,328 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/DictionaryServer.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/DictionaryServer.as.svn-base
new file mode 100644 (file)
index 0000000..422b603
--- /dev/null
@@ -0,0 +1,28 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/MatchStrategy.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/MatchStrategy.as.svn-base
new file mode 100644 (file)
index 0000000..1e17da3
--- /dev/null
@@ -0,0 +1,34 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Response.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/.svn/text-base/Response.as.svn-base
new file mode 100644 (file)
index 0000000..619a8e9
--- /dev/null
@@ -0,0 +1,39 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/Database.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/Database.as
new file mode 100755 (executable)
index 0000000..0ddeef5
--- /dev/null
@@ -0,0 +1,34 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/Definition.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/Definition.as
new file mode 100755 (executable)
index 0000000..934a330
--- /dev/null
@@ -0,0 +1,39 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/Dict.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/Dict.as
new file mode 100755 (executable)
index 0000000..07d2530
--- /dev/null
@@ -0,0 +1,328 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/DictionaryServer.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/DictionaryServer.as
new file mode 100755 (executable)
index 0000000..422b603
--- /dev/null
@@ -0,0 +1,28 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/MatchStrategy.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/MatchStrategy.as
new file mode 100755 (executable)
index 0000000..1e17da3
--- /dev/null
@@ -0,0 +1,34 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/Response.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/Response.as
new file mode 100755 (executable)
index 0000000..619a8e9
--- /dev/null
@@ -0,0 +1,39 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..4a4fbde
--- /dev/null
@@ -0,0 +1,65 @@
+K 25
+svn:wc:ra_dav:version-url
+V 112
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events
+END
+MatchEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 126
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchEvent.as
+END
+DictionaryServerEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 137
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DictionaryServerEvent.as
+END
+DefinitionHeaderEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 137
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as
+END
+DisconnectedEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 133
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DisconnectedEvent.as
+END
+ConnectedEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 130
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/ConnectedEvent.as
+END
+DatabaseEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 129
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DatabaseEvent.as
+END
+MatchStrategiesEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 136
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchStrategiesEvent.as
+END
+DefinitionEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 131
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionEvent.as
+END
+NoMatchEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 128
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/NoMatchEvent.as
+END
+ErrorEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 126
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events/ErrorEvent.as
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/entries
new file mode 100644 (file)
index 0000000..042f523
--- /dev/null
@@ -0,0 +1,368 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/events
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+MatchEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+f6f1543eb03ede469b43cff0980a2a33
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+440
+\f
+DictionaryServerEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+51547bc5ab6e6687f61cb4dcf91ee625
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+464
+\f
+DefinitionHeaderEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+496e4c0a8e2aee76ecd57914291e44e3
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+527
+\f
+DisconnectedEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+429c99d96a6b1795994b6ac0ee5f8fc4
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+254
+\f
+ConnectedEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+d39fba30d2f540dedc60575141f1588d
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+245
+\f
+DatabaseEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+cc66ad6f3dba70980dbde9f4925e33aa
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+464
+\f
+MatchStrategiesEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+44bebe3f7ab66cc2200329f5bf726684
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+492
+\f
+DefinitionEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+6b1d74340d3c1754005f01059ec9a0ca
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+537
+\f
+NoMatchEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+3df0110ea24f1bab4627a504a94fe56c
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+239
+\f
+ErrorEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+0f5a3603d3031c7f441251cb17cd9ce4
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+616
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/ConnectedEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/ConnectedEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DatabaseEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DatabaseEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DefinitionEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DefinitionEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DefinitionHeaderEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DefinitionHeaderEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DictionaryServerEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DictionaryServerEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DisconnectedEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/DisconnectedEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/ErrorEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/ErrorEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/MatchEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/MatchEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/MatchStrategiesEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/MatchStrategiesEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/NoMatchEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/prop-base/NoMatchEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/ConnectedEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/ConnectedEvent.as.svn-base
new file mode 100644 (file)
index 0000000..c4a4145
--- /dev/null
@@ -0,0 +1,14 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DatabaseEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DatabaseEvent.as.svn-base
new file mode 100644 (file)
index 0000000..fdd2cc1
--- /dev/null
@@ -0,0 +1,26 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DefinitionEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DefinitionEvent.as.svn-base
new file mode 100644 (file)
index 0000000..8107173
--- /dev/null
@@ -0,0 +1,27 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DefinitionHeaderEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DefinitionHeaderEvent.as.svn-base
new file mode 100644 (file)
index 0000000..e77c402
--- /dev/null
@@ -0,0 +1,26 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DictionaryServerEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DictionaryServerEvent.as.svn-base
new file mode 100644 (file)
index 0000000..9b406e9
--- /dev/null
@@ -0,0 +1,26 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DisconnectedEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/DisconnectedEvent.as.svn-base
new file mode 100644 (file)
index 0000000..485b3ed
--- /dev/null
@@ -0,0 +1,14 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/ErrorEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/ErrorEvent.as.svn-base
new file mode 100644 (file)
index 0000000..9e5fc7a
--- /dev/null
@@ -0,0 +1,37 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/MatchEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/MatchEvent.as.svn-base
new file mode 100644 (file)
index 0000000..65b8688
--- /dev/null
@@ -0,0 +1,26 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/MatchStrategiesEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/MatchStrategiesEvent.as.svn-base
new file mode 100644 (file)
index 0000000..75b76f8
--- /dev/null
@@ -0,0 +1,26 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/NoMatchEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/.svn/text-base/NoMatchEvent.as.svn-base
new file mode 100644 (file)
index 0000000..894d1ae
--- /dev/null
@@ -0,0 +1,14 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/ConnectedEvent.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/ConnectedEvent.as
new file mode 100755 (executable)
index 0000000..c4a4145
--- /dev/null
@@ -0,0 +1,14 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DatabaseEvent.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DatabaseEvent.as
new file mode 100755 (executable)
index 0000000..fdd2cc1
--- /dev/null
@@ -0,0 +1,26 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionEvent.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionEvent.as
new file mode 100755 (executable)
index 0000000..8107173
--- /dev/null
@@ -0,0 +1,27 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as
new file mode 100755 (executable)
index 0000000..e77c402
--- /dev/null
@@ -0,0 +1,26 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DictionaryServerEvent.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DictionaryServerEvent.as
new file mode 100755 (executable)
index 0000000..9b406e9
--- /dev/null
@@ -0,0 +1,26 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DisconnectedEvent.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/DisconnectedEvent.as
new file mode 100755 (executable)
index 0000000..485b3ed
--- /dev/null
@@ -0,0 +1,14 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/ErrorEvent.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/ErrorEvent.as
new file mode 100755 (executable)
index 0000000..9e5fc7a
--- /dev/null
@@ -0,0 +1,37 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchEvent.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchEvent.as
new file mode 100755 (executable)
index 0000000..65b8688
--- /dev/null
@@ -0,0 +1,26 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchStrategiesEvent.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/MatchStrategiesEvent.as
new file mode 100755 (executable)
index 0000000..75b76f8
--- /dev/null
@@ -0,0 +1,26 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/NoMatchEvent.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/events/NoMatchEvent.as
new file mode 100755 (executable)
index 0000000..894d1ae
--- /dev/null
@@ -0,0 +1,14 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..2b9217f
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util
+END
+SocketHelper.as
+K 25
+svn:wc:ra_dav:version-url
+V 126
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/SocketHelper.as
+END
+CompleteResponseEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 135
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util/CompleteResponseEvent.as
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/entries
new file mode 100644 (file)
index 0000000..cc76f0b
--- /dev/null
@@ -0,0 +1,96 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/protocols/dict/util
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+SocketHelper.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+040301b1a229316028eececfbb6f9664
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1417
+\f
+CompleteResponseEvent.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+7929dd2f7c63a5e12ed603dcc0f5bd88
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+446
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/prop-base/CompleteResponseEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/prop-base/CompleteResponseEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/prop-base/SocketHelper.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/prop-base/SocketHelper.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/text-base/CompleteResponseEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/text-base/CompleteResponseEvent.as.svn-base
new file mode 100644 (file)
index 0000000..fc552f1
--- /dev/null
@@ -0,0 +1,25 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/text-base/SocketHelper.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/.svn/text-base/SocketHelper.as.svn-base
new file mode 100644 (file)
index 0000000..feb494b
--- /dev/null
@@ -0,0 +1,49 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/CompleteResponseEvent.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/CompleteResponseEvent.as
new file mode 100755 (executable)
index 0000000..fc552f1
--- /dev/null
@@ -0,0 +1,25 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/SocketHelper.as b/platforma/static/filebrowser/uploadify/com/adobe/protocols/dict/util/SocketHelper.as
new file mode 100755 (executable)
index 0000000..feb494b
--- /dev/null
@@ -0,0 +1,49 @@
+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/platforma/static/filebrowser/uploadify/com/adobe/serialization/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/serialization/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..3b0cf33
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 104
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/serialization/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/serialization/.svn/entries
new file mode 100644 (file)
index 0000000..7421601
--- /dev/null
@@ -0,0 +1,31 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+json
+dir
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..b6e7593
--- /dev/null
@@ -0,0 +1,47 @@
+K 25
+svn:wc:ra_dav:version-url
+V 109
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json
+END
+JSONParseError.as
+K 25
+svn:wc:ra_dav:version-url
+V 127
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONParseError.as
+END
+JSONDecoder.as
+K 25
+svn:wc:ra_dav:version-url
+V 124
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONDecoder.as
+END
+JSONTokenizer.as
+K 25
+svn:wc:ra_dav:version-url
+V 126
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenizer.as
+END
+JSONEncoder.as
+K 25
+svn:wc:ra_dav:version-url
+V 124
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONEncoder.as
+END
+JSON.as
+K 25
+svn:wc:ra_dav:version-url
+V 117
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSON.as
+END
+JSONToken.as
+K 25
+svn:wc:ra_dav:version-url
+V 122
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONToken.as
+END
+JSONTokenType.as
+K 25
+svn:wc:ra_dav:version-url
+V 126
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenType.as
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/entries
new file mode 100644 (file)
index 0000000..a78b6df
--- /dev/null
@@ -0,0 +1,266 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/serialization/json
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+JSONParseError.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+349b4a6caceeb46730e01e909cc08413
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2883
+\f
+JSONDecoder.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+4adb46e2f6f82c7ad2ddb2102c947397
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6784
+\f
+JSONTokenizer.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+c150c00d14494dd405cc1ace240312f0
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+15517
+\f
+JSONEncoder.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+f2802c0025547d37081a1eb92b604375
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+9173
+\f
+JSON.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+2d5d3261b2d396127a861d771b506feb
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2844
+\f
+JSONToken.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+1306bd9a6d3ccb468510b068fd7bddbf
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3197
+\f
+JSONTokenType.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+26dd8b36a591c987d053b4845719af7b
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2340
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSON.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSON.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONDecoder.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONDecoder.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONEncoder.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONEncoder.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONParseError.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONParseError.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONToken.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONToken.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONTokenType.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONTokenType.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONTokenizer.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/prop-base/JSONTokenizer.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSON.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSON.as.svn-base
new file mode 100644 (file)
index 0000000..bfee6d9
--- /dev/null
@@ -0,0 +1,85 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONDecoder.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONDecoder.as.svn-base
new file mode 100644 (file)
index 0000000..82ade19
--- /dev/null
@@ -0,0 +1,221 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONEncoder.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONEncoder.as.svn-base
new file mode 100644 (file)
index 0000000..44469d0
--- /dev/null
@@ -0,0 +1,299 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONParseError.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONParseError.as.svn-base
new file mode 100644 (file)
index 0000000..5aec1e3
--- /dev/null
@@ -0,0 +1,87 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONToken.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONToken.as.svn-base
new file mode 100644 (file)
index 0000000..258d63c
--- /dev/null
@@ -0,0 +1,104 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONTokenType.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONTokenType.as.svn-base
new file mode 100644 (file)
index 0000000..fceb3f0
--- /dev/null
@@ -0,0 +1,67 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONTokenizer.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/.svn/text-base/JSONTokenizer.as.svn-base
new file mode 100644 (file)
index 0000000..dc36bfc
--- /dev/null
@@ -0,0 +1,583 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSON.as b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSON.as
new file mode 100755 (executable)
index 0000000..bfee6d9
--- /dev/null
@@ -0,0 +1,85 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONDecoder.as b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONDecoder.as
new file mode 100755 (executable)
index 0000000..82ade19
--- /dev/null
@@ -0,0 +1,221 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONEncoder.as b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONEncoder.as
new file mode 100755 (executable)
index 0000000..44469d0
--- /dev/null
@@ -0,0 +1,299 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONParseError.as b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONParseError.as
new file mode 100755 (executable)
index 0000000..5aec1e3
--- /dev/null
@@ -0,0 +1,87 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONToken.as b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONToken.as
new file mode 100755 (executable)
index 0000000..258d63c
--- /dev/null
@@ -0,0 +1,104 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenType.as b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenType.as
new file mode 100755 (executable)
index 0000000..fceb3f0
--- /dev/null
@@ -0,0 +1,67 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenizer.as b/platforma/static/filebrowser/uploadify/com/adobe/serialization/json/JSONTokenizer.as
new file mode 100755 (executable)
index 0000000..dc36bfc
--- /dev/null
@@ -0,0 +1,583 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..b8dfb0c
--- /dev/null
@@ -0,0 +1,47 @@
+K 25
+svn:wc:ra_dav:version-url
+V 96
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils
+END
+XMLUtil.as
+K 25
+svn:wc:ra_dav:version-url
+V 107
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils/XMLUtil.as
+END
+DictionaryUtil.as
+K 25
+svn:wc:ra_dav:version-url
+V 114
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils/DictionaryUtil.as
+END
+StringUtil.as
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils/StringUtil.as
+END
+IntUtil.as
+K 25
+svn:wc:ra_dav:version-url
+V 107
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils/IntUtil.as
+END
+DateUtil.as
+K 25
+svn:wc:ra_dav:version-url
+V 108
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils/DateUtil.as
+END
+NumberFormatter.as
+K 25
+svn:wc:ra_dav:version-url
+V 115
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils/NumberFormatter.as
+END
+ArrayUtil.as
+K 25
+svn:wc:ra_dav:version-url
+V 109
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils/ArrayUtil.as
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/entries
new file mode 100644 (file)
index 0000000..7517726
--- /dev/null
@@ -0,0 +1,266 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/utils
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+XMLUtil.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+e7d431a8faace3c7cc260350badb6551
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+4849
+\f
+DictionaryUtil.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+5396745afdc7b6f2ceeb6848fb285bf2
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2633
+\f
+StringUtil.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+68e78183b17db17eb4af4d839dbb78e1
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7381
+\f
+IntUtil.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+8ff3c295004e20d71fbdf1e3cb3c18f9
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3409
+\f
+DateUtil.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+0e7a4c4e21c625082da01a156d07bfaf
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+17621
+\f
+NumberFormatter.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+51b00659d4dfdb94dc7f8346b703c670
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2429
+\f
+ArrayUtil.as
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+99a9bf2faccdde75cb022edeb29117f2
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+5406
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/ArrayUtil.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/ArrayUtil.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/DateUtil.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/DateUtil.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/DictionaryUtil.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/DictionaryUtil.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/IntUtil.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/IntUtil.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/NumberFormatter.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/NumberFormatter.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/StringUtil.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/StringUtil.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/XMLUtil.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/prop-base/XMLUtil.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/ArrayUtil.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/ArrayUtil.as.svn-base
new file mode 100644 (file)
index 0000000..e656120
--- /dev/null
@@ -0,0 +1,187 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/DateUtil.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/DateUtil.as.svn-base
new file mode 100644 (file)
index 0000000..a49fe43
--- /dev/null
@@ -0,0 +1,699 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/DictionaryUtil.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/DictionaryUtil.as.svn-base
new file mode 100644 (file)
index 0000000..9552ef4
--- /dev/null
@@ -0,0 +1,87 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/IntUtil.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/IntUtil.as.svn-base
new file mode 100644 (file)
index 0000000..8c812fe
--- /dev/null
@@ -0,0 +1,99 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/NumberFormatter.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/NumberFormatter.as.svn-base
new file mode 100644 (file)
index 0000000..6fe12e1
--- /dev/null
@@ -0,0 +1,74 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/StringUtil.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/StringUtil.as.svn-base
new file mode 100644 (file)
index 0000000..6aa1979
--- /dev/null
@@ -0,0 +1,270 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/XMLUtil.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/utils/.svn/text-base/XMLUtil.as.svn-base
new file mode 100644 (file)
index 0000000..24fce00
--- /dev/null
@@ -0,0 +1,168 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/utils/ArrayUtil.as b/platforma/static/filebrowser/uploadify/com/adobe/utils/ArrayUtil.as
new file mode 100755 (executable)
index 0000000..e656120
--- /dev/null
@@ -0,0 +1,187 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/utils/DateUtil.as b/platforma/static/filebrowser/uploadify/com/adobe/utils/DateUtil.as
new file mode 100755 (executable)
index 0000000..a49fe43
--- /dev/null
@@ -0,0 +1,699 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/utils/DictionaryUtil.as b/platforma/static/filebrowser/uploadify/com/adobe/utils/DictionaryUtil.as
new file mode 100755 (executable)
index 0000000..9552ef4
--- /dev/null
@@ -0,0 +1,87 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/utils/IntUtil.as b/platforma/static/filebrowser/uploadify/com/adobe/utils/IntUtil.as
new file mode 100755 (executable)
index 0000000..8c812fe
--- /dev/null
@@ -0,0 +1,99 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/utils/NumberFormatter.as b/platforma/static/filebrowser/uploadify/com/adobe/utils/NumberFormatter.as
new file mode 100755 (executable)
index 0000000..6fe12e1
--- /dev/null
@@ -0,0 +1,74 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/utils/StringUtil.as b/platforma/static/filebrowser/uploadify/com/adobe/utils/StringUtil.as
new file mode 100755 (executable)
index 0000000..6aa1979
--- /dev/null
@@ -0,0 +1,270 @@
+/*
+  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/platforma/static/filebrowser/uploadify/com/adobe/utils/XMLUtil.as b/platforma/static/filebrowser/uploadify/com/adobe/utils/XMLUtil.as
new file mode 100755 (executable)
index 0000000..24fce00
--- /dev/null
@@ -0,0 +1,168 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..d4fc510
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 98
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/webapis
+END
+URLLoaderBase.as
+K 25
+svn:wc:ra_dav:version-url
+V 115
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/URLLoaderBase.as
+END
+ServiceBase.as
+K 25
+svn:wc:ra_dav:version-url
+V 113
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/ServiceBase.as
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/entries
new file mode 100644 (file)
index 0000000..891c9dd
--- /dev/null
@@ -0,0 +1,99 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/webapis
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+events
+dir
+\f
+URLLoaderBase.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+ade390b4d7b27cd070bed1d19493cfc5
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3614
+\f
+ServiceBase.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+65f58905504330880a8419d0932f2e18
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1841
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/prop-base/ServiceBase.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/prop-base/ServiceBase.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/prop-base/URLLoaderBase.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/prop-base/URLLoaderBase.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/text-base/ServiceBase.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/text-base/ServiceBase.as.svn-base
new file mode 100644 (file)
index 0000000..7080287
--- /dev/null
@@ -0,0 +1,48 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/text-base/URLLoaderBase.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/webapis/.svn/text-base/URLLoaderBase.as.svn-base
new file mode 100644 (file)
index 0000000..fc0085c
--- /dev/null
@@ -0,0 +1,108 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/webapis/ServiceBase.as b/platforma/static/filebrowser/uploadify/com/adobe/webapis/ServiceBase.as
new file mode 100755 (executable)
index 0000000..7080287
--- /dev/null
@@ -0,0 +1,48 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/webapis/URLLoaderBase.as b/platforma/static/filebrowser/uploadify/com/adobe/webapis/URLLoaderBase.as
new file mode 100755 (executable)
index 0000000..fc0085c
--- /dev/null
@@ -0,0 +1,108 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/webapis/events/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/com/adobe/webapis/events/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..7d8fcf2
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 105
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events
+END
+ServiceEvent.as
+K 25
+svn:wc:ra_dav:version-url
+V 121
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events/ServiceEvent.as
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/webapis/events/.svn/entries b/platforma/static/filebrowser/uploadify/com/adobe/webapis/events/.svn/entries
new file mode 100644 (file)
index 0000000..ab0107b
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/com/adobe/webapis/events
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+ServiceEvent.as
+file
+
+
+
+
+2009-11-05T20:58:52.000000Z
+3fda6d0eb0260905ef7d5a0d58e25b29
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2445
+\f
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/webapis/events/.svn/prop-base/ServiceEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/webapis/events/.svn/prop-base/ServiceEvent.as.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/com/adobe/webapis/events/.svn/text-base/ServiceEvent.as.svn-base b/platforma/static/filebrowser/uploadify/com/adobe/webapis/events/.svn/text-base/ServiceEvent.as.svn-base
new file mode 100644 (file)
index 0000000..d1aaf3d
--- /dev/null
@@ -0,0 +1,75 @@
+/*\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/platforma/static/filebrowser/uploadify/com/adobe/webapis/events/ServiceEvent.as b/platforma/static/filebrowser/uploadify/com/adobe/webapis/events/ServiceEvent.as
new file mode 100755 (executable)
index 0000000..d1aaf3d
--- /dev/null
@@ -0,0 +1,75 @@
+/*\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/platforma/static/filebrowser/uploadify/example/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/example/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..3cb16ea
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 88
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example
+END
+cancel.png
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/cancel.png
+END
+index.php
+K 25
+svn:wc:ra_dav:version-url
+V 98
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/index.php
+END
diff --git a/platforma/static/filebrowser/uploadify/example/.svn/entries b/platforma/static/filebrowser/uploadify/example/.svn/entries
new file mode 100644 (file)
index 0000000..a1846de
--- /dev/null
@@ -0,0 +1,108 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+_notes
+dir
+\f
+scripts
+dir
+\f
+uploads
+dir
+\f
+css
+dir
+\f
+cancel.png
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+9ce92e32e120ce9162498c92e4348ec0
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+603
+\f
+index.php
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+8f02dacc9cb41b62b53f1bc403047686
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1284
+\f
diff --git a/platforma/static/filebrowser/uploadify/example/.svn/prop-base/cancel.png.svn-base b/platforma/static/filebrowser/uploadify/example/.svn/prop-base/cancel.png.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/uploadify/example/.svn/prop-base/index.php.svn-base b/platforma/static/filebrowser/uploadify/example/.svn/prop-base/index.php.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/example/.svn/text-base/cancel.png.svn-base b/platforma/static/filebrowser/uploadify/example/.svn/text-base/cancel.png.svn-base
new file mode 100644 (file)
index 0000000..1c062ae
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/example/.svn/text-base/cancel.png.svn-base differ
diff --git a/platforma/static/filebrowser/uploadify/example/.svn/text-base/index.php.svn-base b/platforma/static/filebrowser/uploadify/example/.svn/text-base/index.php.svn-base
new file mode 100644 (file)
index 0000000..769d11c
--- /dev/null
@@ -0,0 +1,31 @@
+<!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/platforma/static/filebrowser/uploadify/example/_notes/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/example/_notes/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..c0552a6
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 95
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/_notes
+END
+dwsync.xml
+K 25
+svn:wc:ra_dav:version-url
+V 106
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/_notes/dwsync.xml
+END
diff --git a/platforma/static/filebrowser/uploadify/example/_notes/.svn/entries b/platforma/static/filebrowser/uploadify/example/_notes/.svn/entries
new file mode 100644 (file)
index 0000000..dd272fc
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/_notes
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+dwsync.xml
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+1d0d08a0a610122fd7ca380a077cd91c
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+317
+\f
diff --git a/platforma/static/filebrowser/uploadify/example/_notes/.svn/prop-base/dwsync.xml.svn-base b/platforma/static/filebrowser/uploadify/example/_notes/.svn/prop-base/dwsync.xml.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/example/_notes/.svn/text-base/dwsync.xml.svn-base b/platforma/static/filebrowser/uploadify/example/_notes/.svn/text-base/dwsync.xml.svn-base
new file mode 100644 (file)
index 0000000..36ecaa5
--- /dev/null
@@ -0,0 +1,5 @@
+<?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/platforma/static/filebrowser/uploadify/example/_notes/dwsync.xml b/platforma/static/filebrowser/uploadify/example/_notes/dwsync.xml
new file mode 100755 (executable)
index 0000000..36ecaa5
--- /dev/null
@@ -0,0 +1,5 @@
+<?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/platforma/static/filebrowser/uploadify/example/cancel.png b/platforma/static/filebrowser/uploadify/example/cancel.png
new file mode 100755 (executable)
index 0000000..1c062ae
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/example/cancel.png differ
diff --git a/platforma/static/filebrowser/uploadify/example/css/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/example/css/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..8e3e032
--- /dev/null
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 92
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/css
+END
+uploadify.css
+K 25
+svn:wc:ra_dav:version-url
+V 106
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/css/uploadify.css
+END
+default.css
+K 25
+svn:wc:ra_dav:version-url
+V 104
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/css/default.css
+END
diff --git a/platforma/static/filebrowser/uploadify/example/css/.svn/entries b/platforma/static/filebrowser/uploadify/example/css/.svn/entries
new file mode 100644 (file)
index 0000000..2bba155
--- /dev/null
@@ -0,0 +1,99 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/css
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+uploadify.css
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+edec394bac0dc3cf3a17da3837abd642
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1792
+\f
+_notes
+dir
+\f
+default.css
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+0ad07a2134f8f26293cd2b5420b2d6f7
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+177
+\f
diff --git a/platforma/static/filebrowser/uploadify/example/css/.svn/prop-base/default.css.svn-base b/platforma/static/filebrowser/uploadify/example/css/.svn/prop-base/default.css.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/example/css/.svn/prop-base/uploadify.css.svn-base b/platforma/static/filebrowser/uploadify/example/css/.svn/prop-base/uploadify.css.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/example/css/.svn/text-base/default.css.svn-base b/platforma/static/filebrowser/uploadify/example/css/.svn/text-base/default.css.svn-base
new file mode 100644 (file)
index 0000000..ec5902d
--- /dev/null
@@ -0,0 +1,10 @@
+body {\r
+       font: 12px/16px Arial, Helvetica, sans-serif;\r
+}\r
+#fileQueue {\r
+       width: 400px;\r
+       height: 300px;\r
+       overflow: auto;\r
+       border: 1px solid #E5E5E5;\r
+       margin-bottom: 10px;\r
+}
\ No newline at end of file
diff --git a/platforma/static/filebrowser/uploadify/example/css/.svn/text-base/uploadify.css.svn-base b/platforma/static/filebrowser/uploadify/example/css/.svn/text-base/uploadify.css.svn-base
new file mode 100644 (file)
index 0000000..0cf8c0e
--- /dev/null
@@ -0,0 +1,53 @@
+/*\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
+.uploadifyQueueItem {\r
+       font: 11px Verdana, Geneva, sans-serif;\r
+       border: 2px solid #E5E5E5;\r
+       background-color: #F5F5F5;\r
+       margin-top: 5px;\r
+       padding: 10px;\r
+       width: 350px;\r
+}\r
+.uploadifyError {\r
+       border: 2px solid #FBCBBC !important;\r
+       background-color: #FDE5DD !important;\r
+}\r
+.uploadifyQueueItem .cancel {\r
+       float: right;\r
+}\r
+.uploadifyProgress {\r
+       background-color: #FFFFFF;\r
+       border-top: 1px solid #808080;\r
+       border-left: 1px solid #808080;\r
+       border-right: 1px solid #C5C5C5;\r
+       border-bottom: 1px solid #C5C5C5;\r
+       margin-top: 10px;\r
+       width: 100%;\r
+}\r
+.uploadifyProgressBar {\r
+       background-color: #0099FF;\r
+       width: 1px;\r
+       height: 3px;\r
+}
\ No newline at end of file
diff --git a/platforma/static/filebrowser/uploadify/example/css/_notes/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/example/css/_notes/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..98471dc
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/css/_notes
+END
+dwsync.xml
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/css/_notes/dwsync.xml
+END
diff --git a/platforma/static/filebrowser/uploadify/example/css/_notes/.svn/entries b/platforma/static/filebrowser/uploadify/example/css/_notes/.svn/entries
new file mode 100644 (file)
index 0000000..e3cddb4
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/css/_notes
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+dwsync.xml
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+5290468e614f6b7a8ec013b682853d43
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+322
+\f
diff --git a/platforma/static/filebrowser/uploadify/example/css/_notes/.svn/prop-base/dwsync.xml.svn-base b/platforma/static/filebrowser/uploadify/example/css/_notes/.svn/prop-base/dwsync.xml.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/example/css/_notes/.svn/text-base/dwsync.xml.svn-base b/platforma/static/filebrowser/uploadify/example/css/_notes/.svn/text-base/dwsync.xml.svn-base
new file mode 100644 (file)
index 0000000..049ffa5
--- /dev/null
@@ -0,0 +1,5 @@
+<?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/platforma/static/filebrowser/uploadify/example/css/_notes/dwsync.xml b/platforma/static/filebrowser/uploadify/example/css/_notes/dwsync.xml
new file mode 100755 (executable)
index 0000000..049ffa5
--- /dev/null
@@ -0,0 +1,5 @@
+<?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/platforma/static/filebrowser/uploadify/example/css/default.css b/platforma/static/filebrowser/uploadify/example/css/default.css
new file mode 100755 (executable)
index 0000000..ec5902d
--- /dev/null
@@ -0,0 +1,10 @@
+body {\r
+       font: 12px/16px Arial, Helvetica, sans-serif;\r
+}\r
+#fileQueue {\r
+       width: 400px;\r
+       height: 300px;\r
+       overflow: auto;\r
+       border: 1px solid #E5E5E5;\r
+       margin-bottom: 10px;\r
+}
\ No newline at end of file
diff --git a/platforma/static/filebrowser/uploadify/example/css/uploadify.css b/platforma/static/filebrowser/uploadify/example/css/uploadify.css
new file mode 100755 (executable)
index 0000000..0cf8c0e
--- /dev/null
@@ -0,0 +1,53 @@
+/*\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
+.uploadifyQueueItem {\r
+       font: 11px Verdana, Geneva, sans-serif;\r
+       border: 2px solid #E5E5E5;\r
+       background-color: #F5F5F5;\r
+       margin-top: 5px;\r
+       padding: 10px;\r
+       width: 350px;\r
+}\r
+.uploadifyError {\r
+       border: 2px solid #FBCBBC !important;\r
+       background-color: #FDE5DD !important;\r
+}\r
+.uploadifyQueueItem .cancel {\r
+       float: right;\r
+}\r
+.uploadifyProgress {\r
+       background-color: #FFFFFF;\r
+       border-top: 1px solid #808080;\r
+       border-left: 1px solid #808080;\r
+       border-right: 1px solid #C5C5C5;\r
+       border-bottom: 1px solid #C5C5C5;\r
+       margin-top: 10px;\r
+       width: 100%;\r
+}\r
+.uploadifyProgressBar {\r
+       background-color: #0099FF;\r
+       width: 1px;\r
+       height: 3px;\r
+}
\ No newline at end of file
diff --git a/platforma/static/filebrowser/uploadify/example/index.php b/platforma/static/filebrowser/uploadify/example/index.php
new file mode 100755 (executable)
index 0000000..769d11c
--- /dev/null
@@ -0,0 +1,31 @@
+<!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/platforma/static/filebrowser/uploadify/example/scripts/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/example/scripts/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..ebb7812
--- /dev/null
@@ -0,0 +1,47 @@
+K 25
+svn:wc:ra_dav:version-url
+V 96
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts
+END
+swfobject.js
+K 25
+svn:wc:ra_dav:version-url
+V 109
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/swfobject.js
+END
+uploadify.php
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/uploadify.php
+END
+check.php
+K 25
+svn:wc:ra_dav:version-url
+V 106
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/check.php
+END
+uploadify.swf
+K 25
+svn:wc:ra_dav:version-url
+V 110
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/uploadify.swf
+END
+jquery.uploadify.v2.1.0.min.js
+K 25
+svn:wc:ra_dav:version-url
+V 127
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/jquery.uploadify.v2.1.0.min.js
+END
+jquery-1.3.2.min.js
+K 25
+svn:wc:ra_dav:version-url
+V 116
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/jquery-1.3.2.min.js
+END
+expressInstall.swf
+K 25
+svn:wc:ra_dav:version-url
+V 115
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/expressInstall.swf
+END
diff --git a/platforma/static/filebrowser/uploadify/example/scripts/.svn/entries b/platforma/static/filebrowser/uploadify/example/scripts/.svn/entries
new file mode 100644 (file)
index 0000000..df5485f
--- /dev/null
@@ -0,0 +1,269 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+swfobject.js
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+892a543f3abb54e8ec1ada55be3b0649
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+10220
+\f
+uploadify.php
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+18002e871847e9e3ae656a35d5e24cbe
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1932
+\f
+check.php
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+c409eb2cfd793515f98f0781fea3ef15
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1404
+\f
+_notes
+dir
+\f
+uploadify.swf
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+ed069be276d587e0b24cedc3d3a48738
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+23119
+\f
+jquery.uploadify.v2.1.0.min.js
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+4f1ceab5d5c04168fbef69362742bc6c
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7563
+\f
+jquery-1.3.2.min.js
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+bb381e2d19d8eace86b34d20759491a5
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+57254
+\f
+expressInstall.swf
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+7b65fbfaec8b2955090389af60646e8b
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+727
+\f
diff --git a/platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/check.php.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/check.php.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/expressInstall.swf.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/expressInstall.swf.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/jquery-1.3.2.min.js.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/jquery-1.3.2.min.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/jquery.uploadify.v2.1.0.min.js.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/jquery.uploadify.v2.1.0.min.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/swfobject.js.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/swfobject.js.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/uploadify.php.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/uploadify.php.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/uploadify.swf.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/.svn/prop-base/uploadify.swf.svn-base
new file mode 100644 (file)
index 0000000..dbc918b
--- /dev/null
@@ -0,0 +1,9 @@
+K 14
+svn:executable
+V 1
+*
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
diff --git a/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/check.php.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/check.php.svn-base
new file mode 100644 (file)
index 0000000..d7dc571
--- /dev/null
@@ -0,0 +1,35 @@
+<?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/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/expressInstall.swf.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/expressInstall.swf.svn-base
new file mode 100644 (file)
index 0000000..0fbf8fc
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/expressInstall.swf.svn-base differ
diff --git a/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/jquery-1.3.2.min.js.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/jquery-1.3.2.min.js.svn-base
new file mode 100644 (file)
index 0000000..b1ae21d
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * 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/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/jquery.uploadify.v2.1.0.min.js.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/jquery.uploadify.v2.1.0.min.js.svn-base
new file mode 100644 (file)
index 0000000..04592ff
--- /dev/null
@@ -0,0 +1,26 @@
+/*\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
+\r
+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/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/swfobject.js.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/swfobject.js.svn-base
new file mode 100644 (file)
index 0000000..8eafe9d
--- /dev/null
@@ -0,0 +1,4 @@
+/*     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/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/uploadify.php.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/uploadify.php.svn-base
new file mode 100644 (file)
index 0000000..8bf14a6
--- /dev/null
@@ -0,0 +1,46 @@
+<?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/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/uploadify.swf.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/uploadify.swf.svn-base
new file mode 100644 (file)
index 0000000..4d27952
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/example/scripts/.svn/text-base/uploadify.swf.svn-base differ
diff --git a/platforma/static/filebrowser/uploadify/example/scripts/_notes/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/example/scripts/_notes/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..d8daf49
--- /dev/null
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 103
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/_notes
+END
+dwsync.xml
+K 25
+svn:wc:ra_dav:version-url
+V 114
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/_notes/dwsync.xml
+END
diff --git a/platforma/static/filebrowser/uploadify/example/scripts/_notes/.svn/entries b/platforma/static/filebrowser/uploadify/example/scripts/_notes/.svn/entries
new file mode 100644 (file)
index 0000000..89f38db
--- /dev/null
@@ -0,0 +1,62 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/scripts/_notes
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
+dwsync.xml
+file
+
+
+
+
+2009-11-05T20:58:51.000000Z
+a095283fba302c68c7f695198d29f450
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1007
+\f
diff --git a/platforma/static/filebrowser/uploadify/example/scripts/_notes/.svn/prop-base/dwsync.xml.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/_notes/.svn/prop-base/dwsync.xml.svn-base
new file mode 100644 (file)
index 0000000..869ac71
--- /dev/null
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/platforma/static/filebrowser/uploadify/example/scripts/_notes/.svn/text-base/dwsync.xml.svn-base b/platforma/static/filebrowser/uploadify/example/scripts/_notes/.svn/text-base/dwsync.xml.svn-base
new file mode 100644 (file)
index 0000000..13ca043
--- /dev/null
@@ -0,0 +1,10 @@
+<?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/platforma/static/filebrowser/uploadify/example/scripts/_notes/dwsync.xml b/platforma/static/filebrowser/uploadify/example/scripts/_notes/dwsync.xml
new file mode 100755 (executable)
index 0000000..13ca043
--- /dev/null
@@ -0,0 +1,10 @@
+<?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/platforma/static/filebrowser/uploadify/example/scripts/check.php b/platforma/static/filebrowser/uploadify/example/scripts/check.php
new file mode 100755 (executable)
index 0000000..d7dc571
--- /dev/null
@@ -0,0 +1,35 @@
+<?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/platforma/static/filebrowser/uploadify/example/scripts/expressInstall.swf b/platforma/static/filebrowser/uploadify/example/scripts/expressInstall.swf
new file mode 100755 (executable)
index 0000000..0fbf8fc
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/example/scripts/expressInstall.swf differ
diff --git a/platforma/static/filebrowser/uploadify/example/scripts/jquery-1.3.2.min.js b/platforma/static/filebrowser/uploadify/example/scripts/jquery-1.3.2.min.js
new file mode 100755 (executable)
index 0000000..b1ae21d
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * 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/platforma/static/filebrowser/uploadify/example/scripts/jquery.uploadify.v2.1.0.min.js b/platforma/static/filebrowser/uploadify/example/scripts/jquery.uploadify.v2.1.0.min.js
new file mode 100755 (executable)
index 0000000..04592ff
--- /dev/null
@@ -0,0 +1,26 @@
+/*\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
+\r
+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/platforma/static/filebrowser/uploadify/example/scripts/swfobject.js b/platforma/static/filebrowser/uploadify/example/scripts/swfobject.js
new file mode 100755 (executable)
index 0000000..8eafe9d
--- /dev/null
@@ -0,0 +1,4 @@
+/*     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/platforma/static/filebrowser/uploadify/example/scripts/uploadify.php b/platforma/static/filebrowser/uploadify/example/scripts/uploadify.php
new file mode 100755 (executable)
index 0000000..8bf14a6
--- /dev/null
@@ -0,0 +1,46 @@
+<?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/platforma/static/filebrowser/uploadify/example/scripts/uploadify.swf b/platforma/static/filebrowser/uploadify/example/scripts/uploadify.swf
new file mode 100755 (executable)
index 0000000..4d27952
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/example/scripts/uploadify.swf differ
diff --git a/platforma/static/filebrowser/uploadify/example/uploads/.svn/all-wcprops b/platforma/static/filebrowser/uploadify/example/uploads/.svn/all-wcprops
new file mode 100644 (file)
index 0000000..95ccd61
--- /dev/null
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 96
+/svn/!svn/ver/459/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/uploads
+END
diff --git a/platforma/static/filebrowser/uploadify/example/uploads/.svn/entries b/platforma/static/filebrowser/uploadify/example/uploads/.svn/entries
new file mode 100644 (file)
index 0000000..74afe08
--- /dev/null
@@ -0,0 +1,28 @@
+10
+
+dir
+466
+http://django-filebrowser.googlecode.com/svn/branches/filebrowser_3/filebrowser/media/filebrowser/uploadify/example/uploads
+http://django-filebrowser.googlecode.com/svn
+
+
+
+2009-10-12T09:29:29.900685Z
+459
+sehmaschine
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b1eb0509-c838-0410-b15c-e5ce2c1b85ca
+\f
diff --git a/platforma/static/filebrowser/uploadify/expressInstall.swf b/platforma/static/filebrowser/uploadify/expressInstall.swf
new file mode 100755 (executable)
index 0000000..0fbf8fc
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/expressInstall.swf differ
diff --git a/platforma/static/filebrowser/uploadify/jquery-1.3.2.min.js b/platforma/static/filebrowser/uploadify/jquery-1.3.2.min.js
new file mode 100755 (executable)
index 0000000..b1ae21d
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * 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/platforma/static/filebrowser/uploadify/jquery.uploadify.v2.1.0.js b/platforma/static/filebrowser/uploadify/jquery.uploadify.v2.1.0.js
new file mode 100755 (executable)
index 0000000..9a78cd3
--- /dev/null
@@ -0,0 +1,258 @@
+/*\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
+\r
+if(jQuery)(\r
+       function(jQuery){\r
+               jQuery.extend(jQuery.fn,{\r
+                       uploadify:function(options) {\r
+                               jQuery(this).each(function(){\r
+                                       settings = jQuery.extend({\r
+                                       id             : jQuery(this).attr('id'), // The ID of the object being Uploadified\r
+                                       uploader       : 'uploadify.swf', // The path to the uploadify swf file\r
+                                       script         : 'uploadify.php', // The path to the uploadify backend upload script\r
+                                       expressInstall : null, // The path to the express install swf file\r
+                                       folder         : '', // The path to the upload folder\r
+                                       height         : 30, // The height of the flash button\r
+                                       width          : 110, // The width of the flash button\r
+                                       cancelImg      : 'cancel.png', // The path to the cancel image for the default file queue item container\r
+                                       wmode          : 'opaque', // The wmode of the flash file\r
+                                       scriptAccess   : 'sameDomain', // Set to "always" to allow script access across domains\r
+                                       fileDataName   : 'Filedata', // The name of the file collection object in the backend upload script\r
+                                       method         : 'POST', // The method for sending variables to the backend upload script\r
+                                       queueSizeLimit : 999, // The maximum size of the file queue\r
+                                       simUploadLimit : 1, // The number of simultaneous uploads allowed\r
+                                       queueID        : false, // The optional ID of the queue container\r
+                                       displayData    : 'percentage', // Set to "speed" to show the upload speed in the default queue item\r
+                                       onInit         : function() {}, // Function to run when uploadify is initialized\r
+                                       onSelect       : function() {}, // Function to run when a file is selected\r
+                                       onQueueFull    : function() {}, // Function to run when the queue reaches capacity\r
+                                       onCheck        : function() {}, // Function to run when script checks for duplicate files on the server\r
+                                       onCancel       : function() {}, // Function to run when an item is cleared from the queue\r
+                                       onError        : function() {}, // Function to run when an upload item returns an error\r
+                                       onProgress     : function() {}, // Function to run each time the upload progress is updated\r
+                                       onComplete     : function() {}, // Function to run when an upload is completed\r
+                                       onAllComplete  : function() {}  // Functino to run when all uploads are completed\r
+                               }, options);\r
+                               var pagePath = location.pathname;\r
+                               pagePath = pagePath.split('/');\r
+                               pagePath.pop();\r
+                               pagePath = pagePath.join('/') + '/';\r
+                               var data = {};\r
+                               data.uploadifyID = settings.id;\r
+                               data.pagepath = pagePath;\r
+                               if (settings.buttonImg) data.buttonImg = escape(settings.buttonImg);\r
+                               if (settings.buttonText) data.buttonText = escape(settings.buttonText);\r
+                               if (settings.rollover) data.rollover = true;\r
+                               data.script = settings.script;\r
+                               data.folder = escape(settings.folder);\r
+                               if (settings.scriptData) {\r
+                                       var scriptDataString = '';\r
+                                       for (var name in settings.scriptData) {\r
+                                               scriptDataString += '&' + name + '=' + settings.scriptData[name];\r
+                                       }\r
+                                       data.scriptData = escape(scriptDataString.substr(1));\r
+                               }\r
+                               data.width          = settings.width;\r
+                               data.height         = settings.height;\r
+                               data.wmode          = settings.wmode;\r
+                               data.method         = settings.method;\r
+                               data.queueSizeLimit = settings.queueSizeLimit;\r
+                               data.simUploadLimit = settings.simUploadLimit;\r
+                               if (settings.hideButton)   data.hideButton   = true;\r
+                               if (settings.fileDesc)     data.fileDesc     = settings.fileDesc;\r
+                               if (settings.fileExt)      data.fileExt      = settings.fileExt;\r
+                               if (settings.multi)        data.multi        = true;\r
+                               if (settings.auto)         data.auto         = true;\r
+                               if (settings.sizeLimit)    data.sizeLimit    = settings.sizeLimit;\r
+                               if (settings.checkScript)  data.checkScript  = settings.checkScript;\r
+                               if (settings.fileDataName) data.fileDataName = settings.fileDataName;\r
+                               if (settings.queueID)      data.queueID      = settings.queueID;\r
+                               if (settings.onInit() !== false) {\r
+                                       jQuery(this).css('display','none');\r
+                                       jQuery(this).after('<div id="' + jQuery(this).attr('id') + 'Uploader"></div>');\r
+                                       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});\r
+                                       if (settings.queueID == false) {\r
+                                               jQuery("#" + jQuery(this).attr('id') + "Uploader").after('<div id="' + jQuery(this).attr('id') + 'Queue" class="uploadifyQueue"></div>');\r
+                                       }\r
+                               }\r
+                               if (typeof(settings.onOpen) == 'function') {\r
+                                       jQuery(this).bind("uploadifyOpen", settings.onOpen);\r
+                               }\r
+                               jQuery(this).bind("uploadifySelect", {'action': settings.onSelect, 'queueID': settings.queueID}, function(event, ID, fileObj) {\r
+                                       if (event.data.action(event, ID, fileObj) !== false) {\r
+                                               var byteSize = Math.round(fileObj.size / 1024 * 100) * .01;\r
+                                               var suffix = 'KB';\r
+                                               if (byteSize > 1000) {\r
+                                                       byteSize = Math.round(byteSize *.001 * 100) * .01;\r
+                                                       suffix = 'MB';\r
+                                               }\r
+                                               var sizeParts = byteSize.toString().split('.');\r
+                                               if (sizeParts.length > 1) {\r
+                                                       byteSize = sizeParts[0] + '.' + sizeParts[1].substr(0,2);\r
+                                               } else {\r
+                                                       byteSize = sizeParts[0];\r
+                                               }\r
+                                               if (fileObj.name.length > 20) {\r
+                                                       fileName = fileObj.name.substr(0,20) + '...';\r
+                                               } else {\r
+                                                       fileName = fileObj.name;\r
+                                               }\r
+                                               queue = '#' + jQuery(this).attr('id') + 'Queue';\r
+                                               if (event.data.queueID) {\r
+                                                       queue = '#' + event.data.queueID;\r
+                                               }\r
+                                               jQuery(queue).append('<div id="' + jQuery(this).attr('id') + ID + '" class="uploadifyQueueItem">\\r
+                                                               <div class="cancel">\\r
+                                                                       <a href="javascript:jQuery(\'#' + jQuery(this).attr('id') + '\').uploadifyCancel(\'' + ID + '\')"><img src="' + settings.cancelImg + '" border="0" /></a>\\r
+                                                               </div>\\r
+                                                               <span class="fileName">' + fileName + ' (' + byteSize + suffix + ')</span><span class="percentage"></span>\\r
+                                                               <div class="uploadifyProgress">\\r
+                                                                       <div id="' + jQuery(this).attr('id') + ID + 'ProgressBar" class="uploadifyProgressBar"><!--Progress Bar--></div>\\r
+                                                               </div>\\r
+                                                       </div>');\r
+                                       }\r
+                               });\r
+                               if (typeof(settings.onSelectOnce) == 'function') {\r
+                                       jQuery(this).bind("uploadifySelectOnce", settings.onSelectOnce);\r
+                               }\r
+                               jQuery(this).bind("uploadifyQueueFull", {'action': settings.onQueueFull}, function(event, queueSizeLimit) {\r
+                                       if (event.data.action(event, queueSizeLimit) !== false) {\r
+                                               alert('The queue is full.  The max size is ' + queueSizeLimit + '.');\r
+                                       }\r
+                               });\r
+                               jQuery(this).bind("uploadifyCheckExist", {'action': settings.onCheck}, function(event, checkScript, fileQueueObj, folder, single) {\r
+                                       var postData = new Object();\r
+                                       postData = fileQueueObj;\r
+                                       postData.folder = pagePath + folder;\r
+                                       if (single) {\r
+                                               for (var ID in fileQueueObj) {\r
+                                                       var singleFileID = ID;\r
+                                               }\r
+                                       }\r
+                                       jQuery.post(checkScript, postData, function(data) {\r
+                                               for(var key in data) {\r
+                                                       if (event.data.action(event, checkScript, fileQueueObj, folder, single) !== false) {\r
+                                                               var replaceFile = confirm("Do you want to replace the file " + data[key] + "?");\r
+                                                               if (!replaceFile) {\r
+                                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').cancelFileUpload(key, true,true);\r
+                                                               }\r
+                                                       }\r
+                                               }\r
+                                               if (single) {\r
+                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').startFileUpload(singleFileID, true);\r
+                                               } else {\r
+                                                       document.getElementById(jQuery(event.target).attr('id') + 'Uploader').startFileUpload(null, true);\r
+                                               }\r
+                                       }, "json");\r
+                               });\r
+                               jQuery(this).bind("uploadifyCancel", {'action': settings.onCancel}, function(event, ID, fileObj, data, clearFast) {\r
+                                       if (event.data.action(event, ID, fileObj, data, clearFast) !== false) {\r
+                                               var fadeSpeed = (clearFast == true) ? 0 : 250;\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID).fadeOut(fadeSpeed, function() { jQuery(this).remove() });\r
+                                       }\r
+                               });\r
+                               if (typeof(settings.onClearQueue) == 'function') {\r
+                                       jQuery(this).bind("uploadifyClearQueue", settings.onClearQueue);\r
+                               }\r
+                               var errorArray = [];\r
+                               jQuery(this).bind("uploadifyError", {'action': settings.onError}, function(event, ID, fileObj, errorObj) {\r
+                                       if (event.data.action(event, ID, fileObj, errorObj) !== false) {\r
+                                               var fileArray = new Array(ID, fileObj, errorObj);\r
+                                               errorArray.push(fileArray);\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(" - " + errorObj.type + " Error");\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID).addClass('uploadifyError');\r
+                                       }\r
+                               });\r
+                               jQuery(this).bind("uploadifyProgress", {'action': settings.onProgress, 'toDisplay': settings.displayData}, function(event, ID, fileObj, data) {\r
+                                       if (event.data.action(event, ID, fileObj, data) !== false) {\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + "ProgressBar").css('width', data.percentage + '%');\r
+                                               if (event.data.toDisplay == 'percentage') displayData = ' - ' + data.percentage + '%';\r
+                                               if (event.data.toDisplay == 'speed') displayData = ' - ' + data.speed + 'KB/s';\r
+                                               if (event.data.toDisplay == null) displayData = ' ';\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(displayData);\r
+                                       }\r
+                               });\r
+                               jQuery(this).bind("uploadifyComplete", {'action': settings.onComplete}, function(event, ID, fileObj, response, data) {\r
+                                       if (event.data.action(event, ID, fileObj, unescape(response), data) !== false) {\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID + " .percentage").text(' - Completed');\r
+                                               jQuery("#" + jQuery(this).attr('id') + ID).fadeOut(250, function() { jQuery(this).remove()});\r
+                                       }\r
+                               });\r
+                               if (typeof(settings.onAllComplete) == 'function') {\r
+                                       jQuery(this).bind("uploadifyAllComplete", {'action': settings.onAllComplete}, function(event, uploadObj) {\r
+                                               if (event.data.action(event, uploadObj) !== false) {\r
+                                                       errorArray = [];\r
+                                               }\r
+                                       });\r
+                               }\r
+                       });\r
+               },\r
+               uploadifySettings:function(settingName, settingValue, resetObject) {\r
+                       var returnValue = false;\r
+                       jQuery(this).each(function() {\r
+                               if (settingName == 'scriptData' && settingValue != null) {\r
+                                       if (resetObject) {\r
+                                               var scriptData = settingValue;\r
+                                       } else {\r
+                                               var scriptData = jQuery.extend(settings.scriptData, settingValue);\r
+                                       }\r
+                                       var scriptDataString = '';\r
+                                       for (var name in scriptData) {\r
+                                               scriptDataString += '&' + name + '=' + escape(scriptData[name]);\r
+                                       }\r
+                                       settingValue = scriptDataString.substr(1);\r
+                               }\r
+                               returnValue = document.getElementById(jQuery(this).attr('id') + 'Uploader').updateSettings(settingName, settingValue);\r
+                       });\r
+                       if (settingValue == null) {\r
+                               if (settingName == 'scriptData') {\r
+                                       var returnSplit = unescape(returnValue).split('&');\r
+                                       var returnObj   = new Object();\r
+                                       for (var i = 0; i < returnSplit.length; i++) {\r
+                                               var iSplit = returnSplit[i].split('=');\r
+                                               returnObj[iSplit[0]] = iSplit[1];\r
+                                       }\r
+                                       returnValue = returnObj;\r
+                               }\r
+                               return returnValue;\r
+                       }\r
+               },\r
+               uploadifyUpload:function(ID) {\r
+                       jQuery(this).each(function() {\r
+                               document.getElementById(jQuery(this).attr('id') + 'Uploader').startFileUpload(ID, false);\r
+                       });\r
+               },\r
+               uploadifyCancel:function(ID) {\r
+                       jQuery(this).each(function() {\r
+                               document.getElementById(jQuery(this).attr('id') + 'Uploader').cancelFileUpload(ID, true, false);\r
+                       });\r
+               },\r
+               uploadifyClearQueue:function() {\r
+                       jQuery(this).each(function() {\r
+                               document.getElementById(jQuery(this).attr('id') + 'Uploader').clearFileUploadQueue(false);\r
+                       });\r
+               }\r
+       })\r
+})(jQuery);
\ No newline at end of file
diff --git a/platforma/static/filebrowser/uploadify/jquery.uploadify.v2.1.0.min.js b/platforma/static/filebrowser/uploadify/jquery.uploadify.v2.1.0.min.js
new file mode 100755 (executable)
index 0000000..04592ff
--- /dev/null
@@ -0,0 +1,26 @@
+/*\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
+\r
+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/platforma/static/filebrowser/uploadify/swfobject.js b/platforma/static/filebrowser/uploadify/swfobject.js
new file mode 100755 (executable)
index 0000000..8eafe9d
--- /dev/null
@@ -0,0 +1,4 @@
+/*     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/platforma/static/filebrowser/uploadify/uploadify.allglyphs.swf b/platforma/static/filebrowser/uploadify/uploadify.allglyphs.swf
new file mode 100755 (executable)
index 0000000..4bad011
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/uploadify.allglyphs.swf differ
diff --git a/platforma/static/filebrowser/uploadify/uploadify.css b/platforma/static/filebrowser/uploadify/uploadify.css
new file mode 100755 (executable)
index 0000000..0cf8c0e
--- /dev/null
@@ -0,0 +1,53 @@
+/*\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
+.uploadifyQueueItem {\r
+       font: 11px Verdana, Geneva, sans-serif;\r
+       border: 2px solid #E5E5E5;\r
+       background-color: #F5F5F5;\r
+       margin-top: 5px;\r
+       padding: 10px;\r
+       width: 350px;\r
+}\r
+.uploadifyError {\r
+       border: 2px solid #FBCBBC !important;\r
+       background-color: #FDE5DD !important;\r
+}\r
+.uploadifyQueueItem .cancel {\r
+       float: right;\r
+}\r
+.uploadifyProgress {\r
+       background-color: #FFFFFF;\r
+       border-top: 1px solid #808080;\r
+       border-left: 1px solid #808080;\r
+       border-right: 1px solid #C5C5C5;\r
+       border-bottom: 1px solid #C5C5C5;\r
+       margin-top: 10px;\r
+       width: 100%;\r
+}\r
+.uploadifyProgressBar {\r
+       background-color: #0099FF;\r
+       width: 1px;\r
+       height: 3px;\r
+}
\ No newline at end of file
diff --git a/platforma/static/filebrowser/uploadify/uploadify.fla b/platforma/static/filebrowser/uploadify/uploadify.fla
new file mode 100755 (executable)
index 0000000..c07bbaf
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/uploadify.fla differ
diff --git a/platforma/static/filebrowser/uploadify/uploadify.php b/platforma/static/filebrowser/uploadify/uploadify.php
new file mode 100755 (executable)
index 0000000..8bf14a6
--- /dev/null
@@ -0,0 +1,46 @@
+<?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/platforma/static/filebrowser/uploadify/uploadify.swf b/platforma/static/filebrowser/uploadify/uploadify.swf
new file mode 100755 (executable)
index 0000000..0385d9e
Binary files /dev/null and b/platforma/static/filebrowser/uploadify/uploadify.swf differ
diff --git a/platforma/templates/admin/index.html b/platforma/templates/admin/index.html
new file mode 100644 (file)
index 0000000..ab1ece2
--- /dev/null
@@ -0,0 +1,83 @@
+{% 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 786a653..498b5b2 100644 (file)
@@ -22,6 +22,7 @@ urlpatterns = patterns('',
     url(r'^file/(?P<docid>[^/]+)/print$', 'explorer.views.print_html', name="file_print"),
 
     # Admin panel
     url(r'^file/(?P<docid>[^/]+)/print$', 'explorer.views.print_html', name="file_print"),
 
     # Admin panel
+    (r'^admin/filebrowser/', include('filebrowser.urls')),
     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
     url(r'^admin/(.*)', admin.site.root),
 
     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
     url(r'^admin/(.*)', admin.site.root),